this post was submitted on 29 Nov 2023
1136 points (100.0% liked)

Programmer Humor

23230 readers
1183 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 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 77 points 1 year ago* (last edited 1 year ago) (1 children)

Dump all your data in a data lake, throw a thousand GPUs in there too, and you'll have your answer in 2 hours max.

[–] [email protected] 54 points 1 year ago (1 children)

Thanks, I'll tell the client it'll be ready in 2h.

[–] [email protected] 21 points 1 year ago (2 children)

Mr. Manager calling from a group

Hi everyone, I know we're all busy, but I just wanted to align on this 2 hr estimate. Can we put our heads together and do this faster somehow?

[–] [email protected] 26 points 1 year ago* (last edited 1 year ago)

No, but since we wasted an hour talking about it, the estimate is now 3 hours. Do you want to have more meetings about it?

[–] [email protected] 9 points 1 year ago

Two thousand GPUs

[–] [email protected] 67 points 1 year ago (1 children)

And the data they want is the entire FY, is 3,000,000 records and they need every single data attribute making the file like 250 MBs. Then you put it in their SharePoint and they get mad they can't just view it in the browser despite the giant "This file is too large to view online, download it" message.

[–] [email protected] 26 points 1 year ago (1 children)
[–] [email protected] 25 points 1 year ago

Newspaper: Hackers are announcing a trove of personal data leaked from [company] after a forwarded spreadsheet inadvertently contained more data than the sender realised.

[–] [email protected] 43 points 1 year ago (1 children)

Hey! I just started looking at SQL and this is the first SQL joke I've ever seen or at least ever gotten!

So, congratulations me!

[–] [email protected] 20 points 1 year ago (1 children)

Welcome! Please complete your setup by placing this on your wall: https://xkcd.com/327

[–] [email protected] 9 points 1 year ago

Lolz got that one too

[–] [email protected] 38 points 1 year ago (1 children)

Same feel as "how long is this going to take to pull?" Well I don't know if part of what you're asking for exists, how clean it is, and if can join the data you're talking about, so anywhere from 5 minutes to never?

[–] [email protected] 31 points 1 year ago* (last edited 1 year ago) (1 children)

Man I don't regret leaving this behind at my last job. You start out by doing someone a one-off like "sure I can pull the top 5 promotional GICs broken down by region for your blog article - I love supporting my co-workers!"

Then requests become increasingly esoteric and arcane, and insistent.

You try to build a simple FE to expose the data for them, but you can't get the time approved so you either have to do it with OT or good ol' time theft, and even then there's no replacement for just writing SQL, so you'll always be their silver bullet.

[–] [email protected] 16 points 1 year ago (2 children)

At that point you teach them how to do it themselves. Isn't there a way to give them an account that only has read access so they can't inadvertently screw up the database?

[–] [email protected] 9 points 1 year ago (1 children)

I like that idea, and it actually did work for our Marketing guy (Salesforce has a kind of SQL). Near the end there, I just had to debug a few of his harder errors, or double check a script that was going to be running on production.

Never thought of it for Postres or Mysql, etc, but I suppose there's got to be an easy enough way to get someone access

[–] [email protected] 5 points 1 year ago

phpmysqladmin 😆

load more comments (1 replies)
[–] [email protected] 27 points 1 year ago* (last edited 1 year ago) (3 children)

At work, I am currently dealing with a table that has no primary key, no foreign key, duplicate (almost) serial numbers, booleans stored as strings, and so on. It's a nightmare of a table.

Entity framework is acting like I'm on meth for using such a table.

[–] [email protected] 27 points 1 year ago (4 children)

My all-time favorite database table was a table named STATE, meant to store all US states. It had 531 rows.

[–] [email protected] 13 points 1 year ago

Relatable. 🤣

[–] [email protected] 8 points 1 year ago

well, there's confusion, paranoia, agitation and so many others...

[–] [email protected] 4 points 1 year ago

