this post was submitted on 09 Sep 2024
214 points (97.3% liked)

196

16224 readers
3935 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
top 19 comments
sorted by: hot top controversial new old
[–] [email protected] 33 points 1 week ago (2 children)

Frieren because arcane knowledge is required or Frieren because it takes years to master?

[–] [email protected] 8 points 1 week ago
[–] [email protected] 3 points 1 week ago

Frieren because odd spellbook.

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

Just started uni and theyre having us learn C

It's only been a couple weeks and it's not too bad, but every time I bring up to someone that I'm learning C they express sympathy, which makes me think I'm eventually gonna hit a brick wall of a learning curve.

[–] [email protected] 43 points 1 week ago* (last edited 1 week ago) (2 children)

It's mostly because C is notorious for not holding your hand and not telling you when you mess up. Write one past the array's length? Might do nothing, might crash, might mess up some other data, might crash later in somewhere completely different.

[–] [email protected] 12 points 1 week ago

I spent 30 minutes looking over my code because I forgot a semicolon after defining an integer :(

[–] [email protected] 9 points 1 week ago

Or in some cases might crash 8.5 million computers worldwide.

Yes the Crowdstrike crash was caused by going 1 past an array length, caused by a magic number index and a regex mistake, and wasn't caught because the tests didn't work.

The whole thing was a compound series of amateur mistakes, but with kernel access at boot time.

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

Oh yeah pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to pointers to a null.

Fig. 1 - Meanwhile your C programming lecturer.

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

Literally lol.

[–] [email protected] 23 points 1 week ago

It’s really not bad, you just have to rememb

Segmentation Fault - Core Dumped

[–] [email protected] 12 points 1 week ago* (last edited 1 week ago)

C isn't all that bad once you understand the incredible power you can wield with it. It's more limited than C++ due to lack of proper OOP, but still very usable and nice to know as a foundation to C++ and other languages. I've been rocking both for the last 20 years and they're still my favorites to use.

[–] [email protected] 9 points 1 week ago

It figures that the one time Detect Mimic really was a false positive, she got a C textbook out of it.

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

Don't mind me, I'm just setting up the popcorn cart for when the programmer arguments start. I'll share.

[–] [email protected] 6 points 1 week ago

I really want to make a joke about C, but I'm not a very good programmer. Maybe:

"A magical tome that makes you feel insecure."

[–] [email protected] 5 points 1 week ago
[–] [email protected] 4 points 1 week ago
[–] [email protected] 4 points 1 week ago
[–] [email protected] 3 points 1 week ago
[–] [email protected] 3 points 1 week ago

That book was a godsend for me in university