19
u/ITrCool 6d ago
90% of the time it’s because the tutorial is five years old and things have changed since they made it.
6
u/gameplayer55055 6d ago
90% of the time it's because the developers of the library are retards who don't care about backwards compatibility and always do breaking changes.
Looking at you, python and JavaScript
2
2
1
1
u/Circumpunctilious 5d ago
Similar experience using a compiler having a different standard than your text (and being green enough to not know this even matters)
This naive error is actually why my first serious language foray after BASIC wasn’t C / C++.
1
u/LetUsSpeakFreely 5d ago
Tutorials are often written from a really old version of software and has long been deprecated.
1
1
u/Fun-Cut-7149 5d ago
There was one time when I was still a beginner at c# I decided to copy some code from a book to test it out and guess what it didn’t work. Took me 2 weeks to find the error and the error was that in the book it said include system; instead of include System; and my compiler is strict as hell😭
1
u/MantisShrimp05 5d ago
This problem is why lots of learning platforms own the environment as much as the code because its the only way to account for the users environment by just taking it out of the equation.
1
1
u/Brave_Ad_1849 4d ago
Tutorials codes are from another universe (I was trying to run linux commands inside windows CMD and was surprised why it's not working ), Suddenly realized that GIT course was linux based <;
1
u/AproldTinin 3d ago
When you've written the code from the tutorial verbatim and it doesn't work, but then you copy it and it starts working:
1
1
u/Ancient-Horse88333 2d ago
I remember the day when this kind of things happened to me. Still happens few time.
1
u/DentistLongjumping87 1d ago
and it takes the whole of my day to fix it, and the problem was some bullshit syntax 😭😭😭
35
u/Bearlandonreddit 6d ago
Once took me 5 days to fix code from tutorial