V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
FrankFang128
V2EX  ›  JavaScript

初创公司使用 ReactJS 就是在向 Facebook 交税

  •  3
     
  •   FrankFang128 · 2016-08-09 14:43:26 +08:00 · 6770 次点击
    这是一个创建于 2789 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原网站挂了,在此存档。

    ReactJS is a tax Facebook levies on startup web development.

    https://typed.pw/a/1322

    https://www.reddit.com/r/reactjs/comments/4vyo0l/reactjs_is_a_tax_facebook_levies_on_startup_web/

    Although initially I was very excited about React, after working on several teams doing React-based web development I ’ ve found the overall amount of effort spent developing web applications is significantly more than vanilla HTML/CSS/JS.

    We reached the point where our people spend more time (and code) tricking the framework into doing what we want it to do.

    Also performance is abysmal.

    The component philosophy of React does offer some organizational benefits, especially for working in a team, but it ’ s nothing that couldn ’ t be replicated by some simple coding conventions.

    Facebook - as a company that can ’ t really move fast anymore (and doesn ’ t have to) - knows this imposes the same restriction on smaller companies by taking away their agility and maxing out developer resources for work on what used to be trivial stuff. From Facebook ’ s perspective, React has to serve two functions:

    priming and funnelling programmers into their enterprise and

    suppressing development efficiency elsewhere.

    It ’ s positioned very well to achieve both.

    Don ’ t get me wrong, I think it ’ s perfectly well designed to suit Facebook ’ s internal needs while at the same time it ’ s guaranteed to drain resources from startup developers. Intent is not necessary, it ’ s just what happened.

    If other shops felt the same way you did about React … about the folly of developing apps with “ vanilla HTML/CSS/JS ” that you don ’ t …

    I ’ m fairly confident that almost nobody shares this opinion, so personal attacks on my competency are expected, yes.

    The problem with all tech fads is that support for them is absolutely ardent, until the pendulum swings in the other direction.

    第 1 条附言  ·  2016-08-09 17:42:36 +08:00
    https://www.zhihu.com/question/49297106
    如何看待 React is a tax Facebook levies on startup 的说法?
    34 条回复    2016-08-15 14:00:10 +08:00
    learnshare
        1
    learnshare  
       2016-08-09 14:50:05 +08:00   ❤️ 1
    我主要担心它不长久,而且设计思想太跳跃,的确有太多实验性质。
    metrue
        2
    metrue  
       2016-08-09 16:31:48 +08:00
    React 是一个很好的工具,那么为什么不用好工具。是给自己的愚昧交税?
    cxbig
        3
    cxbig  
       2016-08-09 17:26:17 +08:00
    人做的不好总喜欢把责任赖在工具上
    SourceMan
        4
    SourceMan  
       2016-08-09 17:30:42 +08:00
    @cxbig 9494
    mdluo
        5
    mdluo  
       2016-08-09 17:38:47 +08:00
    @真阿当
    FrankFang128
        6
    FrankFang128  
    OP
       2016-08-09 17:41:16 +08:00
    @metrue 嗯呐,愚昧税,初创乱选框架,以后欠一屁股债。
    newghost
        7
    newghost  
       2016-08-09 17:49:02 +08:00
    这就是对国外大公司的技术迷信,  Facebook 的东西就一定好吗?  Google 的东西就一定高大上吗?

    AngularJS 、 Backbone 、 Ember 、 React 则完全使用另外一种开发模型,框架不只是库的简单集合,它还有自己的事件、 DOM 交互模型。

    最关键的一点这些些框架把你框住了,用了就不能换。甚至连 ng1 和 ng2 都不兼容。

    讲一个真实的例子,某知名创业公司:开始于 backbone 流行时,就用 backbone 写了,后来 angularjs 出来了,就用 ng1 重写了,再后来 ng2 出来了,又在用 typescript 重写中。累不累呀?

    早期的 Prototyp/jQuery 只是一些库,基本做事方式还是 html+css+js 。 web 开发的本质并没有变,现代 JavaScript(ES6)的新标准对 jQuery 有着许多借鉴,例如类选择器, DOM 操作等。当你用上这些高层框架,你就会发现离本底 web 开发越来越远,开发越来越复杂。网页加载越来越慢,你也越来越累。


    个人比较喜欢类 library 一类的库比如 jQuery , zepto ,这些东西是可以在不重写应用的情况下替换掉,感觉很爽。
    FrankFang128
        8
    FrankFang128  
    OP
       2016-08-09 17:56:30 +08:00
    @newghost 他们的前端就是这么闲。
    wizardforcel
        9
    wizardforcel  
       2016-08-09 18:03:35 +08:00
    @newghost ES6 借鉴了类 JS 语言, Dom API 借鉴了 jQ 。
    JaHIY
        10
    JaHIY  
       2016-08-09 18:58:26 +08:00 via Android
    框架就是为了让你减少复杂度和维护的难度,当然是针对大项目而言。
    wobuhuicode
        11
    wobuhuicode  
       2016-08-09 19:02:46 +08:00
    要看项目的环境……不要盲目迷信。
    一般我自己单人做移动端项目,都是用原生的 JS 比较多,
    做到多人的项目,用上框架,就等于默认的定制了开发的标准,这个有什么不好
    plqws
        12
    plqws  
       2016-08-09 19:20:52 +08:00
    人蠢就喜欢怪工具
    jiongxiaobu
        13
    jiongxiaobu  
       2016-08-09 20:02:46 +08:00 via iPhone
    觉得框架不能满足需求 可以 fork 了改阿 React 只是一个 UI 的框架,已经很轻量了
    sinux
        14
    sinux  
       2016-08-09 20:06:30 +08:00
    @jiongxiaobu 不算轻了
    sohu022
        15
    sohu022  
       2016-08-09 20:07:05 +08:00
    肯定要分情况,不是所有项目都适合 React , 也不是创业公司就不适合 React 。 感觉今天楼主观点一直比较极端, 其实没必要纠结这些问题,拿合适的工具做合适的事, 具体项目具体去权衡! 看楼主也是前端老鸟了,难不成楼主是单身,故意七夕引战?
    sinux
        16
    sinux  
       2016-08-09 20:09:15 +08:00
    @jiongxiaobu 稍微复杂一点的应用你就要用上 redux 、 router ...等一系列全家桶
    sinux
        17
    sinux  
       2016-08-09 20:09:28 +08:00
    @sohu022 23333
    FrankFang128
        18
    FrankFang128  
    OP
       2016-08-09 20:23:48 +08:00 via Android
    @sohu022 我只是存档,这网站挂了
    loading
        19
    loading  
       2016-08-09 20:30:16 +08:00 via Android   ❤️ 1
    人员太水还是用 jquery 吧…
    jiongxiaobu
        20
    jiongxiaobu  
       2016-08-10 08:54:13 +08:00 via iPhone
    @sinux 社区用的多但并不是一定要用,担心要给 fb 交税的话可以自己实现自己的方案,又不复杂。
    zongwan
        21
    zongwan  
       2016-08-10 10:19:46 +08:00
    从不懂前端的角度来探讨:
    不付出哪里有回报
    刚好不会前端,从这里上手也挺不错的
    至今为止还不能很好分辨流行的几个框架的区别。。。
    不过 react 对个人来说最好上手,使用 react native 还能最快地建立一个热更新原生应用
    万一 react 真黄了的那个时候背后也冒出一堆代替方案了,再不济也会了一点原生应用的编写模式 可以改行
    等 ES 新标准出来后这些可能都会变为时代的眼泪

    PS:国外貌似也很流行的 Ember.js ,可惜圈子太小基本没见到有人讨论。。
    ivanlw
        22
    ivanlw  
       2016-08-10 13:06:15 +08:00
    这你们就不懂了吧,前端人员弄出这些框架,就是为了让他们做的东西显得高大上,只有 html 和 css 工资哪来能高?
    FB Google 这些公司有的是闲钱来招聘这些前端人员,弄出个新的框架,不仅这些人的牌坊有了,顺便还帮公司立一个牌坊
    foomorrow
        23
    foomorrow  
       2016-08-10 13:08:57 +08:00
    自己写个 virtual-dom 呗 又不难
    FrankFang128
        24
    FrankFang128  
    OP
       2016-08-10 13:11:08 +08:00
    @foomorrow 用 DOM 为什么要用 Virtual DOM ?
    russj
        25
    russj  
       2016-08-10 13:26:41 +08:00   ❤️ 1
    给你编一个汽车阴谋论

    骑马多环保啊,那些发明生产汽车的都是想害人,那些工程师现在把车做得又漂亮又舒适,还不是为了自己赚钱?每年几十万人死于车祸啊,被马撞死的几个?你需要那么快去别的地方吗?人类走路骑马几千年了都没问题。现在又搞电动车,其实汽油柴油就够了,马斯克不这么搞他能融到资?

    只要你坐车就上当啦,啦啦啦
    chilaoqi
        26
    chilaoqi  
       2016-08-10 14:34:17 +08:00
    不然呢?老板雇你来不就是让你熟悉各种框架,好好研究,强身健体,然后跳槽好 double 么? 0.0
    dantegg
        27
    dantegg  
       2016-08-10 18:31:08 +08:00
    反正我觉得楼主水经验的姿势水平很高 233
    FrankFang128
        28
    FrankFang128  
    OP
       2016-08-10 18:39:05 +08:00
    @dantegg 从不签到,一缺铜币我就发帖。
    FrankFang128
        29
    FrankFang128  
    OP
       2016-08-10 18:45:41 +08:00
    @mdluo 他喷人,我只喷技术。
    tinyproxy
        30
    tinyproxy  
       2016-08-10 22:26:10 +08:00 via iPhone
    startup ?有牛人不?牛人有时间去处理这种基础框架的问题不?如果没有,那么老老实实填个久经考验的东西做东西是最安全的,为什么大公司搞这种东西完全 OK ?他们有雄厚的人力财力来掌控代码(比如 Google 把 webkit fork 回去,需要添加功能自己开发,后来直接改名就 blink),小公司起步阶段大多没有这种实力,不务实怪 Facebook 咯。
    seeker
        31
    seeker  
       2016-08-11 13:23:45 +08:00
    刚才看了下 github ,有人知道为什么 react 的版本号从 0.14 一下子到了 15 ?
    FrankFang128
        32
    FrankFang128  
    OP
       2016-08-11 14:32:36 +08:00
    @seeker 任性,故意的。
    keyanzhang
        33
    keyanzhang  
       2016-08-13 12:01:18 +08:00 via iPhone   ❤️ 1
    evil4u
        34
    evil4u  
       2016-08-15 14:00:10 +08:00
    初创公司能用 ReactJs ,那最好, P 三端平移成本低。
    不会也没关系, jQuery 工具库, vuejs 先用着。业务验证,有用户有融资,再换技术栈也不迟。

    用户数少于 10W+的用这种新技术体现不了什么价值。

    总之,技术为业务服务并提供支持,什么阶段配什么技术。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2631 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:34 · PVG 23:34 · LAX 08:34 · JFK 11:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.