Have you ever felt like a fool just mashing away at a keyboard?
Posted by Fresh_Heron_3707@reddit | Python | View on Reddit | 4 comments
I was plugging away at this code where I asked the user to index a given list with an if else statement. The list was a class that with the attributes, title, author and genre. some reason I couldn't get the indexed book to populate in the terminal. I spent hours debugging and watching tutorials just thinking maybe I just don't have the capacity to code. I was missing a print statement to print the indexed book FML. I have not felt such relief and despair at the time ever!
Python-ModTeam@reddit
Your post was removed for violating Rule #2. All posts must be directly related to the Python programming language. Posts pertaining to programming in general are not permitted. You may want to try posting in /r/programming instead.
tehsilentwarrior@reddit
I have spent a ton of time debugging a piece of complex code only to give up, refactor it, and notice I was doing an assignment instead of an append.
It was a piece of recursive code that split paths depending on mapping time, so the way the execution happened depended on 3 outside input json files and rules within each filed and type, which then output composite http calls (several http calls inside one).
I haven’t felt like a fool this hard in months. But even after 22 years of this, it still happens.
Just accept it and move on.
smuhamm4@reddit
I’ve heard from friends that this is what coding is sometimes! They’ve said they have sifted through pages of codes to sometimes realize that a colon was missing or in the wrong place lol
KingsmanVince@reddit
Not related to r/python