this post was submitted on 30 Nov 2023
2432 points (99.6% liked)

Programmer Humor

19224 readers
348 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] teft@startrek.website 385 points 9 months ago* (last edited 9 months ago) (15 children)

Yeah, pigs don't like to be corrected. Or made to look like they don't know what they're doing.

[–] Sheeple@lemmy.world 95 points 9 months ago (4 children)

Fun fact. Cops on average have lower IQ and often fail literacy tests. Furthermore it appears that critical thinking is discouraged in the job, with candidates being selected who lack critical thinking abilities over those that have them.

[–] JoMiran@lemmy.ml 50 points 9 months ago

We need to have a chat about your definition of "fun".

[–] Shiggles@sh.itjust.works 31 points 9 months ago (8 children)

Certain departments specifically have IQ tests, in order to ensure you aren’t smart enough to easily get a better job elsewhere.

[–] CmdrShepard@lemmy.one 24 points 9 months ago

I think it's more nefarious than that. Many departments want a good 'ol boys club where they're the ultimate authority and they want their officers to fall in line rather than question department actions.

load more comments (7 replies)
load more comments (2 replies)
load more comments (14 replies)
[–] xantoxis@lemmy.world 231 points 9 months ago (11 children)

This argument did not go well

You can't convince people to do their job with logic when they just don't want to do their job. After minorities, the thing cops hate most is doing their job.

[–] SPRUNT@lemmy.world 93 points 9 months ago

WRONG! After minorities, it's poor people. Then doing their job. :P

[–] HawlSera@lemm.ee 32 points 9 months ago

Come on, don't disparage our hard-working Boys in blue. Without police who's going to come to your house to take notes about the crime that you have sufficient evidence to prove, and even have a likely suspect for, and then never follow up?

load more comments (9 replies)
[–] dejected_warp_core@lemmy.world 213 points 9 months ago (3 children)

This didn't go down well.

IT consulting pro-tip: Customers would rather pay for your time and expertise, than be made to feel stupid that they didn't think of something so simple themselves.

[–] mwknight@lemmy.world 108 points 9 months ago (4 children)

After working in desktop support for a year after college, I realized that people just wanted their problem solved and to not feel frustrated. That realization made my job immensely easier because I pivoted from copying a file in 30 seconds and walking away to talking to them a little bit and letting them feel good after we were done. My ticket closing speed slowed down a little but people felt better and I consistently got positive feedback.

[–] Riven@lemmy.dbzer0.com 50 points 9 months ago (3 children)

Dude same here. I usually say stuff along the lines of 'yea it took me forever the first time to figure it out' or 'it's a common issue that a lot of people have, I'll get it sorted in a sec for you no problem'. Make it seem like they're not stupid, regardless of the truth and then fix it, keeps em happy and more willing to cooperate with you as well.

I also talk through what I'm doing and if they show interest I'll teach them so they can fix it in the future, 'ah I've seen this before, took me like a hour to figure it out on my computer, for me it was a chrome update that broke how downloaded files open. Here let me right click the file, and go to open with, we hit Adobe pdf and check the always open with this program button, that should do it let's test it out. OK seems like its good to go. Let me know if you have any more issues'. If they don't show interest then it's no problem.

load more comments (3 replies)
[–] BakedGoods@sh.itjust.works 43 points 9 months ago (1 children)

When I started in support 15 years ago my boss said: "First you solve the person, then you solve the problem".

He was a good dude.

[–] bleistift2@feddit.de 25 points 9 months ago (4 children)

What would you recommend for solving people? Does a household base like NaOH suffice?

load more comments (4 replies)
load more comments (2 replies)
load more comments (2 replies)
[–] Pazuzu@midwest.social 202 points 9 months ago* (last edited 9 months ago) (12 children)

I thought this had to be hyperbole, so I did the math myself. I'm assuming human history is 200,000 years as google says, and we want to narrow this down to the second the bike disappeared. also that the bike instantly vanished so there's no partially existing bike.

each operation divides the time left in half, so to get from 200k years (6.311×10^12 seconds) to 1 would take ~42.58 divisions, call it 43. even if we take a minute on average to seek and decide whether the bike is there or not it would still be less than an hour of manual sorting

hell, at 60fps it would only take another 6 divisions to narrow it down to a single frame, still under an hour

edit: to use the entire hour we'd need a couple more universes worth of video time to sort through, 36.5 billion years worth to be exact. or a measly 609 million years if we need to find that single frame at 60fps

[–] rckclmbr@lemm.ee 53 points 9 months ago

I regularly bisect commits in the range of 200k (on the low end) for finding causes of bugs. It takes me minutes. Pretty crazy

[–] Moneo@lemmy.world 35 points 9 months ago

Lemmy learns exponential math.

Mostly joking, thanks for doing the math.

load more comments (10 replies)
[–] Zehzin@lemmy.world 148 points 9 months ago* (last edited 9 months ago) (2 children)

This method will take forever to find the exact moment, said Officer Zeno.

load more comments (2 replies)
[–] SameOldInternet@lemmy.world 132 points 9 months ago

This post just shows that the police rarely if ever review any video as this method would've been learned as a result of repeatedly reviewing video.

[–] charonn0@startrek.website 124 points 9 months ago (140 children)

Part of my job is to review security footage for reported incidents.

If there is a long-lasting visual cue that the event has or has not happened yet (e.g. a window is either broken or not), then a binary search is very useful.

If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

load more comments (140 replies)
[–] TheBlue22@lemmy.blahaj.zone 118 points 9 months ago (5 children)

