- 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
PoC
Admin
Nobody uses either of them, except for about ten people who get red in the face insisting that they're the end-all of programming languages and keyboard layouts.
Admin
Having said that, there is some sanity left:
Do we get an abstract object?Nope: Fatal error: Cannot instantiate abstract class B.
Admin
On a completely random note, I found this comment in the code I'm working on:
This is one of the few professions where that kind of comment is ok.
Admin
Even older at http://stackoverflow.com/a/1147414
Admin
There is nothing wrong with PHP. There IS something wrong with the person who wrote that though. Someone might want to stick him in a psych ward just to be safe.
Admin
Admin
8 years old, awesome.
http://www.php.net/manual/en/language.types.type-juggling.php
Admin
Are you also a used car salesman?
Admin
I use both, but don't fit your description.
Admin
Admin
Admin
On some FORTRAN compilers you could even screw up the value of a literal constant by passing one to a subroutine that modified its arguments. Pass-by-reference is a wondrous thing.
Admin
Three pages of discussions about language and nobody has made the ... wait for it ... obligatory XKCD reference!
http://xkcd.com/191/
Admin
Noooooo, this is soo bad on so many levels!!
Admin
I can imagine the furore that could erupt when discussing in a coffee shop over a telephone the solution to a problem whereby certain processes have spawned unwanted child processes:
"Okay, Midge, this is what I want you to do. First, kill all the children. All of them. Then remove the parents, and make sure they can never spawn again. Got it? I know I can depend on you to clean up this mess ..."
Admin
You can paint stripes on a horse, but it doesn't make it a zebra.
Admin
Oh man, you almost owe me a new keyboard..
I can only say, that add a few sentences of the sort: 'First check for zombies and nuke them all, then proceed with the live children...' would really draw attention.. :-)
Yours
Yazeran.
Plan: To go to Mars one day with a hammer.
Admin
The problem is not pronounciation being different from place to place. The problem is pronounciation of letter sequences being different in different contexts. For example "ough" has many pronounciations: http://en.wikipedia.org/wiki/Ough_%28orthography%29
Admin
ze googles. they do nothing
Admin
Admin
This kind of comment usually come from ASP programmers who never accepted that most ASP projects have been converted into PHP in the early 2000's because at that time the asp side performance was horrible. (And this is still the case in my advice).
Admin
Latin. It's been all downhill since then.
Admin
Well played, good sir.
Admin
Admin
It did lead to a pretty amusing quote on the Python mailing list:
http://mail.python.org/pipermail/python-list/2012-July/626284.htmlAdmin
Was there not a movie a few decades ago (some take on Tarzan with a female lead IIRC) where the protagonist rode on a zebra? Except it was really a horse with stripes painted on.
Admin
YOU DON'T KNOW WHERE I'VE BEEN!!!
Admin
The one I like of course! All others are frauds used by children. MY language of choice is the only one used by professionals to get "Real Work Done"(TM)!
Admin
Hey, I can use this. PHP's DB_FETCHMODE_OBJECT gives me a generic object, not an object of the type that I am trying to read from the SQL database. So the serialize() trick may be just the thing to convert a (darned) generic object to a wonderful specific object. Thanks.
Admin
says c++ shitty code writer...
Admin
TRWTF is that the PHPdoc should read "@param string $newClassName" instead of "@param object $newClassName", right?
Admin
Interpreted languages allow you to do things like this. Changing the name of a class during runtime is a bit stupid. I can't really think of a reason why I would have to do it. But this kind of flexibility is great. The fact that you consider that bit of code unholy and think that this is somehow related to PHP's simplistic implementation of Inheritance and lack of templates, says you don't have much experience with scripting languages. Good luck finding a job in 5 years.
Admin
I'm not entirely certain how your statements compile. Maybe you are suffering from a symptom of only coding with scripting languages?
You say that "changing the name of a class during runtime is a bit stupid" and that you "can't really think of a reason why" but follow with "this kind of flexibility is great."
Those seem to be contradictory statements... To be fair, I tend to stick with strongly typed languages and logical constructs so I might be misinterpreting your script...
Admin
I was thinking of a joke, but then I looked at the captcha: jumentum
Admin
Nuclear weapons can be useful in certain cases too, or so some believe, but you wouldn't want to try to adapt them to, say, urban renewal.
Admin
WTF, it works!!!