Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
asgs94341yIf 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.
C0D4646871yIf 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 😞
public Task<TcpSocket> NotABackdoor
public Task<DefaultCredential> TestNotRealUserCreation
public IApplicationBuilder EmulateShitSecurityWantsThatIsntPossibleAndTheyreTooDumbToScanFor
Sometimes temptation gets the better of me, but then the compiler/IDE gives me warnings so I delete them again.