DEV Community

Discussion on: What's one of the ugliest piece of code you've written so far?

Collapse
 
methodbox profile image
Chris Shaffer

I’m just impressed that you didn’t use jQuery.

Collapse
 
weeb profile image
Patrik Kiss • Edited

Well, I wrote this code when we had only been learning web development for like 1 month.

Jquery or any kind of framework wasn't even mentioned for the next 2 months(yeah it was a slow course, and we had learned Java more back then). We only learned basics like HTML, CSS, JS(the very very basics)

And I started using that little knowledge I had to make a website

Even with so little knowledge about JS, I was far ahead of anyone in the course

Collapse
 
methodbox profile image
Chris Shaffer

It’s functional code, even if now you know it’s not practical or efficient.

Logically, it works, it’s just not very DRY.