Author Topic: PHP or Nodejs for simple site ?  (Read 601 times)

0 Members and 1 Guest are viewing this topic.

Offline jeyanthinath

  • /dev/null
  • *
  • Posts: 17
  • Cookies: -2
  • Do what you think !!!
    • View Profile
PHP or Nodejs for simple site ?
« on: October 08, 2014, 07:33:42 am »
Hey guys, I am planning to create a small website with news feeds (contents change on a particular interval).

I know php, but I find in internet that nodejs is so good for website Dev.

I planning to use a responsive template (coz that will be handy and I know little bit in web design) and edit it and inject the dynamic contents..

What shall I do , go with php or nodejs Suggestions please..
« Last Edit: October 08, 2014, 07:47:01 am by jeyanthinath »
JMR

Offline Fur

  • Knight
  • **
  • Posts: 216
  • Cookies: 34
    • View Profile
Re: PHP or Nodejs for simple site ?
« Reply #1 on: October 08, 2014, 08:53:52 am »
but I find in internet that nodejs is so good for website Dev.
https://www.semitwist.com/mirror/node-js-is-cancer.html

The main idea of Node.js: use non-blocking, event-driven I/O to remain lightweight and efficient in the face of data-intensive real-time applications that run across distributed devices.
Basically, good for things like chat servers and APIs for object databases, but less than optimal for websites.

PHP is not a nice language either but if you have to use it then so be it. I'm rather fond of Ruby + Sinatra but they're slow in comparison to PHP, which could be a problem.
« Last Edit: October 08, 2014, 08:54:17 am by Fur »

Offline p_2001

  • Royal Highness
  • ****
  • Posts: 684
  • Cookies: -64
    • View Profile
Re: PHP or Nodejs for simple site ?
« Reply #2 on: October 08, 2014, 09:35:18 am »
Definitely PHP. node JS solves the problem for scalability which you do not need for at least a long time,  if ever.

PHP has a lot of stuff already written and you will get all the modules you need over the net.  This way your development time is small and you get to see all aspects of the problem. You'll deliver a quality product in less time, but with old technology.

If this is a learning exercise then I'd say that you use nodejs or python django. These are relatively new with smaller libraries but they'll grow over time and they look promising.  Specially nodejs because of widespread js use.
"Always have a plan"