- 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
Give me good old-fashioned
params
(C#) any day.Admin
Ugh. At least you can set default values and avoid this shit. Unless you really want a function that can accept more parameters than initially planned without rewriting the function prototype. And who would ever want to use that kind of mindfuckery?
No, don't answer.
Admin
PHP developers before PHP 5 OOP was a thing? :laughing:
This is the fucking legacy we have to put up with.
Admin
"Let's create a new language, called PHP2, that fixes all the fuckuppery but is otherwise just like PHP. Oh, we'll probably have a problem until libraries get ported, so let's add a new function we can call that will allow PHP libraries to work in PHP2, even if they partake in the madness that was removed from PHP2."
Admin
They are threatening to skip PHP 6 and go straight to PHP 7 only indulge in utterly retarded backwards compatibility breaking code for no reason other than because they can.
For example, a private method would be defined as
private function _myMethod(args)
... and now they have proposed removing the word 'function' from that.Because it saves them typing. Not for any other reason - straight up BC break for laziness reasons only.
Admin
My soi-disant PHP2 was not to be construed as "PHP version 6", except for humor value by adding a compatibility mode.
Admin
I don't have a problem with that change, I don't think, as long as the parser can handle it. It's not as if C/C++/C# can't get by without that keyword.
I have to admit I'm torn about the reason, because I don't see value in verbosity for its own sake. I get your complaint, though.
Admin
Except the sad truth is... that's kind of what PHP 6 was originally supposed to be when it was first pitched about 5 years ago.
The whole point was to break out of this incremental bullshit and drop in things like proper sane Unicode support as a fucking core feature rather than this fucked up situation where you can do full Unicode provided you basically do it by hand or hope the relevant libraries are available.
But then they decided to drop that because it was too big a task and they gradually whittled down the scope until it became what is ultimately PHP 5.3 with the revamp of the OOP stuff to include namespaces.
As for dropping the word function, if there were a legitimate reason beyond 'it saves us typing the word', I'd be more supportive. Decrufting is good, after all.
Admin
To be fair, it is a big task (assuming you want to get some reasonable amount of speed as well). It doesn't get smaller by letting it fester though.
Admin
I think this remains my favorite DailyWTF:
It's the WTF that just keeps on giving1; you peel back one layer of WTF and there's another one underneath.
It's not quite casting, but it feels in the same general vein to me as this submission.
1 Like Discourse, which doesn't let me put that into a [quote] block.
Admin
Has anyone mentioned
string.ToString()
yet?Admin
Maybe they could ask the guys working on Perl 6 and Python 3* for some advice...
* Ok, ok, to be fair Python 3 is probably ok. And released.
Admin
Computer languages are proving to be just like human languages; getting anything changed, no matter how stupid, is an almost impossible undertaking. We refer to computing as though it was a subject with dramatic rates of change, but actually most people working in the field are deeply conservative. And the reasons are time, and money.
Admin
Oh, no disagreement - but we're now 5 years down the road and the problem continues to be just as problematic as it was before at least from a core-dev perspective. Fortunately most of the good PHP devs already understand the limitations of dealing with WTF-8 in PHP by now and have libraries on hand that will do the job.
Admin
Admin
Funny, I had the exact same thought. Python 3 dragged people in kicking and screaming, by dint of not abandoning the effort despite the first two iterations sucking ass. Now it's a hell of a lot better than 2.6 or 2.7 ever were, I give major props to Guido for sticking to his guns on that one and delivering, and only the most hidebound seem determined to stick to the deprecated version.
Perl 6 and PHP 6 must be playing cards up in the sky with Winamp 6.
Admin
Exactly what I'd like to see PHP doing, so yeah, even though I made that joke you gotta respect Python devs for that.
Come now, Winamp is officially over. Perl 6, and likely PHP 6, will be in public beta any decade now...
Admin
Admin
Huh, I might have wrong info then. That happens when I go on hear-say I guess...
Admin
I like that word, "deathly". I'll put it on a sign: "Warning, deathly current!" and see what Google Translate makes of it.
Admin
Let's see.
@translator Warning, deathly current.
Admin
The Deathly Current thread is :arrow_right: :arrow_down_small: :arrows_counterclockwise: :arrow_up_down: :arrow_lower_left: that way
Admin
That thread is dead, I guess the deathly current killed it.
Admin
http://what.thedailywtf.com/t/deathly-current/7606/31?u=aliceif
Admin
It's a pity we can no longer say "...and Duke Nukem Forever".
Admin
Admin
Yeah, rub it in, you bastard.
Admin
won't work here BTW. for "reasons" threads started by blakeyrat or paulabean are ignored by my bots.
Admin
PaulaBean, because of the links to articles, and Blakey, because Blakey :smile: