There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

catastrophicblues , in Manager: This task only takes 30 minutes. Why did it take you the whole day?

Oh god I feel so called out. I wish I paid more attention to my commit messages but I’m usually too busy fixing the directory structure and refactoring. Sigh.

brlemworld ,

My company collapses into a single commit at merge so idgaf what the commit message is anymore. Though I would prefer not collapsing them.

DoomBot5 ,

Master should just have the feature description commits, not the hundred commits it took to get there after refactoring the code for the 3rd time and pulling changes from master since it’s taken so long to get done.

catastrophicblues ,

Yeah I worked at a place like that, but it made sense because we were also expected to keep PRs small, so a good commit message for several squashed ones was perfectly fine.

GyozaPower ,

I prefer that approach. We work with smaller tasks, so it makea more sense, plus it helps keep the master clean and if you want a more detailed view of the specific commits, you just have to click on the link to the PR. It’s a better way to organise it IMO

pkill , in GitHub Desktop or Git CLI?

gitui

cabhan , in Rust's static linter is called "Clippy" for a reason.

I wish this was exaggerated, but it isn’t at all. Every time I try to learn Haskell, I end up in some tutorial: “You know how you sometimes need to represent eigenvectors in an n-dimensional plane with isotonically theoretical pulsarfunctions? Haskell types make that easy!”

outdated_belated , in GitHub Desktop or Git CLI?

tig

Jesus_666 , in GitHub Desktop or Git CLI?

Fork.

scottyjoe9 ,

All hail the fork!

zarlin ,
@zarlin@lemmy.world avatar

Fork is great!

syd ,
@syd@lemy.lol avatar

TIL. Looking great but no Linux support 😐

Jocarnail ,

Fork is great. I just wished there was a linux version

backhdlp , (edited ) in GitHub Desktop or Git CLI?
@backhdlp@lemmy.blahaj.zone avatar

I don’t understand git anyway

fckreddit ,

Well, you learn four commands and hope for the best.

Valmond ,

fetch, reset --hard, checkout -b and cherry-pick?

:-D

xmunk ,

Nah, rebase -i, squash, fsck and reflog

Valmond ,

reflog saved my life once after a stupid misshap.

All rebase are belong to us (onto, rebase, and ofc interactive) but what’s fsck (I don’t squash personally)?

xmunk ,

Fsck is File System Check - realistically you should never need to use it.

rikudou ,

Must be an interesting work if you never add, commit or push.

Edit: How the hell did you get the repo without clone?

xmunk ,

Pshaw, real programmers write out the contents of .git by hand.

(Also, it was a joke, the last two commands I listed are ones you’ll ideally never need in your life)

overcast5348 ,

I was scared of reflog too. Had to use it for the first time recently after I accidentally’d a branch that I hadn’t pushed to remote yet. I was so glad that I could recover it all in <5 commands.

muix ,

More like clone, pull, commit, and push --force

>:-D

Valmond ,

push origin head

^^

traches ,

https://imgs.xkcd.com/comics/git_2x.png

Title text: If that doesn’t fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of ‘It’s really pretty simple, just think of branches as…’ and eventually you’ll learn the commands that will fix everything.

popcar2 ,
  • git pull
  • git add *
  • git commit -m “Some stuff”
  • git push

And occasionally when you mess up

  • git reflog
  • git reset HEAD@{n} (where n is where you wanna roll back to)

And occasionally if you mess up so hard you give up

  • git reset --hard origin/main

And there you go. You are now a master at using git. Try not to mess up.

pimeys , in GitHub Desktop or Git CLI?

Magit

akkajdh999 ,

fugitive

RePierre ,

I was looking for someone to mention Magit. It just rocks!

h_a_r_u_k_i ,
@h_a_r_u_k_i@programming.dev avatar

This + org-mode are enough for me to switch to Emacs.

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

What is AFTL? Probably not “Anterior talofibular ligament” as the internet told me

lvxferre ,
@lvxferre@lemmy.ml avatar

Android File Transfer for Linux. Here’s the release note from the OP.

suy OP ,

Thanks. I should have linked to that myself, perhaps.

roguetrick ,

What's easier to understand: ankle anatomy or Ubuntu publishing.

Teon ,
@Teon@kbin.social avatar

Ankle!

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

Good on them. Snap is a plague.

pkill ,

Why are they even still pushing that nonsense when flatpak at least somewhat gets closer to getting bwrap implemented right?

Dirk ,
@Dirk@lemmy.ml avatar

Why are they even still pushing that nonsense

It’s a for-profit corporation. They only have one goal.

hunger ,
@hunger@programming.dev avatar

To be fair: snaps can work for all kinds of things all over the stack from the kernel to individual applications, while flatpak just does applications. Canonical is building a lot around those abilities to handle lower level things, so I guess it makes sense for them.

IMHO flatpak does the applications better and more reliably and those are what I personally care for, so I personally stay away from snaps.

pkill ,

Fair point. For instance one thing that sucks about flatpaks is that you can’t torsocks them

KairuByte , in 1 follower on GitHub = 1000 followers on other platforms 😅
@KairuByte@lemmy.dbzer0.com avatar

