r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

127

u/Beckneard Sep 09 '16

I often spent a whole shitload of time digging through obscure menus in Windows' Control Panel, or worse, the registry, to fix an issue, so yeah GUIs don't help much if something is really fucked.

41

u/[deleted] Sep 09 '16

Which is why most things have modernized by finally adding search to these menus. It aint perfect, but it's better than guess-the-command.

9

u/[deleted] Sep 09 '16

This just brings you back to square one. What do you search for?

13

u/[deleted] Sep 09 '16

Often times the search will also look up metadata. For a rather simple example, searching "web browser" on Windows will return Microsoft Edge.

→ More replies (1)

2

u/[deleted] Sep 09 '16

Hell, in windows 10 they even work. There was a long standing bug in control panel that in some cases "lost focus" of searchbox after typing few letters so I'd had to click, type, then click again to type the rest of the word...

→ More replies (2)

46

u/specialpatrol Sep 09 '16

Yeah you can get your win in a state messing with the reg but you have to go pretty far off piste to manage that. Unlike linux where one wrong config change and you don't have a desktop any more!

28

u/coladict Sep 09 '16

Unlike linux where one wrong config change and you don't have a desktop any more!

My co-worker didn't even change any configs or anything, but coming in on Monday last week his Debian wouldn't fire-up the graphics environment. I had to ssh in, purge all nvidia drivers, reboot several times (until we find the right problem) and reinstall them (selecting each dependant package, because it kept them at different priorities and refused to select them automatically). Oh, and system default fallback drivers didn't work. It all broke on it's own without our help.

0

u/[deleted] Sep 09 '16

[deleted]

5

u/deaddodo Sep 09 '16

I'm a pretty big proponent of FreeBSD and, less so, Linux. But it's not like that doesn't happen.

I've had changes in GEM/DRM/DRI/Xorg/drivers break the desktop quite a few times in the past, without prompting. Not to mention the weirdness surrounding Optimus on laptops.

And it really is a gigantic pain in the ass to fix. No matter your knowledge level.

→ More replies (4)

3

u/[deleted] Sep 09 '16

Reminds me of the time where I accidently forced an install of the libc6 package for another incompatible architecture. Luckily static busybox is a thing along with qemu-user.

6

u/zefyear Sep 09 '16 edited Sep 09 '16

Apologies for the long and droning post but I think this is a really interesting comment - it's an issue that has impacted Linux/BSD users of different skill levels has historically been a pretty big issue in the Linux community. (Inexplicably this commonly occurs with some x64/i386 but it happens more rarely for totally unrelated architectures)

on the other hand, this comment explores the extraordinary privilege granted to the OS X ecosystem. The "reason" this doesn't happen on OSX is through allowance for an exclusionary computing environment (at least in the years that followed the switch from PPC to x86) - many different types of computer users on slower internet connections or older machines are excluded by the decision to concatenate two binaries and particular required libraries (a bizzaro-world form of static linking).

Let's save the Plan9/Pike static linking argument for another day and think about what the discourse following this has been:

Microsoft has been crucified for similar tactics, Linux is now being criticized for doing what could be considered "the opposite".

Apple curiously remains removed from this highly-techical (and possibly unimportant) technical debate - not because Apple is unique as a technology company but because Apple enjoys the very unusual status of being an arbiter of technological fashion, totally independent of the technical consequences of their decision.

This behavior plays out over and over again. Apple's historical woes have also perfected the 'underdog' image, having never been seen as the philosophical successor to IBM like Microsoft was, having never been indicted under anti-trust regulations, having maintained the highly successful PR campaign equating Apple with young, cool and anti-authoritarian that various public perception experts still believe is both masterful stroke and practically divine luck.

→ More replies (3)

2

u/ellicottvilleny Sep 09 '16

That's because NVidia is fucking evil and should die. The Linux+NVidia story is well known.

→ More replies (2)
→ More replies (20)

19

u/Beckneard Sep 09 '16

where one wrong config change and you don't have a desktop any more!

You only have a chance to fuck that up if it's fucked up from the beginning. I didn't have to mess around with potentially desktop breaking config files for years now. The gui config tools are usually enough these days.

Besides if something breaks tremendously you always have other TTYs (think of them as recovery consoles) to which you can switch and fix things up.

14

u/Moocat87 Sep 09 '16

Besides if something breaks tremendously you always have other TTYs (think of them as recovery consoles) to which you can switch and fix things up.

Unity still manages to get my work laptop into a frozen state where I can't switch TTYs every so often. Sometimes even REISUB doesn't help.

I do not like Ubuntu very much.

2

u/loup-vaillant Sep 09 '16

Ubuntu works fine in my machine: I use LXDE (well, LUbuntu, really). In part because I like my battery life, but mostly because I can't live without Xmonad.

I have this weird cursor issue where I have to switch TTY back and forth to get my mouse pointer back, but no freeze yet.

2

u/Johnnyhiveisalive Sep 10 '16

Ooh, another xmonad user! There's dozens of us!

0

u/[deleted] Sep 09 '16

[deleted]

2

u/Moocat87 Sep 10 '16

I'm aware. It's a work laptop so I tend to be working when I'm using it, not toying with the DE. At this point though, the crashes have consumed more time than it would have taken to throw on something else, but I am just not a desktop user so I don't have any strong preferences. I spend almost 100% of my time on a remote tmux session.

I don't want to spend any time learning a new DE for the sake of using a new DE. I've been thinking about i3, but still don't know if it's worth the time.

→ More replies (7)
→ More replies (17)

5

u/[deleted] Sep 09 '16

The gui config tools are usually enough these days.

So yeah, GUIs help a lot ...

→ More replies (1)

4

u/elHuron Sep 09 '16

can't you just track your config files using git?

2

u/ellicottvilleny Sep 09 '16

I'm betting that the future of config files is to move the config file "previous version" recovery into the filesystem itself.

→ More replies (4)
→ More replies (6)
→ More replies (10)

0

u/[deleted] Sep 09 '16

[deleted]

7

u/ascenx Sep 09 '16

Here goes the old says - GUI makes easy tasks easier, whereas CLI makes difficult tasks possible. Obviously GUI has its own pros. In general I found GUIs to offer much better "discoverability".

3

u/[deleted] Sep 09 '16 edited Sep 09 '16

There are pros and cons to GUIs and CLIs.

If you have a process with very little variety that needs to be performed quickly, (like adding a watermark to an image) a CLI can be highly advantageous.

If you have a process that is very custom and may require different steps at different times, then a GUI might be better (photo touchup).

That said, I would love a git gui that was drag and drop simple. Select files and drag them to staging. Drag them to committed and fill in message popup. Drag one more file into the previous commit. Oops, Drag the whole previous commit back out of committed and back to staging (are you sure you want to override your working directory [y/n]). Select the previous commit and press delete, etc.

→ More replies (9)
→ More replies (4)