I've been writing PHP for over 10 years. 1) PHP is slow, uses too much memory. (I wrote the MicroMVC framework and IOSQL) 2) Makes concurrent (and especially parallel) computing hard (file locking and pcntl_fork()) 3) PHP isn't well though-out (like Javascript) so you are always second-guessing the std lib because of odd/short-sighted design choices. I moved to Go and lost nothing. However, PHP is (like Javascript) i…
Ask HN: What's your beef with PHP?
11–20 of 25 posts
Re: Ask HN: What's your beef with PHP?
#12The one thing that has most frustrated me is PHP's array syntax.
Re: Ask HN: What's your beef with PHP?
#13I've been writing PHP for over 10 years. 1) PHP is slow, uses too much memory. (I wrote the MicroMVC framework and IOSQL) 2) Makes concurrent (and especially parallel) computing hard (file locking and pcntl_fork()) 3) PHP isn't well though-out (like Javascript) so you are always second-guessing the std lib because of odd/short-sighted design choices. I moved to Go and lost nothing. However, PHP is (like Javascript) i…
What other languages are you familiar with to compare it too? Because Javascript is in no way well thought out and it doesn't do parallel computing let alone do it right, it's bound to a single core.
Parallel works. You can even create a deadlock very easy. Also, Node.js can spawn new processes.
Re: Ask HN: What's your beef with PHP?
#14Re: Ask HN: What's your beef with PHP?
#15My beef with PHP is all the added traffic I get on my http server. Every day I get a list php directories get request from people looking to score on some low hanging miss configured lamp box. Then on the flip side the people that do have php files miss configure they get turn into DDoS boxes against me.
I don't use PHP, and these kind of bots are just too noisy to put up with.
Re: Ask HN: What's your beef with PHP?
#16Re: Ask HN: What's your beef with PHP?
#17The one thing that has most frustrated me is PHP's array syntax.
Compared to what?
Re: Ask HN: What's your beef with PHP?
#18I happen to like PHP's standard lib: it's big and addresses a lot of needs in building web apps. But you don't really see tons of new high quality bindings or libraries being introduced at the rate that, say, Go is getting them.
If someone told me I had to build a product from scratch in PHP, I would probably start here: https://github.com/exflickr/flamework/blob/master/docs/philo...
Re: Ask HN: What's your beef with PHP?
#19Earlier quoted context omitted.
Compared to what?
Compared to almost any other language I've used - it's awkward, and unnecessarily verbose because it mixes in how one would define an associative array/hashmap/object as the only way to use an array. It does not distinguish a traditional list from an associative array.
What is "annoying" about:
["foo", $bar, BAZ, 1, 2, 3]Re: Ask HN: What's your beef with PHP?
#20I've been writing PHP for over 10 years. 1) PHP is slow, uses too much memory. (I wrote the MicroMVC framework and IOSQL) 2) Makes concurrent (and especially parallel) computing hard (file locking and pcntl_fork()) 3) PHP isn't well though-out (like Javascript) so you are always second-guessing the std lib because of odd/short-sighted design choices. I moved to Go and lost nothing. However, PHP is (like Javascript) i…
What other languages are you familiar with to compare it too? Because Javascript is in no way well thought out and it doesn't do parallel computing let alone do it right, it's bound to a single core.
My languages mostly are C-based Bash, Python, Lua, Objective-c, Javascript (EC5), Go, etc...