0 points

Joke on you until the python program segfaults

permalink
report
reply
0 points

If it does it’s because of C/C++ code

permalink
report
parent
reply
0 points

Embedded C entered the chat

permalink
report
reply
0 points

Your loop had a race condition, so we let the smoke out for you.

permalink
report
parent
reply
0 points

No bounds checking, only fast.

permalink
report
reply
0 points

This right here - C++ iirc is used mostly for microprocessor code in an industry setting, where EXTENSIVE testing is done so that bloated code doesn’t need to constantly check for programmer errors every single time, i.e. where execution speed is prioritized over programmer development time. And whenever that is not the case, well, as OP pointed out, other higher-level languages also exist (implication: to choose from).

permalink
report
parent
reply
0 points

C++ iirc is used mostly for microprocessor code

lol no, it’s used almost everywhere where performance is important and people want(ed) OOP, from tiny projects to web browsers (Chrome, Firefox) to game engines (Unreal, CryEngine). Many of these are hugely complex and do encounter segfaults on a somewhat frequent basis.

Saying C++ is mostly used for embedded applications is like saying C# is mostly used for scripting games, i.e. it doesn’t nearly cover all the use cases.

higher-level languages also exist

This depends on your definition of “higher-level”, but many people would argue that C++ is on a similar level to Java or C# in terms of abstraction. The latter two do, however, have a garbage collector, which vastly simplifies memory management for the programmer(generally anyway).

permalink
report
parent
reply
0 points

Where’s rust?

permalink
report
reply
0 points

Compilation: top row, runtime: button row.

permalink
report
parent
reply
0 points

Rust required you to fix all the errors before running the code.

permalink
report
parent
reply
0 points

Runtime errors are still a thing.

permalink
report
parent
reply
0 points

Compared to that trio, they are a rarity that make people excited just to spot one.

permalink
report
parent
reply
0 points

Python: So you used spaces and tabs for indentation? NOW DIE!

permalink
report
reply
0 points

Mixing spaces and tabs should be a warcrime.

permalink
report
parent
reply
0 points

Find me anyone who claims they use tabs for indentation, and I bet I’ll find at least one case where they’re using both tabs and spaces.

The only safe way to avoid war crimes is to avoid tabs.

permalink
report
parent
reply
0 points

Don’t IDEs just replace any tab with 4 spaces anyways? Pretty sure VSCode does

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

  • 5.3K

    Monthly active users

  • 885

    Posts

  • 8.9K

    Comments

Community moderators