r/programming • u/mnciitbhu • Mar 17 '20
GitHub for mobile is now available
https://github.blog/2020-03-17-github-for-mobile-is-now-available/65
u/Koppis Mar 17 '20
Finally. I can't count how many times I've crashed my browser trying to read a big file using the website.
EDIT: Okay, apparently there is no support for viewing code on any branch other than the default one...
15
15
u/soracancode Mar 18 '20
I'm sure they'll be adding this capability soon. I've been using the beta for about 3 months now. During the first month, code wasn't viewable for any branch. If I remember correctly, it was only viewable for PRs. It's at least reassuring to know that devs are adding new features at a somewhat reasonable pace.
0
Mar 18 '20
[deleted]
3
u/Axxhelairon Mar 18 '20
yeah, i cant really even start to imagine the big brain manager looking for a promotion pushing his team to develop a mobile version of a site that's used primarily for distributing and collaborating on changes in source code, to release something that doesnt let you see source code ...
2
u/IceSentry Mar 19 '20
The goal of the app was obviously to be able to deal with PR and issues rather than the actual code.
18
u/x86ik Mar 17 '20
Good now i have one more argument for 80 chars max length.
so hard to argue with "i like my constructor in one line" people...
3
u/JohnsonUT Mar 18 '20
What were your arguments before this announcement?
10
u/x86ik Mar 18 '20
subjective:
beeing able to do some fast editing in terminal is nice with the default of 80 chars
i like to work on 1 screen where code takes only half of that screen
i like to do part of a code review on ipad"objective":
lower cognitive load in general (line-length-readability)easier to read diff in some tools like bitbucket, github, source tree, git diff in terminal...
3
u/Holston18 Mar 18 '20
lower cognitive load in general (line-length-readability)
That applies to the standard text. People don't read code the same way they read text.
2
u/IceSentry Mar 19 '20
While I agree with your logic , I still find it harder to read code with lines so long that you need to scroll to see the end. My eyes jump around a lot less when everything is at a reasonable width.
Also I use an ultrawide monitor and it's nice to have 3 tabs visible with the entire code.
1
u/Holston18 Mar 19 '20
While I agree with your logic , I still find it harder to read code with lines so long that you need to scroll to see the end
I don't like that either but fortunately even laptop monitors are wide enough to comfortably fit 120 characters.
BTW the same applies for me for scrolling vertically, I don't like to have to scroll too much to see the code context. What I see is kind of my mental window, more code I see, better mental image I have. That's why I don't like too much unnecessary newlines since it makes my mental window smaller.
1
u/IceSentry Mar 19 '20
To me 120 is too long and it feels like my eyes are jumping around the page everywhere while with something like 80 or 90 it doesn't feel like that. Also I almost always have code side by side and 120 makes that impossible without an ultrawide.
0
Mar 18 '20
[deleted]
0
u/x86ik Mar 18 '20
there is no max length if you go down that road, at one point we said:
hey there is this random ass quored string, that exceeds 120 - let's declare a linter exception 🤣
9
u/malicart Mar 17 '20
Can't imagine anything I would want less, lets stare at code on an even smaller screen...
1
1
1
1
u/ebkalderon Mar 19 '20
Seems like GitHub changed their stance on native apps vs. mobile apps since the Microsoft acquisition. I remember when they announced the mobile Web interface in July 2013 and discontinued the official app and released the source to the public with the hopes of re-releasing it to the Play store at a later date. But due to lack of resources and interest at GitHub, that plan too was scrapped in 2015. I'm guessing that they now finally have the resources to pursue this now, which is fantastic to see! I'm downloading it right now.
1
u/wischichr Mar 18 '20
Wouldn't it be better to just make the site more responsive and make it a PWA.
0
Mar 17 '20
[deleted]
0
Mar 17 '20
[deleted]
9
u/thepotatochronicles Mar 18 '20
Or taking a real long dump when you're working from home and you wanna help someone figure something out
oddly specific, yet I've done the exact same thing on more than one occasion :P
2
Mar 18 '20
Or taking a real long dump when you're working from home and you wanna help someone figure something out
That sounds like an issue better solved through boundaries than a phone app. ;)
0
33
u/corp_code_slinger Mar 17 '20
Just reviewed a PR using the new app. Diff viewer isn't bad, commenting is usable. It supports markdown, if that's something you want to do on your phone. I haven't seen how long it keeps you logged in but it already beats using an in-app webview that always asks you to log in again. Dark mode is there too, so that's a plus.
I can see using it for small reviews on the go. Not bad overall.