MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/ee1dwe/i_prefer_same_line_braces_myself/
r/ProgrammerAnimemes • u/[deleted] • Dec 22 '19
21 comments sorted by
29
Next line, it feels les crammed, tbh
0 u/[deleted] Dec 28 '19 [deleted] — view deleted comment 5 u/[deleted] Dec 28 '19 I'm a C# programmer. Again, it looks less crammed, SPECIALLY IF YOU CODE IN THAT FILTHY JAVA 5 u/ThePyroEagle λ Dec 31 '19 Luckily enough, all methods and getter-only properties can be written brace-free in more recent versions of C#.
0
[deleted] — view deleted comment
5 u/[deleted] Dec 28 '19 I'm a C# programmer. Again, it looks less crammed, SPECIALLY IF YOU CODE IN THAT FILTHY JAVA 5 u/ThePyroEagle λ Dec 31 '19 Luckily enough, all methods and getter-only properties can be written brace-free in more recent versions of C#.
5
I'm a C# programmer. Again, it looks less crammed, SPECIALLY IF YOU CODE IN THAT FILTHY JAVA
5 u/ThePyroEagle λ Dec 31 '19 Luckily enough, all methods and getter-only properties can be written brace-free in more recent versions of C#.
Luckily enough, all methods and getter-only properties can be written brace-free in more recent versions of C#.
24
Next line every time
12
I always go next line so if something goes fucky I can line them up and be sure I'm not missing any
6
Same line always. It just doesn't look cleanly written to me otherwise, imo.
I used to prefer next line, but years of Java have conditioned me so that same line feels more natural now. In general I follow the languages style though.
{ item1 , item2 , item3 }
As far as I'm concerned, anything works as long as it's clear, consistent, and easy to maintain (e.g. not this).
Edit: Replace image link with a link to the original tweet.
4 u/bucket3432 Dec 31 '19 (e.g. not this)Have fun
4
(e.g. not this)
Have fun
I only do same line in css, next line in cs, cpp, and anywhere else.
7
Next line because it helps me visually line up the scope easier.
2
Same line
2 u/-Redstoneboi- Dec 23 '19 same
same
1
I like same line if it's short, new line for anything longer/more complex.
Phyton *laugh in error of doing something in the same line
-3
I am sorry to tell you this, but The Last Airbender is not anime.
6 u/CrazySD93 Dec 23 '19 NANI!?!! 0 u/[deleted] Dec 22 '19 [deleted] — view deleted comment 1 u/[deleted] Dec 22 '19 ???
NANI!?!!
1 u/[deleted] Dec 22 '19 ???
???
9 u/StuckAtWork124 Dec 23 '19 So, next argument() { or (){ 13 u/[deleted] Dec 24 '19 Space 3 u/emperor_mccarthy Dec 27 '19 ( ) {}
9
So, next argument
() { or (){
13 u/[deleted] Dec 24 '19 Space 3 u/emperor_mccarthy Dec 27 '19 ( ) {}
13
Space
3
( ) {}
29
u/[deleted] Dec 22 '19
Next line, it feels les crammed, tbh
24
u/tiedyedvortex Dec 22 '19
Next line every time
12
u/DaveK141 Dec 22 '19
I always go next line so if something goes fucky I can line them up and be sure I'm not missing any
6
u/DMCharok Dec 22 '19
Same line always. It just doesn't look cleanly written to me otherwise, imo.
5
u/Totenlicht Dec 22 '19
I used to prefer next line, but years of Java have conditioned me so that same line feels more natural now. In general I follow the languages style though.
5
u/ThePyroEagle λ Dec 31 '19 edited Dec 31 '19
As far as I'm concerned, anything works as long as it's clear, consistent, and easy to maintain (e.g. not this).
Edit: Replace image link with a link to the original tweet.
4
u/masterorca Dec 22 '19
I only do same line in css, next line in cs, cpp, and anywhere else.
7
u/[deleted] Dec 22 '19
Next line because it helps me visually line up the scope easier.
2
u/loscapos5 Dec 22 '19
Same line
1
u/IridRadiant Dec 30 '19
I like same line if it's short, new line for anything longer/more complex.
1
u/maxim-19 Jan 04 '20
Phyton *laugh in error of doing something in the same line
-3
u/[deleted] Dec 22 '19
I am sorry to tell you this, but The Last Airbender is not anime.
0
u/[deleted] Dec 22 '19
[deleted] — view deleted comment