|
Light a man a fire - keep him warm for a day
Light a man ON fire - keep him warm for life
If it's not broken, fix it until it is
|
|
|
|
|
Kevin Marois wrote: keep him warm for life the remaining 30 seconds of it anyway.
"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
|
|
|
|
|
If he's lucky.
|
|
|
|
|
True dat!
"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
|
|
|
|
|
This one is much more effective if you do it right:
Set a man a fire and he'll be warm for a day. Set a man afire and he'll be warm the rest of his life.
The original point was to illustrate the importance of literacy, something rapidly dying out...
Will Rogers never met me.
|
|
|
|
|
Give a man a fish... then he'll have the fish.
|
|
|
|
|
Give a man a fish and he'1l eat for a day. Give a man not a fish and he will have the rest of the world except the fish
|
|
|
|
|
...when you see that the bear has noticed you.
"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
|
|
|
|
|
...and tell his woman to cook it.
Marc
|
|
|
|
|
Give a man a fish... And he'll take care for it for the rest of its life, or throw it back in the ocean where it belongs, or take it to an aquarium where they can take better care of it, because you can do other things with fish than eat it
|
|
|
|
|
Well...I know a cat that would be very happy to be given it...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
...and he can strengthen the joints.[^]
"You'd have to be a floating database guru clad in a white toga and ghandi level of sereneness to fix this goddamn clusterfuck.", BruceN[ ^]
|
|
|
|
|
|
Teach a man to fish . . . and his wife won't be suspicious of the smell when he gets home . . .
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Talking about fishing : I went to the Philippines some ten years ago, and visited several islands. One of them was really beautiful (blue water, white sand, etc...) and one guy lived near the beach, in a small wooden house. He would go every other morning fishing, and spend the rest of his day sleeping or enjoying the water. At first, I thought, wow, what a dull life. And then realized that I had worked two complete years to afford spending only five days on this very same paradise island - flying so far away from home will be for me a once-in-a-lifetime event ! - and honestly wondered : actually, whose life is the dullest ?
|
|
|
|
|
Teach a man to fish and he'll sit under a tree and drink beer all day!
I'm ready to go fishing.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
|
|
You know you've posted this too many times when Chrome auto-completes the subject line for you!
Anyways, I have this function:
function initializePage(raceList, hlsList) ...
(for demographics, race and Hispanic/Latino/Spanish, of course, a "I don't want to answer" is accepted) but anyways,
Randomly, the list would not load. Really hard to reproduce locally, would happen once every 10 or 15 pages loads on the real site.
Those lists, and others, are acquired from an Ajax call that only calls this function after all the lists have been loaded from the server. Of course it's a stupid way of doing it, but at the time... Plus this particular page used to only have those two lists, but then it grew to more things...you know how that story goes.. and of course what's worse is that this is the only page where I seem to have forgotten to refactor the code and do it "the right way."
Anyways, in one place, I accidentally forgot to pass in the lists:
initializePage()
which resulted in the random "why isn't the list showing up" error.
I blamed my SPA code, I blamed jqWidgets, I blamed my mother.
And after staring at the code for hours over several weeks, I finally actually saw the offending line.
God, I want parameter type checking. I know, use TypeScript or something.
Marc
|
|
|
|
|
Marc Clifton wrote: Anyways, in one place, I accidentally forgot to pass in the lists: Rule #1 for every JS function I write: Check for undefined, null, and empty values if I don't want them.
I do null param checks as the first line of code in every .NET method, why would I do any different in another language? is my thinking.
|
|
|
|
|
Vark111 wrote: Rule #1 for every JS function I write: Check for undefined, null, and empty values if I don't want them.
Good point.
Vark111 wrote: I do null param checks as the first line of code in every .NET method, why would I do any different in another language? is my thinking.
I agree, but in this case, I know the data was there, it was an error in the parameter list. And yes, Rule #1 would have caught it.
Marc
|
|
|
|
|
I use javaScript for what it does, expect from it no more than what it is. None the less, I feel sympathy for your never-ending distress on this topic. Perhaps?[^] will make all of the pain finally go away?
<script type='text/javascript'>
return;
</script>
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Jeremy Falcon
|
|
|
|
|
You're looking at JavaScript the wrong way man. Really, this stuff is a result of not being used to JS. Welcome to the fun. You have to look at it like this, JS is a language that's finally growing up. But, it's powerful in its own right. You can do some pretty amazing stuff with it, provided you learn its quirks. One of which you obviously know about now.
It's a flexible language. That's the idea. That's the idea of the web even, and so JS is no exception. However, you must also deal with this as a result. ES6 provides some new stuff, but you can achieve what you're after regardless...
Handling required parameters in ECMAScript 6[^]
Is it totally different than C#? Yes. But once you get used to the flexibility, it does more good than harm.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: You're looking at JavaScript the wrong way man.
You're absolutely right.[^] I'll endeavor to break the pattern and write an "I love Javascript" post.
Someday.
Marc
|
|
|
|