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
-
ScriptCoded19231352dIf I saw number suffixes in my code base I'd go to my boss and ask politely to have you fired.
-
retoor12026352d@ScriptCoded totallii
A decent idea gives you perfect autocomplete for this. The number thingy is terrible. Make it descriptive xToYByString or smth... -
Lensflare17152352dIf you run out of names the solution is not adding random numbers but come up with better names.
If the function really does the same thing but takes different parameters, overloading is perfectly fine. -
blindXfish2355351dI am so happy watching the OOP getting reasonable and parts of the overhead stuff dying off slowly
-
CodeTalker612351dFunny I come across this rant when I was lamenting the lack of function overload in TypeScript yesterday. Now I see how retarded my code looks because of using type unions as replacement I'll never wonder what its purpose is ever again
Related Rants
Wow, function overload is worst than garbage! Is more like toxic waste!
If you run out of names for functions just name them:
DoThatStuff1(int, string)
DoThatStuff2(object, int, string)
instead of:
DoThatStuff(int, string)
DoThatStuff(object, int, string)
Your coworkers and future you will thank you!
rant
overload