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
-
asgs115635yIf I write a method/function, it is for that feature or user story
If that needs to be generalized, that's for another day. I try to keep the contract simpler enough, but sometimes it is not possible to avoid refactoring later -
Thats why you use anonymous functions. If you would need it again, its easy to extract.
-
C0D4681465yIf I don't need it, I don't write it.
If I write it and need it again, I'll extract it and generalise it for reuse.
If only the devs before me did this 😞 -
Absolutely
public Task<TcpSocket> NotABackdoor
public Task<DefaultCredential> TestNotRealUserCreation
@RunOnce
public IApplicationBuilder EmulateShitSecurityWantsThatIsntPossibleAndTheyreTooDumbToScanFor -
Sometimes temptation gets the better of me, but then the compiler/IDE gives me warnings so I delete them again.
Related Rants
Who else gets tempted into writing methods they believe they will use in the future. This over engineering is getting in my way 🙀
rant
methods
engineering
coding