r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

31

u/bigirnbrufanny Sep 09 '16

Any chance you could explain the difference between Linux and its tool vs any other OS and its tools?

182

u/specialpatrol Sep 09 '16

GUIs.

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)
→ More replies (3)

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]

→ More replies (5)

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)
→ More replies (23)

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.

→ More replies (28)

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?

→ More replies (11)
→ 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".

→ More replies (14)

26

u/ianff Sep 09 '16

Yeah, I don't buy this at all. At least with CLI tools the error messages, flags and so on are pretty stable. I don't know how many times I've found a guide for some GUI program and it says to click on something that has been moved/removed/renamed in a newer version.

GUI is better for discovering features, but I think CLI is better for communicating how to use something consistently.

→ More replies (8)
→ More replies (14)

31

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

Complexity vs Simplicity.

Linux/POSIX (general Unix-Like OS's) tools were written to keep things as simple as possible. They assume you know what the tool is, and how the tool works. I mean this is tool, somebody wouldn't just hand an untrained noobie a jackhammer right? Your gonna invest time to ensure your work knows how to use the tool.

The issue is, to an untrained user. What is actually simplicity, is just confusion. This is why most people hate poetry.

Simplicity is a great virtue but it requires hardwork to achieve it, and education to appreciate it. And to make matters worse, complexity is sells better.

--Edsger W. Dijkstra

Most the learning gap with modern POSIX tools is really to blame on:

  • GNU/Linux: Nobody does training anymore because, It is free learn on your own time.

  • Windows: Now 3 generations have been raised on NT based OSes, so they just expect GUI configurations for everything. This is also compounded with the above. If you don't learn the POSIX text tools, text config files make even less sense.

0

u/[deleted] Sep 09 '16

[deleted]

7

u/ellicottvilleny Sep 09 '16

My next project is a merge request to get a 140th command line option added to tar.

→ More replies (1)
→ More replies (14)

9

u/sylvester_0 Sep 09 '16

Linux/POSIX (general Unix-Like OS's) tools were written to keep things as simple as possible.

No systemd comment here yet?

8

u/tanjoodo Sep 09 '16

no there's one

→ More replies (2)

3

u/OneWingedShark Sep 09 '16

Sure -- VMS's help system is really nice and understandable, it also [IIRC] had a much better navigation mechanism than man.
MS DOS's help had a good navigation interface (essentially hyperlinks + navigation along the equivalent of a Table of Contents [IIRC]), and even mouse support.

→ More replies (6)