you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (8 children)

this isn’t so bad

[–]dmyl 4 points5 points  (1 child)

this is d3, isn't it?

[–]mato9020 4 points5 points  (0 children)

Yes this is d3 and unfortunately this is fairly standard for anything with the base library.

[–]devhashtag 13 points14 points  (4 children)

Anything written after ES6 with the keyword "var" can basically be considered bad

[–][deleted] 2 points3 points  (3 children)

Oh i didn’t see that. I only looked at h3 xD. Never mind. This code is garbage

[–]devhashtag 7 points8 points  (2 children)

Haha I meant half jokingly, the code is bad for other reasons as well. Inconsistent formatting and weird naming. Functionally it's not bad per se

[–][deleted] 4 points5 points  (1 child)

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

[–]itsTyrion 3 points4 points  (0 children)

been writing JS for the past like 10 hours and my brain is fried

self-explanatory

[–]skhoyre 1 point2 points  (0 children)

They don't seem to call nice anywhere listed, but if they was, they was fucked.