|
|
As a non-Greek (xenos) who married into a Greek family, I can vouch for the link, 100% true!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Tim Carmichael wrote: I asked what she was reading. "The dictionary", was her reply.
I got a dictionary for my 6th birthday from my Great Grandmother. I spent the next couple of years reading it and creating an index at the front for my favourite words.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Those words were in the dictionary!?!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
The word embiggens is popping up in many places thanks to the Simpsons.
|
|
|
|
|
And why not? It's a cromulent usage.
|
|
|
|
|
CDP1802 wrote: In connection with work it has a better meaning: To sneak away and slack off.
They probably mean "abscond":
[əbˈskänd]
VERB
1.leave hurriedly and secretly, typically to avoid detection of or arrest for an unlawful action such as theft:
"she absconded with the remaining thousand dollars"
|
|
|
|
|
'Abseilen' is a normal German word and indeed means to lower yourself down with a rope. I can assure you that we also use it when we sneak away from something where we are expected to stay, like taking the first opportunity to sneak out of a boring party. Abscond could be a good translation, if it can be used when it's not quite abot a crime.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Hi All,
Am I the only one who used to use printf() in C (& C++, never a language I liked) as a way of seeing how the program was pasting data sent to it these days it's print it to a label or the list box rather than just dump it on screen no fancy formatting etc...
|
|
|
|
|
printf() was the debugger for those that did not know that they had a debugger
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
printf (and all its variants) is still the debugger in case where there is no debugger (I had a case with micro-controllers, when the only way I found was to write debug info to the second serial port and listen to it with an other application - kind of printf)
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
The first program I ever paid money for was a debugger. That was around 1979 and I still have it on tape. Sometimes I even use it when testing new stuff in the emulator.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: printf() was the debugger for those that did not know that they had a debugger
Need that on a t-shirt!
|
|
|
|
|
CDP1802 wrote: printf() was the debugger for those that did not know that they had a debugger I debugged image alteration and analysis algorithms via printf before knowing of the debugger.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
By pure luck my first program I ever bought was a debugger, so I never really had to resort to doing something like that. At least until the day came when I had to debug a multithreaded monster where hitting a breakpoint would have been fatal.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Luckily I use VisualStudio so for mono-process multi-thread there's the option of blocking every thread and noone gets hurt usually (except the timeouts based on the system high resolution timer). Multiprocess multithread isn't something I ever did so I wouldn't know, but without careful design and tracing they should be hell...
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Even those who knew they had a debugger often preferred printf for many debug tasks.
|
|
|
|
|
Try Console.WriteLine or Debug.WriteLine : they both go to the Output pane in the Debugger.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Cosnole.Writeline IIRC is neat because it allows for output redirection for free.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Debug.WriteLine is handy, because it's permanent - it's automatically conditional on the DEBUG flag, so it doesn't add overhead in production. Console.WriteLine always tries to output.
Plus, Debug writes to the Listeners collection, so you can add a more permanent trace to a file or similar as well as the Output pane.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Nice, I knew that it is conditionally compiled - as it was Debug.Print in the old VB6, but I didn't know about the Listeners collection.
DURA LEX, SED LEX
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Yeah but no, WriteLine() does the same thing but is harder to type! I have even used to some one else 'oh just use a printf() to a label' and got a blank look... printf was for printing every one knew what it did! WriteLine() sense changes as opposed to what it's being pointed to printf() just sent stuff. I'm being grumpy to day, I got to have my picture taken for the web site...
|
|
|
|
|
As soon as it's taken, either grow a beard, or shave it off...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I think Write is closer to printf , since WriteLine inserts newline and printf doesn't.
If you're using C# 6, you can add using static System.Console at the top of your file, and then you can just type Write instead of Console.Write . That way it's not much more typing than printf, aside from having the hold shift to type the capital W.
|
|
|
|
|
OriginalGriff wrote: Console.WriteLine or Debug.WriteLine In C/C++?
|
|
|
|