4 ms·
> I specifically referred to 'writing' an algorithm, as in implementing the algorithm in code, not devising the algorithm in the first place. That's confusing
by DanBC 12y ago
> I specifically referred to 'writing' an algorithm, as in implementing the algorithm in code, not devising the algorithm in the first place.
That's confusing usage of "write an algorithm". There used to be a distinction between "programming" (creatig program structure; sequence selection iteration and all tha stuff) qnd "coding" (taking those paper notes and translating them into the particular programming language being used).
It's easy to find people who could create an algorithm but who cannot also code. For example, you can create an algorithm, but you know nothing about {insert the name of a language which you know nothing about here}.
- NAFV_P 12y ago> That's confusing usage of "write an algorithm". There used to be a distinction between "programming" (creatig program structure; sequence selection iteration and all tha stuff) qnd "coding" (taking those paper notes and translating them into the particular programming language being used). Apologies for being vague, I presumed the phrase 'writing an algorithm' was sufficiently precise. > It's easy to find people who could create an algorithm but who cannot also code. I rephrase that: It's easy to find people who could create an algorithm but can only target a specific architecture, human grey matter.
- lliwta 12y ago> It's easy to find people who could create an algorithm but can only target a specific architecture, human grey matter. "Programs should be written for people to read, and only incidentally for machines to execute." The key difference is that if the skill of implementing an algorithm in <insert programming language> code can be learned in a few weeks max. It's a matter of whether you've bothered to learn the skill, not whether you're capable of learning the skill. Learning the problem solving skills to create new algorithms is not so trivial, and often can't be self-taught.
- NAFV_P 12y agoHarold Abelson, yeah? I was wondering what an assembly programmer would say to this. > Learning the problem solving skills to create new algorithms is not so trivial, and often can't be self-taught. Getting someone to put themselves 'in the shoes of a computer', is just as difficult.
- lliwta 12y ago> Harold Abelson, yeah? I was wondering what an assembly programmer would say to this. Taking my comment within the wider context of the conversation, and the general conflation of "writing an algorithm" with "copying down into a programming language from existing pseudocode", I like to think most notable computer scientists would agree with the sentiment that we should be prioritizing the teaching of algorithms over the teaching of programming. edit: Most importantly, no one is claiming that these two are somehow mutually exclusive. Only that the latter should be in service to the former, and not the other way around. That is, when teaching CS, we should teach concepts, and include instruction on how to implement programs because it's a useful tool for learning CS. "Turtle Geometry" is a fantastic example of this, BTW. The focus is on the concepts, with programming as a tool for understanding them. But -- to the refutation of your core argument -- it's definitely never insinuated in TG that the ideas don't exist independently of the programming. Such an insinuation, that geometry does not exist independently of a programming environment, is as absurd as the notion that algorithms can't be written without a machine. But anyways, your initial claim was that you need to be able to program in order to write algorithms. Which, aside from your highly non-standard use of the phrase, is just clearly not the case. Also, of course programming has its own set of hurdles. But there's a difference between writing highly optimized assembly and copying an algorithm into Python. > Getting someone to put themselves 'in the shoes of a computer', is just as difficult. In my experience teaching, this isn't the case. If you can teach the student to think precisely and unambiguously about a single algorithm, the unrelenting logic of the machine is no stumbling block; quite the opposite, actually. It's far more effective and less degrading than having students fight with the machine and get confused about why it won't "do what they want it to do". (this comment was massaged, sorry for the edits.)
- NAFV_P 12y ago