skip to Main Content

I am Masoud Sharifi Nia and I am learning programming. I wanted to know if node js is better for learning and using or php, please give your answer, thank you.

I researched on many websites, but I did not get a complete and accurate answer

2

Answers


  1. The choice between PHP and Node.js for server-side programming largely depends on your specific needs and goals, as both have their own strengths.

    PHP:

    • PHP is a mature language and has a large community, which means you
      can find a lot of resources and libraries. It’s often used in
      combination with Apache, making it a good choice for traditional web
      applications.

    Node.js:

    • Node.js allows you to use JavaScript on the server side, which can be
      beneficial if you’re already familiar with JavaScript from
      client-side development.It’s known for its performance and
      scalability, making it a good choice for real-time applications or
      microservices.

    Node.js can be completely replacec the Apache, (assuming you are willing to re-write all of your php as JS). If you have your Apache running in reverse proxy mode between your server and the client, you can handle some request in Node.js while handling others in PHP.

    I hope you’ll get answer.

    Login or Signup to reply.
  2. First of all learn the basics of programming. It doesn’t matter which programming language you will choose. Be interested in how the things work under the hood. Once you learn the programming basics of one language and you understand typical concepts, problems and design patterns you will be able to use these approaches in any language you will then use.

    There is NOT an answer to your question. When you choose a language you want to use, you typically have to consider multiple variables (cost of running the software, your team’s skills, customer’s budget, deadlines, libraries, ML, web/desktop…).

    Be interested in programming and just choose one language and start. I wish you good luck!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search