Console:
here
here 2
here 3
here 4
here 4a
here 4b
Me:
Haha! I got you!
Post funny things about programming here! (Or just rant about your favourite programming language.)
Console:
here
here 2
here 3
here 4
here 4a
here 4b
Me:
Haha! I got you!
ah yes, counting from 2, because as everyone knows "" is one
You put in that first “here” thinking it’ll be the only one.
that's always how it is.
And eventually it becomes second nature. lol
This is my first tactic for debugging an issue. I'm a senior developer and while better tools exist for hard to find issues breadcrumb debugging will solve the vast majority of them with no fuss.
(I do work with an interpreted language, though - when you're compling shit and it takes more than a minute or so, I will break out the debugger first)
background: red; goes harder imo
background: #f0f
Me: “Is bugger
a term that denotes a bugged state?
Senior: “No. That’s just what I have it print to show if something has failed.”
I like to call pair-programming sessions (for bugs) "bebuggery sessions" at work and people haven't complained yet.
I like to use "moo" it doesn't occur in our codebase naturally and is obviously not intended to be merged to trunk if I forget to remove it somehow.
Printing Butt is fun and all, but if I'm at the point of logging nonsense, it is usually a stronger word.
Wow, and here I was trying to set breakpoints using the devtools debugger and faffing around with sourcemaps.
Wish I knew about this 10 years ago!
Is it too late?! Are you still webdevvving? 😃
Damn, this looks handy. Thanks for sharing
My pleasure! Though I'm gonna be honest, I mostly use console.debug(). 😇
Often we use
outline : red 1px solid;
, that's clean!
My problem is that I do red
, blue
, green
then can't think of any more clearly visible colours.
Aliceblue, lightsteelblue, goldenrod, fuschia, darkslategrey, chartreuse, and olivedrab.
Make your life more confusingly colorful as you tell your coworker to look for a chartreuse div and they ask you if that's a color or a liquor - debate with your coworker whether they should have noticed the darkslategrey div in front of your default #365656 background.
Think of all the adventures you'll have!
I often use magenta, pink, cyan and purple, too
Purple, yellow, pink, light blue, …
i'm more of a background-color:red;
guy myself
when doing headless shell scripting i debug with notify-send
i3wm having urgency cues was the single greatest thing any DE/WM has ever done.
Could you please point me to docs about this or keywords i should search with? This sounds interesting, but a quick search with i3 and urgency cues gave me nothing.
i believe they're referred to in documentation as "urgency hints" it should be in the user guide. heres the guide just do a ctrl f for urgency, it should pop some stuff up. It's also a default config option for the base file.
Thank you, i'll take a look!
the user guide while rather terse and not verbose, is still incredibly detailed, and often includes a good bit of information to get you where you need to be.