73

πŸ‘ If πŸ‘ you πŸ‘ use πŸ‘ something πŸ‘ twice πŸ‘ extract πŸ‘ it πŸ‘ to πŸ‘ a πŸ‘ method πŸ‘

Comments
  • 21
    public void main()
    {
    Talk();
    }

    private void Talk()
    {
    Console.WriteLine("If you use something twice extract it to a method ".Replace(" ", " :clapEmoji: "));
    }
  • 5
    @Aeon 0/10 not abstract enough
  • 5
    @BindView dude, don't expect perfection from me when using a phone keyboard lol.
  • 3
    @vexusia finally someone gets me
  • 0
    @Lahsen2016 Structs with function pointer are the only solution.
  • 4
    @Aeon why does your method have the first character in caps?? Are you trying to burn the world or something??
  • 1
    @bitsnpieces thats a c# thing
  • 1
    @insanealec honestly id feel a lot more comfortable with a RantBuilderFactory
  • 2
    Bullshit. 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.
  • 0
    @Npstr πŸ‘ no πŸ‘
  • 1
    Fuck me did I miss the irony
  • 1
    @Npstr there is absolutely no way youd have missed it
  • 3
    πŸ‘IfπŸ‘youπŸ‘ typeπŸ‘likeπŸ‘thisπŸ‘pleaseπŸ‘stopπŸ‘
  • 0
    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.
Add Comment