programmer_humor

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

Aatube, in Someone has started answering to the github stalebot with memes
@Aatube@kbin.social avatar

They shouldn’t even be using the probot, it’s deprecated, unmaintained and thus potentially vulnerable

Deebster,
@Deebster@programming.dev avatar

Also just the whole concept is wrong and encourages “me too” spam just to keep the thing from timing out and not being fixed.

Aatube, (edited )
@Aatube@kbin.social avatar

I actually see a legitimate use case for it and helped add the actions version in a project where I'm a collaborator.

Quite a bit, certain bugs disappear after an update without us targeting it (partially because the logs get fudged a bit after going through dependencies, so sometimes multiple bugs have the same cause or it's actually a dependency issue that got fixed) and sometimes we forget about old feature requests.

The stale reminder doubles as a reminder for us to (re)consider working on the issue. When we know something probably isn't gonna get fixed suddenly, we apply a label to the issue. For enhancements that we'll definitely work on soon™, we apply help wanted. We've configured the action to ignore both. We also patrol notifications from stale to see if something shouldn't go stale. This is a medium-sized project so we can handle patrolling and IMO this helps us quite a bit.

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

Fair enough; I didn’t consider artifacts like logs and traces. I suppose a stale marker might prompt the original reporter to retest and supply fresh ones (or confirm it’s fixed in the dependency case).

In an ideal world I suppose we’d have automated tests for all bug reports but that’s obviously never going to happen!

janabuggs, in ifn't

I’m struggling to understand if this is true or ifn’t true

csm10495, in ifn't
@csm10495@sh.itjust.works avatar

Imagine the regex needed to highlight code with that extra single quote.

QuazarOmega, in This is what being a Redditor does to your life

I don’t get it

Aatube, (edited )
@Aatube@kbin.social avatar

The image is from a reddit post. You can click on the link to read it if you want.

(Weird, I remember kbin rendering it as an embed...)

QuazarOmega,

Ah, I get it now, so it’s this www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%…

That’s way too slanderous, lol

kambusha,

More specifically, what’s the connection to Reddit?

QuazarOmega,

This

The hyperlink was in the title, that’s why I couldn’t see it from my client

namelivia, (edited ) in no.. just no

When you are assigned to write database queries at work and your academical background is that online react bootcamp

ApexHunter, in It's that time of the year again!

I can’t be the only one disappointed by the lack of an order by clause after being told the list was being sorted (twice!)…

Ddhuud, in Programmer tries to explain binary search to the police

They’re paid by the hour.

ICastFist,
@ICastFist@programming.dev avatar

“Yes, chief, I’ll need 72h to manually review all 72h of footage and cannot do any other activities in the meantime.”

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

Worked on a enterprise medical database, had thousands of tables, and some of the most corrupt data possible. This triggers me :(

neurospice, in every damn time ...

Trust nobody, not even yourself

at_an_angle,

I don’t trust anybody. Hell, I don’t even trust myself. 🧛🏻‍♂️

Prunebutt, in 10 months later bill revisits his spaghetti code. forgets absolutely everything and refuses to elaborate. this wouldn't have happened if Bill forgot to comment on his code

Comments are lies that will happen sometime in the future

Comments are always overlooked if gode gets refactored. Language servers can’t/won’t parse them and they’re easy to overlook.

If you name your functions/variables clearly, put complex logic into clearly named functions and keep the same level of abstraction in every function (which never exceeds roughly 50 lines), you hardly need any comments, if any.

Comments are for behavior that’s not possible to convey clearly through code.

Archive,

If a block of code needs a comment, then you can easily move that block into a function and summarise the comment into a name for that function. If you can not easily move a block of code into a function, then you may need to rethink your design.

This isn’t always true of course, but it’s a good mindset to have.

EnderMB, in Bill is a pro grammer

Comments don’t describe the code. They describe the decision to use this business logic.

If you stick to good engineering practices, like small methods/functions, decoupling, and having testable code, you don’t often need many comments to show what your code does. I always recommend a method signature, though, because you can save a few seconds by just saying that a block of code does, rather than me needing to read exactly how you turned one dict into another dict…

MrSqueezles,

I agree for inline code comments, like, “# Save the sprocket”, right above the line that saves the sprocket. Does this include documentation? Because when I see a prepareForSave function that references 10 other functions and I just want to know, “Is this mutating and how is it preparing for save and when should I call it?”, having the author spend 15 seconds telling me is less time consuming than me spending 5 minutes reading code to find out. Anyone who has read API docs has benefited from documentation.

EnderMB,

No, commenting a function should be commonplace, if not only so that your IDE/editor can use the documentation when the signature is found elsewhere in your code.

Within a function, though, basically means that something gnarly is happening that wouldn’t be obvious, or that the function is doing more than it (probably) should.

docAvid, in TypeScript is Quantum Ready

Weird. Booleanish isn’t a built-in, I’m pretty sure. I’d like to see the definition.

Darken,
@Darken@reddthat.com avatar

<span style="color:#323232;">type Booleanish = true & false
</span>

?

madkarlsson,

This looks like javascript so let me guess the typescript definition

any|unknown

this is a joke, please chill

HiddenLayer5, (edited ) in Always
@HiddenLayer5@lemmy.ml avatar

Coding at night with the lights off makes you feel like one of the cool movie hackers.

Anticorp,

Especially if some digital imagery is projected onto your face.

oce,
@oce@jlai.lu avatar

Don’t forget the hoodie.

ripcord,

I guess yes, a hoodie could be projected on your face.

CowsLookLikeMaps,

quickly opens hackertyper.net any time mom walks by

sirico, in Rust project startup kit
@sirico@feddit.uk avatar

Let me on the Linux kernel irq I can redo the whole thing!

rem26_art, in isEven API
@rem26_art@kbin.social avatar

im glad that people are out there building the web services we truly need.

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