10

populator.call( from
,null
,to
,obj
,srt
);

People writing this kind of code should consider put a bullet in their fucking head.

Comments
  • 4
    When the variable names are long or a function call, or an anonymous function, this way is good, rather than stuffing everything in a single line.. I think.?!
  • 1
    What exactly is your point?
  • 1
    Maybe the point here is that you can switch lines or delete them without having to remove/set commas.
  • 0
    Y'all want to tell me that I'm the only one triggered about the commas BEFORE the variables?
  • 1
    I feel actually more uneasy about the lack of spaces after the commas
  • 1
    @Drillan767 honestly I didn't see it until you said something, but now I can't unsee it. BURN IT WITH FIRE!
  • 1
    @Drillan767 as @7400 pointed out it makes it much easier to remove values because you are always removing the previous comma. Good for functions that have default values, great for SQL queries.
  • 0
    @gorsamp SQL, ok, but come on, this is JavaScript, not rocket / SQL science!
  • 1
    @Drillan767 javascript is the hormonal unpredictable teenager of the coding world, I am not surprised that there are many conventions within the language.
  • 0
    @Drillan767 didn see that 😂😂
  • 2
    This is my preference, command aligned with the opening parenthesis and any modifiers aligned so that each column contains the same type of information.

    populator.call ( const from
    , null
    , to
    , obj
    , srt );
Add Comment