4 ms·
I'm actually the one that wrote the last two nasty parts of code, not the author himself. I'm really sorry that it confused you. I actually don't remember why
by bndr 13y ago
I'm actually the one that wrote the last two nasty parts of code, not the author himself. I'm really sorry that it confused you.
I actually don't remember why I wrote them like that, but I'm pretty sure I had a reason (at least I think I do..)
Again, sorry about that.
- TylerE 13y agoAnd this is how PHP hell begins.
- bndr 13y agoPlease elaborate. :(
- TylerE 13y agoYou wrote nasty code in PHP that you don't clearly understand, and aren't immediately either researching (and then documenting!) why you did what you did, or failing that, recoding for sanity. Once those little hacks calcify it's all down the tubes from there.
- ebbv 13y agoNot unique to PHP in any way shape or form.
- TylerE 13y agoPerhaps not, but PHP certainly makes it unusually easy.
- ebbv 13y agoI know this is a popular idea, but it's pretty easy to write terrible code in any language. See: most code.
- TylerE 13y agoYes, but, in most langauges, this doesn't work <?php $a = 0; $b = 'x'; var_dump(FALSE == $a); var_dump($a == $b); var_dump($b == TRUE); ?> This results in bool(true) bool(true) bool(true)
- babby 13y agoSeriously? (string) x fuzzy equals to (int) 0? Holy crap that is some cancer.
- TylerE 13y agoYes, seriously. http://php.net/manual/en/types.comparisons.php http://php.net/manual/en/types.comparisons.php
- sjwright 13y ago"PHP: It's worse than ColdFusion."
- krapp 13y agoThat's just... that's just cruel.
- sjwright 13y agoAs a CFML developer who has had to bear the brunt of gleeful derision, you won't get an apology from me. :-) Modern CFML running on Railo is an awesome environment to work in: PHP-like hackability, a very consistent language spec, native JVM performance, first-class java library integration, and it's a 100% pure open source software stack. Whereas PHP has a much slower runtime, a horrific language spec, and nothing similar to the benefit of running on a common runtime like the JVM.
- NegativeK 13y ago
- sequoia 13y agoAnd this is how HN threads get derailed and ruined. Your comment is valueless, please consider deleting it.