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
-
curlyDev4697yWell each team has its own rules?
For example symfony has classes and function next line and on if for etc on the same line.
Its depends on the team still and it takes probably 20 minutes to get used to it. -
Why frig you still use you favorite hand for anything that needs one hand or when one hand is more somewhat important than other, AND you STRICTLY REFUSE to use the other for, just saying, writing?!?
By the way, i stick to same line SO FRIG MUCH but not enough for dive into that not-holy war -
Doesn’t always mean the same thing, E.G
function test(){
return {
worked: “ok”
}
}
function test(){
return
{
worked: “ok”
}
}
In JavaScript the top one would return an object whilst the second would return undefined.
You could argue that this is syntactical but you should try to follow the language style just to avoid little oddities.
Related Rants
-
devios111Me, flirting with a cute girl from the finance dept. in the kitchen: "Well, back to the grind. I've got this ...
-
m3ty13If a python dev tries to develop in java
-
netanel090914I took a programming class this semester in which a have to write code on paper, and the more I write, the mor...
Python prorammers ignore this.
Oh so now we got a fucking new fight started on devRant on which line to put brackets on.
Fucking why!!??
Both conventions basically mean same thing and even no fucking ide is partial about the fact.
Stop it!
rant
blocks
brackets
braces