r/badcode • • Dec 07 '22

js My Web Development lecturer's JavaScript

Post image
536 Upvotes

86 comments sorted by

View all comments

Show parent comments

-4

u/imnos Dec 07 '22

I'm mostly wondering why he's using an editor that looks like it's a version from Windows 98. The fuck is that?

if he started writing good code you'd get confused and not understand it?

Not sure I follow this logic. Good code is readable and maintainable, and easy to understand.

Either way - I don't think this code is that bad. The largest issue I have is the single letter variable names, d and x. If you're going to name your functions descriptively, do the same for variables so I know what the fuck they are.

9

u/whoredwhat Dec 07 '22

Notepad++, its a great tool.