Most active commenters
  • lucianbr(3)
  • lukan(3)

←back to thread

412 points conanxin | 11 comments | | HN request time: 1.848s | source | bottom
Show context
mg ◴[] No.41085093[source]
The command line is still king.

Whenever I see new coders struggle, it usually is because they:

    - Don't know the context of what they are executing

    - Don't know about the concept of input and output
On the command line, the context is obvious. You are in the context. The working dir, the environment, everything is the same for you as it is for the thing you execute via ./mything.py.

Input and output are also obvious. Input is what you type, output is what you see. Using pipes to redirect it comes naturally.

Not being natively connected to context, input and output is often at the core of problems I see even senior programmers struggle with.

replies(16): >>41085138 #>>41085178 #>>41085239 #>>41085304 #>>41085362 #>>41085446 #>>41085493 #>>41085513 #>>41085614 #>>41085677 #>>41085897 #>>41086268 #>>41086743 #>>41086819 #>>41087168 #>>41097209 #
1. dakiol ◴[] No.41085178[source]
The more experience I accumulate, the more I rely on GUIs. Explanation: when I was younger I used exclusively the CLI and underestimated GUIs. Now I tend to appreciate GUIs and use them more.
replies(3): >>41085266 #>>41085890 #>>41086069 #
2. lucianbr ◴[] No.41085266[source]
If you're experienced with the command line, it's easy to use GUIs and get good results.

If one starts with GUIs and doesn't really understand what is behind, then all kinds of trouble happen.

So I guess, as with any tool, understanding is key.

replies(1): >>41085620 #
3. lukan ◴[] No.41085620[source]
Not all GUIs are just a graphical wrapper for a CLI. But in general sure, understanding the tech behind helps.
replies(1): >>41086223 #
4. devjab ◴[] No.41085890[source]
I used to sort of like the Azure GUI (yes I’m a total psychopath), but then they changed it 9 billion times and now I just use the CLI. It’s frankly often experiences like this which drives me back to the cli. I like Gitkraken, but the it does an update and forgets my SSO or it doesn’t support a specific thing I need to do and then I’m using their console.

I’m not really religious about anything, but I often end up going back to the CLI for a lot of things because it’s just less of an annoyance.

5. the_duke ◴[] No.41086069[source]
Can you give some examples? Which GUIs are you using?
replies(1): >>41086233 #
6. lucianbr ◴[] No.41086223{3}[source]
No doubt, if you're working in AutoCAD, there's no command line that you need to understand first.

But then again, if you're working in AutoCAD, you'd never say "I used to work in CLI only, now I use GUIs more and more".

Clearly they meant GUIs that have CLIs behind, or at least CLI alternatives.

replies(1): >>41086448 #
7. dakiol ◴[] No.41086233[source]
I have used git extensively in the terminal. But nowadays I see myself more and more relying on GUIs like the ones integrated in Intellij IDE, Source Tree, etc.

Another example could be qemu and the GUIs that we have nowadays. One final example would be simply drag and dropping files via Finder instead of using cp/mv

8. kalleboo ◴[] No.41086448{4}[source]
AutoCAD is an unlucky choice of example here, because it's one of the few GUI drawing tools that actually does have a command line behind it that you have to understand sometimes! Look up a screenshot of AutoCAD and you can see the command prompt at the bottom of the window.

And if you were using AutoCAD in the 80's you can say exactly that you used to use the CLI only!

replies(1): >>41102718 #
9. lucianbr ◴[] No.41102718{5}[source]
CorelDraw? Word? Audacity?

Or maybe it will turn out that all GUI software has command line somewhere inside. I think my original point stands even better in that case.

Yay for hair-splitting, I guess.

replies(1): >>41118482 #
10. lukan ◴[] No.41118482{6}[source]
"Or maybe it will turn out that all GUI software has command line somewhere inside"

Not at all. Most maybe, but since I wrote GUIs without a CLI I can say for sure that not all have them.

replies(1): >>41124456 #
11. lukan ◴[] No.41124456{7}[source]
I mean, every web GUI, which are now probably the majority of GUIs do not have a CLI anymore..