this post was submitted on 30 Jul 2023
270 points (97.9% liked)

Programmer Humor

32710 readers
722 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 34 comments
sorted by: hot top controversial new old
[–] [email protected] 50 points 1 year ago (2 children)

"There you go, now try to add your stupid bugs. See, you can't!".

[–] FiskFisk33 13 points 1 year ago

laughs in unsafe

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

There! Now try to make a doubly linked list

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

unsafe time.

I've poked around in the Rust linked list tutorial, and it all seems like hacks to me. At the end of the day I think you just need to use raw pointers when you're implementing list operations.

[–] akash_rawal 4 points 1 year ago

quietly implements next and prev references using array index

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

'Rewrite it in Rust' isn't a joke anymore

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

Was it once a joke?

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

Bryan Lunduke on /c/programmerhumor? Not what I expected, but okay.

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

Actually, Lunduke made the best meme I've ever seen.

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

Finland is in an extended sense 'Scandinavian'; though I'm not sure that they consider themselves descended from 'the Vikings'.

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

Nordic, but not Scandinavian.

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

About as real as any programming humor post. But seriously, he specifically requested that it be enabled and I really don't get the hate that rust gets.

[–] alokir 13 points 1 year ago (1 children)

Rust is a really interesting language, the reason I decided not to pursue it further is the community, especially the maintainers (I hope that's the right word for it).

It's full of drama and politics (including real world political stances), sometimes they even incuded them in their release notes.

I wasn't too invested in these aspects, but I don't want to take my time to master something that's one drama away from being abandoned or (more likely) fractured.

Programming languages should be tools to get a job done, not to push political points, even if I happen to agree with most of them.

[–] JulianRR 7 points 1 year ago

C++ has a tremendous amount of drama.

I think it's the nature of the beast. Software devs are an opinionated bunch. You need to be able to separate the work from the authors.

As far as whether it's risky, Rust has been adopted by a number of companies and projects that have been rock solid for decades.

Your worry seems largely unfounded to me.

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

Does it get hate? Everyone in the Python community seems to love rewriting everything in rust...

[–] cpo 2 points 1 year ago (1 children)

I categorically refuse to run anything Python at home. It's a bitch to upgrade and most Python programmers are script kiddies at best...

[–] Zeth0s 5 points 1 year ago* (last edited 1 year ago) (2 children)

As a person using python professionally (ML/AI), this hits home...

A third category of pain are Java and c# developers writing in python... Real pain...

It is a pity, Python is actually a good language (with defects as any)

[–] cpo 2 points 1 year ago* (last edited 1 year ago) (1 children)

It is a language with a lot of history and glue in place to keep it "modern". I do agree that it is possible to write good software in Python, but most of the open source stuff is total shite.

Lets be honest: golang, C++ and rust are not THAT difficult to learn. About the JVM based languages: they should have moved away from the monolythical memory management long ago.

Edit: AI/ML purposes excempted, as they are more script like approaches. I still wonder why Python has grown to be the grandchild of AI though.

[–] Zeth0s 3 points 1 year ago (1 children)

I started with fortran 77. C++ is very simple in comparison.

That said, the reason we use python is the ML/AI ecosystem. We do create proper libraries, backend applications, proper type annotations, CI/CD, API, docker and kubernetes. Real software. But the heavy lifting job is done by libraries that have python as main interface.

With python one can produce good code and products, but code reviews and guidelines are extremely important. Too many ways to do the same thing, too many styles, too many people that believe they can code, and too many people that simply don't accept that python is not java or c#.

[–] cpo -1 points 1 year ago* (last edited 1 year ago)

Proper type annotations are possible in Python, but its more the excemption than the rule.

What I encounter in Python world are dicts, dicts and more dicts.

Edit: i've encountered some developers stepping up from Python to kotlin and Java and making a total mess of things. I agree that it is possible to write structured Python code but 80% of developers are never going to surpass the "scripting" level.

[–] lhx 4 points 1 year ago

Who hates rust? Rust is amazing?!?

[–] graphite 4 points 1 year ago

It's not the language that gets the hate mate

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

The picture itself is satire, but there already being rust in the kernel is reality.

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

haha. it's something I could see Linus doing, tbh. So I wasn't sure. Thanks.

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

Yes, but he's doing it because he values the technological advantages of rust as a systems programming language, not because he likes to punish coders. In fact, rust has been the most loved programming languge for 7 or 8 years in a row now according to the big stack overflow survey, so it doesn't make much sense for the purpuse of punishment.

This satiric picture resonates with a certain community of conservative and overconfident C-programmers. It has been created by bryan lunduke, who is a reactionary dumb fuck.

[–] mothringer 1 points 1 year ago

The GPU drivers from the team working on apple silicon linux stuff are written in rust, so it's really coming. The threat part is probably a joke though.

[–] lanolinoil 3 points 1 year ago (1 children)

You aren't using the rusty trombone distro???