Who follows users on GitHub? Repos, branches, issues, PRs, sure. But users?

Daxtron2 ,

I follow TodePond because they have funny repos and star weird stuff.

firelizzard ,
@firelizzard@programming.dev avatar

I have 13 followers on GitHub. A few are friends from college, the rest I have absolutely no clue why.

jasory ,

Some people (like myself and other scientists/mathematicians), write software for specific fields so if you follow them you find it out what work they are putting out, and issues they find in other software etc.

EmperorHenry , in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@EmperorHenry@discuss.tchncs.de avatar

reminds me of what youtube was doing to firefox users for awhile.

hypnotic_nerd OP ,
@hypnotic_nerd@programming.dev avatar

git commit -m “break codec sync if UA = firefox/gecko”

paul , in Manager: This task only takes 30 minutes. Why did it take you the whole day?

do git commit -v and then just summarize the diff you have in your editor in a human readable form.

KeepFlying ,

Don’t just summarize the content though, summarize the rationale or how things connect. I can read your diff myself to see what changed, I want to know the logical connections, the reason you did X and not Y, etc.

Or just say “stuff” and provide that context in the PR description separately, no need to overdo the commit log on a feature branch if you’re using squash merges from your PR.

deadbeef79000 ,

P1000x this.

I can read a diff.

I need to know why.

No, a code comment isn’t good enough, it’s out of date after the next commit.

KeepFlying ,

Code comments for "why"s that persist. Commits for why’s that are temporary.

If you need to run X before Y, add a comment. If you added X before why because it was easier, leave it in a commit

deadbeef79000 ,

If you need to run X before Y…

Add a test that asserts that.

Pacmanlives , in Manager: This task only takes 30 minutes. Why did it take you the whole day?

git commit -m “changed somethings “

git push origin master

jelloeater85 ,
@jelloeater85@lemmy.world avatar

Do you always have to do origin master? I’ve seen it where sometimes just git push works and other times not.

Meowoem ,

I think it depends what branch your local version of the repo is set to. If you’re already in master then it’ll push there, if you’re in a testing branch then you can push it straight to master instead by telling it to

jelloeater85 ,
@jelloeater85@lemmy.world avatar

I just meant it not auto creating a new matching named branch.

adrian783 ,

uh in any actual company you almost never push to origin master. so I think it’s a joke.

MajorHavoc ,

Not with that attitude! /s

jelloeater85 ,
@jelloeater85@lemmy.world avatar

Force push Fridays!

Valmond ,

Depends on the configuration right?

You can work on your branch and then push that to integration for example.

I mean you’re not working on your local master/main branch right?

herrvogel ,

In most actually companies you can try push to origin master, but it’ll likely get rejected by the repo’s security policies.

TheUncannyObserver ,

That’s part of the joke, I think. If it’s a repo more than just you use, you would almost never push directly to the main branch.

zcoyle ,

where it Just Works, the branch is set up to track a remote branch

git-scm.com/book/…/Git-Branching-Remote-Branches

MajorHavoc ,

I was being more evil than that, saying that if one is gonna push direct to main, might as well maximize the possible damage to everyone else’s branch.

jelloeater85 ,
@jelloeater85@lemmy.world avatar

Lol why not just delete the whole project from GitHub… I mean, everyone has a copy, right?😱

Valmond ,

push origin your/branch

Pushes, you guessed it, your/branch!

Head is usually your checked out working branch if you’re not in a headless state, right?

jelloeater85 ,
@jelloeater85@lemmy.world avatar

Force push main, straight to jail🤣

Yup yup, usually you’re on a branch, sometimes a tag. I mean it’s all just pointers to references at the end of the day. I tend to treat Git like a story book, some folks still act like it’s SVN.

sloppy_diffuser ,
jelloeater85 ,
@jelloeater85@lemmy.world avatar

I tired that, still was having issues, weeeird.

MajorHavoc ,

You forgot this –force flag.

Valmond ,

I’m too lazy, I use -f

baseless_discourse , in Rust's static linter is called "Clippy" for a reason.

Every monad is a monoid in the category of endofunctors, it is literally the definition of monad. But what do you expect from clippy…

umbraroze OP ,
@umbraroze@kbin.social avatar

Yeah, the thing is, "a monad is a monoid in the category of endofunctors" is kind of a meme among non-Haskell developers. Personally, I think Haskell is a very interesting language. The mathematical jargon, however, is impenetrable, and this particular expression is kind of the poster child. I'mma go look at Erlang if I want my functional language fix without making my head hurt, thank ye very much.

synae ,
@synae@lemmy.sdf.org avatar

Erlang fucks, haskell is the nerd in the corner at the party crying “they don’t know about my mathematical purity”

pkill ,

Haskell’s got better type system tho

1rre ,

OCaml has an equally good type system without being pretentious about it

skyline , in Rust's static linter is called "Clippy" for a reason.
@skyline@programming.dev avatar

There is no way.

umbraroze OP ,
@umbraroze@kbin.social avatar

It's a thing! Sadly it won't rewrite Haskell codebases for you, though.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines