3 ms·
While I was reading "Eloquent JavaScript", I came across this absolute eye-opener (to me at least): https://eloquentjavascript.net/07_robot.html#p_MtO6TwqB5I ht
by LaundroMat 6y ago
While I was reading "Eloquent JavaScript", I came across this absolute eye-opener (to me at least):
https://eloquentjavascript.net/07_robot.html#p_MtO6TwqB5I https://eloquentjavascript.net/07_robot.html#p_MtO6TwqB5I
In this chapter the author demonstrates that it is wrong to solve a problem by creating a series of objects that do stuff. He shows that the right way is by abstracting the problem into its most essential elements. Do not try to emulate reality with code, but make it its own, abstract thing that solves the issue instead.
This chapter and its code felt like pure poetry to me.