06/04/09

Rapporto fra programmazione e matematica

E' tornato di recente sul tema Jeff Atwood, che in un articolo su Coding Horror affronta nuovamente il rapporto tra le abilità nei due campi. Atwood apre citando una frase di Dijkstra: "Oltre a un'inclinazione matematica naturale, una eccezionale padronanza della propria lingua madre è una risorsa fondamentale per un programmatore competente.". L'autore dell'articolo, pur avendo qualche dubbio sulla seconda parte della frase, si sofferma sulla prima; secondo il suo parere, può essere infatti istruttivo pensare la programmazione come una forma di matematica: i costrutti matematici sono infatti universali, così come lo sono i maggiori linguaggi di programmazione, e quindi i due campi non sono così distanti.
[...]
Interessanti a seguire anche i cinque punti validi per un programmatore in rapporto alla matematica, stavolta tratti dal blog di Steve Yegge:
1. Math is a lot easier to pick up after you know how to program. In fact, if you're a halfway decent programmer, you'll find it's almost a snap.
2. They teach math all wrong in school. Way, WAY wrong. If you teach yourself math the right way, you'll learn faster, remember it longer, and it'll be much more valuable to you as a programmer.
3. Knowing even a little of the right kinds of math can enable you do write some pretty interesting programs that would otherwise be too hard. In other words, math is something you can pick up a little at a time, whenever you have free time.
4. Nobody knows all of math, not even the best mathematicians. The field is constantly expanding, as people invent new formalisms to solve their own problems. And with any given math problem, just like in programming, there's more than one way to do it. You can pick the one you like best.
5. Math is... ummm, please don't tell anyone I said this; I'll never get invited to another party as long as I live. But math, well... I'd better whisper this, so listen up: (it's actually kind a fun.)

Leggi articolo su programmazione.it

Nessun commento: