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.

programmerhumor

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

leaky_shower_thought , in blast!

no foot to shoot, no problem! 👍

ExfilBravo , in counting

LUN is life.

sheepishly , in counting
@sheepishly@kbin.social avatar

I literally did this the other day... to be fair, it was a list starting with the number zero.

sirico , in counting
@sirico@feddit.uk avatar

Haaaaaang on is that why we start on 0…

DmMacniel ,

No. We count start at zero because the array already starts with an element of a specific size. Starting at 1 would always skip that initial element.

CanadaPlus , (edited )

You could have “empty arrays” in a language if you wanted. The real reason is that you start with an offset of zero as you read an array from memory at hardware level, and so this way address is just “start address + element size * element number”.

BorgDrone ,

No, we start counting at one. We start indexing at zero.

An array with one element has an element count of 1, and that element would be at index 0.

LaggyKar ,
@LaggyKar@programming.dev avatar

This is how we end up with off-by-one errors

LazaroFilm ,
@LazaroFilm@lemmy.world avatar

Because if you convert it back to binary, you have 0x0000 and that is one extra bit you can use instead of limiting your available values.

CannotSleep420 , in The King's Toaster - redux (a tale as old as time)

This is a work of art.

apprehentice , in object.setobject(object.getobject().object).to_object()

Imagine not using a language with setters and getter built in lol

Striped , in I have an electrical engineering joke but it will probably meet resistance

Watt’s the joke?

dukk ,

The Voyager post says “0 comments”, but there’s a comment clearly visible at the bottom(of the voyager screenshot).

/s

Pilokyoma , in The Programmer Hierarchy

Binario

SubWoofer , in Compiz fusion gave me what a degree barely could
@SubWoofer@catgirl.pub avatar

This is unironically true, just that i have yet to finish college

Yuper , in I have a software engineering joke but it's probably not scalable

Darn, I didn’t see this one yet and I just made one too. At least they are different enough to stand on their own.

RuikkaaPrus , in Temporary mental block
@RuikkaaPrus@lemmy.ml avatar

I tried to write a Metadata Cleaner in Python, but I need to learn EXIF before

lemmy_nightmare , in A good book can change your life
@lemmy_nightmare@sh.itjust.works avatar

🤣🤣🤣

Presi300 , in Proof that Regex is Hate Speech!
@Presi300@lemmy.world avatar

Regex can be explained? I thought it was all just arcane runes, only understood by 60 year old unix wizards, who created it in the 1st place…

lolcatnip , in I'm going to sit down and actually learn git this week

I swear to God sometimes git just conjures merge conflicts out of nothing.

m3t00 , in I'm going to sit down and actually learn git this week
@m3t00@lemmy.world avatar

coffee

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