4 ms·
While stupid people keep using blinking tags and lolcats, and while astronauts keep thinking about concurrency and monads, php will grow stronger than ever. As
by Kilimanjaro 14y ago
While stupid people keep using blinking tags and lolcats, and while astronauts keep thinking about concurrency and monads, php will grow stronger than ever.
Astronauts need to come down to earth and help stupid people build better blinking tags for their lolcats, not push them to write lolcats in monads with concurrency.
So, whether astronauts like it or not, a simpler un-evented node.js would sell like hotcakes (because it is js, not because it is evented), while a cleaner, facelifted php will sell even more.
Fork php, use + for string concatenating, . for class members, fix haystacks and needles, add [1,2,3] and {a:1,b:2} as simple data structs, that's all lolcats need.
Learn to serve your customers, even if they are stupid.
- mootothemax 14y agoIt's not very nice to refer to people as being stupid for wanting to use PHP, or likewise for those who code in PHP themselves. My Erlang isn't bad, but it would be madness for me to suggest it to a client. What happens if I get run over by a bus tomorrow, or we need to bring extra coders on board? Erlang, for all its many, many favours, is just not appropriate for the average-client-on-the-street. I realise that you didn't use Erlang as an example, but there's a reason why there's so much work for competent PHP programmers, and it's not stupidity.
- agumonkey 14y agoYour leave of absence causes demand for Erlang programmers which triggers interest to teach it and a flod of workforce. No more $blub. Hopefully.
- andrewflnr 14y agoOne headless Erlang project is going to cause a flood of interest in Erlang? You have a lot more hope than I do.
- davedx 14y agoSome pretty good ideas right here. Not sure how node.js can be 'simpler' though, it's pretty much coding in pure JavaScript which is a simple language itself?
- Kilimanjaro 14y agorows = db.select('users') instead of callback spaghetti monster (CSM) db.select('users',function(data){/*callabck*/},function(error){/*error*/}) I guarantee you 90% of (CSM) could be avoided if node wasn't so anal about everything being async. 90% of the time I need the template when I read it view = template('index.html') 90% of the time I need the file I am reading right away text = getFile('setup.yaml') 90% of the time I need the content of a url right there html = webget('google.com') So why design a language for the 10% of the use cases? Fork it, drop the (CSM) stuff and conquer that 90% who would like to use JS on the server.
- tmzt 14y agoMost of the fs calls have sync equivalents, but you only want to use them at application startup. IO is slow, Node is evented IO, the requests come in and the requests (to the database) go out, the data comes in and the result is rendered to the client. Node deals with requests. But let's say it was made to work like you request, and the docs were changed to reflect that. People learn they could throw some code in a file and call it node.js. (I've done that, using a fastcgi server implementation and adding a hander for it on a bluehost account.) So now you have PHP but with Javascript as it's syntax, your developers build applications the way they do in PHP, you call Node slow and a thread like this launches on HN saying how bad the language is and how somebody should fix that.
- Kilimanjaro 14y agoI've never heard of people complaining of PHP being slow. They don't care, they just want to glue some HTML, CSS and JS together and run it on the browser easily. So yes, simplify JS on the server to act like PHP and use node for servers and other stuff. Name it differently if you want so they don't call node slow. V8CGI is the closest to a deliciously simple JS implementation on the server I've seen. Take a look at it for some ideas.
- soc88 14y ago> $foo will grow stronger than ever. -- Democratic People's Republic of Korea Yeah, sure.