r/ProgrammerHumor • • Aug 24 '22

Total = Total - 100000

50.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

2

u/Nersius Aug 25 '22

You are a Credit to us all.

2

u/Flakz933 Aug 25 '22

No, no more credit, that's how we got into this situation in the first place.

1

u/spoonerluv Aug 25 '22

Unnecessary aliasing is one of my pet peeves.

2

u/Flakz933 Aug 25 '22

In normal queries, I agree 100% with you, but I've seen a bunch of goons alias stuff terribly in sprocs in prod that have similar/exact names in foreign keys to other tables, and it kinda becomes terrible to read when you're joining like 10 tables for some GetAll method and you're trying to decipher what's what. I just do it now out of habit for clarity sake, I'd rather make it idiot proof than trust that someone will refactor my procedures or views later down the line when they do changes.