Empathy is essential for human relationships. This article explores the sustainability of being human in an increasingly virtual and artificially oversaturated.
Node.JS and PHP are both engines that power the back-end of dynamic applications, but they have very distinct differences. Here’s a comparison and why we chose to use Node.js as our tech of choice for Hi5.
PHP is one of the most mature, commonly used server-side scripts on the web. Node.js is not a script but a back-end development environment that’s written in JavaScript OR simply a strictly client-side script. Node.js made it possible to use JavaScript on the back-end when it was introduced in 2009, bringing the rise of web applications with entirely JavaScript-powered stacks.
JavaScript is a scripting language that typically runs in the browser and allows web pages to be dynamic and interactive, but ever since the release of Node.JS, it became possible to perform asynchronous coding with JavaScript on the server side and client side. Node.js is a development and runtime environment with a seemingly unlimited array of available frameworks that can run on top of it. Functioning uniquely on a single main thread for request execution.
PHP is a scripting language that quickly became the industry standard back-end language of choice for developers after its initial release in 1995. A vast majority of sites on the web today run on PHP, due in large part to its popularity as the technology of choice for content management systems like WordPress, Drupal, and Joomla. As well as a number of modern frameworks such as Laravel, Symfony, and CakePHP that have taken full advantage of this languages power. Running on a multi threaded I/O blocking execution.
You should consider PHP if your project involves:
You should consider Node.js if your project involves:
Note that neither of lists above are extensive, or dutifully explain the extent to which you can use these two technologies. The choice to use Node.js as our back end at Hi5 came down to these simple points.
This isn’t to say Node.js is better than PHP, it just suits our needs.