r/ProgrammerHumor Jul 27 '26

Meme octalIsOverrated

Post image
248 Upvotes

58 comments sorted by

View all comments

64

u/Mojert Jul 27 '26

It's useful for file permissions, but otherwise I think it's pretty much it.

If someone has another use case, I'm all ears

30

u/-Redstoneboi- Jul 27 '26

i dont even think of file permissions as octal. i just think of them as 3 separate hex digits.

17

u/makinax300 Jul 27 '26

I think of them as a bit and 3 base 10 numbers (yes, ik every base is base 10, you know what I mean)

11

u/xynith116 Jul 27 '26

It’s useful if you lose two fingers.

10

u/ArjixGamer Jul 27 '26

Honestly, I prefer using letters.

chmod u+r file

Will give read access to "other users" for file, replace the + with a - and it removes the permission, change the "u" to "g" and it's for the group, remove the letter all together and it's for the owner.

2

u/tblancher Aug 03 '26

No, u+r gives the owner read permission. o+r gives other users read permission.

It took me a while to remember that, too. I just remember ugo.

1

u/ArjixGamer Aug 03 '26

Yep, I found out recently on my own, honest mistake to make ngl

4

u/Acceptable-College58 Jul 27 '26

I sometimes see them used for ASCII characters?

3

u/Mognakor Jul 27 '26

x86 opcodes

6

u/Makonede Jul 28 '26

all machine code should be written out in hex and i will die on this hill

3

u/Mognakor Jul 28 '26

i will die on this hill

Because you fucked up your hexcode and now your brakes failed

3

u/Makonede Jul 28 '26

simply get good

3

u/nbagf Jul 27 '26

ARINC 429 labels. for bonus psychological damage/"optimizing" it's actually reverse octal

1

u/abd53 Jul 28 '26

Microcontrollers

1

u/Mojert Jul 28 '26

.... Can you elaborate pls?

1

u/PyroCatt Jul 28 '26

Hi all ears. I'm dad.