Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Congrats, go take a vacation, you deserve it root :D
(too bad can't tell you sudo goOnVacation , you are already root :3) -
@Root based on that last comment I'm assuming you like anime, so I'll just leave this here:
https://youtube.com/playlist/...
I hope it helps get your head out of that mess. -
Root826006y@djsumdog
THE TEST SUITE HASN'T BEEN TOUCHED IN FREAKING YEARS
IT'S SO DATED IT DOESN'T EVEN WORK ANYMORE FFS!
agakfshsjdlfhddhf 😠-
Rip. All I’m saying. The big question now is how many other beauties like this are in the codebase?
-
bezorp3746y@DuckDuckWent that's always the most damaging part of these bugs - they undermine your faith in the entire system.
Congrats on 420, btw -
@Root caps look indeed.
Well, silver lining, it's fixed now.
Quick question, how does conditional overload work?
if(..) { base.method() } ? -
Root826006y@Commodore
Paraphrased and anonymized; the actual method was worse before I refactored it!
def column_name
if [1,4,8,12].include?(third_column_name) && other_column_name.present?
return other_method(other_column_name, {options})
end
super
end
Related Rants
FINALLY
GODDAMNED
FIXED
I'VE SPENT OVER A GODDAMN WEEK SWIMMING THROUGH DEMON EXCREMENT WITH A MAGNIFYING GLASS TRYING TO FIND THE SOURCE OF THIS SHIT.
I FINALLY FOUND IT. IN A FUCKING. CONDITIONAL. OVERLOAD. OF A MODEL GETTER.
THAT ABSOLUTE NONSENSE RETURNS EITHER THE REQUESTED COLUMN FROM THE DATABASE, OR AN ENTIRELY FUCKING DIFFERENT COLUMN, ALL DEPENDING ON THE VALUE OF A THIRD FUCKING COLUMN.
HKJSDFASKFJ
TO MAKE MATTERS WORSE.
THE VALUE IT RETURNS. IS COMPLETELY WRONG. FOR ALMOST. EVERY. FUCKING. CASE.
BECAUSE THAT FIRST COLUMN? IT NEVER GETS UPDATED. EVER.
AND THIS DEALS WITH ACCOUNTING AND REAL GODDAMN MONEY.
AARRGHHHHH
WHAT THE HELL WERE YOU THINKING?!
rant
api guy
really fucking angry
capslock