programmer_humor

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

Buttons, in every damn time ...
@Buttons@programming.dev avatar

To avoid running code that might steal your data for profit, only run official code that will still your data for profit.

noctisatrae, in The Perfect Solution

Why are you leaking your API key?

nick,

*OUR api key

noctisatrae,

“Thanks mate, now I can just use it too”

JPDev,

Keys disabled

shotgun_crab, (edited ) in TypeScript is Quantum Ready

Schrödinger’s boolean

mrkite,
@mrkite@programming.dev avatar

Known to cause heisenbugs. They’re bugs that disappear when you try to measure them with a debugger or a printf.

jaybone,

So regular bugs then.

CrypticCoffee, (edited ) in This is what being a Redditor does to your life

Become a professional, then you’ll commit every time you make a small bit of functionality. If you’re doing massive changes like this, you haven’t broken something after multiple days of code enough. When you do that and you have no idea what you broke it with and when, it conditions you towards small iterable chunks.

Awkwardparticle,

I learned this the hard way, I forgot to commit for a single day and got burned really bad when my regression tests failed and I could not trace the issue(it is called source control for a reason). I declared it was more efficient to revert back to the last commit than spend time fixing broken code that I had no fucking clue where it was and the only thing I had to go by was that it happened between two commits with a whole work day between.

wulrus,

I work a lot with the local history of the IDE, where I can also set labels to a current state. In addition, it creates its own labels like last time all tests were green etc.

Still, in one of my last project that really lived TDD, they made a good point that I should just push as often as I label, since that also triggers all sorts of other tests which I usually don’t run locally, or not as often.

I had “rearrange code” checked once for a commit, and fortunately, it had automatically saved the exact state before that.

narc0tic_bird,

This. Instead of making commits time-based (for example once per hour or once per day), make them purpose-based (say, add a database migration in one commit, and change the color of a button in another one). This also makes it easy to cherry-pick or otherwise backport specific changes to different program versions gor example.

guy, in It's that time of the year again!
@guy@lemmy.world avatar

Guess that settles the debate, we got to pronounce it “sequel” then to optimally match syllables

pythonoob,

Sequel to what?

db2,

Squirrel works too though.

Doug,

Yes but he serves a different community

jadero,
squiblet,
@squiblet@kbin.social avatar

The Australian pronunciation works… “squi-rell”. Common American one is somehow just one syllable, “Skwurl”

jaybone,

How do you pronounce Smurf?

squiblet,
@squiblet@kbin.social avatar

I'm not Australian.

RiikkaTheIcePrincess,
@RiikkaTheIcePrincess@pawb.social avatar

Uuugghhh noooo! Ess Kyoo Ell!! ESS KYOO ELL!!! brandishes flaming pitchfork!

_danny,

The only people I know who actually call it ess queue ell are either too new to know the “sequel” pronunciation, or the type of person you generally smell before you see.

relevants,

Here in Germany everyone I know pronounces the letters individually – as German letters that is, which means the Q is pronounced “coo” rather than “cue”. I don’t mind it, it’s not quite as clunky as in English.

I do say sequel when speaking English though.

mctoasterson,

Do you get irritated when Americans refer to the famous Austrian bullpup rifle as the Steyr “Ogg”?

SpeakinTelnet,

I say ess cue ell for the sake of uniformity because it’s not Mysequel nor Postgresequel and the language changed from Sequel to the acronym SQL in the 70s so not really in the “too new” ballpark anymore.

_danny,

I think those make sense as deviations. I’ve heard “my sequel” but you’re absolutely right about postgresql.

The name is kinda irrelevant like hard vs soft g in gif. People know what you mean when you say either.

But in that same vein, the creator of the “graphics interchange format” says the pronunciation is soft g, but basically everyone says hard g… So “official” pronunciation is kinda irrelevant.

I don’t judge anyone who uses whichever term they want, but I’ve just noticed the general trend in my smallish interaction bubble.

hakunawazo, (edited )

Don’t start the gif war again.

cm0002,

I’m neither, I refuse to pronounce acronyms if it doesn’t make sense to do so.

Same thing with ‘gooey’ for GUI, except I hate that even more because that straight up elicits feelings of disgust, I don’t want anything gooey anywhere near any electronics

_danny,

I’ve literally never heard GUI said as “gee ewe eye” before.

