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
-
That's bearable. Command pattern I think?
I've seen someone cache *methods* in redis! Well THAT I could not cope with. -
vane110525y@tekashi the tears of mangling code.
I don’t have problem when you can’t do it or or it’s dumb ex add event listener but I always prefer to pass object instead of passing functions from different files just to invoke them especially without fucking arguments.
I can eat steak using my bare hands so why the fuck no one is doing it ?
Who would remember what that shitty code do a year from now ?
Where is logic of doing it except I just make it work here and now and I don’t care what will happen after that. Give me likes and let others fix my shitty code that introduced bugs that’s what I can see right now.
After bug introduced rewrite it 10 times because I don’t remember what the fuck I did yesterday.
Fuck this. -
@vane again, if you havent used any semi-functional approach, i cant really explain to you how is passing functions a good thing
-
@vane I feel so ashamed because I did this at my previous job for 2 years and since I was the only developer I got away with it.
-
vane110525y@k0pernikus you don’t for me static is a shortcut of “I don’t know where to put it but I don’t want to shit fuck code so maybe later I will place it in correct place or let someone smarter do it for me”.
-
Static is really a worst case scenario and breaks with most architecture patterns. The callback pattern might be ugly at times but at least follows basic architectural rules and gives you a hint what will be done next. If you use static fields in OOP you are most definitely do something wrong.
Method passing as argument.
Fuck you who are doing that.
FUCK YOU !!!!
Use fucking STATIC !!!!!!!!
rant