this post was submitted on 01 Apr 2024
258 points (100.0% liked)

Programmer Humor

23417 readers
1452 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 1 year ago* (last edited 1 year ago) (7 children)

C is the hardware language N°1 of the high-level languages. If you actually want to know and control what happens in the machine, you write in C. Rust, C++ and all the other abstractions are for people who do not understand how computers and computer memory work.

Edit: grammar

[–] [email protected] 35 points 1 year ago

This is a misconception that's common among beginner C programmers. They think C is high level assembly and don't understand the kinds of optimisations modern compilers make. And they think they're hardcore and don't make mistakes.

Hope you figure it out eventually.

[–] [email protected] 33 points 1 year ago* (last edited 1 year ago)

even if you write in assembly, you still may not actually understand what is going on in the machine since processors convert the instructions to "micro-ops", and let's not forget hardware bugs like those caused by speculative execution

[–] [email protected] 25 points 1 year ago (2 children)

I’ve written programs in C. I’ve written programs in assembly, for x86 and for microcontrollers. I’ve designed digital logic and programmed it into an FPGA. I’ve built digital logic circuits with transistors.

I’ll still take Go over C any day of the week. If I’m doing embedded, I’ll use TinyGo.

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

Have you tried putting some WD40 on it?

[–] [email protected] 3 points 1 year ago

Not everyone is on the Rust bandwagon

[–] [email protected] 1 points 1 year ago (1 children)

Why? I see no reason to go through the hassle of learning yet another language when Go serves my purposes perfectly and I'm happy with it.

[–] [email protected] 1 points 1 year ago (1 children)

Same reason as learning anything. It makes you better at what you do and broadens your horizons.

[–] [email protected] 1 points 1 year ago (1 children)

I’d rather spend my free time doing something I enjoy

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Programming languages are tools. I couldn't care less about learning a new tool just for the sake of learning. My interest in learning tools is exclusively practical - if they help me do my work better.

I find functional languages interesting, but that's because I find the underlying theory interesting and worth learning for its own sake, not because I actually care about the specific language it's written in. Even then these days I'd rather learn about woodworking (which is currently my main hobby) than a programming paradigm I'm probably never going to use.

[–] [email protected] 17 points 1 year ago

CPUs are for people who don't know how to melt their own sand into transistors.

Sand is for people who don't know how to create their own silicon from hydrogen and a neutron emitter.

[–] [email protected] 8 points 1 year ago

I wrote loads of firmware in c++ and some on highly constrained boards. You're just stuck in the past and spewing bs

[–] [email protected] 8 points 1 year ago

EL MAO

The obvious bait

CC BY-NC-SA 4.0

[–] [email protected] 1 points 1 year ago

Forth is more like the real hardware language.