You could just say UI, avoids the gooey phobia and sounds less weird than g u i.

threelonmusketeers,
victorz, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Honestly not the right format for that meme template lol. The monkey should represent one person doing both looks.

conditional_soup, in “It’s not that hard”

Quick, somebody teach this man JavaScript.

hemmes, (edited )
@hemmes@lemmy.world avatar

Actually on second thought, let’s just give him a marble notebook and crayons and tell him that’s JavaScript.

Kata1yst,
@Kata1yst@kbin.social avatar

A notebook and crayons? I think you'd just get back stick figure-esque drawings of cybertrucks with notes like "bulletproof" and "anti-gas attack".

Just like the poor Tesla design team.

jubilationtcornpone, in isEven API

Only way it could be better is if they threw “AI” in there somewhere.

jol,

With the new AI integration, you can get smart isEven results that return the correct answer 90% of the time and a more creative solution 20% of the time.

comrade_pibb, in Programmer tries to explain binary search to the police
@comrade_pibb@hexbear.net avatar

acab

kirby,

all cops aren’t binary-searching

cybersandwich, in I'll just be a quick 3h

How many widgets have we transferred to acme this year?

Simple enough question right?

But then when you look at the data, each region works with acme’s local offices differently. Some transfer using one method, some offices mark the transfer in the system as “other firm”. Oh, and we don’t even get a data feed from the north west region because they still haven’t upgraded their shit so I can request a spreadsheet but it’s in a different format than everything else.

Then inevitably Acme has a different number of widgets that have been transfered. Because if a transfer gets kicked back or cancelled, it’s easier to just create a new transfer rather than go fix an old one because that process is laborious and requires tons of approvals so they just create a new transfer and send it over.

But yea, 20 minutes should be enough time to get you that before your meeting with Acme.

Stoney_Logica1, in Fitbit Clock Face

Hopefully that’s not a resting heart rate.

NightAuthor,

They’re just excited about posting this image online.

bane_killgrind,

If this is a photo for a bug report, it might have made his week.

xenoclast,

I’m sure it isn’t… but you’d be surprised how much resting hr goes up with age.

cyborganism, in My coding skill V/S My GitHub Repositories

As a side note, I find it incredible how much programmers have such little knowledge of how to use Git properly.

Even the most amazing developers I’ve worked with found themselves completely unable to manage their repos properly.

Cold_Brew_Enema,

I use Git all the time and still have no idea how to use it

xmunk, in ifn't

Still not as good as whence

fartsparkles,

Is this a reference to something because I’d love to read it if you have a time to share.

xx3rawr,

Woah. I did a quick google and it’s not just a meme, but actually used in some major lang’s libraries.

jjjalljs,

This is one of those “modern Google/search sucks” moments because I couldn’t immediately find examples of it in a programming language.

xx3rawr,

I actually used DDG and most I’ve seen, they’re just used as arguments for functions notably in C and Python

LeFrog, (edited )
@LeFrog@discuss.tchncs.de avatar

It is used in ksh korn shell to see what executable responds to a command:

superuser.com/a/351995

Edit: Oh, what a rabbit hole: Why not use “which”? What to use then?

SubArcticTundra, (edited )
@SubArcticTundra@lemmy.ml avatar

Legislation (which feels similar to programming languages sometimes) seems to have some keywords of its own. I remember seeing a lot of Whereas … and Having regard to ….

HubertManne, in Programmer tries to explain binary search to the police
@HubertManne@kbin.social avatar

that dawn of humanity is only going to work if the rewind/fast forward is instantaneous.

kryptonianCodeMonkey, (edited )

Also, if I rewind to the Neolithic and I see a bunch of cavemen, sabertooth tigers and a Schwinn chained to a bike rack, I’m not going to just fast forward from there. I have other questions.

MagicShel,

I mean… You’re not gonna outrun that sabertooth on foot.

open_world, in every damn time ...
@open_world@lemmy.world avatar

I feel like this popup shows up too often

technojamin,

If you have a common folder that you clone projects to (like OP’s ~/coding), then that checkbox lets you trust that whole folder easily when this pop up comes up.

Tsubodai,

I have a coding folder “repos”. It’s on a remote machine though and I get this every time I connect to my code folder using a new remote host. So annoying!

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