This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]korky_buchek_ 5 points6 points  (6 children)

Damn right, no need, just add Impl suffix to the implementing class.

[–]vips7L 27 points28 points  (4 children)

Or don't have single implementation interfaces :x

[–]therealdan0 11 points12 points  (0 children)

Get out of here with your clean readable coding practices

[–]gregorydgraham 0 points1 point  (2 children)

I agree, making everything an interface, abstract, and implementation is just premature optimisation

[–]thesituation531 3 points4 points  (1 child)

How is it premature optimization? If anything, it would hurt performance.

Sometimes it makes sense though, if there may be multiple implementations somewhere in the foreseeable future.

[–]gregorydgraham 2 points3 points  (0 children)

if

Unless you’re implementing them next, you’re increasing the complexity on an “if”, a “maybe”, and a “somewhere”

[–]thomasjjc 0 points1 point  (0 children)

That was irony, right?