this post was submitted on 02 Sep 2024
886 points (99.0% liked)

Programmer Humor

32874 readers
599 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

Incase it doesn't show up:

(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 35 points 4 months ago (14 children)

After you've done some languages, they all look the same. Yes, some have interesting features like the indent-based blocking of Python, and I'll have to look up if the new language has "else if", "elsif", "elif", or whatever, but als long as it is coming from the family of ALGOL-like languages, it does not matter much. You'll learn the basic functions needed to get around, and off you go.

Just a few weeks ago, I started learning Python. Yes, this indenting takes some time to get used to. My son does Python for about a year now - he started with it at university. Maybe ten days after I started learning, I invited him to have a look at my first Python program. I have no idea what he expected. A "Hello, World" with a few extra features, maybe? Definitely not the 2.5k lines app I had written in my spare time, with GUI, databases, harvesting data from a web site with caching, and creating PDF files with optimized layout for the data I processed. In the end, it was just another programming language.

[–] [email protected] 23 points 4 months ago (9 children)

I guess you've never seen some of the 10-page template errors C++ compilers will generate. I don't think anything prepares you for that.

load more comments (9 replies)
load more comments (13 replies)
[–] [email protected] 16 points 4 months ago (3 children)

A friend of mine whose research group works on high throughout X-ray Crystallography had to learn C++ for his work, and he says that it was like "wrangling an unhappy horse".

[–] [email protected] 4 points 4 months ago (1 children)

Probably makes 7 figures working for big pharma though

load more comments (1 replies)
[–] [email protected] 7 points 4 months ago (6 children)

I'm not sure how I feel about someone controlling an X-ray machine with C++ when they haven't used the language before... At least it's not for use on humans.

load more comments (6 replies)
load more comments (1 replies)
[–] [email protected] 13 points 4 months ago (2 children)

Reminds me of the joke about the guy falling from the top of the Empire State Building who, half way down, was heard saying: "Well, so far, so good"

load more comments (2 replies)
[–] [email protected] 11 points 4 months ago (4 children)

I learned c from a book from the 80s and then skipped to rust.

The only time I touched c++ was modding games in the early aughts and to try it for a couple coding challenges. I've heard templates are a thing of note when it comes to complications but not sure.

As for c# ... We don't talk about that (jk. I had to do it for one or two projects and played with unity a bit ages ago)

[–] [email protected] 7 points 4 months ago (1 children)

Was that "The C Programming Language"? I learned C from that after a bit of C++ and it made everything make so much sense. C is refreshingly simple.

I’ve heard templates are a thing of note when it comes to complications but not sure

It's funny because that is the one feature I really wish C had, I can live without member functions but templates or even a good generics system would be great. I did some C# with MonoGame and FNA. Language has gotten better as of late but idk about performance, way better than VB.

[–] [email protected] 4 points 4 months ago

Probably. I think I still have the book in storage back in the US. At some point, I also got "learn c in 24 hours" or something as well.

load more comments (3 replies)
[–] [email protected] 7 points 4 months ago

We used C++ based software. Who need sanity ? Clearly overrated

[–] [email protected] 26 points 4 months ago

This is so believable. You copy a few examples out of a textbook using cout and cin and it seems reasonably inline with other languages.

[–] [email protected] 33 points 4 months ago

C is dangerous like your uncle who drinks and smokes. Y'wanna make a weedwhacker-powered skateboard? Bitchin'! Nail that fucker on there good, she'll be right. Get a bunch of C folks together and they'll avoid all the stupid easy ways to kill somebody, in service to building something properly dangerous. They'll raise the stakes from "accident" to "disaster." Whether or not it works, it's gonna blow people away.

C++ is dangerous like a quiet librarian who knows exactly which forbidden tomes you're looking for. He and his... associates... will gladly share all the dark magic you know how to ask about. They'll assure you, oh no no no, the power cosmic would never turn someone inside-out, without sufficient warning. They don't question why a loving god would allow the powers you crave. They will show you which runes to carve, and then, they will hand you the knife.

[–] [email protected] 11 points 4 months ago (2 children)

I started to learn C++ once, had semester and couldn't wrap my head around the object oriented part. At some point I looked at learning objective C on my own, though I didn't really use it. I had a 1000x better understanding after an hour.

[–] [email protected] 1 points 4 months ago (2 children)

Something like ruby is a pretty quick way to get up and running with something easy and object-oriented. Groovy if you already have a jvm running (though ruby might be easier depending upon your background)

load more comments (2 replies)
[–] [email protected] 2 points 4 months ago

I learned it while at the same time learning (or really enhancing my previous knowledge of) javascript, thanks to an insane mostly-Finnish app development platform known as Qt Creator, which for no rational reason uses C++ for the under-hood-stuff and javascript for the UI front end. Just an absolutely horrible mismatch of mental states. For bonus points, the company that I worked for that used this monstrosity for its suite of apps got purchased by a huge west coast company and the apps were shut down and everybody was fired, after two years of my working on this shit.

[–] [email protected] 11 points 4 months ago (2 children)

In my country C++ is taught as a base language along with Scratch(not a language, but yk what I mean). I recently started learning Kotlin with Jetpack Compose (the only sane way to learn Kotlin) and I realized I wasted two years of my life learning C++, with 5 more to come as it is mandatory in ICT classes.... :((

[–] [email protected] 1 points 4 months ago

In hungary its python and c++ in the curriculum but on the tests you can usually choose between a few languages.

[–] [email protected] 7 points 4 months ago (3 children)

Which programming language would you like to teach if you were a teacher? P.D I also learned C++ as my first language

[–] [email protected] 3 points 4 months ago

Idk about other people but just learning c is so logical. You do stupid shit, you get stupid results. Of course there are a lot of bad things with c but at least when you sit down to understand how it works, it works while most oop languages are so detached from the hardware its hard to understand anything. It might be just me but oop breaks my brain. Also ive never coded in c++ but i automatically avoided it. I heard rust has very minimal oop and its just to make things smoother so i may try that.

[–] [email protected] 1 points 4 months ago

C++ was my second programming language after BASIC, if that still qualifies as a programming language these days.

[–] [email protected] 1 points 4 months ago

I'm not a teacher, and I don't want to become one tbh.

That said, something like Python is standard, and for good reason IMO. For OOP they usually teach Java here, though I'm not a huge fan. I think Kotlin would be better to teach nowadays. There are other OO languages of course, but I'm of the opinion that after messing around with Python, students should probably use something strongly typed, so that's JavaScript out - I suppose TypeScript could be used, but IMO it'd be best to keep JS/TS in a web dev specific course.

load more comments
view more: ‹ prev next ›