programmer_humor

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

Mastershelf, in The Perfect Solution

TIL Python dictionaries allow trailing commas.

GBU_28,

List

dalegribble,

While there are not actually any trailing commas in the dictionaries present and you are correct to say the ones present are part of a list, you can also have trailing commas in Python dictionaries. OP might have researched “Python trailing commas” and learned that part.

Trailing commas are fantastic to reduce changed lines in git diffs. Makes life much better. Same thing with leading commas in SQL queries.

GBU_28,

Yeh

Ephera,

Yeah, I think, that’s only really JSON which is so pedantic about it…

owenfromcanada,
@owenfromcanada@lemmy.world avatar

Yeah…

sweats nervously in C

sovietknuckles, in Bug Thread
@sovietknuckles@hexbear.net avatar

Edit: Nvm, figured it out

keepcarrot,

Haha my first thought

some_guy, in Fitbit Clock Face

You’ve got the hour hand and the minute hand… they’re right there. What’s wrong? /s

cupcakezealot, in Guys! Should I accept the offer? 😂
@cupcakezealot@lemmy.blahaj.zone avatar

seems legit tbh

backhdlp, in what the hell is happening in ultramarine linux
@backhdlp@lemmy.blahaj.zone avatar

The person in this screenshot ended a podcast they were on with the word Nya.

MinekPo1, in “It’s not that hard”
@MinekPo1@lemmygrad.ml avatar

Not that it will matter in the AI future

that statement makes so little sense I feel like Mount stupid does not give it justice .

lurch, in When you forget to set a boundary conditions in your logic

Did you live on a very fast spaceship maybe?

… or did you travel back to the start of 2023 multiple times, trying to fix the world? It would explain a lot of things.

ExperimentalGuy, in When rubber duck debugging just doesn't cut it.

So rude for not dropping the link for that duck in the post tsk tsk tsk

snowe, in What you are according to you fav language
@snowe@programming.dev avatar

I genuinely looked for my favorite language before reading the text 😂

mlg, in no.. just no
@mlg@lemmy.world avatar

“HTTP and the Web is a totally reliable and easy to use internet protocol”

Thcdenton, in no.. just no
tiny_electron, in The Holy Trinity of JavaScript

This never gets old lmao

CJOtheReal, in We're not the same! (period)

I don’t open it because there is more comment than code…

autokludge, (edited )
@autokludge@programming.dev avatar

\README.md

CJOtheReal,

Nah fuck that, thats bloat.

QuazarOmega,

Ah, another professional documentation writer, greetings!

cupcakezealot, in GitHub Desktop or Git CLI?
@cupcakezealot@lemmy.blahaj.zone avatar
Aatube,
@Aatube@kbin.social avatar

Any windows screenshots?

(Fork is also an awful name in terms of searching for it btw)

cupcakezealot,
@cupcakezealot@lemmy.blahaj.zone avatar
caseyweederman,

You have my attention

Do they have a Linux client though?

cupcakezealot,
@cupcakezealot@lemmy.blahaj.zone avatar

sadly no and i don’t think it works through wine

but technically they have a mac client which is basically an expensive version of linux

Aatube,
@Aatube@kbin.social avatar

Not really. It’s BSD, and even then the layout of the OS is quite far from BSD. Besides that you have a lot more technical stuff. Just use wine.

eluvatar,

Been using it for years it’s great

Pacmanlives, (edited ) 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.

zcoyle,

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

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

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?

sloppy_diffuser,
adrian783,

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

Valmond, (edited )

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?

MajorHavoc,

Not with that attitude! /s

jelloeater85,
@jelloeater85@lemmy.world avatar

Force push Fridays!

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.

MajorHavoc,

You forgot this –force flag.

Valmond,

I’m too lazy, I use -f

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #