4 ms·
>- Perl/PHP/Bash: Learn to cry bitter, sorrowful tears. This is a common misconception. PHP tears are actually almost sweet and not bitter at all. The only sal
by ghostbrainalpha 9y ago
>- Perl/PHP/Bash: Learn to cry bitter, sorrowful tears.
This is a common misconception. PHP tears are actually almost sweet and not bitter at all. The only saltiness comes from hearing the opinions of other programmers talk about your primary language.
- Cofike 9y agoI worked with a guy who uses PHP in 2017 and we never let him forget it.
- cubano 9y agoIt's probably so easy for him to forget because he is so busy shipping working apps...
- jjjensen90 9y agoI've written large, important things in C++, Kotlin, Scala, Java, Go, Javascript, PHP, etc... PHP in 2017 is great. PHP 7 is nice to use. Laravel is one of the best frameworks I've used. We have applications making millions of dollars a year running on a couple containers running Laravel 5 at my current job. It's not a perfect language, but none are. I think some people are just jealous of how little setup/barrier to entry there is for PHP ;)
- cutler 9y agoGenuinely interested - which app is making millions a year on Laravel?
- stevenwoo 9y agoIt sounds like Pornhub is using PHP without a framework from this job posting or maybe they are just open minded. https://www.reddit.com/r/forhire/comments/47fvmk/hiring_montreal_pornhub_senior_and_nonsenior_php/ https://www.reddit.com/r/forhire/comments/47fvmk/hiring_mont...
- jjjensen90 9y agoPublishing and ad management at a large publisher/adtech company
- vile 9y agonobody is making fun of PHP out of jealousy
- charred_toast 9y agoPHP was my first bike, so to speak, so I can't knock it. Plus later I learned Slack was written in PHP, and I was like, whoa! I definitely think it gets a bad rap, mainly because it's almost too easy to use, correctly and incorrectly.
- charred_toast 9y agoCam someone explain why this comment was down-voted?
- teh_klev 9y agohttps://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html Please don't comment about the voting on comments. It never does any good, and it makes boring reading.
- kod 9y agoYeah, no, not when your primary language still can't get lexical scope right, or distinguish between arrays and hashtables.
- nedt 9y agoYou can always use SPL for more strict datastructures (since 5.3): https://secure.php.net/manual/en/class.splfixedarray.php https://secure.php.net/manual/en/class.splfixedarray.php
- Will_Parker 9y agoThe lack of distinction between array vs hashtable isn't a big deal. Array as a map from integers to items works fine in practice. Even speaking of algorithm performance, it's fine for the uses you have on a web server. (Any other use of PHP is clearly insane. :) ) You speak like someone who hasn't worked much in PHP. When you do, a lot of quirks and flaws really bother you and slow down during everyday tasks, but the ones you mentioned aren't they.
- mcny 9y ago> a lot of quirks and flaws really bother you and slow down during everyday tasks Would you mind sharing a few that bother you? q
- Aeolun 9y agoThe fact that `false` isn't always false. Or that '0' or 0 or null are all 'false'. There's a bunch more quirks in Zend Framework that I use every day that are much worse than all the rest of PHP though.
- mark-r 9y agoIt occurred to me not long ago that hash tables are a general solution to indexing, and arrays are simply an optimization that you can apply when the proper constraints are in place. I'm happy to discover that it wasn't an original thought.