MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/p8n5n8/created_this_monstrosity_i_have/
r/badcode • u/[deleted] • Aug 21 '21
13 comments sorted by
7
Who TF can code without Syntax highlighting?
3 u/[deleted] Aug 21 '21 Copied it to notepad to take a screenshot 11 u/Cerus_Freedom Aug 21 '21 https://carbon.now.sh/ for prettier code screenshots. 1 u/[deleted] Aug 23 '21 I can. Sometimes syntax highlighting is broken for some languages, and I can't be bothered to make it work.
3
Copied it to notepad to take a screenshot
11 u/Cerus_Freedom Aug 21 '21 https://carbon.now.sh/ for prettier code screenshots.
11
https://carbon.now.sh/ for prettier code screenshots.
1
I can. Sometimes syntax highlighting is broken for some languages, and I can't be bothered to make it work.
8
A good way to filter inputs for capitalisation is to use an upper or lower function on the input.
Is that notepad?
1 u/[deleted] Aug 21 '21 Yes
Yes
You could do better: range(0,3,1) instead of range(0,3)
range(0,3,1)
range(0,3)
1 u/[deleted] Aug 22 '21 Isn't that the same thing? 2 u/casperdewith Aug 22 '21 Yeah. I meant it as a joke. One ‘should’ use range(3) since the 0 is implied.
Isn't that the same thing?
2 u/casperdewith Aug 22 '21 Yeah. I meant it as a joke. One ‘should’ use range(3) since the 0 is implied.
2
Yeah. I meant it as a joke. One ‘should’ use range(3) since the 0 is implied.
range(3)
Reminds me of my first semester of Java.
As a Python developer, I'm not even reading it until its readability is fixed. After using SonarQube's Cognitive Complexity for a while, I think I'm allergic to stuff like this.
7
u/Impossible_Average_1 Aug 21 '21
Who TF can code without Syntax highlighting?
8
u/FrostedBromide Aug 21 '21
A good way to filter inputs for capitalisation is to use an upper or lower function on the input.
1
u/leumasme Aug 21 '21
Is that notepad?
1
u/casperdewith Aug 22 '21
You could do better:
range(0,3,1)instead ofrange(0,3)2
u/[deleted] Aug 21 '21
Reminds me of my first semester of Java.
1
u/WHSolvation Aug 26 '21
As a Python developer, I'm not even reading it until its readability is fixed. After using SonarQube's Cognitive Complexity for a while, I think I'm allergic to stuff like this.