News for hackers. Stuff that matters.
Re:Cross-Platform UI in GitHub Desktop by lpsz on Wednesday August 19, 2015 @04:56PM (#10088441)
I have to say, I miss the age of native apps. I understand that it's awesome cakes for Spotify, GitHub, etc. engineers to share JavaScript bits between devices. But it sucks for me as the user! The Spotify app (on my Mac) has become a resource hog over the years.

Same with Slack's Mac app. As beautiful as it is, there's just something that doesn't feel 100% responsive/right with a web-based app.

    "With separate code bases for OS X & Windows
    converging on a single design, we knew that
    sharing code would be essential going forward. 
    Sophisticated as the graph is, implementing
    it twice would have been a significant burden."
How is it ever reasonable to prioritize coding convenience over the end users' experience? This team set out to solve a cool engineering problem (code reuse) and forgot altogether that people are actually going to be using this stuff.
Re:Cross-Platform UI in GitHub Desktop by gcr on Wednesday August 19, 2015 @05:03PM (#10088471)
Thing is, by using a cross-platform drawing library like Cairo or OpenGL, a lot of this code could have been reused anyway.

It wouldn't have been as nice or expressive as Javascript though. But it also wouldn't have required hacks like stitching together a giant string to be `eval`', for example. So there's a tradeoff.

Re:Cross-Platform UI in GitHub Desktop by merogin on Wednesday August 19, 2015 @05:20PM (#10088578)
I haven't used the application (can't on Linux), but if the graph doesn't require user interactivity, using Cairo or some other software renderer (e.g. http://www.antigrain.com/) to just render the graph into a bitmap, would do the job faster and with less resource usage. Adding user interactivity on top of that shouldn't be a lot of work either.
Re:Cross-Platform UI in GitHub Desktop by lpsz on Wednesday August 19, 2015 @05:08PM (#10088503)
Yep. They could also use some shared C/C++ bits to generate various drawing metadata ("the model") and delegate the rendering/input handling to whatever platform-specific APIs.

It may be more work, but if you're not going to build an actual native app, why bother? These apps are built as a sales point ("look, we have a Mac app!"), without the customer in mind.

Re:Cross-Platform UI in GitHub Desktop by mdiep on Thursday August 20, 2015 @10:52AM (#10092203)
What we've done with GitHub Desktop is very different than the write-an-entire-app-in-JS approach that a lot of apps have taken. There's a small piece of custom UI that's built with HTML, JS, and CSS; but even it is controlled by native code. GitHub Desktop is still mostly native code on both platforms.
Re:Cross-Platform UI in GitHub Desktop by pjmlp on Thursday August 20, 2015 @02:42AM (#10090301)
Fully agree.

What alternative real native GUI clients are there for Git on Windows?

Re:Cross-Platform UI in GitHub Desktop by lpsz on Thursday August 20, 2015 @05:27AM (#10090758)
I use this on Mac, it looks like there's a Windows version as well: https://www.sourcetreeapp.com/
Re:Cross-Platform UI in GitHub Desktop by pjmlp on Thursday August 20, 2015 @05:44AM (#10090827)
Thanks, looks quite nice.

I rather use tools that embrace the native platforms.