Police try to understand anything challenge (100% impossible) (gone sexual) (gone violent)

load more comments (5 replies)
[–] frezik@midwest.social 109 points 9 months ago (4 children)

I'm a little surprised the police didn't already know about that method. Seems like they'd encounter enough CCTV footage that'd it'd be standard training.

I once again overestimate the training levels of the police.

[–] rockSlayer@lemmy.world 79 points 9 months ago (3 children)

They probably do know. They just aren't meant for protecting your personal property

[–] tiramichu@lemm.ee 66 points 9 months ago* (last edited 9 months ago) (3 children)

Right.

What they really want to say is "We aren't interested in investigating your personal theft. Things get stolen all the time and we really can't be bothered. You are not important to us."

But they can't say that, so they instead throw out some excuse that puts the onus back on the other person.

load more comments (3 replies)
load more comments (2 replies)
load more comments (3 replies)
[–] Localhorst86@feddit.de 74 points 9 months ago (1 children)

"Exactly my point. We will not be investing an hour looking at the footage to pinpoint the time of theft, now get out!"

load more comments (1 replies)
[–] Mubelotix@jlai.lu 56 points 9 months ago (4 children)

It would have taken 5 minutes at most

load more comments (4 replies)
[–] rekabis@lemmy.ca 54 points 9 months ago* (last edited 9 months ago)

“This argument didn’t go down well.”

🤣🤣🤣 LMAO

What an awesome punchline, should have been on its own line for more impact.

[–] Alph4d0g@discuss.tchncs.de 52 points 9 months ago (3 children)

I'm sure it didn't go well. If it was somehow framed in a sycophantic way where the police were led to believe it was their idea, I'm sure it would have gone better. Wait that might not be too difficult to do.

load more comments (3 replies)
[–] lemming741@lemmy.world 46 points 9 months ago (1 children)
load more comments (1 replies)
[–] Kalkaline@leminal.space 46 points 9 months ago* (last edited 9 months ago) (6 children)

God damn, whoever came up with that is clever. I would have never come up with that on my own.

[–] acceptable_pumpkin@lemmy.world 55 points 9 months ago* (last edited 9 months ago) (8 children)

Some security camera systems have this built in. They show snapshots of various times where you choose the total period, say 24 hours. Then you glance through the snapshots that are all displayed at once on the screen and click on the last one where your bike was still there. That will then “zoom in” the timeline and show another set of snapshots, though this time within a smaller total time window. Keep clicking on the last panel with the bike, and it will soon show you the clip of the bike being stolen.

Really helpful to find out when something changed.

load more comments (8 replies)
[–] jmcs@discuss.tchncs.de 37 points 9 months ago

What if you had to guess a number between 0 and 100 and the other person (or an application) only told you if the number is bigger or smaller? That's the form that's usually presented to CS students and most people end up figuring it out on their own. Then the trick is knowing how to generalize it.

[–] fsxylo@sh.itjust.works 37 points 9 months ago

waves magic wand computer science!

load more comments (3 replies)
[–] HawlSera@lemm.ee 45 points 9 months ago (4 children)

Jesus fucking Christ, I know police are dumb, in fact if your IQ is too high you can actually be legally barred from employment as a police officer in the United States of america. Look it up. But fuck incompetence of these Jokers continue to tickle my asshole in a negative way

load more comments (4 replies)
[–] iAvicenna@lemmy.world 44 points 9 months ago

Oh yea this is how I managed to convince our building management company to identify bicycle thieves in our communal garage.

[–] T1000@lemm.ee 43 points 9 months ago (5 children)

Sounds about right. Cops have low iqs

load more comments (5 replies)
[–] groucho@lemmy.sdf.org 43 points 9 months ago (2 children)

The final project in my instrumentation class was to tune a PID controller for a hot/cold mixing valve. I (CS/ENG) was paired up with an engineering student and a lot of it was throwing parameters in, seeing if weird shit happened, and then turning down or up based on the result. I had a programming final and something else I was supposed to be studying for, so I just started doing a binary search with the knobs. We got the thing tuned relatively fast and my partner acted like I was a wizard.

load more comments (2 replies)
[–] nullPointer@programming.dev 41 points 9 months ago (1 children)

just tell them there is a black man at the moment of theft, they will get on it lickety split!

load more comments (1 replies)
[–] CurlyMoustache@lemmy.world 36 points 9 months ago (6 children)

This is how I look for the best bits in porn

[–] cRazi_man@lemm.ee 29 points 9 months ago (1 children)

Fast forward half way and see if the woman is still there?

load more comments (1 replies)
load more comments (5 replies)
[–] lingh0e@sh.itjust.works 33 points 9 months ago (22 children)

A police officer being unable to think in such a fashion is exactly why no one could solve the see-saw riddle on Brooklyn 99.

load more comments (22 replies)
[–] Ddhuud@lemmy.world 26 points 9 months ago (1 children)
[–] ICastFist@programming.dev 34 points 9 months ago

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

[–] rgb3x3@beehaw.org 25 points 9 months ago (2 children)

I'm realizing now that this would have been super useful when I worked in Loss Prevention way back when. Wish I had known...

[–] coloredgrayscale@programming.dev 28 points 9 months ago

Even without algorithm knowledge it should be fairly obvious that you can just fast forward several minutes and check if the item has gone missing.

Not the most efficient solution, but beats watching the entire tape in real time.

load more comments (1 replies)
load more comments
view more: next ›