Remix.run Logo
NamlchakKhandro 3 hours ago

> Debugging is hell

Most people won't care because the extent of their debugging skills is console.log, echo, print. repeat 5000 times.

hyperbovine an hour ago | parent | next [-]

printf() debugging is still considered a best practice in the eyes of many. I still remember being really surprised when I heard my famous (Turing award-winning) CS professor tell the class this for the first time.

https://tedspence.com/the-art-of-printf-debugging-7d5274d6af...

locknitpicker 2 hours ago | parent | prev [-]

> Most people won't care because the extent of their debugging skills is console.log, echo, print. repeat 5000 times.

I don't agree. The first thing any developer does when starting out a project is setting up their development environment, which includes being able to debug locally. Stdout is the absolute last option on the table, used when all else fails.

compootr 27 minutes ago | parent [-]

I don't agree! It's easiest to printf() things since you don't have to have tooling to debug every language you want to work with!

while you should know this for anything you're proficient in, I usually reach for printf since it's usually quicker than messing with a debugger :)

soulofmischief 16 minutes ago | parent [-]

You guys are probably gonna laugh me out of the room, but I use a combination of both printing and debugging tools when identifying issues.