this post was submitted on 10 Jul 2025
957 points (99.8% liked)

Programmer Humor

25009 readers
1098 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] lordbritishbusiness@lemmy.world 8 points 4 days ago (2 children)

First thing I tell my interns: "The guys that made that database are smarter than you, they got PhD's for the algorithms the database uses. You are going to use SQL properly, and query properly, because the database will always do it better than your python code."

Job interviewer: "What's the best sorting algorithm for {whatever}?"
Me: "The SORT BY clause in SQL."

[–] AldinTheMage@ttrpg.network 3 points 4 days ago

Nah, we'll just SELECT * from both tables and loop through the arrays in JavaScript to associate the records.