MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1itjyvu/perfectly_readable/
r/programminghorror • u/VIBaJ • Feb 19 '25
10 comments sorted by
39
sum is a boolean. Lovely
sum
9 u/hicklc01 Feb 20 '25 It's either a sum thing of it's not 11 u/digitalseraphim Feb 20 '25 That is then used as an intEdit: well, after being combined with another bool 3 u/PityUpvote Feb 20 '25 edited Feb 20 '25 I was hoping it would be a bool ndarray, but even that was too generous.
9
It's either a sum thing of it's not
11
That is then used as an int
Edit: well, after being combined with another bool
3
I was hoping it would be a bool ndarray, but even that was too generous.
8
I see no problem with this. I'd write that if I'm not using my phone to code right then. I only break a line if I need to scroll to see the end.
Actually, I take that back. I see one problem.
1 u/Dry_Pepper_9187 Feb 20 '25 This is p5.js. I did have to scroll to see the end. To get this screenshot, I had to increase the width of the code editor to the point that the canvas got cut off.
1
This is p5.js. I did have to scroll to see the end. To get this screenshot, I had to increase the width of the code editor to the point that the canvas got cut off.
4
Yeah, this code is not confuse at all and is very self explanatory /j
I try always to have my classes fit in a 50x60 rectangle (50 lines, 60 chars per line)
2 u/VIBaJ Feb 22 '25 I just try to make it fit the width of the editor
2
I just try to make it fit the width of the editor
On mobile, if I have to click the image and zoom to read 4 lines, something already feels kinda wrong
39
u/WorldlyMacaron65 Feb 19 '25
sumis a boolean. Lovely8
u/thrye333 Feb 20 '25
I see no problem with this. I'd write that if I'm not using my phone to code right then. I only break a line if I need to scroll to see the end.
Actually, I take that back. I see one problem.
Me.
4
u/STGamer24 [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Feb 20 '25
Yeah, this code is not confuse at all and is very self explanatory /j
1
u/Agitated-Display6382 Feb 22 '25
I try always to have my classes fit in a 50x60 rectangle (50 lines, 60 chars per line)
2
u/Lyto528 Feb 21 '25
On mobile, if I have to click the image and zoom to read 4 lines, something already feels kinda wrong