this post was submitted on 01 Sep 2023
338 points (96.2% liked)

Programming

17484 readers
130 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BrotherL0v3@lemmy.world 81 points 1 year ago (8 children)

Tools that use a GUI are just as good (if not better) than their CLI equivalents in most cases. There's a certain kind of dev that just gets a superiority complex about using CLI stuff.

[–] fubo@lemmy.world 70 points 1 year ago (3 children)

The big thing you can do from the command line is script it.

[–] russmatney@programming.dev 1 points 1 year ago

Indeed, the problem with gui apps is when you can’t script them!

I always loved alfred on osx, then loved scripting rofi on linux, only to come back to osx years later and find alfred can’t be invoked with stdin options. It’s damn shame….

[–] brettvitaz@programming.dev 39 points 1 year ago (2 children)

I used to think something like this when I was younger. I spent an inordinate amount of time looking for good gui versions of cli tools. I have come to understand that this is not usually the case and cli tools are more convenient much of the time. I would not classify this as superiority complex, unless I’m being a jerk about it. I don’t care what you use, I just use whatever has the lowest barrier to entry with the most standardization, which is usually the original cli tool.

That said, jetbrains git integration is awesome.

[–] fkn@lemmy.world 2 points 1 year ago

I agree only when your job function is specifically geared around those tools... Otherwise high quality guis are more valuable.

Just because I can do everything in gdb that I can do in visual studio doesn't mean 99% of most debugging tasks isn't easier and faster in visual studio. Now if my job was specifically aimed at debugging/reverse engineering there are certain things that gdb does better on the CLI... But for most software devs... CLI gdb isn't valuable.

[–] stilgar@infosec.pub 26 points 1 year ago

There are some massive intrinsic advantages of the CLI though, that apply for everyone, not just leetcoders:

  • The terminal can remember everything you ever did. Forgotten the command you wrote 2 months ago? You can do a search for it with a tool like fzfand run the exact same command again.
  • Communicating with others. GUI programs require step by step instructions, often accompanied by screenshots while CLI may be copy/pasted.
  • Combining programs together. There are a few different techniques for combining CLI programs to search/format output, use secrets without ever having them in the clipboard or on disk, monitor something frequently/constantly etc etc

So while I agree with you that there's plently of elitism around the CLI, you do yourself a disservice if you try to avoid it.

[–] bouh@lemmy.world 10 points 1 year ago

Just no. CLI can be automated, which makes it superior. It's not a superiority complex, it's a fact. I'm not a minimal wage worker pushing buttons I don't understand. I'm not a technician who learnt your shitty software to do the most basic tasks.

[–] intelati@programming.dev 10 points 1 year ago (1 children)

My gold standard app is a CLI where I have the option to visually add the flags. I'm thinking of the ytdlp-gui type programs.

[–] TrustingZebra@lemmy.one 1 points 1 year ago* (last edited 1 year ago) (1 children)
[–] intelati@programming.dev 2 points 1 year ago

On windows I was using youtube-dl-wpf

That's the gold standard as far as I'm concerned. Haven't used the ytdlp-gui yet, but it's simple stupid.. I might want a few more switches (more exactly the extract audio/subtitles) to turn

[–] OsrsNeedsF2P@lemmy.ml 5 points 1 year ago

Aside from automation, CLI can support significantly more complicated apps reliably. It can also be tested more reliably.

GUIs are better for anything simple, and good UX designers can make a moderately complex one, but anything like server administration/git/configs are 100x better on CLI

[–] NocturnalMorning@lemmy.world 3 points 1 year ago

I don't know, a tool we use at my work has a git GUI integrated, and it breaks all the time, lol.

[–] adambard@lemmy.ca 3 points 1 year ago* (last edited 1 year ago)

This depends a lot on the GUI and the tool. Some cli tools are great alone or for scripting, others benefit from the extra attention to ux and exposure of options that a GUI can offer

For git in particular, I encourage juniors to learn and use the CLI. I find that GUI git clients often do some or all of the following:

  • Use non-git terminology that ends up being confusing. "Sync" comes to mind as a frequent offender, I can think of several incompatible things that could refer to.

  • Ignore the useful ability to stage your changes

  • Don't permit or encourage a review of the changes

  • Implement only the basics and make remediation of branching issues difficult

In the worst case, I've seen people end up using the git GUI like a "save" button, blindly commiting and pushing the current state of their code, including to-be-removed print statements and other cruft. Yeah, git cli is a bit complex compared to that, but you gain a lot for that added complexity.

That said, I've definitely jumped into a git GUI from time to time just for a visualization of whenever branching snafu I'm trying to untangle. None of the above invalidates GUIs if you take care to still understand the underlying tool properly!