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
-
The top one is just retarded it uses one line just for one character. Seems dumb. I know you're supposed to do that in php or c# or whatever but coming from java I have a lot of hate towards such code
-
vronzeur677y@lucavinci I however earned first to code in that style, and while I do get it that you waste a line...I still like it :D
-
Lego1367y@lucavinci but for close the brackets you always use one line for one char. It is wasted too?
-
Damnit I am completely team Cap in the actual story but I have to say #2 for this picture
-
I prefer not having blocks:
datruth = true
if(datruth) code ;
if(datruth) morecode;
if(datruth) evenmorecode; -
nocgod17587y@lucavinci I down voted you. It's related to code style and conventions nothing to do with being retarded or not. Think before you write shit.
-
makinet1997yPersonally, I use the first one for functions longer than 3 lines and latter for functions with 3 or less lines, I think it makes it easier to read because I often find myself scrolling up to the top of a long function and I can see the single { line and I start looking down from there, I don't know, that's just the way I am used to doing it.
Never fails to make me laugh
undefined