News for hackers. Stuff that matters.
Re:Even Tetris is hard to test by Dewie on Sunday October 26, 2014 @12:36PM (#8511473)
> I disagree that FP and OOP are the only abstraction methods. Arithmetic can be an excellent abstraction method.

Arithmetic in programming is typically about functions taking in numbers and returning new numbers, ie. returning a new number instead of mutating one of the numbers in-place. That sounds like the spirit of FP, to me. (Though of course arithmetic on fixed-size numbers falls short of this ideal when it comes to overflow and such, and we often don't handle this possibility.)

I don't doubt that there are other abstractions than FP and OOP. But arithmetic looks like FP, to me.

Re:Even Tetris is hard to test by BrandonM on Monday October 27, 2014 @09:25AM (#8515281)
> I don't doubt that there are other abstractions than FP and OOP. But arithmetic looks like FP, to me.

When aikah said "FP", I took that to mean something like using a higher-level "updateScore" function that accepts a "calculateScore" function as an argument. I certainly may have been mistaken, though.