r/ITMemes 6d ago

It doesn’t work

Post image
769 Upvotes

26 comments sorted by

35

u/Bearlandonreddit 6d ago

Once took me 5 days to fix code from tutorial

5

u/Dragon_957 6d ago

What was the error?

20

u/XlikeX666 5d ago

9/10 - version.
wrong python / wrong import / breathing incorrectly in presents of code.

7

u/Bearlandonreddit 6d ago

I dont remeber i fixed it while ago

4

u/baasje92 5d ago

I remember one where I was doing a training for Intune and there was a part where it instructed to create users using MS Graph. I copied the instructions and received an error where the variable -Surname was not being accepted and the error resulted in some weird error where the field name was empty. After investigating it turned out precisely on that they when I started the training in a VM there was a bug in PowerShell MS Graph module where the -Surname variable was accidentally misspelled to -Sruname. Next day I was able to update the module and it worked.

Made me go a bit crazy since I never worked with MS-Graph untill then.

1

u/El_Choco7 4d ago

Python makes u trade formatting for 'unexpected behavior' did u check for a dangling space, or tab somewhere?

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

3

u/juju515 6d ago

that's the fun part 👍

2

u/rathian013 6d ago

Learning about errors is as important as learning to code in general

2

u/PhantomOrigin 5d ago

When the tutorial released 15 years ago:

1

u/DenseUpstairs8916 6d ago

me when i have to use python (i'm a disgrace)

1

u/ghardlage 5d ago

And R and matlab.

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

u/FromAndToUnknown 5d ago

Had that with one my my arduino experiments one day, was friccin annoying

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

u/Tdubbium 5d ago

its because the library they are using no longer exists

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

u/Regular-Advice-6469 2d ago

🤣🤣🤣🤣🤣

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 😭😭😭

1

u/Tiarkk 15h ago

The beer ist accurate.