News for hackers. Stuff that matters.
Re:Why I’m Leaving Elm by ggregoire on Thursday April 09, 2020 @12:23PM (#22824087)
> It doesn't really solve the problem. How do you format this code with tabs:

  <TAB><TAB>function name(arg1, arg2,
  <TABs or spaces?????>   arg3 <-- align with arg1)
Just wondering… do you realign the parameters every time you rename a function?
Re:Why I’m Leaving Elm by mikewhy on Thursday April 09, 2020 @12:59PM (#22824625)

    <TAB><TAB>function name(
    <TAB><TAB><TAB>arg1,
    <TAB><TAB><TAB>arg2,
    <TAB><TAB><TAB>arg3,
    <TAB><TAB>)
That means this never comes up, and you don't need to change adjacent lines because you've renamed a function.
Re:Why I’m Leaving Elm by jlokier on Friday April 10, 2020 @10:16AM (#22833235)
That wastes a lot of vertical space if you have a lot of function calls. If you're one of those who prefer that, it's ok. I much prefer:

    function name(arg1, arg2, arg3,
                  arg4, arg5, arg6);
Re:Why I’m Leaving Elm by samvher on Thursday April 09, 2020 @12:39PM (#22824343)
Not the person you're responding to but I do, or actually spacemacs does. The sequence would be $ -> J -> i -> ENTER -> ESC and I guess it's muscle memory.

I agree that this kind of indentation might not make sense on a collaborative project because different people have different standards, but if I'm the only one working on a piece of code I really think precise alignment makes the code a lot more readable.

Re:Why I’m Leaving Elm by benibela on Thursday April 09, 2020 @01:31PM (#22825026)
If the editor would support elastic tabstops you could do:

     <TAB><TAB>function name(<TAB>arg1, arg2,
     <TAB><TAB><TAB>arg3)
Re:Why I’m Leaving Elm by jcranmer on Thursday April 09, 2020 @02:33PM (#22825701)
I don't actually personally do this kind of alignment, but it was the easiest example for me to come up with to illustrate the problem of needing to align text on different lines.