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 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置