this post was submitted on 02 Aug 2024
364 points (97.4% liked)

Programmer Humor

32495 readers
554 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] Mikina@programming.dev 65 points 3 months ago (1 children)
[–] sfxrlz@lemmy.world 10 points 3 months ago

O(unnecessary zoom meeting)

[–] ruckblack@sh.itjust.works 37 points 3 months ago (1 children)

It's not like anyone cares once you have the job anyway

[–] magic_lobster_party@kbin.run 30 points 3 months ago

Usually the most straightforward solution is good enough. And when you want to improve the performance, it’s rarely about time complexity.

[–] eager_eagle@lemmy.world 34 points 3 months ago

at job interview

"ah sure, I'll solve it in n log(n) for you with an obscure algorithm because n² is too slow for your 1000 customers, even though there's no perceived difference for n<10⁷."

[–] hperrin@lemmy.world 22 points 3 months ago* (last edited 3 months ago)

O(n!^n!^)

It works really well, until n=3, which takes a while. Don’t ask about n=4.

[–] xmunk@sh.itjust.works 21 points 3 months ago (2 children)

Acshually, in the context of O(N^2) N can be seen to constantly be equal to N and thus, as a constant, we can ignore it in our O analysis.

Yes, my bubble sort does run in O(1)

[–] 0x0@lemmy.dbzer0.com 6 points 3 months ago

Get out of my office

[–] Alienmonkey@lemm.ee 4 points 3 months ago* (last edited 3 months ago)

Bubble sort? This wizard talk shall not pass.

My god, some of us can't read past select queries and v-lookup ruins.

On a Friday no less.

We will also accept “I’ll file a ticket under the tech debt epic” (which will never get picked up unless/until it causes a prod outage/SLA violation)

[–] puchaczyk@lemmy.blahaj.zone 6 points 3 months ago
[–] chuckleslord@lemmy.world 4 points 3 months ago