this post was submitted on 15 Nov 2024
42 points (93.8% liked)

Programming Horror

1889 readers
13 users here now

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there's also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev

Rules

Credits

founded 1 year ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old

Why settle on cammel case ("saveGame") or upper cammel case ("SaveGame") when you can have one of each?

[โ€“] Rin@lemm.ee 8 points 1 day ago (1 children)
[โ€“] PoolloverNathan@programming.dev 4 points 1 hour ago (1 children)

Someone's handed me nested base-64 encoded JSON before and to this day I am moderately annoyed at them.

[โ€“] MinekPo1@lemmygrad.ml 2 points 56 minutes ago

unity kinda does this ! there is a json file wirh a base-64 encoded string (UTF-16 encoding) and is a completely different data structure with embedded json

[โ€“] python@programming.dev 14 points 1 day ago (1 children)

smh, could have used the short form ()=>{ instead of function ๐Ÿ˜ค

[โ€“] Deebster@programming.dev 9 points 1 day ago

I've been coding long enough that I still think of that as a fairly new thing in JS.

[โ€“] GBU_28@lemm.ee 9 points 1 day ago (1 children)

I WILL NOT USE ANOTHER LINE. I DON'T NEED IT

The best code has the fewest lines.

[โ€“] Kissaki@programming.dev 9 points 1 day ago

In German we say "doppelt hรคlt besser". Is there an English saying like that? "Twice is stronger/more stable/holds better."