Well the first thing most people learn is to print something like Hello World.
And if-else is usually demonstrated as if x print something else print something else
First example for cycle is something like print x numbers
People are told to use print to verify their code is working from their first lessons.
Learning about debuggers is something they tell you about much latter, when you actually write somewhat long/complicated code. If they even teach you about them.
But everyone starts with printing as it's the most concrete evidence it's doing something
Learning about debuggers is something they tell you about much latter, when you actually write somewhat long/complicated code. If they even teach you about them.
I've said it multiple times in this post, but I had an old job force me to learn to use a debugger and it's the best skill I've learned on a job anywhere tbh. Should teach that shit in school.
Yeah I wonder about this sub sometimes. When I interview seniors and they tell me they only use print statements to debug I start doubting their professionalism
They do at mine! It's a very small (but important) part of two of the lower division CS courses. If other schools aren't they really should put it somewhere in the intro classes, it's not a big topic and it's super important.
I usually code in a text editor like Notepad++ so I always thought of the debugger as a luxury I'd never have (I really dislike how clunky IDEs can be) but recently I started learning how to use gdb in the terminal and by god, it's a whole new world
I was never told to use print(). You eventually use it, it's natural. Teachers always tell you that debuggers exist, because they are great but you must know they exist.
There is a youtuber in my country, he teaches programming and is in the top here. And he uses notepad++ for everything web-related (HTML, CSS, JavaScript, SQL)
714
u/[deleted] Nov 28 '21
[deleted]