4 ms·
In my experience, the problem people have with learning programming is not syntax or abstraction - it's thinking like the abstract machine. Or in other words, u
by MauranKilom 8y ago
In my experience, the problem people have with learning programming is not syntax or abstraction - it's thinking like the abstract machine. Or in other words, understanding that having an array and a loop in your code isn't enough to make the computer understand and do what you want.
Basically, the thing that the PB&J exact instructions challenge teaches.
- fouc 8y agoIt's interesting you mention an array and a loop, because those can be separate abstractions too. no need to think about loops: array.each {|x| puts x} need think about loops: for i in 0...array.length do puts array[i] end
- kbp 8y agoThe first example saves you from thinking about indexing; arrays and loops are relevant in both.