IMO this isn’t bad code nearly as much as it’s a clumsy/overly verbose library (D3). Frankly beside the one function named poorly and one variable that could go either way this code looks pretty straightforward to me.
I am the author of this and I felt compelled to post it here because after 6 YOE in software development I could not comprehend what it's doing from reading this.
Even 1 var is 1 var too many xD. I think any code will look good to me right now, i’ve been writing JS for the past like 10 hours and my brain is fried
20
u/abejfehr Jul 31 '21
I guess it’s not shown here, but I’m trying to figure out how ‘o’ has a ‘nice’ function
35
u/h7x4 Jul 31 '21
nice(o) probably has a time complexity of O(nice)
5
u/piercemoore Aug 01 '21
IMO this isn’t bad code nearly as much as it’s a clumsy/overly verbose library (D3). Frankly beside the one function named poorly and one variable that could go either way this code looks pretty straightforward to me.
80
u/miklcct Jul 31 '21
I can't see how bad this code is.
51
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jul 31 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
18
u/wktr_t Jul 31 '21
OP what in the realms of fuck am I looking at?
3
u/limeforadime Jul 31 '21
I so can’t stand d3. It was a complete chore learning and working with it. So unlike any other library I’ve used.
6
u/[deleted] Jul 31 '21
this isn’t so bad
1
u/Denzill7 Jul 31 '21
Nice
1
u/radioarchitect Jul 31 '21
What language is this? Legitimate question
1
u/Subr0sa0067 Jul 31 '21
Damn i'm struggle find var/func names too... Meet "i" my future son
1
u/Nick433333 Aug 01 '21
What the fuck is this shit?
1
u/Furry_69 Aug 01 '21
Oh god.. What I want to know, is why on Earth would anyone do such a thing
1
u/sxeli Aug 01 '21
Typical d3 code
1
u/sallycollyy Aug 01 '21
Isn’t this just D3? There’s a few bad variable names, but otherwise the format isn’t unusual?
1
u/Voxelgon_Gigabyte Jul 31 '21
did this guy call the function in the function's definition? is that even allowed?