39 ms·
> - no "unknown unknowns". it's so tried-and-true, there's no surprises This part is laughable. People who have been programming PHP for 20 years (several of t
by paxys 4y ago
> - no "unknown unknowns". it's so tried-and-true, there's no surprises
This part is laughable. People who have been programming PHP for 20 years (several of them at my company) still routinely discover hidden bugs, quirks or general behavior that is totally unintuitive and nowhere found in the documentation.
- johnisgood 4y agoPerhaps those people are stuck with PHP 5.
- merek 4y agoIn general, how could one know that something has no unknown unknowns? By definition, one wouldn't know.
- miffy900 4y agoThat's what makes the statement "no 'unknown unknowns'" a bit ridiculous though. How can you possibly assert that there are absolutely NO 'unknown unknowns'? You can never rule them out, and at best can only suspect there's a possibility either way, that they do or do not exist. You can never actually know with certainty.
- deleted 4y ago[deleted]
- user3939382 4y agoI’ve been using PHP since 2003 and it’s my full time job and this doesn’t ring true. Very, very rarely is a gotcha not in the docs comment section.
- pkrumins 4y agoExactly. You get it 100%. Come work for me!
- __del__ 4y agoi always found those comment sections to be so odd — fifteen year old comments about a common pitfall and the information never makes it up to the official documentation? i suppose it's fitting for a web-centric language to crowd source its docs on a website, but does any other mainstream language do this?
- mxschumacher 4y agoThe php docs are themselves a public GitHub repo, so it's a bit sad if insightful comments don't affect change in the docs
- oneeyedpigeon 4y agoMeanwhile, I find the PHP docs far more readable/accessible than almost any other language. Compared with the official Python or (shudder) Java docs, and they're far superior, IMO.
- 4y ago
- pkrumins 4y agoIt literally doesn’t matter. You fix the bug, deploy, and move on on.
- jrm4 4y agoBut genuine question -- what other languages are as simultaneously as useful AND predictable?
- jfabre 4y agoruby...
- lmm 4y agoPython covers many of the same use cases and is much more consistent/predictable. TCL if you want to go back a bit further.
- _0w8t 4y agoWith Python one never knows when a particular feature code depends on will be removed. With PHP code written 15 years ago still works.
- winstonewert 4y agoWhat features have been removed from Python?
- eyegor 4y agoBesides the obvious 2 to 3 transition, cpython has obsoleted or renamed stdlib modules several times between 3.x versions. For example, the collections.abc change causes several common Linux bits to break if you change the system default to 3.8.
- Hasu 4y ago> With PHP code written 15 years ago still works. If you never upgrade, sure. PHP 7 and each minor version in it have deprecated and removed plenty of stuff that was legal in 5.6. PHP 8 is on track to do more of the same. I think the backwards incompatible changes are pretty much all good for the language, but claiming backwards compatibility in PHP is completely wrong. If you aren't on PHP 8, you aren't supported, and if you're on anything earlier than 7.4, you aren't getting security releases. And the new versions released yearly all have breaking changes, and get three years of security support. It's not 2015 anymore.
- mekster 4y agoAny examples?
- tambourine_man 4y agoFor example?
- ainiriand 4y agoBeing a PHP programmer for 14 years never found an example of that.
- Kiro 4y agoLike what? Come on, if it's that common you must have at least one example.
- mattacular 4y agoWhat are you referring to?
- cutler 4y agoExamples?
- ehnto 4y agoTo which most developers say, oh well, because they'll never encounter them.