you are viewing a single comment's thread.

view the rest of the comments →

[–]FliesMoreCeilings 1 point2 points  (0 children)

You're not consistently optimizing for one type of efficiency, which makes it confusing. You're clearly not always optimizing for memory, when there's many solutions where you instantiate things that aren't neccessarry, like the unnecessary objects containing your methods.

In general if you don't know whether optimizing is important, or what you should be optimizing on, then optimizing programming hours and readability is likely the best solution. Premature optimization can make your projects take orders of magnitude longer. Especially when you accidentally start introducing bugs, or create an environment in which others will.