News for hackers. Stuff that matters.
Re:Small Basic: Programming Is Fun by csomar on Saturday March 06, 2010 @09:19AM (#1171557)
MSFT tries to introduce kids to programming, not any programming, but Dot Net programming.

TextWindow.WriteLine("Hello World")

Obj.method(arg) is the Dot Net model.

Write Hello World is easier, but is not the Dot Net model.

Learning the first, you'll be more inclined to continue in the Microsoft track ;)

Re:Small Basic: Programming Is Fun by nopassrecover on Saturday March 06, 2010 @12:06PM (#1171761)
MSFT tries to introduce kids to imperative programming because this is what 99% of programmers use. The "MSFT .NET model" also includes F# (printfn "Hello World!") as well as implementations of every language known to man (Ada, Python, Ruby, Lisp, Pascal and dozens of unique languages).
Re:Small Basic: Programming Is Fun by tel on Saturday March 06, 2010 @02:01PM (#1171944)
I think part of the op's argument was to consider what the best way to learn programming is. Imperative/OO programming is important to learn someday, but it's not necessarily the easiest or best one to start on.

So Microsoft's motivations might not be clearly aligned with learning. Should or shouldn't they be?

Re:Small Basic: Programming Is Fun by nopassrecover on Saturday March 06, 2010 @02:20PM (#1171963)
Perhaps I was misguided by the insinuation that Microsoft is behind some imperative language conspiracy. In any case, 99% of the code that runs this world was written in an imperative language and most universities (I believe MIT is an exception with Scheme?) will teach an imperative language before any other. It may not be the easiest (I'm biased, my mind mapped instantly) or best to start with, but it certainly is the one most commonly started with and most commonly used.

I'm pretty sure Microsoft's motivations are simply to make the best development environment they can because at the end of the day that's what developers will use meaning more server licence purchases. This is evidenced by the relative freedom their dev techs get and by the insane amount of programming genius they have hired in this area.

Re:Small Basic: Programming Is Fun by tel on Saturday March 06, 2010 @05:23PM (#1172312)
I think you nailed it: I'm pretty sure Microsoft's motivations are simply to make the best development environment they can.

But children aren't developers (yet) and learning to program isn't necessarily easiest or best using imperative languages. It's not judgment, it's a difference of goals.

Re:Small Basic: Programming Is Fun by lsb on Saturday March 06, 2010 @11:27AM (#1171697)
It's a pity, because

  print "hello world"
is valid Perl/Ruby/Python, and the punctuation helps clarify in this case.
Re:Small Basic: Programming Is Fun by sukuriant on Saturday March 06, 2010 @01:52PM (#1171931)
More specifically, that's just object oriented programming. Albeit with static objects. Ever written in Java?

System.out.println("Hello world");

Don't bash or insinuate things about Microsoft just because they happen to use the same wording that their Console object uses. Oh by the way, which makes more sense in that context: "Console.WriteLine()"? or "TextWindow.WriteLine()"? ... hm... it looks like a text window to me, so I'm gonna have to go for the second one.

Re:Small Basic: Programming Is Fun by rbanffy on Saturday March 06, 2010 @02:10PM (#1171954)
The way I learned OOP it would be

Window print "Hello World"

or something like it.

OOP is so much more than object-dot-methot...

Re:Small Basic: Programming Is Fun by nopassrecover on Saturday March 06, 2010 @02:24PM (#1171967)
System (system object) out (output stream of the system object) println (method of the output stream object of the system object that prints a string to the output stream followed by a newline character). How is that not OOP?