|
Wordle 978 4/6*
🟨⬜⬜⬜🟨
⬜🟨🟨🟨⬜
🟩🟩🟩⬜🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 978 5/6
⬜⬜⬜⬜⬜
⬜🟨🟨⬜⬜
⬜⬜🟩⬜🟨
🟩🟩🟩⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
⬜⬜🟩⬜🟨
⬜⬜⬜⬜⬜
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 978 4/6*
🟨⬛⬛⬛🟨
⬛🟩🟩⬛🟨
🟩🟩🟩⬛⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 978 5/6
🟨⬛⬛⬛🟨
⬛⬛🟨🟨⬛
⬛🟨🟨🟨⬛
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
I built out a lexer and half baked parser to scan a C header and produce a CSV with certain data pulled out of it.
I got the lexing and parsing of the header done in no time, and with a minimum of fuss.
But outputting the CSV
if (s.Key == "data_packet" || s.Key == "status_packet" || s.Key == "config_packet")
This code exists in two places. Between those two places I got this simple line wrong 3 times, and caused relatively a lot of churn w/ my colleagues in terms of their own work, which relied on this to function properly.
Why sometimes its the simple parts of the code that cause the most problems I'll never know.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Because we're always so careful on the big stuff. It's tricky to begin with so more care is taken. But the small stuff, it's so simple. What can go wrong?
I once made an oh so minor 2 character change to a simple program. It was so simple and so obviously correct that I just dropped it back into production. And thus tipped over an entire healthcare claims reporting system. Oops!
|
|
|
|
|
My favorite was, in my C++ days, putting a ; at the end of a for statement and then spending several hours in the debugger wondering why the code in the for loop executed only once!
|
|
|
|
|
I create my own function when dealing with these types of statements. For any number of reasons. It just compares objects.
bool ok = MyFunc.IsInList( s.key, "data_packet", "etc" );
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
return 0++
|
|
|
|
|
I have had such weird code snags in C.
Had one that two of us could not see the error.
We laughed when we solved it. So simple.
Wish I had saved the code, but good riddance.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Sometimes overthinking/overengineering something has this effect.
Recently came across a piece of code which went something like this during one my code review sessions.
bool condition;
viewmodel.AllowSomething = !condition == true ? false : true;
We laughed for about 30 minutes, including the guy who wrote this.
|
|
|
|
|
It looks like that code evolved to be that, rather than written that way to begin with. At least I hope.
I've been there. In fact, I've had code I wouldn't touch because it was like that, took forever to get right, and it worked, including handling difficult corner cases.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: At least I hope.
It was written that way. We laughed at it as it meant that we assign true when the condition is true and false when it's false. Just the way to go about it was really through Caradhras mountains and then through the mines of Moria.
honey the codewitch wrote: took forever to get right
At first glance my thought was also to replace with !condition. As I missed the first ! to begin with.
modified 23-Feb-24 7:54am.
|
|
|
|
|
It is a funny bit of code.
love it
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Hi All,
The project I am working on is a trifle how is the best way of saying this 'problematic'. It has been running for a long period of time, management and accounts concerned, chewed through staff members none of the original design team are here now. That is the problem, we are now playing 'wack a mole' with bugs, there is an issue underlying I am sure of it. As it has changed designers so many times I think the phrase "It almost works, it nearly done" to be "It doesn't work right, I am leaving It's someone else's problem". Stuff has been built on a Shakey foundation
and is now teetering on collapse, but I am not allowed to go looking into stuff that works to try to find the issues as it has been signed off.
|
|
|
|
|
Been there, done that, got told to "do what we tell you".
Good luck.
|
|
|
|
|
If anyone ever said that to me you wouldn't see me for dust
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Not saying I took much notice ...
|
|
|
|
|
How could you
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
|
Update the resume and start discreetly looking?
You know who will get the blame when it all falls apart ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Run Forrest, run!
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
My "issues" can usually be traced to lack of visibility; putting off that dashboard or "log" I know the app needs. Like driving with an oil light only. (And the bulb may be burned out.)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|