programming.dev

lseif, (edited ) to programmer_humor in GitHub Desktop or Git CLI?

using LazyGit in tmux has changed my workflow.

instead of: git add . git commit -m ‘foo’ fg

i just: g ac foo q

and it displays everything neatly

Edit: apparently greater/less than symbols dont render properly on lemmy. so imagine a few (CR)'s and (C-b)'s sprinkled in

alphabetsheep,

Are you able to fall back to normal git commands if you don’t know the shortcuts? This sounds awesome until I can’t remember the syntax to do something I don’t do everyday.

lseif,

you can run shell commands with :, and there may be a nicer way for git-specific commands which i dont know about.

each ‘pane’ (such as ‘changed/staged files’, ‘commit log’, etc) has its own keybinds, which you can see with ?

Phoenix3875, to programmer_humor in GitHub Desktop or Git CLI?

Why are they even on the same bus?

corsicanguppy, to programmer_humor in Release notes of an open source app. Someone is pretty mad at Canonical for Snap

Having worked with Unix and Linux for 29 years, some of it deep in os security, I strongly believe

  • canonical is good at hiding the fact they’re evil as hell
  • snap is a bag o shite

Cheers to this guy.

AVincentInSpace,

Canonical wants to be Microsoft so bad

Lucien, to programmer_humor in Twitter/GitHubProjects has no chill 😅
@Lucien@hexbear.net avatar

Man fuck that, if I’m in a coma work can suck my dick

Nakoichi,
@Nakoichi@hexbear.net avatar

probably having some sick ass dreams and not having to work

QuazarOmega,

…dreaming of all tests passing

erayerdin,

This is the guy who has 10 years experience on a 1 year old framework.

doctorn, (edited ) to memes in 6÷2(1+2)
@doctorn@r.nf avatar

I don’t see the problem actually.

  1. Everything between ()
  2. Exponents
  3. multiply and devision
  4. plus and minus
  5. Always work from left to right.

==========

  1. 1+2= 3
  2. No exponents
    • 6 devised by 2 (whether a fraction or not) is 3
    • 3 times 3 is 9
  3. Nothing remains
Th4tGuyII,
@Th4tGuyII@kbin.social avatar

The meme refers to the problem of handling implicit multiplication by juxtaposition.
Depending on what field you're in, implicit multiplication takes priority over explicit multiplication/division (known as strong juxtaposition) rather than what you and a lot of people would assume (known as weak juxtaposition).

With weak juxtaposition you end up 9 just as you did, but with strong juxtaposition you end up with 1 instead.

For most people and most scenarios this doesn't matter, as you'd never encounter such ambiguous equations outside of viral puzzles like this, but it is worth knowing that not all fields agree on how implicit multiplication is handled.

doctorn, (edited )
@doctorn@r.nf avatar

Humans…

Can agree over a universal charging cable, but not over simple math rules…

Th4tGuyII,
@Th4tGuyII@kbin.social avatar

Truly the dichotomy of man

pastelmind, to programmer_humor in GitHub Desktop or Git CLI?

Fork is much better than GitHub Desktop, you can use it without paying indefinitely

Abnorc, to memes in 6÷2(1+2)

Don’t forget math with fruits! imgur.com/JOuRhQ3

wischi, (edited )

Just saw the image you posted and it’s awesome :-) I’m part of the group that can’t solve it, because I don’t know the 🌭 function from the top of my head. I also found the choice of symbols interesting that 🌭 is analytical continuation of 🍔 and not the other way round 🤣

ILikeBoobies, to programmer_humor in GitHub Desktop or Git CLI?

Gitlab/Azure Repo

MangoPenguin, to programmer_humor in GitHub Desktop or Git CLI?
@MangoPenguin@lemmy.blahaj.zone avatar

I really like Sourcetree, been using that for a long time.

ohlaph,

Same here. Use it regularly at work. For personal projects, I tend to just use the IDE.

lil, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@lil@lemy.lol avatar

You should not use -m, you should write commit body!

zalgotext,

Why? My coworkers are barely literate and won’t read anything with more than 4 or 5 words, writing a commit body would be a waste of time.

agni, to memes in 6÷2(1+2)

.

wischi,

?

Iapar,

!

Peter_Arbeitslos,
@Peter_Arbeitslos@feddit.de avatar

,

Opitech,

beefsquatch, to programmer_humor in GitHub Desktop or Git CLI?
@beefsquatch@programming.dev avatar

Sublime Merge, for most items in the UI it tells you the git command it will use

Shinji_Ikari, to programmer_humor in GitHub Desktop or Git CLI?
@Shinji_Ikari@hexbear.net avatar

I really never understood why one would need a GUI for git except for visualizing branches.

I feel like I’m crazy seeing so many people using clicky buttons for tracking files. I need like 4 commands for 95% of what I do and the rest you look up.

