V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
forcecharlie
V2EX  ›  GitHub

Github 使用 Electron 重写 Github Desktop

  •  
  •   forcecharlie · 2017-05-17 10:13:10 +08:00 · 5529 次点击
    这是一个创建于 2535 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Github 正在使用 Electron 重写 Github Desktop。之前,在 Windows 和 macOS 上,Github 分别用各自平台的技术实现其客户端,如 Windows 使用 WPF。

    Github Blog: https://github.com/blog/2362-announcing-git-integration-for-atom-and-github-desktop-beta

    Github 工程师 blog: https://githubengineering.com/how-four-native-developers-wrote-an-electron-app/

    Atom 也有 Github 集成 https://github.atom.io/

    Github Desktop 项目地址: https://github.com/desktop/desktop 使用 TypeScript + React 并且注意到,应该大部分开发者使用 Visual Studio Code 开发。

    很有意思。

    21 条回复    2017-07-05 21:42:41 +08:00
    helloSwift
        1
    helloSwift  
       2017-05-17 10:30:23 +08:00
    耗电,之前的功能简单了,不知道会不会添加功能
    helloSwift
        2
    helloSwift  
       2017-05-17 10:33:25 +08:00
    还是不知道在 sourcetree 和 github desktop 怎么选择,虽然命令行好用,但也想在电脑上备一个 GUI
    justfly
        3
    justfly  
       2017-05-17 10:38:44 +08:00   ❤️ 1
    很不喜欢 Electron 这东西。

    做出来的东西体验违和不说,卡,耗内存,一丁点的功能都 100M 安装包。。。
    jy02201949
        4
    jy02201949  
       2017-05-17 11:15:04 +08:00
    想想 Atom 就觉着以后 Github Desktop 会越来越卡的
    notes
        5
    notes  
       2017-05-17 11:37:29 +08:00 via Android
    visual stuido code 认可度这么高吗,我都想试试了
    qqjt
        6
    qqjt  
       2017-05-17 11:43:34 +08:00
    Electron 这玩意据说是一坨翔啊
    DoraJDJ
        7
    DoraJDJ  
       2017-05-17 11:50:48 +08:00 via Android
    现在 electron 的风评挺差的,前面几楼都可以看出来了。

    说了这么多,我还是选择命令行。
    f12998765
        8
    f12998765  
       2017-05-17 11:58:04 +08:00
    在用 GitKraken,也是 Electron 编写的 Git GUI

    在最新的更新日志中有一句:

    Oh, and checkout operations are as much as 3 times faster than SlowTree, err... I mean SourceTree (including their latest v2).
    SuperMild
        9
    SuperMild  
       2017-05-17 11:59:49 +08:00
    @justfly 可能有点误解了,安装包太大可能是打包姿势错误,vscode 也不算一丁点东西了吧,安装包才 35MB
    ferrum
        10
    ferrum  
       2017-05-17 12:14:13 +08:00
    Github 自己人都不用 Atom ?
    cheetah
        11
    cheetah  
       2017-05-17 12:18:40 +08:00
    Visual Studio Code.app 176.5M
    justfly
        12
    justfly  
       2017-05-17 12:28:53 +08:00
    @SuperMild

    不知道是不是我们平台差异原因 我这里 vscode 176M 其中 Electron Framework.framework 112M

    Electron 的一些其他应用大都 120M 左右 其中 Electron Framework.framework 110M+

    这东西类似 JRE 或者 .NET Framework 只不过人家安装为系统库,安装后所有应用都可以使用,这东西每个 APP 都得带上。
    corvofeng
        13
    corvofeng  
       2017-05-17 12:39:27 +08:00 via Android
    你写任你写
    dremy
        14
    dremy  
       2017-05-17 12:43:31 +08:00 via Android
    同样是基于 electron,不知道为啥 atom 卡的一比,vscode 丝毫不卡,神负优化?
    uxstone
        15
    uxstone  
       2017-05-17 12:48:33 +08:00
    好事!
    Leafove
        16
    Leafove  
       2017-05-17 12:49:13 +08:00
    electron 解决的问题应该是有没有,用来重写原本已经用本地代码开发好的东西简直智障
    我选命令行
    Kilerd
        17
    Kilerd  
       2017-05-17 12:50:03 +08:00
    @f12998765 GitKraken 挺好的
    forcecharlie
        18
    forcecharlie  
    OP
       2017-05-17 12:51:42 +08:00
    @dremy 这个没有具体分析过,不过我的看法是 VSCode 团队经验更加丰富( Eclispe JDT,《设计模式》 作者 Erich Gamma 这样的大牛),然后投入也比 ATOM 团队要多,实际上 VSCode 的核心 Monaco 项目已经在 VS Online 使用很久。https://microsoft.github.io/monaco-editor/

    然后我觉得 TypeScript 与 Atom 使用 CoffeScript 相比 也是一大优势
    AZ2000
        19
    AZ2000  
       2017-05-17 18:08:39 +08:00 via Android
    看起来不错啊
    dexterzzz
        20
    dexterzzz  
       2017-05-17 19:52:04 +08:00
    要知道 vs code 的开发团队是什么人,开发语言是 typescript
    cctrv
        21
    cctrv  
       2017-07-05 21:42:41 +08:00
    我無法接受新版本!!!我堅持老版。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3186 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:35 · PVG 21:35 · LAX 06:35 · JFK 09:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.