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
-
Aeon1077ypublic void main()
{
Talk();
}
private void Talk()
{
Console.WriteLine("If you use something twice extract it to a method ".Replace(" ", " :clapEmoji: "));
} -
@Aeon why does your method have the first character in caps?? Are you trying to burn the world or something??
-
Npstr6577yBullshit. You will just end up creating a ton of wrong abstractions. Later you'll end up refactoring those wrong abstractions. Wait for at least three incidents of similar code and you will have a much better idea of how your abstraction needs to look like.
-
I like to wait till about 3-4 times. It's hard to tell if it's an actual pattern or just a one off.
π If π you π use π something π twice π extract π it π to π a π method π
rant