Stories
Slash Boxes
Comments

SoylentNews is people

posted by NCommander on Thursday June 04 2015, @10:00AM   Printer-friendly
from the lets-do-this-right dept.
So as the post-upgrade dust settles, one of the big things still left on our usability TODO list is implementing inline reply and moderation for the site. A quick survey of our developers is that no one here really is super experienced in writing JavaScript code, so I'm putting a call for help to find someone to help implement and write this. For anyone getting interested in SN development, this appears to be a straightforward task. Here's the official requirements for the feature.
  • A user should be able to post and moderate comments without a seperate page load
  • If JavaScript is disabled for whatever reason, the site must degrade to the current click-to-post functionality. We don't want to force people to enable JS if they don't wish to. Dynamically rewriting the DOM to change links may be necessary, but this can be discussed
  • The rehash API must be extended to add this functionality; this should be relatively easy and straight forward; we have parts of the original AJAX code so this functionality may already be in place.
  • Contact me, or paulej72 on IRC, or post a comment below if you're interested in helping.

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Insightful) by wonkey_monkey on Thursday June 04 2015, @11:45AM

    by wonkey_monkey (279) on Thursday June 04 2015, @11:45AM (#192007) Homepage

    There may be, possibly, a reason for this?

    Yes. The reason is that no one at Soylent really is super experienced in writing JavaScript code.

    What are you trying to imply? That Javascript is an obscure, forgotten language?

    And for many, this is not a degrade, it is the grade!

    You're welcome not to avail yourself of the additional functionality, but I doubt you speak for the majority or anything close to it.

    If you don't want to use Javascript, these changes should have no effect on you.

    Again, what is the argument for this functionality?

    Because it's faster and much less frustrating for the user.

    I don't know where this luddite attitude (in general) against Javascript comes from. You can argue for all kinds of reasons why it's a bad thing philosophically or from a security standpoint to allow code to run in your browser and muck about with the DOM, but if you seriously can't see how much more useful and usable Javascript can make a website, then it sounds like you're just being willfully obtuse.

    What if you want to refer to other comments (either in or outside of the ancestry of the comment you're replying to), for example?

    What about moderation? I would certainly be more inclined to do it if it didn't involve losing my place on the page.

    Not to mention the bandwidth savings. This page, for example, with a just few comments on it, is 40k. The page I'm currently on, typing this reply, is about 18k. Then I like to preview my comment, which is probably about the same. Then I hit submit - a few more k to tell me I've posted my comment. Then I go back to the page to read more comments - another 40k.

    That could be reduced by a huge amount through judicious use of Javascript and AJAX requests.

    --
    systemd is Roko's Basilisk
    Starting Score:    1  point
    Moderation   +1  
       Insightful=1, Total=1
    Extra 'Insightful' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3  
  • (Score: 0, Disagree) by Anonymous Coward on Thursday June 04 2015, @12:50PM

    by Anonymous Coward on Thursday June 04 2015, @12:50PM (#192025)

    Not to mention the bandwidth savings. This page, for example, with a just few comments on it, is 40k. The page I'm currently on, typing this reply, is about 18k. Then I like to preview my comment, which is probably about the same. Then I hit submit - a few more k to tell me I've posted my comment. Then I go back to the page to read more comments - another 40k.

    By the same token, we could also strip all the markup, I mean, no-body ever sees those crazy things in the ''. I'm sure we can strip them and just serve plain TXT.
    And then there's the stylesheets, goodness, so much bandwith, let's get rid of them.
    We can save even more bandwidth by not doing images as well, those are +18kB each as well.

    All in all, I think we should go back to gopher:// [gopher]

    ok, had enough? Do you realize why you sound dumb yet?

    • (Score: 2) by wonkey_monkey on Thursday June 04 2015, @01:28PM

      by wonkey_monkey (279) on Thursday June 04 2015, @01:28PM (#192050) Homepage

      Except my suggestion reduces bandwidth and improves - or at the very least does not impact - the usability or presentation of the website. Which is what you makes your extrapolation dumb.

      --
      systemd is Roko's Basilisk
      • (Score: 2) by monster on Friday June 05 2015, @01:00PM

        by monster (1260) on Friday June 05 2015, @01:00PM (#192487) Journal

        If the JS version doesn't show a preview, that sounds like reduced functionality to me.

    • (Score: 2) by NCommander on Friday June 05 2015, @03:33AM

      by NCommander (2) Subscriber Badge <michael@casadevall.pro> on Friday June 05 2015, @03:33AM (#192361) Homepage Journal

      You joke about gopher but we have some code to implement a gopher version of this website (https://github.com/SoylentNews/rehash/tree/master/plugins/Gopher). One of these days, I might actually finish that April Fools Joke ...

      --
      Still always moving
  • (Score: 2) by martyb on Thursday June 04 2015, @12:53PM

    by martyb (76) Subscriber Badge on Thursday June 04 2015, @12:53PM (#192028) Journal

    What about moderation? I would certainly be more inclined to do it if it didn't involve losing my place on the page.

    It's not ideal, but I've been using this workaround on that other site and here for years. If your browser supports multiple tabs, Open the comment you wish to moderate in another tab[*], apply moderation, and then close that tab.

    [*] For example, the comment to which I am replying currently displays in its header:

    by wonkey_monkey (279) [friend/foe] on [date/time stamp] (#192007) Homepage

    Right-click on #192007 [soylentnews.org] and select open in new tab. Perform your moderation in *that* tab and then close it when done. Your place in *this* tab is unaffected.

    It may not be ideal, but I've certainly found it effective and hope that others will, too.

    --
    Wit is intellect, dancing.
    • (Score: 4, Informative) by sudo rm -rf on Thursday June 04 2015, @01:41PM

      by sudo rm -rf (2357) on Thursday June 04 2015, @01:41PM (#192056) Journal

      Right-click on #192007 and select open in new tab.

      Even simpler: middle click. Maybe there are browsers that don't support this, but the usual suspects do.
      I only mention it, because many people don't know the power of the middle mouse button;)

      • (Score: 2) by maxwell demon on Thursday June 04 2015, @02:57PM

        by maxwell demon (1608) on Thursday June 04 2015, @02:57PM (#192082) Journal

        I've already had mice where the wheel was so sensitive that it was hard to middle-click without at the same time scrolling, which of course is not good if you try to middle-click a link. So the power of the middle mouse button very much depends on the quality of your mouse.

        --
        The Tao of math: The numbers you can count are not the real numbers.
        • (Score: 2) by schad on Thursday June 04 2015, @04:44PM

          by schad (2398) on Thursday June 04 2015, @04:44PM (#192151)

          It can be a little fidgety, but with practice you'll get it right about 90% of the time. And it's not like anyone dies if you scroll by accident (I hope).

          The real objection -- and I'm surprised nobody has brought it up yet -- is that middle click in X means "paste selection." In a browser it means paste-and-go.

          You can also use ctrl+left click.

          • (Score: 2) by maxwell demon on Thursday June 04 2015, @04:50PM

            by maxwell demon (1608) on Thursday June 04 2015, @04:50PM (#192153) Journal

            It can be a little fidgety, but with practice you'll get it right about 90% of the time.

            Spoken like someone who never had a really bad mouse. I can assure you, with the wrong mouse you'll be lucky to get 50%.

            --
            The Tao of math: The numbers you can count are not the real numbers.
            • (Score: 2) by schad on Thursday June 04 2015, @05:09PM

              by schad (2398) on Thursday June 04 2015, @05:09PM (#192168)

              Quite possible. I'm a PC gamer so I do research mice before I buy them.

        • (Score: 2) by monster on Friday June 05 2015, @01:20PM

          by monster (1260) on Friday June 05 2015, @01:20PM (#192504) Journal

          At least on Firefox, ctrl+click is the same as middle-click.

    • (Score: 2) by danomac on Thursday June 04 2015, @05:03PM

      by danomac (979) on Thursday June 04 2015, @05:03PM (#192163)

      What about moderation? I would certainly be more inclined to do it if it didn't involve losing my place on the page.

      It's not ideal, but I've been using this workaround on that other site and here for years. If your browser supports multiple tabs, Open the comment you wish to moderate in another tab[*], apply moderation, and then close that tab.

      Or, even easier, just choose the moderation from the drop down in the comment and keep reading/moderating the thread/comments. When you get to the bottom of the comments, you'll see a Moderate button outside the comments section that will commit all moderations at once.

  • (Score: 2) by aristarchus on Thursday June 04 2015, @05:09PM

    by aristarchus (2645) on Thursday June 04 2015, @05:09PM (#192169) Journal

    I don't know where this luddite attitude (in general) against Javascript comes from.

    Umm, experience? That and, um, bad experience. Nothing luddite about it.

    But thanks for the explanation of the possible benefits. I primarily use javascript as a canary. I deploy Noscript, and if a page will not function without allowing javascript, I do not go there, if I have a choice.