Tried to make something to convert md to html because bored, and got a set fault whenever I tried to call a function (any function) as the third step in the primary loop, and it turned out to be a use after free related to the way a std function was implied in Linux. The solution was to update gcc, and rewrite the entire program from first principles. I am not trying to debug a std function on a random Tuesday.
Also printing the code and mailing it to the closest computer center with a turnaround speed of two weeks explains why forgetting a semicolon is such a big deal.
My school doesn't use notepad as an IDE, it uses something that somehow manages to be even worse, becaue it has no autocompletion, no inline error messages, the font size is locked to fucking arial 10 and the font rendering looks straight out of the 1990s
Truly, humanity had never before invented such a horrible instrument of torment
Just miss some call or flag change. No one, except in some cases good AI, is able to correct you. ('*' could be corrected by type check, of course. In case, it's not something obscure enough.)
IDEs have been around for a long time, and the earliest ones were around back in the 90s'. But, this meme didn't allude to any particular time period, so it would be safe to assume it's at least within the last decade.
An IDE catches those kinds of issues far earlier though. If you're writing code that needs to be compiled, and you're not using an IDE, you're basically making things far harder than they need to be for no good reason.
It's what if you forget on move constructor/assignment you get expensive moves?
Which along with forgetting to mark destructor virtual if inheritance is ever on the table would fit this meme's format a lot better than fucking semicolons?
When I saw C++, I expected a joke about template specifications, some kind of broken code generation, metaprogramming, or something similar. But here it is again, a joke about a semicolon.
Or comparing two values using a single = sign. I was still doing this after many years of C coding. Compiler won't flag it like it will a missing semicolon.
My experience with Rust is rather opposite - it might take some considerable redesign at times, though the exact issues always feel solvable & apparent to me. Just a matter of trial & error. It's rare I'm left questioning "wtf is even wrong here", which are to me the most frustrating errors to solve, when it's not entirely transparent as to where the issue is even stemming from.
And because it is too friendly, it shits out tons of garage for a simple thing and you have to search through it to find what you did. When doing rust, I miss my c compiler which have error messages clear enough to know exactly how to fix it, and short enough to not staturate your terminal with griberish
I have seen hundreds of errors that all turned out to due to one missing semicolon. I think the easiest way to make that happen is to leave out the semicolon that is supposed to come at the end of a class or struct declaration.
The following is an excerpt from The Programmerβs Quick Guide to Languages.
TASK: Shoot yourself in the foot.
C++: You accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you canβt tell which are bitwise copies and which are just pointing at others and saying, βThatβs me, over there.β
143
u/AbandonedDoll226 May 06 '26
r/firstweekcoderhumour
55
u/Weekly_Astronaut5099 May 06 '26
Semicolons are compiler error, youβll know soon enough. But deleting an object and forgetting to reset a pointer to may bring way more fun.
33
u/veryusedrname May 06 '26
I wonder if this joke was relevant, ever. Probably not. Also similar jokes were posted thousands of times.
Also r/thisismyfirstdayasaprogrammerandthisisverydeep
9
u/CaffeinatedMiqote May 06 '26
Try missing or having an extra pointer asterisk.
6
u/AshleyJSheridan May 06 '26
If you use an actual IDE instead of a basic text editor, this is a non-issue.
5
u/Ulrich_de_Vries May 06 '26
You chose C++ but went with a semicolon instead of noexcept or virtual?
Noob
5
u/itsbondjamesbond1 May 06 '26
This gets told so many times but it's never been an issue. Every time I missed a semicolon, the compiler tells me where.
At least change the joke to missing parenthesis or brackets, since those can be less transparent
3
u/LetUsSpeakFreely May 06 '26
IDEs spot that shit immediately.
The bigger issue with C/C++ is not deallocating memory when you're done with it.
5
u/CuriousAndMysterious May 06 '26
You can just post anything on this sub and people will upvote it
4
u/ChocolateDonut36 May 06 '26
coding in JavaScript (nodejs) be like:
there was an error
u guess where and why
fuck you
2
u/NTuranist May 07 '26
When I saw C++, I expected a joke about template specifications, some kind of broken code generation, metaprogramming, or something similar. But here it is again, a joke about a semicolon.
2
u/Wabbit65 May 09 '26
Or comparing two values using a single = sign. I was still doing this after many years of C coding. Compiler won't flag it like it will a missing semicolon.
3
u/Iwisp360 May 06 '26
Compiler errors are easy to solve(except rust)
1
u/ParticularFragrant57 May 06 '26
π€£
1
u/Frytura_ May 06 '26
Gah, the C++ tooling around building and writting sucks so much
And then whe have C#, where the tooling just works, but theres TOO much tooling π‘
1
u/FrontierMedicineEnte May 06 '26
Semicolons: My Anti-Drug
1
u/APlanetWithANorth May 06 '26
Hey don't listen to the people in the comments, we all start somewhere
1
u/LimpRepresentative11 May 06 '26
Very rarely do I forget a semicolon, it becomes instinctive after you've coded for awhile
1
u/thisisjustascreename May 06 '26
I like the template error messages meme better
1
u/23Link89 May 06 '26
I'll take shit that doesn't happen for 500.
1
u/Single-Virus4935 May 06 '26
The username fits ambitious_kid
1
u/vitimiti May 07 '26
Are you 12?
1
u/HalifaxRoad May 07 '26
forgot a semicolon amirite fellow programmers????
1
u/crystalsraw May 07 '26
You just post bullshit here and get upvotes huh
1
u/Zaiches May 07 '26
Would've been a better meme if it was about pointer references or flushing memory.
1
u/Kronephon May 07 '26
I thought this was gonna be UB joke. Dissapointing. π
1
u/limeyNinja May 08 '26
a[0] == 0[a]
1
u/MathdallasRblx May 08 '26
and then u get flashbanged π
1
u/Benilda-Key May 11 '26
I have seen hundreds of errors that all turned out to due to one missing semicolon. I think the easiest way to make that happen is to leave out the semicolon that is supposed to come at the end of a class or struct declaration.
1
u/Benilda-Key May 11 '26
The following is an excerpt from The Programmerβs Quick Guide to Languages.
TASK: Shoot yourself in the foot.
C++: You accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you canβt tell which are bitwise copies and which are just pointing at others and saying, βThatβs me, over there.β
1
u/Korzag May 06 '26
OP be like "OMMMMGGGG CS50 sooo hardddd πππ"
0
u/Background_Sun4402 May 06 '26
C# too