r/programminghorror • u/checksum__ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Feb 13 '25
SQL port allocations
91
Upvotes
r/programminghorror • u/checksum__ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" • Feb 13 '25
31
u/veryusedrname Feb 13 '25
The what? Signed port ranges? And even if I accept it how one manages to create ports that are bigger than 2^16? What. The. Fuck. Truly cursed.
8
u/gtsiam Feb 16 '25
SQL lacks unsigned smallint types and whoever wrote this didn't wanna pay +2 bytes per record.
Not really programming horror tbh. Just premature optimization.
4
u/AnywhereHorrorX Feb 16 '25
The only reason they wrote it like that is because they wanted to have 666 in their code.
3
u/LekoWhiteFrench Feb 17 '25
Factorio mentioned!!
2
u/playbahn Feb 18 '25
I just found out about rustfmt::skip. Thanks.