this post was submitted on 27 May 2024
688 points (97.8% liked)

Programmer Humor

19154 readers
2012 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

geteilt von: https://lemmit.online/post/3018791

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/ProgrammerHumor by /u/polytopelover on 2024-05-26 21:23:20+00:00.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 67 points 3 months ago (7 children)

There is a reason why little endian is preferred in virtually 100% of cases: sorting. Mentally or lexicographically, having the most important piece of information first will allow the correct item be found the fastest, or allow it to be discounted/ignored the quickest.

[–] [email protected] 24 points 3 months ago* (last edited 3 months ago) (4 children)

That's actually filtering not sorting.

That being said, it's more valuable (to me) to be able to find all my things for a topic quickly rather than type.

Foo_dialog

Foo_action

Foo_map

Bar_dialog

Bar_action

Bar_map

Is superior IMHO.

[–] [email protected] 3 points 3 months ago (1 children)

I put all those in different files

compont/functions/foo.ext etc.

[–] [email protected] 2 points 3 months ago

Depends on the language's constraints, but yes: more smaller files please!

load more comments (2 replies)
load more comments (4 replies)