CrazyBomber
@CrazyBomber
Best posts made by CrazyBomber
Latest posts made by CrazyBomber
-
Evilness of "break" and "continue"
Ok so I'm at this training session, the guy shows a piece of code with a break, and the guy next to me goes... "isn't the use of break considered a bad programming practice?"
My first reaction (and i said it): "aren't you confusing break with goto??"
And he goes on: "No, no. All my teachers always said it: don't use break or continue. It's a bad practice."
And some other colleage says "Yeah, yeah. I heard it too!"
So what the hell? Java? C? Not using break or continue? Are these guys insane? Or am *I* insane? Seriously, is break and continue the spawn of Satan? Or are they just useful instructions which have potencial misuses, just like pretty much *everything* else in IT?
And even so, what sort of evilness could be so great it would make teachers say these things?
(and what the hell is going on with this piece of crap WYSIWYG editor?? Every time I delete one character it "covertly" deletes another! Is this what Ninja programming is about?)
-
RE: Toad from Hell
Besides being a *huge* monster with a few gaps, what's so bad about toad? I can keep up with it, as long as I don't let the server kill my connection! :-D
-
RE: Clueless
Chat talk != Forum Talk
Chat talk is real time. So, splitting talk "in 4 word increments" is better for whoever is "reading" you. Come on... I'd get bored to hell if i had to wait 3 or 4 minutes for someone to finally press the "enter" key... wouldn't you?
-
RE: Optimizing the wrong way
@dtech said:
@DaveK said:
@dwilliss said:
@autorelease said:
@SenTree said:
@spxza said:
Oscillator! You were lucky to have an oscillator! We had to generate a clock signal by toggling a switch on and off as fast as we could!Resources are limited (3MB storage, 1.5MB memory, and runs at around 12MHz).
Luxury ! On my current project, the main processor has 256kB flash, 64kB RAM, but at least a decent clock rate. The auxiliary processors have 32kB flash, 1536 bytes RAM and a 4MHz oscillator - divided by 4 for a 1MHz basic instruction cycle.
We used to dream of having a switch! In my day we had to complete the circuit by touching two bare wires to our tongues!
Wait, you had tweezers, anodes and cathodes? When I started my first job, I got a rusty nail magnetized by the earths magnetic field with which I had to lure electrons through the individual components of the circuit! It wasn't pre-wired ofcourse but I was allowed to use a crayon to draw lines between the components on the floor.
Wow, you had the earth's magnetic field?! Back in the day, all we had was a bunch of rocks and gas floating around in space...
-
RE: My ASSERT is better than your ASSERT!
I like that idea :D
So, if no user sees "Dipshit":
Huge, flashing, red font on every customer's screen:
-
RE: Thanks for the export
I have seen a real spiffy CSV export, as well.
It has no delimiters (but the line feed at the end of each row, of course), and yet it sports variable length collumns... Enough said, right?...
Oh, and that spiffy program was supposed to export data to this very popular ERP software. When I asked them how to do it, they just pointed the finger at that improperly coded CSV export function. Ok, great. I have the CSV file... now what? Their answer? "Well... I don't know...". Guess who ended up devising an import utility for this crapware? :)
-
Quick WTF @ Local University
Well, this is a quick one I remembered.
A couple years ago, they decided to "patch" our University's online enrolling application (am i spelling this right?). As a normal rule, every student has a maximum allowance of credits he can use to enroll. Sweet. However, somone thought it was much easier to do the checking using Javascript... ONLY. Tools => Options => Disable Javascript, and voilá! Now you have no credit limit :)
And yes, it did work. They performed no validation on the server whatsoever.
On a brighter note, next year they fixed this, and a few other things... right during the 2 weeks enrollment period... with hundreds of students trying to access the system... causing a page to take from 5 to 10 minutes to load... Yes, it's been some fun years... :)