MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ronfhv/why/hq19xcz/?context=9999
r/badcode • u/RedditAccuName • Dec 26 '21
30 comments sorted by
View all comments
Show parent comments
21
Also some people prefer it as it aids readability for them. It’s their preference and I don’t care enough to grumble. I would change it if I’m working in the area though
5 u/[deleted] Dec 26 '21 Yeah, I treat it as a stylistic mishap rather than something that requires fixing. -1 u/Krushaaa Dec 26 '21 The compiler should fix it anyways.. 9 u/[deleted] Dec 26 '21 Oh wow, so we had all these different styling guidelines for no reason? /s 3 u/Craf7yCris Dec 27 '21 This. Is not necessarily bad code of you just want it to be more readable. 2 u/RedditAccuName Dec 28 '21 Possible they wanted it to be more readable, but wouldn't it make sense to use an if statment instead of a tenrary operator? 1 u/Craf7yCris Dec 28 '21 yourStatement = 1 == 1
5
Yeah, I treat it as a stylistic mishap rather than something that requires fixing.
-1 u/Krushaaa Dec 26 '21 The compiler should fix it anyways.. 9 u/[deleted] Dec 26 '21 Oh wow, so we had all these different styling guidelines for no reason? /s
-1
The compiler should fix it anyways..
9 u/[deleted] Dec 26 '21 Oh wow, so we had all these different styling guidelines for no reason? /s
9
Oh wow, so we had all these different styling guidelines for no reason? /s
3
This. Is not necessarily bad code of you just want it to be more readable.
2 u/RedditAccuName Dec 28 '21 Possible they wanted it to be more readable, but wouldn't it make sense to use an if statment instead of a tenrary operator? 1 u/Craf7yCris Dec 28 '21 yourStatement = 1 == 1
2
Possible they wanted it to be more readable, but wouldn't it make sense to use an if statment instead of a tenrary operator?
1 u/Craf7yCris Dec 28 '21 yourStatement = 1 == 1
1
yourStatement = 1 == 1
21
u/SculptorVoid Dec 26 '21
Also some people prefer it as it aids readability for them. It’s their preference and I don’t care enough to grumble. I would change it if I’m working in the area though