IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New How the hell did this one become a programmer?
\nif(foo->bar != 0){\n    BarType* baz = foo->bar;\n    if( baz != 0){\n       // stuff done with baz, exactly one reference to it inside\n    }\n}\n


Please excuse me while I bang my head against the wall...

--

The number of the beast - vi vi vi
--[link|http://c2.com/cgi/wiki?QuotesOnComputers|Delexa Jones]
New Suspenders and a belt, I guess... :-P
After all, a stray cosmic ray may have hit and flipped a bit in that memory location between the two statements...
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New nails, screws and super glue, too.
--

The number of the beast - vi vi vi
--[link|http://c2.com/cgi/wiki?QuotesOnComputers|Delexa Jones]
New Re: How the hell did this one become a programmer?
That's nothing. Most programming in the "world" seems to be a direct transcription of pretzel logic into if clauses.
-drl
New Maybe the inside section used to be longer
On multiple occasions I have seen code that was modified so many times that odd cruft was left in that didn't need to be there. People often only want to change as little as possible because they get chewed out if they break something that used to work. Cleaning code not related to immediate change requests can get one in trouble in many companies, so people build up the habbit of changing as little as possible.

I don't really know C++, but I assume that "if(foo->bar != 0)" can be replaced with "if(foo->bar)".
________________
oop.ismad.com
New Only if
the type of foo->bar is bool.
jb4
shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating that facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
New True confessions.
In one of my first programs on an HP1000 many, many moons ago, I would read data from a file on a disk then write the same data back to the same file to make sure it wasn't lost.

:-(

Cheers,
Scott.
(who still isn't much of a programmer...)
New Simple, he is paid based on lines of code written...
and the optimizer in the compiler will make appropriate adjustments. :)
Alex

Necessity is the plea for every infringement of human freedom ... the argument of tyrants ... the creed of slaves. -- William Pitt, addressing the British House of Commons (1783)
New That is the way they teach them in college these days
quick and dirty programming, it does not have to make sense as long as it works, somewhat, the employer will pay them to program sloppy code. I call such people as Code Monkies, or Bit Flippers (sort of like a Burger Flipper).



"Lady I only speak two languages, English and Bad English!" - Corbin Dallas "The Fifth Element"

New Durty, yes. Quick? What's quick about it?
--

The number of the beast - vi vi vi
--[link|http://c2.com/cgi/wiki?QuotesOnComputers|Delexa Jones]
New Quick as in the time it takes to write it,
not the time it takes to run. Quick and dirty code usually runs slower, eats up more memory, has more bugs, crashes the system more, and causes all kinds of problems over the traditional method of taking your time, debugging twice, and using the standard way of coding that most professionals love to use. The traditional programmer is about to become a dinosaur if the "Modern Primiatives" who run businsses have their way.



"Lady I only speak two languages, English and Bad English!" - Corbin Dallas "The Fifth Element"

New He WROTE THE SAME TEST TWICE! Izzat "quick" in your opinion?
New Yes quick and redunant
so quick he didn't notice he already wrote something like it already. He must also have a short attention span. If he took his time, he'd see the error he made. Quick and dirty is prone to errors like that. Obviously he did not thoroughly check over his code before handing it in, which tells me he wrote it quickly and did not even bother to debug it. You know, like a Microsoft programmer. :)



"Lady I only speak two languages, English and Bad English!" - Corbin Dallas "The Fifth Element"

New "Quick and dirty" would have been, writing NO tests at all.
New I disagree
I have seen quick and dirty coding, I have had to debug it a lot at that law firm I worked at. When someone f*cked up royally they sent the code to me to fix it. Quick and dirty, yes they did testing, but f*cked it up or wrote the same test twice. Sometimes the test did not work properly or they tested the wrong variable. Why? Because they were in a hurry to get the code out before the manager who wanted it yesterday yells at them again. A pity they didn't keep me on, I cleaned up most of the crap they passed off as code. I couldn't code as fast as the quick and dirty coders, but at least my code worked, did what it was supposed to, and didn't crash the system a dozen times a day or more like theirs did.

Management always wants it done faster, IT and Fast Food have merged now.



"Lady I only speak two languages, English and Bad English!" - Corbin Dallas "The Fifth Element"

New When all you have is 3Ghz...
EVERYTHING looks efficient!
jb4
shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating that facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
New Forget the efficiency, my BRAIN hurts!
--

The number of the beast - vi vi vi
--[link|http://c2.com/cgi/wiki?QuotesOnComputers|Delexa Jones]
     How the hell did this one become a programmer? - (Arkadiy) - (16)
         Suspenders and a belt, I guess... :-P - (admin) - (1)
             nails, screws and super glue, too. -NT - (Arkadiy)
         Re: How the hell did this one become a programmer? - (deSitter)
         Maybe the inside section used to be longer - (tablizer) - (1)
             Only if - (jb4)
         True confessions. - (Another Scott)
         Simple, he is paid based on lines of code written... - (a6l6e6x)
         That is the way they teach them in college these days - (orion) - (6)
             Durty, yes. Quick? What's quick about it? -NT - (Arkadiy) - (5)
                 Quick as in the time it takes to write it, - (orion) - (4)
                     He WROTE THE SAME TEST TWICE! Izzat "quick" in your opinion? -NT - (CRConrad) - (3)
                         Yes quick and redunant - (orion) - (2)
                             "Quick and dirty" would have been, writing NO tests at all. -NT - (CRConrad) - (1)
                                 I disagree - (orion)
         When all you have is 3Ghz... - (jb4) - (1)
             Forget the efficiency, my BRAIN hurts! -NT - (Arkadiy)

Remember... save the wax!
151 ms