|
i've been getting into the habit of getting rid of curly braces in if/else statements if they are one line for example: code:
code:
|
# ? Apr 16, 2015 18:52 |
|
|
# ? Apr 26, 2024 13:28 |
|
its not nifty it looks like poo poo
|
# ? Apr 16, 2015 18:52 |
|
it just takes some getting used to
|
# ? Apr 16, 2015 18:53 |
|
it caused the apple ssl bug so never do it
|
# ? Apr 16, 2015 18:53 |
|
i wish you would compact your posts
|
# ? Apr 16, 2015 18:53 |
|
carry on then posted:it caused the apple ssl bug so never do it huh?
|
# ? Apr 16, 2015 18:54 |
|
Valeyard posted:i wish you would compact your posts they are pretty compact IMO
|
# ? Apr 16, 2015 18:54 |
|
|
# ? Apr 16, 2015 19:01 |
|
never cause it makes code unreadable hngngngngfebgfvvwwerff
|
# ? Apr 16, 2015 19:09 |
|
lol if you dont put your conditionals at the end of one liners. ffs. tier up its lonely here at the top
|
# ? Apr 16, 2015 19:09 |
|
Jonny 290 posted:lol if you dont put your conditionals at the end of one liners. ffs. tier up its lonely here at the top show me. i know i'll never be as great as you, but i want to be like you
|
# ? Apr 16, 2015 19:18 |
|
theres entire tiers where you get to hire losers to write code for you instead of having to do it yourself
|
# ? Apr 16, 2015 19:36 |
|
power botton posted:theres entire tiers where you get to hire losers to write code for you instead of having to do it yourself whether the coders are losers or not is totally subjective
|
# ? Apr 16, 2015 19:38 |
|
LP0 ON FIRE posted:whether the coders are losers or not is totally subjective ... bless your heart
|
# ? Apr 16, 2015 19:41 |
|
power botton posted:... seriously though in their world a lot of them are winners with a ton of patience and smarts
|
# ? Apr 16, 2015 19:43 |
|
LP0 ON FIRE posted:i've been getting into the habit of getting rid of curly braces in if/else statements if they are one line no
|
# ? Apr 16, 2015 19:53 |
|
my 3 favorite things: white space white women white privilege
|
# ? Apr 16, 2015 19:54 |
|
lol if your language doesn't have conditional expressionscode:
DimpledChad fucked around with this message at 20:03 on Apr 16, 2015 |
# ? Apr 16, 2015 20:00 |
|
Smythe posted:my 3 favorite things:
|
# ? Apr 16, 2015 20:01 |
|
Smythe posted:my 3 favorite things: lol i do use plenty of white space otherwise and my method names are quite descriptive
|
# ? Apr 16, 2015 20:01 |
|
actually for me it's black space because that's how i rock
|
# ? Apr 16, 2015 20:03 |
|
pram posted:its not nifty it looks like poo poo
|
# ? Apr 16, 2015 21:35 |
|
!ErrorHasOccured() ??!??! HandleError();
|
# ? Apr 16, 2015 21:52 |
|
i think ternary operators are awful and ugly imho
|
# ? Apr 16, 2015 21:58 |
|
pram posted:its not nifty it looks like poo poo
|
# ? Apr 17, 2015 00:43 |
|
dear op, if it's a simple guard like code:
code:
code:
code:
thanks for reading my programming style opinions
|
# ? Apr 17, 2015 01:31 |
|
yeah python is a poo poo language
|
# ? Apr 17, 2015 01:31 |
|
pram posted:yeah python is a poo poo language nah, the braces should've been enforced in those langs like in golang
|
# ? Apr 17, 2015 01:43 |
|
pram posted:yeah python is a poo poo language
|
# ? Apr 17, 2015 02:16 |
|
this is pram when he runs gofmt -w [file] from the command line
|
# ? Apr 17, 2015 02:17 |
|
Symbolic Butt posted:dear op, yeah i do the first one and last one, but i'm not really sure what you have against the last one
|
# ? Apr 17, 2015 02:49 |
|
LP0 ON FIRE posted:yeah i do the first one and last one, but i'm not really sure what you have against the last one every programmer is an idiot including me and you and will forget to put the braces in when we add another statement.
|
# ? Apr 17, 2015 02:56 |
|
pram posted:yeah python is a poo poo language anything that allows people with low levels of comprehension to code is great . thinking privilege
|
# ? Apr 17, 2015 03:00 |
|
go is very terse and easy language to learn, understand, and master
|
# ? Apr 17, 2015 03:05 |
|
yeah let me just put the condition and effect on the same line because being able to quickly scan through code and logically figure out whats happening is a really bad thing. i want to put all my code on one line so people have to actually parse the code in their head in order to figure out if theres a mistake.
|
# ? Apr 17, 2015 03:11 |
|
this is why i sometimes hate coffeescript. L@@K @ this loving garbage:code:
|
# ? Apr 17, 2015 03:13 |
|
never got the point of coffeescript
|
# ? Apr 17, 2015 03:16 |
|
its good because it makes coding things faster, like instead of typing "function", you type "()->", but it sucks balls because loving ruby programmers like to ruby it up with their loving one liners they think are so amazing
|
# ? Apr 17, 2015 03:20 |
|
I don't ever omit the curlies because I'll go back later like an idiot and add something then it doesn't work why doesn't it work what is going on
|
# ? Apr 17, 2015 03:23 |
|
|
# ? Apr 26, 2024 13:28 |
|
I use multiline ternaries op
|
# ? Apr 17, 2015 04:37 |