by robomartin · 13y ago · 0 comments
Then I stopped to remember the process. It has been ridiculously hard. It has required a ton of engagement on my part. Without me being a constant cheerleader it would go absolutely nowhere. My kid likes programming but, let's face it, today there are tons of distractions and you are in competition with all of it.
I would imagine it is really hard to teach a random group of 14~16 year olds. I would really like to learn more about this from others with experience in this area.
After a certain point in your progression, you realize that you can make certain type errors deliberately so that the type checker will tell you what types it's expecting. This is when it all clicks! The type checker is a tool that lets you query for information about your program. It's an immense aid to reasoning and a powerful sanity check against your assumptions. This is a capability that less strictly/statically typed languages lack and it can lead to a lot of surprises and guesswork.
Some new features like deferred type errors and type holes are going to really help with this. Especially once editors start taking full advantage of this. I think that this is the future of programming: not writing a program and then debugging it, and not even just working in a repl, but being actively guided by your tools seamlessly as you write your code. Having a dialog with the compiler.
Not to mention the traditional argument for lisp as a teaching language: the extremely simple syntax. For somebody who hasn't seen code before, lisp would look just as weird as any other language, so the unfamiliarity argument doesn't hold much water. Prefix notation isn't at all difficult to learn, (+ 1 2) would be just as weird as dividing using / or multiplying with *, and using % for modulo division. You just tell the students that this is how you write math with a keyboard(a white lie at worst:).
I'm currently working on a "try ruby" like tutorial to interactively teach FP using racket to college students, as my last year project.
Sure. But it is a slower feedback cycle then a good IDE (which tells you what it is expecting as you type it). Also, the same can be said about an interpreter: you can try things, and when they fail, it lets you know what it was expecting.
It may not be the best language around, but it's simple and you can make something that works in Windows ridiculously easy. If they show continuous interest, then they will hear about some other languages but most people just want to see something working with buttons and text boxes and then after a few weeks they lose interest.
It's like going to the gym, some of us love it but it's not for everybody. And if it's your first time, don't spend time with a complex routine... just run on the treadmill until you feel tired. If you like how it feels, then you will keep coming back, and if you don't, you didn't waste time doing the advanced exercises that are useless without continuous workouts.
Disclaimer: I told them that programming serious applications takes a lot of time, hard work and lots of reading and practicing. They just wanted to make toy applications. They were instructed to never deal with secure applications or production critical applications until reaching programming enlightement.
I started with Applesoft BASIC on the Apple II series and I'm not so sure about the bullshitness of the argument. Dijkstra was not talking about VB at the time. It's nearly impossible to explain recursion in terms of "classic" BASIC.
I'm lucky I also learned C and FORTH (through the wonderful GraFORTH environment). Because of that, the quality of my Basic code (my first job was programming educational software for Apple IIs) was much increased.
In order to properly assess the damage, you must ask yourself how comfortable you feel with concepts that cannot be expressed in your first (or "native") language.
In the 1990's C# didn't exist and to it was much difficult to create a GUI in C++ than in (Classic)VB.
You should start with basic prcedural languages first leave OO for later
Pointers? Really? Nothing could be simpler so long as you understand how a basic microprocessor works. Perhaps I see it this way because I started my programming experience typing machine code into a hex keypad. I can see that someone who comes from a frame of reference devoid of low level exposure can get confused by something as simple as pointers.
Even so, easy teaching analogies abound, for example: A pointer is the number of the post office box. The data is what it contains.
There is a good reason why one of the most important Forth books was titled "Thinking Forth". Lisp is also very different from C and Java, and you have to change your thinking radically to understand and to apply the power of Lisp. Now I am determined to learn Haskell, and I believe that I have to change my thinking much more into a mathematical approach.
The main issue was their intrinsic interest/motivation/discipline. It is important to note that I am talking about average kids with curiosity.
Now I feel that is extremely easy to teach kids with the tools in hand but parents must start slowly. Programming languages like C have many concepts (i.e.: pointers) that must be added at a later stage. I think even Alice 3D or Scratch are complex. I feel the Logo approach is the right one (a graphic feedback and an immediate command line at the same time). Also, combining the manipulation of real objects like cars and robots with programming is an excellent approach.
Colour me surprised.
My kid has not has difficulty learning. I never said that. The challenges are in maintaining interest because there are other attractors that lure kids away. There are a lot of things that are vastly more fun than programming. For example, I'd rather go sailing, kayaking, fishing, scuba diving or mess around in the garage than sit in front of the computer programming for ten hours.
Perspective is important.
You basically gave your child a job training, concentrating on technology which is popular today (and probably at the time when he is looking for a junior maintenance developer position, too). Nothing wrong with that.
If I decided to teach my child programming, I would certainly try and pick the best, most consistent, fun & exciting, state of the art technologies out there which would expand the mind of my child about what's possible today and inspire my kid to push the boundaries when he grows up (if he/she ever decides to pursue that career option).
Different decisions, and one could make the case for both.
Really, saying that these are "the most horrible to learn languages" is beyond my comprehension. There's nothing "horrible" or, for that matter, difficult about any of them.
C is easy as pie. It's the most fundamental language.
Forth is a super-cool game. My kid already rocks on an HP-41 calculator (RPN). When I introduced him to Forth he literally said: "Wow! I can program in RPN!".
Java, was a short stepping stone as I wanted to give him a quick taste of OO but not drown him in the details. He actually wrote a dozen little games with graphical interfaces and all. Great fun.
Now with Python we are going through the Project Euler site problem by problem implementing solutions mostly in Python but then looking at C and Forth where it makes sense.
It's hard work. At the same time I like it because it keeps me on my toes. At one point I'll have to choose whether to move him towards developing, say, iOS apps or web apps. In other words, there's at least one fork in the road ahead.
However, the principles are all the same. The constructs are fundamentally equal. A state-machine driven website is no different than a state-machine driven iPhone app. Same concepts, you just "say" them differently in code.
And so I fail to see or agree with people who make categorical statements such as "C is horrible" or "C is hard to learn". I don't get it. Yeah, from the vantage point of someone with no frame of reference whatsoever even basket-weaving is horrible and hard to learn. At one point you start taking steps towards learning and, if a good foundation is built, nothing is really horrible, difficult or impossible to learn.
To me, C is the foundation of nearly all you'd want to understand in programming. Only assembler would give you more perspective. I have written plenty of software with complex data structures in assembler. Not for the weak of heart, but you do learn a lot. With a solid foundation in C you can undertake just about anything in any domain, from embedded to web and mobile programming.
So, yes, I felt that taking what I said so far out of context and then expressing surprise for your own made-up statement had to come from ignorance. Perhaps I shouldn't have said it the way I did. So, again, I apologize.