You are viewing a single thread.
View all comments
78 points

C++ and ruby are weird, especially since C is somehow considered a reliable rifle. Rust betrays it’s age

permalink
report
reply
71 points

C is reliable in the sense that your C program reliably has memory leaks and security holes.

permalink
report
parent
reply
17 points
*

Unlike your Java program amirite.

The benefit of java is that you didn’t write the security holes in your software.

permalink
report
parent
reply
3 points
*

Programmers can trust language security features too much…

Of course, they’re nice to have and really can make things easier to implement securely but it’s still very easy to introduce security problems or bugs into any code. This is just an unsolvable problem of writing imperative code. All imperative code will reliably have memory leaks (even in Java!) and security holes because no compiler can check to see if you thought of everything.

And large and complex compilers/interpreters with these security features can end up introducing their own security problems or bugs in the process of implementing them.

I’m just tired of people entirely dismissing languages like C because they don’t have these features. Especially when the operating systems their code runs on and their languages may even be implemented in C!

permalink
report
parent
reply
2 points

I don’t trust Masterlock, so I’m gonna make my own lock out of duct tape, then tape scissors to the door to use as the key.

permalink
report
parent
reply
25 points

As does C#. The Windows-specific parts are not the parts most developers will use these days.

permalink
report
parent
reply
24 points

I took it as the donkey being .NET

permalink
report
parent
reply
12 points

C# is .Net though. It’s only syntax without it.

I think it’s definitely a dig at windows, because that used to be the primary issue with c#, you could only really target windows and you could only write it using windows. You could run .net framework applications on Linux, but it was a lot of work and it really underperformed (which would fit the timeline of 2015, when this comic was first posted). Now with .net core you can make a self contained executable that can run on anything.

permalink
report
parent
reply
15 points

The M1 Garand is known for having a problem during reloading where you have to stick your thumb in a slot that’s about to shut very hard. There are techniques to avoid getting pinched, but “Garand thumb” is a well-known phrase among vintage rifle enthusiasts.

This fits C very well.

permalink
report
parent
reply
15 points
*

Agree. That one didn’t age well…

permalink
report
parent
reply
12 points
*

And does anything require Python v2 anymore? I work almost exclusively in Python and haven’t run into that in many years.

permalink
report
parent
reply
7 points

Python v2 was sunset in 2020. So only legacy software.

permalink
report
parent
reply
5 points

Someone should tell Ubuntu (or Debian, I’m guessing).

permalink
report
parent
reply
9 points
*

C is a knife. The basic thing you can build weapons (programming languages) with.

permalink
report
parent
reply
2 points

Or a screwdriver?

permalink
report
parent
reply
4 points

Yes. Knives can also be used as screwdrivers for fasteners with a “blade” or “flat” head.

permalink
report
parent
reply
2 points

It’s a screwdriver without a head because you have to build it yourself

permalink
report
parent
reply
7 points
*

C is very reliable. It works almost everywhere with very little resources or overhead and many of the most fundamental parts of our systems (that have to work reliably) are written in C. Many of the languages in that image are even implemented in C.

If you want to write portable, fast, and simple code C can help you with that if you use it in the right way.

permalink
report
parent
reply
4 points

The old joke is that C++ is an octopus made by nailing legs to a dog.

So it should probably be a rifle-chaku made by connecting two Garands with a chain.

C# vs Java is also really weird since C# started out as basically a Java clone.

permalink
report
parent
reply
3 points

I watched Jon Gjenset’s stream where he implemented the beginnings of a BitTorrent client in Rust and of the four hours about 25% of it was spent wrestling with quirks in serde and reqwest.

It was pretty discouraging watching a pro have to fight the ecosystem so hard.

permalink
report
parent
reply
1 point

How long ago was this? I think the ecosystem got waaay better in the last 1-2 years. 3-4 years ago it was rough but shit still worked with a bit of trouble.

permalink
report
parent
reply
1 point

Two days ago lol

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.5K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments