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
-
All in one line π
And python would get a syntax error. it's "if condition:"
: ^) -
henlo32766yPersonally i prefer using the java style everywhere, just makes stuff clear. But does it even matter? U can just tweak ur ide/text editor to show u what you like.
-
Markk1316y@BambuSource Thanks for pointing out that I did on purpose, because it's just supposed to do the basic form of Python and Ruby. If I did it with colons, Ruby would not agree.
-
Java style in all my code. I started C++ style though but habit made Java style easier.
-
Lyniven44536yI started as a c/c++ dev, and I'm using this style for php and js also, because it's fucking easier to read
-
First one. Java way isn't "symmetrical" and it hurts my ocd. Why add it on the same line, I don't get it. But it's a personal preference of course.
-
musician6656yWell java style if its a language with brackets. I hate the c# style of formatting. But maybe thats just I learned Java as my first language. In the end I let the IDE do the formatting anyways.
-
con-fig3936yC++ let's you do the third one as long as the statement is only one line. I fucking hate it. I've spent the last few weeks working with code that has a mixture of all three in a long parsing script and it just makes everything so difficult to read and follow.
-
devearl1156yI use the Java style whenever possible. If I have to make some nested loops in python, I add #endfor comments
Related Rants
What kind do you belong to?
joke/meme
statments
statment
programmers
type
types
if
condition