r/badcode • • Mar 20 '20

html hajgidghjb

Post image
0 Upvotes

6 comments sorted by

14

u/TSM- Mar 20 '20

Great, now searching hajgidghjb finds the coronavirus page and this thread. It used to be unique!

7

u/Tok-A-Mak ((fn [] (recur))) Mar 21 '20

This is absolutely bad code. You can tell it was created by randomly slamming keys in the center of a keyboard. If uniqueness was its aim it failed and the proper way would be to use a UUID or randomly generate something similar. But this is most definitely not generated and it's not beautiful or readable either. I would guess it's caused by a crappy content management system that asks for insignificant user input without providing meaningful defaults, about something that probably shouldn't even be asked from a user who just wants to publish an article in the first place. It reeks of frustration. Desperation even. DSFARGEG

1

u/[deleted] Mar 27 '20

Don't blame the code, blame the person using the CMS.

2

u/Tok-A-Mak ((fn [] (recur))) Mar 27 '20

For typing the badcode by slamming their keyboard?

1

u/[deleted] Mar 27 '20

For entering a non-descriptive 'slug' value for the page.

9

u/Plus_Cryptographer Mar 20 '20

Neither bad nor code.