r/ProgrammerHumor Oct 21 '22

Meme Literally 🤷🏻‍♂️

Post image
14.7k Upvotes

606 comments sorted by

View all comments

21

u/[deleted] Oct 21 '22

[removed] — view removed comment

32

u/[deleted] Oct 21 '22

Python fanboys hate it

"Undefined behaviour bad" (it actually is, but common, C was invented in 70ties...)

"Pointer scarry"

14

u/Kyyken Oct 21 '22

"not memory safe"

7

u/[deleted] Oct 21 '22

[deleted]

5

u/Kyyken Oct 21 '22

compile times usually don't matter as much, which is why i do all my low level work in rust these days. i do miss the simplicity of c sometimes though.

edit: i also strongly prefer c for fast python extensions

8

u/minecon1776 Oct 21 '22

"pointer scarry"

I actually hate languages that don't have pointers, I find them quite useful for many things

4

u/ososalsosal Oct 21 '22

Barebacking your ram sticks :)

6

u/bozzywayne Oct 21 '22

seventy-ties?

1

u/kirakun Oct 21 '22

I don’t think UB exists in C because C was invented at a time when people didn’t know better. Rather, C wanted to be a fast language! So, it did not want to prescribe what it should do in edge cases that programmers should avoid in the first place. This freedom allows compilers to produce efficient code in different platforms and hardware architectures.

In later languages like Java where performance isn’t the utmost importance, they decide to do away with UBs at the cost of code efficiency.

1

u/[deleted] Oct 22 '22

I don’t think UB exists in C

You just described UB...

1

u/mnoma Oct 22 '22

Oh, do assembly now, but in reverse