Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
htlr52077yWhen 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.?!
-
740027807yMaybe the point here is that you can switch lines or delete them without having to remove/set commas.
-
Y'all want to tell me that I'm the only one triggered about the commas BEFORE the variables?
-
jmclemo66807y@Drillan767 honestly I didn't see it until you said something, but now I can't unsee it. BURN IT WITH FIRE!
-
gorsamp19507y@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.
-
gorsamp19507y@Drillan767 javascript is the hormonal unpredictable teenager of the coding world, I am not surprised that there are many conventions within the language.
-
slar3007yThis 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 );
Related Rants
-
EaZyCode2I didn't download that fucking 56MB Skype Installation File just to get this message: "Please install Skype fr...
-
rusty-hacker2You know a company is ripping you off when they charge £79 for a fucking charger and it breaks in 1 year. Fuc...
-
C0D430i understand some developers like to write wrapper functions to handle tedious things, I even understand how t...
populator.call( from
,null
,to
,obj
,srt
);
People writing this kind of code should consider put a bullet in their fucking head.
undefined
why the fuck
datatable