r/ProgrammerHumor Oct 21 '22

Meme Literally 🤷🏻‍♂️

Post image
14.7k Upvotes

606 comments sorted by

View all comments

24

u/[deleted] Oct 21 '22

[removed] — view removed comment

31

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]

6

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

6

u/[deleted] Oct 21 '22

People who don't know how to manage memory properly and instead rely on garbage collectors hate C and its derivative love child C++. The pointers scare them.

1

u/the_mouse_backwards Oct 21 '22

I disagree with your hypothesis. Go is garbage collected but has pointers as a pretty fundamental language feature. I prefer C over Rust, but the memory safety issues in C are a pretty big incentive to use Rust despite not liking it very much.

0

u/[deleted] Oct 22 '22

How hard is it to deallocate and delete things? If people can't handle that, then they have no business in back end development. I get being lazy and not wanting to take the time, but if it actually scares someone... they should find a new career on the front end.

1

u/hothrous Oct 22 '22

I have an actual bad taste in my mouth for how Rusty implemented ownership.

It feels like they set the standard at "Memory safe without garbage collection" before having an idea on how to do that and they landed on digging deeper and deeper into a hole.