programmer_humor

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

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

Frequent flyer?

Hector_McG, in 4 billion if statements

I first saw this joke back in the days of 8-bit home microcomputers. Of course then it only needed 256 lines of code, and took up about 8k of your precious, precious RAM.

MonkderZweite, (edited ) in Happy New Year Coders.

Happy new year fixing family’s setup!

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

When you go to merge master into your feature branch but accidentally squash master in.

MonkderZweite, in Good luck web devs

Next is star shape.

docAvid, in Multifactor auth done right

This has some real “crimson eleven delight petrichor” vibes.

kayazere, in Implemented as requested

There’s some truth to it. I’ve seen devs not clarify something from the designs with other stakeholders due to lack of social skills. You end up with something they implemented to the spec, but makes no sense it reality.

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

Why not both!

Valmond, in cache

O(k) time to be pedantic, where k is the number of layers.

morrowind, in isEven API
@morrowind@lemmy.ml avatar

I resent that there is a ruby developer included in there. isEven is not idiomatic naming. You should be using #even? from the standard library

fckreddit,

Sorry sir, most JS developers don’t use standard library functions. We just use npm packages wherever possible.

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

The more important a job is, the less paid the work is. Conversely, the more bullshit the job is, the more pay there is.

ChiefSinner, (edited ) in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

In my experiemce, Java shoots processing usage up while COBOL uses much lesser CPU / memory

andnekon, in Programposting

At least I have a legacy

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

I do not get why it would work in that case. I assume the scenario is someone with a bike coming, doing theft, then leaving with the same bike.

Therefore there will be a period without bike, then a period with bike, then a period without bike again.

Let’s assume there is no bike on the particular moment viewed. How do you know whether it occured before or after the theft? If you make the wrong decision, you get stuck on an endless binary search… Unless you take note at each timestamp where you made the decision, draw a tree of timestamps, and go back the tree if your search is fruitless but that’s much more complicated than what this post says.

Aatube,
@Aatube@kbin.social avatar

To me it sounds like they stole the bike.

potterman28wxcv,

Thanks indeed I misunderstood the problem

SexualPolytope,
@SexualPolytope@lemmy.sdf.org avatar

You’re making this way more complicated than it actually is. The guy definitely can give estimates for when he parked the bike and when he found out that it was stolen. It’s not that complicated.

potterman28wxcv,

I misunderstood the problem. I thought the thieve came on bike to steal something. I did not get that the bike itself was what got stolen.

stevecrox, 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
@stevecrox@kbin.social avatar

Basic rule if someone claims X magically solves a problem they don't follow X and are a huge generator of the problem.

For example people who claim they don't need to write comments because they write self documenting code are the people that use variable names x1,x2,y, etc..

Similarly anyone you meet claiming Test Driven Development means they have better tests will write code with appalling code coverage and epically bad tests.

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