this post was submitted on 04 Jun 2023
17 points (100.0% liked)

Programming

13383 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

I saw this one a while ago but still check it when I'm doing something that seems trivial but probably has many edge-cases.

top 4 comments
sorted by: hot top controversial new old
[–] CasualTee 7 points 1 year ago (1 children)

I liked the one about music. If you've read a few partition, you'll quickly realize music writing is more guidelines than actual rules. There are different ways to represent the same sequence of notes, and the choice made by the compositor conveys meaning. It's more akin to a short story than a math formula really. And so, you cannot represent music programmatically without allowing some free-form input somewhere.

[–] catacomb 4 points 1 year ago

Oh I would mess this up so bad because I know very little about music. It's funny because, in trying to develop something, we're always trying to find absolute rules and restrict the user into our scheme and sometimes it just makes worse software.

I liked the point about "Okay, maybe not with European notation." So many of these falsehoods are about cultural differences and, so often, we project our local understanding of a problem on the whole world. I mean, my first thought would be "they need some staff lines where they can put notes" but that's not true for everyone.

[–] honeyontoast 3 points 1 year ago

I have one to add:

Programmers believe languages have a flag.

I used to work on a system that supported multiple languages and had to fight very hard not to put a country's flag next to each language on the front end. People's responses to the "wrong" flag being used for their language ranged from slightly annoyed to extremely volatile...

[–] tony@l.bxy.sh 1 points 1 year ago

I saw the one that started it all about names not long ago. This should be a suitably anxiety-inducing read of all the edge cases I had never considered. I'm not sure if I should laugh or cry... 😭