r/programming • • Feb 23 '12

Don't Distract New Programmers with OOP

http://prog21.dadgum.com/93.html
207 Upvotes

288 comments sorted by

View all comments

Show parent comments

5

u/roerd Feb 24 '12

No, programming is about modelling a solution to your problem in the semantics of a programming language. That this programming language will be executed on a computer is of secondary importance. Programming languages that are less closely tied to the way a computer works teach a different, but not worse kind of programming than those whose semantics are closer to the machine.

3

u/ckwop Feb 24 '12

I guess I feel that not having a machine to target when I first started programming in the 90s led to a failure to understand deeper concepts. This wasn't corrected until much later.

In retrospect, I'd have preferred to understand the machine first, then the higher level languages second.

To be honest with you, the approaches are probably complimentary. You could teach someone Python and something like Forth at the same time.

Both would accelerate the learning of the craft.

1

u/antiquarian Feb 24 '12

No, programming is about modelling a solution to your problem in the semantics of a programming language.

Thinking Forth does a good job of explaining how to do this using Forth. It's true that the language starts at a low level close to the machine, but you can build up abstractions pretty quickly as the book will show you.