programming.dev

backhdlp, to programmer_humor in The classic font size exploit
@backhdlp@lemmy.blahaj.zone avatar

Everything looks like hacker with syntax highlighting

xmunk,

Just so long as it’s in dark mode. Light backgrounds burn my eyes after spending so much time in my mom’s basement subsisting only on hotpockets and grits straight off Natalie Portman.

Sanchokan, (edited ) to programmer_humor in The Holy Trinity of JavaScript

A few years back I came to the conclusion that the holy trinity in Christianity are three levels of abstraction: the son => God walks on earth and tangible, the father => God in heaven untangible but still reachable by speech, holy spirit => God in who knows where.

Then I thought that as a way of imparting the thought that any level of abstraction of the universe would also be inhabitated by God, those which we can sense, and those where our senses can't reach. The idea that omniprescense is not only limited to our dimension.

I'm not sure if that is the original meaning but is a way of seeing it that I can relate to, since I've always been akeen to a more abstract idea of God, and not so much to a figure that praises itself of thought, which is a human attribute.

yannic,
CanadaPlus,

As far as I can tell, the doctrine of the trinity served political rather than logical purposes back when it was put in writing in late antiquity, and since then it’s just been the doctrine. If you want to believe, you just have to believe and not think about it too hard, like the video says.

kamen, to programmer_humor in The Holy Trinity of JavaScript

Lots of silliness indeed, yet I can’t remember the last time I had to use a non-strict comparison.

CanadaPlus,

Yes, it’s been established that you can still use JavaScript, and it will only backfire sometimes, even though it’s a bad language. And yet, people try to use it where it’s not even required.

guy, to programmer_humor in The Holy Trinity of JavaScript
@guy@lemmy.world avatar

== is a heathen with no rightful place except equality to null. All praise ===

cmdrkeen,

That’s what I used to think but it turns out to be the most Christian operator there is.

match,
@match@pawb.social avatar

Eval works in mysterious ways

ADTJ,

I Object to your terrible pun

xav, to programmer_humor in GoOn

I’ll start.

0.0.0.1: Sophie

Your turn.

starman2112,
@starman2112@sh.itjust.works avatar

0.0.0.2 is Bob

zqwzzle, (edited ) to programmer_humor in The Holy Trinity of JavaScript

=== is just == with extra steps

kamenlady,
@kamenlady@lemmy.world avatar

It’s to be REALLY sure

thanks_shakey_snake,

It’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.

backhdlp, (edited ) to programmer_humor 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

muix, (edited )

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

>:-D

Valmond,

push origin head

^^

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, (edited )
@rikudou@lemmings.world avatar

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.

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.

backhdlp, to programmer_humor in We're not the same! (period)
@backhdlp@lemmy.blahaj.zone avatar

I don’t open source my code bc I don’t understand git

xigoi,
@xigoi@lemmy.sdf.org avatar

You can open source your code just by uploading it on some kind of cloud storage and setting it as publicly available.

frezik,

There’s a guy out there who made a reversible NES emulator, meaning it can run games backwards and come to the correct state. He made a brilliant post on Reddit /r/programming linking his ideas for the emulator to quantum mechanics.

Then he was asked why he didn’t distribute his program in git. He said that he didn’t know git.

To me, that’s a pretty good example of the difference between computer science and software engineering.

jack,

It’s perfectly fine to just make a zip available

gratux,
@gratux@lemmy.blahaj.zone avatar

it’s just linked lists of commits (except when merging)

xx3rawr, (edited )

I don’t understand linked lists

QuazarOmega,

In internet terms: It’s just a soyjak holding a box with data who is pointing at another soyjak holding a box with data who is pointing at another {insert N-3 of the same soyjaks} soyjak with a box with data without an arm to point with

ibk,
@ibk@lemmy.world avatar

I don’t understand what a soyjak is.

QuazarOmega, (edited )

soyjaks pointing linked list

Kourtesy of Krita

sheepishly,
@sheepishly@kbin.social avatar

I still don't understand Git but I like this image

gratux,
@gratux@lemmy.blahaj.zone avatar

each commit points to the one before. additionally a commit stores which lines in which files changed compared to the previous commit. a branch points to a particular commit.

Denvil,

It’s just a thingie

philm,

Almost… To be precise it’s a Merkle DAG

HangingFruit,

We are the same

shaked_coffee,

Branchophobic

ImplyingImplications,

git good

nastyyboi,

So, you don’t “git it”?

I’ll escort myself out.

HamBrick,

Git push yourself out* to make the obvious joke

simp4ravens, to memes in I identify as karat. Please respect my pronouns

I don’t get it can you explain?

onlinepersona, to linux in Linux holds a market share of approximately 14% in India.

It’s a little puzzling to me that Linux isn’t popular in low-income countries. Why wouldn’t it be the OS of choice there? Do we need to become linux missionaries? I imagine it would be easier to convince people who can’t buy an iPhone to use FLOSS than those who can drive to an Apple Store and waddle over to get yet another one.

victron,
@victron@programming.dev avatar

Puzzling? Windows comes preinstalled or can be pirated. Also, it’s popular, Linux isn’t. No puzzle on sight.

danie10,
@danie10@lemmy.ml avatar

They know little about open source. Microsoft is exclusively in schools and government, and that is what they grow up with. They probably know more about pirating Windows, than using Linux legally. There is also a good kick-back in terms of MS license mark-ups for middle-men businesses. One would hope there is some mandatory education around different OSs as I’m sure kids would love to explore and modify software.

TurtleTourParty, to programmer_humor in GTA 5 Java Coffee shop

Bancon and bread are both 2?

survivalmachine, to programmer_humor in GTA 5 Java Coffee shop

This is great! When I play GTA, the only thing I want is HOT COFFEE.

SexUnderSocialism, to programmer_humor in GTA 5 Java Coffee shop
@SexUnderSocialism@hexbear.net avatar

GTA 5’s very own “Hot Coffee” mod.

M68040, to programmer_humor in GTA 5 Java Coffee shop
@M68040@hexbear.net avatar

The Simpsons: Hit and Run had a similar gag in one of the maps.

chillbo_baggins, to piracy in Special Ubisoft announcement

YOu wOuLDn’T oWN aN oLD LadY’s PUrSe

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