Skip to content

Comment on An open question (rant) about Node.jsparent

Comments

If you're not shipping your js code to the browser, then it's frankly kinda silly to write it on the server.

No one pay attention to this dude. Of course it isn't silly. Plenty of people build their servers with JS and put them into production.

Plenty of people build their servers with PHP and put them into production. It is still germane to ask if this is silly.

for LANG in Java Scala Ruby Python C C++ Groovy Clojure; do s/PHP/$LANG/; done

Something silly is like putting shit-tons of fish into a box and expecting it to make HTTP requests. Writing a web server in PHP, regardless of what you think of the language, isn't. Comments like that are just gonna clutter someone's Google search one day.

"Right tool for the right job".

If all you have is a room full of PHP developers and all you need is a REST site, then well you could do worse but I would like to discourage you from the practice.

Similarly, unless you have a highly specialized need - fun asynch chat server or complex app where business logic is being directly shared between client and server - I too would discourage locking one's self into that platform.

Javascript is not the worst thing ever, but why bother if you don't have to?

1) Laravel is a fantastic choice for building web servers if your team is primarily PHP. 2) There is no such thing as locking yourself into the JS platform, because JS has the advantage of being our lingua francua, is a general purpose programming language (servers, clients, and more!) AND is the language with the most momentum TODAY. Not last year, not 20 years ago.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.