Confusion ... Your medical condition Disorganized

load more comments (1 replies)
[–] [email protected] 20 points 1 year ago (1 children)

I've been there and you know what's worse about it? When you fix it only you or a handful of people notice the astronomical labor you did.

"It worked before why did you change it? You are just doing busywork"

[–] [email protected] 11 points 1 year ago

Yeah. Luckily the work I am doing is to fix some really bad work that the entire company has been complaining about. So once it's fixed it will hopefully be a little bit more recognition than that. Plus my boss is pretty level headed.

But who fucking knows? There is always the likelihood that people will say things along those lines. And it ain't my job to fight them on that.

[–] [email protected] 10 points 1 year ago* (last edited 1 year ago) (1 children)

How about a date stored as an integer?

Edit: and I'm not taking about a timestamp

[–] [email protected] 11 points 1 year ago* (last edited 1 year ago)

No, we have worse. Dates sometimes stored as strings, sometimes as datetimes, and sometimes as integers. There is no consistency, logic, or forethought to the schema.

It's rough.

[–] [email protected] 25 points 1 year ago

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

[–] [email protected] 21 points 1 year ago

Only 3h? What kind sql magician are you?!

[–] [email protected] 14 points 1 year ago (3 children)

Somebody tell this dude about views.

[–] [email protected] 27 points 1 year ago

If they existed for tons of random usecases. When was the last time you created views for "just in case someone asks" situations?

[–] [email protected] 9 points 1 year ago (3 children)

So my work is archaic and doesn’t even use SQL. What are views?

[–] [email protected] 22 points 1 year ago* (last edited 1 year ago) (1 children)

Basically scripts you can run on the fly to pull calculated data. You can (mostly) treat them like tables themselves if you create them on the server.

So if you have repeat requests, you can save the view with maybe some broader parameters and then just SELECT * FROM [View_Schema].[My_View] WHERE [Year] = 2023 or whatever.

It can really slow things down if your views start calling other views in since they're not actually tables. If you've got a view that you find you want to be calling in a lot of other views, you can try to extract as much of it as you can that isn't updated live into a calculated table that's updated by a stored procedure. Then set the stored procedure to run at a frequency that best captures the changes (usually daily). It can make a huge difference in runtime at the cost of storage space.

load more comments (1 replies)
[–] [email protected] 18 points 1 year ago* (last edited 1 year ago)

A view is a saved query that pretends it's a table. It doesn't actually store any data. So if you need to query 10 different tables, joining them together and filtering the results specific ways, a view would just be that saved query, so instead of "SELECT * FROM (a big mess of tables)" you can do "SELECT * FROM HandyView"

[–] [email protected] 9 points 1 year ago* (last edited 1 year ago)

Predefined queries that you can interact with like another table more or less

load more comments (1 replies)
[–] [email protected] 12 points 1 year ago (1 children)
[–] [email protected] 11 points 1 year ago

I've gotta get better at this...

[–] [email protected] 12 points 1 year ago

Me this morning. I'm gonna take a look at why this Jenkins pipeline is failing. This one job starts a dozen others. Half are failing. For different reasons. After starting rewriting a job that someone half assed. Realize the original error was caused by missing input but some are still valid. Still can't figure out why my rewritten program is erroring. Get pulled away because another program did something weird... I completed nothing today but worked a ton.

My day...

[–] [email protected] 8 points 1 year ago (1 children)

Garcia From Criminal Minds: consider it done 😂

[–] [email protected] 5 points 1 year ago (1 children)
load more comments (1 replies)
[–] [email protected] 7 points 1 year ago (2 children)

See this is where Excel ... well, excels!

Pivot tables do these data pulls pretty easy

[–] [email protected] 7 points 1 year ago (1 children)

Please don't tell that to any manager. They'll misinterpret it.

load more comments (1 replies)
[–] [email protected] 5 points 1 year ago

Is it ironic?

load more comments
view more: next ›