Welcome to Incremental Social! Learn more about this project here!
Check out lemmyverse to find more communities to join from here!

mindbleach ,
ImplyingImplications ,

RecursionError: maximum recursion depth exceeded

IndiBrony ,
@IndiBrony@lemmy.world avatar

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

explodicle ,
TheRealLinga ,

Well done sir/madam!

Zerush ,
@Zerush@lemmy.ml avatar
istdaslol ,

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

fl42v ,

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

TimeSquirrel , (edited )
@TimeSquirrel@kbin.social avatar

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 ,

iterators are invalidated when you push/pop a vector

TimeSquirrel ,
@TimeSquirrel@kbin.social avatar

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!

Sabre363 ,

I understood this, can I call myself a programmer now

ElectricTrombone ,
@ElectricTrombone@lemmy.world avatar

I understood this, can I call myself a programmer now

PoolloverNathan ,

I understood this, can I call myself a programmer now

Asudox ,
@Asudox@lemmy.world avatar

I understood this, can I call myself a programmer now

tubbadu OP ,

Yes, welcome to the club mate

  • All
  • Subscribed
  • Moderated
  • Favorites
  • memes@lemmy.ml
  • random
  • incremental_games
  • meta
  • All magazines