You’re already programming! Just learn the tool!

And now there’s a github CLI tool? I hate to beat a dead horse but Microsoft pushing their extended version of an open source tool/protocol is literally the second step of their mantra.

idiocracy,

knowing how to program doesn’t mean u need to do things the hard way.

heck the whole point of programming is to make things easier and faster.

popcar2,

FWIW not everyone using source control is a programmer. I’ve seen artists in game dev using GUI tools to pull new changes and push their assets.

Shinji_Ikari,
@Shinji_Ikari@hexbear.net avatar

That’s fair, there’s plenty of uses for source control.

I was speaking from a programming context though, as this is a programming community.

hubobes,

Maybe not a GUI but using a TUI (lazygit) I am certain that I can do everything faster than you could ever do using the CLI. Tbf if a GUI Tool had the same shortcuts it would also be faster.

sloppy_diffuser,

I use LazyGit on the CLI for a “GUI-like” experience. I find it helps me make smaller more meaningful commits. If I’m working on a feature that enhances or fixes other modules in my repo to support, its trivial when done to make multiple clean commits out of the one feature that isolates the changes in functionality to individual commits instead of one medium commit.

On a large enough repo (e.g., monorepo), its a pain to do using git commands.

coloredgrayscale,

Checking the diff before commit, solve merge conflicts

Also if it’s well integrated into the IDE it feels less like using a separate tool. For 95% of what I do the ide/gui feels better (fetch, pull, push, commit, checkout, merge). Usually just 2-4 clicks and no need to type the branch name (ticket number and then some)

For Reflog, reset I use the terminal.

If I had to start github desktop or another seperate gui I would use the terminal that’s integrated into the IDE.

OpenPassageways,

I primarily use GitHub CLI to interact with the GitHub API, not Git. I don’t really see it as an extension of the Git CLI, which I use much more frequently. Everything you can do with it can also be done through their REST API.

I use it for things that aren’t really git features, like:

Syncing repository admin, pull request, and branch control settings across multiple repositories

Checking the status of self-hosted actions runners

Creating pull requests, auto-approving them

Shinji_Ikari,
@Shinji_Ikari@hexbear.net avatar

Thanks for the explanation, that does sound useful.

firelizzard,
@firelizzard@programming.dev avatar

Do you use the command line for everything? Do you edit with vim, view diffs with git diff, browse the web with links or lynx?

GUIs are useful tools. I’m happy with VSCode’s git integration. It’s just what I need for basic stuff like staging files and committing. I use the CLI whenever I want to do something like rebasing because I can type that command faster than I can figure out the GUI, but it would be stupid to artificially force myself to use the CLI for everything because of some kind of principal.

Shinji_Ikari,
@Shinji_Ikari@hexbear.net avatar

Yeah I actually just prefer the command line, I’ve never had to force myself to use it. I even tried using VSC for a bit recently but i couldn’t get myself to like it. I just use nvim with some plugins in a tmux session now and its productive as hell.

Of course I don’t browse the web with the command line. For merging branches, I always merge main into the working branch first, check conflict files, and go through the file finding the diffs and resolving them. I’ve used merge tools before that were sorta nice but I had my own issues with them.

Maybe it’s the type of programming I do. I don’t do any web stuff, so file count is down. For larger code bases I keep a non editor terminal up and will grep -re for word/phrase searching, find to look for specific files, etc. I’ll occasionally use an IDE, typically eclipse based because embedded, but I don’t find myself missing the features they add.

firelizzard,
@firelizzard@programming.dev avatar

Of course I don’t browse the web with the command line.

That’s my point. Browsing the web with a command line tool is obnoxious - you use a GUI for tasks that you find easier/more pleasant to do with a GUI. The difference is where that line is. When I’m reviewing what work I’ve done and checking through my code for debugging statements and other cruft I don’t want to push, I prefer to have a nice tree view of my change set where I can click on an item, see what I’ve changed, select lines and stage them, select other lines and revert them, etc. I could do all of that with command line tools (though not that many have mouse support) but I already know how to do exactly what I want with VSC so why would I use anything else?

You’re already programming! Just learn the tool!

If someone is incapable of learning the tool, that’s an issue if they’re a developer. But your statement implies that everyone should use the CLI for everything. My point is that it’s a matter of preference. The CLI is not superior and GUIs aren’t superior. They’re both just tools and if you can get your job done quickly and efficiently, that’s all that should matter.

comrade_pibb, to programmer_humor in GitHub Desktop or Git CLI?
@comrade_pibb@hexbear.net avatar

sublime merge

space_comrade, (edited ) to programmer_humor in GitHub Desktop or Git CLI?

Gitgui is pretty great too if you need a bit of interactivity. It’s bare bones and no bullshit but can still do like 90% of what all the other fancy tools can do.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #