doulianxi0587 2015-10-25 05:04
浏览 68
已采纳

Laravel5(PHP)或SailsJS(node.js)?

Actually, I am working on a project with Laravel5 (laravel.com)

someone who is working on another project with SailsJS (sailsjs.org) asked me why I am still using PHP. I should work with nodejs (sails), because PHP would be a language would be going to die.

Well, what's better to use for the future.

  • Both are MVC frameworks
  • on both you can code views with Jade (see jade-lang.org)
  • on both you can use any database.
  • on both you can easily install modules (composer / npm for the backend), bower for the frontend

What's better - and an important aspect - which framework creates responds faster?

  • 写回答

2条回答 默认 最新

  • dongshao8125 2015-10-25 05:23
    关注

    As a technical guy, i would suggest you to use sails over laravel. Its not because PHP is going to die(and it will not happen).

    As far as i know, anything built on javascript would be faster.

    There are lot of advantages in sails like sockets are very easy to implement so on.

    When it comes to disadvantage, its only with DOCUMENTATION. For a beginner, it would become little difficult to grasp all the things.

    From PHP (Synchronous) to sails(Assynchronous), it will take some time to get familiar with sails.

    Make sure you understand the basics of node.js very well before you start with sails.

    For more references, see this , this and this

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题