News for hackers. Stuff that matters.
Re:Indirection Is Not Abstraction by yazaddaruvala on Thursday November 01, 2018 @06:16PM (#18358962)
More recently I've started to consider abstraction an optimization of code readability/understandability.

Following the rules of optimization, it should only be done when absolutely needed.

1. Do not abstract.

2. Do not abstract.

3. Quantitative measurement of the benefit, then abstract.

This has worked out really well for me over the last 3 years.

Re:Indirection Is Not Abstraction by j88439h84 on Thursday November 01, 2018 @06:47PM (#18359157)
You're saying that adding abstraction increases readability, but that you want to avoid doing that until step 3?
Re:Indirection Is Not Abstraction by User23 on Thursday November 01, 2018 @08:18PM (#18359711)
I read it as understand what your procedure is doing in a full context before abstracting.
Re:Indirection Is Not Abstraction by dsego on Friday November 02, 2018 @08:54AM (#18362611)
If there is anything worse than no abstraction, it is a wrong or leaky abstraction.