- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
One of the Nagesh's made a frighteningly educated point earlier. I can still bash the registered one though - he's still dumb as cattle.
Admin
If I get a dollar for each line of code written.....
Admin
Admin
That's nothing, I have come across a 9000 line stored procedure.
Admin
Admin
English site is English, people!
Admin
...on a slightly different note, is a prostitute simply an outsourced wife?
Admin
A slightly unrelated (and barely related) issue I came across yesterday...
In PHP, you can pass by reference in your functions and methods. It's pretty much the same as pointers: You don't edit the variable locally within your function, but the variable from the calling code's changed as well. Comes in pretty damn handy from time to time.
Now, PHP has an oddity to it. You can do something like: $bar = "something"; foo($bar); (where function foo's parameter is a reference) But you can also do this: foo("something");
Where's that reference to?
In PHP 5.2, it goes ignored. In PHP 5.3, they figured out that it's nonsensical and it throws a warning.
Still, that's one hell of a WTF that that's possible...
Admin
Okay... I'll be more precise: They should be banned from everything that allows you to code in a non-procedural manner... which should be pretty much any "modern" language. I don't know about assembler, though. I value my sanity and will never even try to learn it.
Better?
Admin
Admin
Now, if you removed your junk and sent it away to be stimulated, or removed the back of your head and sent it away to have The Look drilled into it, that would be like outsourcing a wife.
A surrogate kind of fits the bill, too. You jerk one off, ship the seed off, some woman has it inserted into her and grows the baby, 9 months later she ships the baby back.
I should try that, 'cause when I insert it myself, it always ends up in the wrong hole (or wrong gender). I didn't realize it until I told my grandma how I was doing it and she was all like "DERP! YUR DOIN IT WRONG!!!!!"
If it wasn't meant to go in the ass, why does it feel better there?
Admin
Admin
Admin
Admin
To top it all off, the other systems are all in different timezones and different languages even though they all sit right next to me in my cube! There's an "English to ____" propped up against each case, right in from of the fan intake (why's it so hot in here, anyway?)
Admin
That's not so weird. A shell is pretty much a main routine that repeats infinitely through iteration. Doing it with recursion might be a cute way to gather usage data or preserve state for the next session or something.
Admin
.-= The Topper =-. You've just been Topped!
Admin
Oh, no. The zoon has spawned a new process. This could be dangerous. What happens if it cross-breeds with one of the Nageshen?
Admin
That's nothing! I once traveled back through time and anally raped my own mother while forcing my child self to watch on pain of castration!
.-= The Topper =-. You've just been Topped
Admin
I'd probably also have the doctor and nurses eat the placenta, but I haven't thought that one through yet.
Now it's your turn! GO! GO!
Admin
Admin
That's nothing. At my current project, we have functions containing over 100 input variables, and over 150 output variables. It's a disgrace. Especially the fact that the lead developer is actually proud of his design. Co-workers from other teams were shell-shocked when they found out about our "structure." Perhaps in a few years time, when the pain has subsided, I'll be able to issue a WTF.
Admin
Some of these coments are ugly and disgusted!
Admin
I think zunesis would sink that low. Cholera probably turns him on...
Admin
Admin
I think you may be right, I get my diarrhea-causing ailments mixed up sometimes. Come to think of it, this may explain his periodic absences... his life is in flux right now....
(Did you hear about the time when one of the last remaining colonial occupiers visited Nagesh's grandfather's shack? Stopped in to pay a social call, and he was horrified that he wasn't offered a place to sit. "I am very sorry sahib, but as you see, I haven't got a chair to offer you". "Well, haven't you got a bloody stool at least?" "Ah!" says Nagesh-senior-senior. "That, I can offer you, sahib...")
Admin
Admin
Admin
Admin
Nappa: Vegeta, what's the scouter say about the lines of code in his constructor?
Vegeta (reading scouter): ... IT'S OVER NINE THOUSAAAAAAAAAAAAAAND! crushes scouter
Nappa: What, 9000?!
Admin
ObiWayneKenobi: ... FOURTY YEAR OLD VVVIIIRRRRGGGIIINNN!!!!
Zunesis: Guessed as much.
(want me to take care of that for you?)
Admin
I read that on /b/ the other day, nice copypasta
Admin
Gosh, thanks guys... (wipes tear)
You guys are the best.
Admin
Admin
Admin
Admin
Admin
Admin
As someone who has played croquet on a few occasions I resent your last statement!
Admin
Crock of Shit! The mark of a good programmer IS NOT what language they have used or learnt with, it's how readily they can adapt to ANY language and use it in the way intended... Besides, if your spelling is anything to go by I would imagine that your code is riddled with bugs....
Admin
Burn it with fire!
Then, once it's been thoroughly burnt, burn it some more!
Admin
That's totalitarian/corporate thinking. The result is an environment in which a good programmer is frustrated by being unable to implement their design and still enabling bad programmer to write crappy code.
BAD code can be written in ANY language. Not every language enables writing good code (try storing 100 million XYZ vectors in Java and keep it elegant... oh, you actualy DON'T have 100GB RAM? time to upgrade!)
Admin
The above was to be in reply to:
Sorry for the messup.
Admin
Ohhh.... you work here also :)
Admin
Oh, this is great. Globalized local variables. Declare the variables as out parameters and then everytime the function is called the variables must be redeclared. Seriously, the only reasoning behind this design is the increase in line count. Whoever is paying for this code is the real sucker here.
Admin
Admin
Admin
Yeah...I know this is late... but... I still don't by the argument that Static Classes Are Evil. I found this code snippet of mine, and the only thing I can figure out wrong about it may be the exception might be too generic. And I didn't make it an extension method, either, because the XPathNavigator (and frankly all XML related objects in .NET) have way to many functions for me to keep track of and it'd get lost in the mess. If a function doesn't change anything's state, why not make it static and put it in a static class?
Admin
Admin
Perhaps I could FUCKING INHERIT.
You are the precise example of what I'm talking about when I say juniors should be banned from making static classes until they learn OOP.