this post was submitted on 17 Jan 2024
331 points (96.6% liked)

Memes

45660 readers
1208 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[–] Sabre363@sh.itjust.works 19 points 10 months ago (2 children)

I understood this, can I call myself a programmer now

[–] ElectricTrombone@lemmy.world 17 points 10 months ago (1 children)

I understood this, can I call myself a programmer now

[–] PoolloverNathan@programming.dev 5 points 10 months ago (1 children)

I understood this, can I call myself a programmer now

[–] Asudox@lemmy.world 4 points 10 months ago

I understood this, can I call myself a programmer now

[–] tubbadu@lemmy.kde.social 7 points 10 months ago

Yes, welcome to the club mate

[–] Zerush@lemmy.ml 15 points 10 months ago* (last edited 10 months ago)

Dev in Arkansas

[–] istdaslol@feddit.de 11 points 10 months ago* (last edited 10 months ago) (1 children)

if you want to protect your Linux system against such 'problems' just enter :(){ :|:& };:

[–] fl42v@lemmy.ml 5 points 10 months ago

If you want to protect your Linux from protecting your Linux from such and similar problems by entering :(){ :|:& };: just set the nproc limit

[–] TimeSquirrel@kbin.social 11 points 10 months ago* (last edited 10 months ago) (1 children)

Me still learning C++ and traversing a file path string and adding each subdirectory to a vector so I can pop them off later and move back up to the root one dir at a time.

I am still figuring out why it's crashing. Been two days. I think half my code is just print statements now, all saying "here", "here now", "now running blahblah()"

This shit can make you feel so stupid sometimes. Because this has been a solved problem for half a century. Coding is definitely an exercise in tolerance for failure and frustration.

[–] inetknght@lemmy.ml 1 points 10 months ago (1 children)

iterators are invalidated when you push/pop a vector

[–] TimeSquirrel@kbin.social 3 points 10 months ago* (last edited 10 months ago)

I'm just using "[n]" to access each element and ".size()" to make sure I don't go over. Solved it now, was an off-by-one mistake deep in some other function I didn't catch. I was trying to access an element in the vector that didn't exist yet.

I have been playing with STL's built in iterators, but still in the process of learning how to use them. Thanks for the heads up though!

[–] ImplyingImplications@lemmy.ca 4 points 10 months ago

RecursionError: maximum recursion depth exceeded

[–] IndiBrony@lemmy.world 4 points 10 months ago (1 children)

I'd love to see this in a fractal style so I could zoom in on it forever

[–] explodicle@local106.com 6 points 10 months ago (1 children)
[–] TheRealLinga@sh.itjust.works 1 points 10 months ago

Well done sir/madam!

[–] mindbleach@sh.itjust.works 2 points 10 months ago