|
Not to speak about the smart phone...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
That picture would be the crowning glory of all pictures.
And you could send it anywhere because you would have 4 bars - you know - full cervix!
I wonder if posting it to Facebook would be a breach of the Terms of Service?
I, for one, like Roman Numerals.
|
|
|
|
|
We have an in-house debugging tool, written by yours truly, that we use for capturing TCP/IP-based trace messages between components in our multiple-computer, multiprocessor, multithreaded application. One of my cohorts, through a bug in his component, managed to crash the tool yesterday with one of his messages.
The conundrum: how to debug a TCP/IP-based debugging tool when the bug is triggered by a TCP/IP message?
You go old school: TRACE(...); , which for you youngsters is essentially console output to the Visual Studio debug output window. The TRACE messages got me down to one area of code, a bit of recursive logic used for one of the internal data structures.
This is where it got really old school: I actually printed four pages of code to look at, all at once, on my desk. I haven't done this in years. I wish we had some green bar[^] for our office laser printer to make my nostalgia complete.
Software Zen: delete this;
|
|
|
|
|
Gary Wheeler wrote: This is where it got really old school: I actually printed four pages of code to look at, all at once, on my desk. I haven't done this in years. I wish we had some green bar[^] for our office laser printer to make my nostalgia complete.
use a color printer. You can add the green bar directly.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
That's the funny part - it's a color printer, so it printed Visual Studio's code highlighting in color. Not bad, actually.
Software Zen: delete this;
|
|
|
|
|
Well done!
After days spent wasted looking at the screen (the logs of both our TCP client and server), I suppose I just need to do the same.
|
|
|
|
|
Gary Wheeler wrote: I actually printed four pages of code to look at
Oooh, I remember that!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
Gary Wheeler wrote: This is where it got really old school: I actually printed four pages of code to look at, all at once, on my desk.
I had to do that a couple years ago at the insurance company I was working at. Except it wasn't 4 pages, it was more like 10, and that was one C# method. I added a flowchart to it right next to the code. You wouldn't (or maybe you would) believe the logic errors I found. And this was production code!
Love it when a company claims they practice "Agile", and do code reviews and unit testing. Such was what they said when I "interviewed them".
|
|
|
|
|
Marc Clifton wrote: that was one C# method
There's your problem right there. A method like that should be broken up into several (hundred) smaller methods...
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
Marc Clifton wrote: flowchart Now that's olde schoole!
Software Zen: delete this;
|
|
|
|
|
This is the joy of embedded code -> realtime does not (always) allow to use the debugger, since the debugger actually stops the program, so your embedded systems also stops, which ruins the dynamics. So we are often down to the equivalent of TRACEing, so that we do not interrupt the realtime events and interrupts.
Printing code ... No
|
|
|
|
|
|
Ah the good old days, pages of core dump and assembler code.
They call me different but the truth is they're all the same!
JaxCoder.com
|
|
|
|
|
Gary Wheeler wrote:
This is where it got really old school: I actually printed four pages of code to look at, all at once, on my desk. I do this often, taping the sheets together so it resembles continuous form. I then can mark it up with red pen, highlighter, etc.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I've done that occasionally, folding the edges to remove the header that Visual Studio adds.
I'm sure half the folks reading this are thinking "if the code is longer than a page, then you should refactor". Maybe so, but divvying a long procedure into
void Process_Step1()
{
}
void Process_Step2()
{
}
void Process_StepN()
{
} can be counter-productive at times.
Software Zen: delete this;
|
|
|
|
|
Hi All,
Friday afternoon not many people in the orfice today 'Working From Home' which I can't as I am using hardware that is too big. Silly thing is we have a 'smart' lighting system, you flick the switch, it take a gander at the light level, the lights then switch on & if it does not pick up some sort of movement every ten minutes turns the lights off. A pain if like me you are working on something where you have too be still!
|
|
|
|
|
Solution[^]
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Tried it, that very one. Not enough movement...
|
|
|
|
|
Solution 2[^]
I know: Too much movement.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Cat & Laser pointer....Hmmm
|
|
|
|
|
Obligatory Dilbert: It's not a new problem[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Dilbert solves the issue again!
|
|
|
|
|
We have a lab with lighting like that, but the lighting is anything but smart. This lab contains a printing press with lots of motion, flashing lights, and so on. You'd think it would keep the lights on. Nope. If you're in the lab, you have to remember to move every few minutes or the lights shut off.
Cue Stephen King's short story The Mangler[^].
Software Zen: delete this;
|
|
|
|
|
|
Ahhh The Family Guy option, might suggest that.
|
|
|
|