What's the worst coding practices you have seen(or done!)?

View other answers to this thread

Learn Something New Everyday,
Connect With The Best Developers!

Sign Up Now!

& 500k+ others use Hashnode actively.

Caleb H.'s photo

Mine was a security issue.

When I first got into backend programming, one of the first things I did was build my own authentication system (sign up, sign in, etc.)

And...I stored those passwords in plaintext. Yep.

But I learned from it later on, and now all my apps use hashes with salt to store the passwords.

It turns out Facebook had the same problem when it was first created...

...and they had one password that could be used by Facebook employees to sign in to any account. Yikes.

Quick tip: If you ever go to a website's "forgot password" page, and they email you your password, that website has terrible security.

Show +1 replies
Emil Moe's photo

Software Engineer & Consultant

If we talk about stupid things we did in the past, then first time I ever installed Linux I executed sudo rm -r / it was just on desktop, but it wasted me a lot of time.

Caleb H.'s photo

Co-founder of High/Low

😬 I feel your pain. Although at least it wasn't -rf?

Want to read more?

Browse featured discussions

Β© 2020 Β·Β Hashnode