All the debugging tools in the world doesn’t beat an excellent sense of intuition and putting that print statement exactly where it needs to be.
As linus says, if you need to use a debugger your code is too complicated
Dude can pry my debugger from my cold, dead hands.
He works on Linux where he controls the whole stack down to the metal and I love that for him, but other people have to call library code, and them debug that if it doesn’t work as they thought it would.
Well then obviously if you use libraries, your code is too complicated
Yep that’s why I refuse to use standard libraries. It just makes my code too complicated…
Tell that to my employer
Right, the amount of times I’ve had to put breakpoints in Django/DRF code to figure out what’s causing that weird undocumented behavior is concerningly large
The problem is that sometimes it’s not your code that you’re debugging
And when you need something more complex
console.log(1); […] console.log(2); […] console.log(3);
More like
console.log('shit'); […] console.log('fuck'); […] console.log('ass');
yeah and then you forget about one that makes it into a release and then see it in the console.
This is the real reason we have linters.
deleted by creator
wait she’s getting roasted for it? I haven’t seen that. It just looks like people are making fun comparisons to me.
deleted by creator
She looks cool af in that pic, I can’t take the comparison as a roast.
Might just be me but I think this looks cool/cute af especially with the little plush
That’s her 5 year old kid’s. Super sweet :)
Yea, her demeanour reminds me of Motoko from Ghost in the Shell in that photo angle.
Anybody who knows about this: how do those gizmos help? E.g. earplugs are good.
Adjustable frames help keep the lens at the correct angle for your eyes if you tilt your head a certain way from my understanding. So if you tilt your head at a certain angle you can adjust the frame to keep your prescription from getting out of focus at that specific head tilt
It is also an adjustable, external retina that allows you to let just enough light through, apparently.
deleted by creator
High tech blinkers
Once you’re at this level, you’re looking to get improvements of a fraction of a percentage. I don’t know the specifics cause I’m not a pro shooter despite being American, but from other high level skill people I know, you hit a point where improvements basically plateau and you have to resort to increasingly niche products to obtain non skill improvements. If you want proof of that, check out calligraphy and fountain pen communities. The amount of money some people spend on things I didn’t know existed is wild.
(No bad judgement to those folks, I’ve gotten hard into map making and 3d printing lately, so I’m right behind you)
Beep
Boop
Gloop
Glorp
Yeet
Yo
That’s me… I do that…
“Hello worl” if I need something quick
“AAAAAAAAAAAAAAAAA” if I’m lazy and don’t want to have to hunt the output logs for it
This is why I find shaders scary as fuck
echo __LINE__ . "Moo\n";
Honestly if you’re not including the LoC in your debug statement I don’t even fucking understand you.
But yeah, senior devs know the power of breadcrumb debugging (because most of us were deeply scarred by
gdb
).That’s
console.trace()
for all you JS devs out there.I always combine that with objects with the shorthand notation. So you always know what variable has what value without having to remember in what order you printed the variables.
console.trace({i, list});
dbg!()
for Rust usersDid GDB do something bad at some point?
No
Yes. It breaks points.
Don’t you want it to look a little nicer? echo __LINE__ . “: Moo!”;
I mean, presuming cowsay is unavailable
tfw I recently worked on a side project where I was too lazy to change the log level but not sloppy enough to use raw
printf
so I’d just throw stuff into info and then remove the statements once I solved my issue[[[[[[[[[ TEST ]]]]]]]]]
After all, that’s why git is there, to help me remember the shit I put all over the place. (Ok, it might have some other uses.)
dbg!(1)
all the time…Ahhh, my favourite debugging combo…
echo "<pre>"; print_r( "We are here, we are here!" ); echo "</pre>"; die();
Also fun at parties, hanging out asynchronously, is the ever popular PHP Mail to see if something ran in the background properly, or to get output.