Why Johnny can't code

Post Reply
User avatar
Pappa
Non-Practicing Anarchist
Non-Practicing Anarchist
Posts: 56488
Joined: Wed Feb 18, 2009 10:42 am
About me: I am sacrificing a turnip as I type.
Location: Le sud du Pays de Galles.
Contact:

Re: Why Johnny can't code

Post by Pappa » Tue Sep 14, 2010 10:50 am

Robert_S wrote:
Ghatanothoa wrote:Surely python would be a good contenter as a replacement for basic to get kids into coding. I'm having a tinker with it at the moment and it is amazingly intuitive after wrestling with C++
I wish the guy who wrote the Learning Perl would write a book for Python.
I wish people who write bad programming books would die.
For information on ways to help support Rationalia financially, see our funding page.


When the aliens do come, everything we once thought was cool will then make us ashamed.

User avatar
Tigger
1,000,000,000,000,000,000,000 piccolos
Posts: 15714
Joined: Thu Feb 26, 2009 4:26 pm
About me: It's not "about" me, it's exactly me.
Location: location location.

Re: Why Johnny can't code

Post by Tigger » Tue Sep 14, 2010 12:18 pm

Pappa wrote:
Robert_S wrote:
Ghatanothoa wrote:Surely python would be a good contenter as a replacement for basic to get kids into coding. I'm having a tinker with it at the moment and it is amazingly intuitive after wrestling with C++
I wish the guy who wrote the Learning Perl would write a book for Python.
I wish people who write bad programming books would die.
Granted.
Image
Seth wrote:Fuck that, I like opening Pandora's box and shoving my tool inside it

User avatar
Azathoth
blind idiot god
blind idiot god
Posts: 9418
Joined: Wed Nov 04, 2009 11:31 pm
Contact:

Re: Why Johnny can't code

Post by Azathoth » Tue Sep 14, 2010 12:30 pm

Does anyone still buy programming books? There is more than enough in the way of tutorials online
Outside the ordered universe is that amorphous blight of nethermost confusion which blasphemes and bubbles at the center of all infinity—the boundless daemon sultan Azathoth, whose name no lips dare speak aloud, and who gnaws hungrily in inconceivable, unlighted chambers beyond time and space amidst the muffled, maddening beating of vile drums and the thin monotonous whine of accursed flutes.

Code: Select all

// Replaces with spaces the braces in cases where braces in places cause stasis 
   $str = str_replace(array("\{","\}")," ",$str);

User avatar
Robert_S
Cookie Monster
Posts: 13416
Joined: Tue Feb 23, 2010 5:47 am
About me: Too young to die of boredom, too old to grow up.
Location: Illinois
Contact:

Re: Why Johnny can't code

Post by Robert_S » Tue Sep 14, 2010 1:08 pm

Ghatanothoa wrote:Does anyone still buy programming books? There is more than enough in the way of tutorials online
I like holding a book while working at a computer. There is just an ineffable rightness to it.
What I've found with a few discussions I've had lately is this self-satisfaction that people express with their proffessed open mindedness. In realty it ammounts to wilful ignorance and intellectual cowardice as they are choosing to not form any sort of opinion on a particular topic. Basically "I don't know and I'm not going to look at any evidence because I'm quite happy on this fence."
-Mr P

The Net is best considered analogous to communication with disincarnate intelligences. As any neophyte would tell you. Do not invoke that which you have no facility to banish.
Audley Strange

User avatar
Pappa
Non-Practicing Anarchist
Non-Practicing Anarchist
Posts: 56488
Joined: Wed Feb 18, 2009 10:42 am
About me: I am sacrificing a turnip as I type.
Location: Le sud du Pays de Galles.
Contact:

Re: Why Johnny can't code

Post by Pappa » Tue Sep 14, 2010 1:24 pm

Robert_S wrote:
Ghatanothoa wrote:Does anyone still buy programming books? There is more than enough in the way of tutorials online
I like holding a book while working at a computer. There is just an ineffable rightness to it.
Same here. I much prefer a book. Plus I can read sections away from the computer too.
For information on ways to help support Rationalia financially, see our funding page.


When the aliens do come, everything we once thought was cool will then make us ashamed.

User avatar
Gawdzilla Sama
Stabsobermaschinist
Posts: 151265
Joined: Thu Feb 26, 2009 12:24 am
About me: My posts are related to the thread in the same way Gliese 651b is related to your mother's underwear drawer.
Location: Sitting next to Ayaan in Domus Draconis, and communicating via PMs.
Contact:

Re: Why Johnny can't code

Post by Gawdzilla Sama » Tue Sep 14, 2010 1:26 pm

Johnny can't code because Johnny doesn't have enough brain damage to understand that shit. [/obvious]
Image
Ein Ubootsoldat wrote:“Ich melde mich ab. Grüssen Sie bitte meine Kameraden.”

User avatar
Azathoth
blind idiot god
blind idiot god
Posts: 9418
Joined: Wed Nov 04, 2009 11:31 pm
Contact:

Re: Why Johnny can't code

Post by Azathoth » Tue Sep 14, 2010 1:27 pm

You leave the computer? :shock: Just set up another monitor.
Outside the ordered universe is that amorphous blight of nethermost confusion which blasphemes and bubbles at the center of all infinity—the boundless daemon sultan Azathoth, whose name no lips dare speak aloud, and who gnaws hungrily in inconceivable, unlighted chambers beyond time and space amidst the muffled, maddening beating of vile drums and the thin monotonous whine of accursed flutes.

Code: Select all

// Replaces with spaces the braces in cases where braces in places cause stasis 
   $str = str_replace(array("\{","\}")," ",$str);

User avatar
klr
(%gibber(who=klr, what=Leprageek);)
Posts: 32964
Joined: Wed Mar 04, 2009 1:25 pm
About me: The money was just resting in my account.
Location: Airstrip Two
Contact:

Re: Why Johnny can't code

Post by klr » Tue Sep 14, 2010 1:55 pm

Pappa wrote:
Robert_S wrote:
Ghatanothoa wrote:Does anyone still buy programming books? There is more than enough in the way of tutorials online
I like holding a book while working at a computer. There is just an ineffable rightness to it.
Same here. I much prefer a book. Plus I can read sections away from the computer too.
Confession time. I'm one of the converted who thinks electronic tutorials and references are superior to the printed medium. :pardon:
God has no place within these walls, just like facts have no place within organized religion. - Superintendent Chalmers

It's not up to us to choose which laws we want to obey. If it were, I'd kill everyone who looked at me cock-eyed! - Rex Banner

The Bluebird of Happiness long absent from his life, Ned is visited by the Chicken of Depression. - Gary Larson

:mob: :comp: :mob:

User avatar
Pappa
Non-Practicing Anarchist
Non-Practicing Anarchist
Posts: 56488
Joined: Wed Feb 18, 2009 10:42 am
About me: I am sacrificing a turnip as I type.
Location: Le sud du Pays de Galles.
Contact:

Re: Why Johnny can't code

Post by Pappa » Tue Sep 14, 2010 3:01 pm

klr wrote:
Pappa wrote:
Robert_S wrote:
Ghatanothoa wrote:Does anyone still buy programming books? There is more than enough in the way of tutorials online
I like holding a book while working at a computer. There is just an ineffable rightness to it.
Same here. I much prefer a book. Plus I can read sections away from the computer too.
Confession time. I'm one of the converted who thinks electronic tutorials and references are superior to the printed medium. :pardon:
I know I should agree, I just like holding a book. :biggrin:
For information on ways to help support Rationalia financially, see our funding page.


When the aliens do come, everything we once thought was cool will then make us ashamed.

VazScep
Posts: 14
Joined: Wed Mar 03, 2010 11:19 pm
Contact:

Re: Why Johnny can't code

Post by VazScep » Sun Sep 26, 2010 10:08 pm

Pappa wrote:The C family of languages are pretty intuitive and not difficult to pick up once you understand the basic concepts of programming.
Indeed. Kids, we'll start simple. Write a program that prints "Hello World!" on the screen. You need to start this with your include directive, bringing in the header file of the standard input/output library. Then you need to write the signature of your main method, which is your entry point to your application. You'll need to write "int" for the type of your exit code, and remember the return statement. Next, we'll use printf. Actually, hang on! Let's use Java for this. Much better.

First, you'll need a class declaration. Everything in Java goes in a class. It's so intuitive! Remember to make sure the class name is the same as the file name. Could you imagine what would happen otherwise? Next, you want your main method. This is the entry point for your application. It needs to be static since it isn't being called as an instance method. We don't want to have to instantiate any objects to call main, do we! We should give it the "public" accessor modifier, and it has a void return type. The command line arguments, I'm sure you'll guess, are part of the signature and are an array of type String. It's all so intuitive! The best part is that a decent IDE will generate all this code for you! Convenient and intuitive! Not like that Python programming language.

Code: Select all

>> print "hello world!"
Ugh! It doesn't even use curly braces!

User avatar
klr
(%gibber(who=klr, what=Leprageek);)
Posts: 32964
Joined: Wed Mar 04, 2009 1:25 pm
About me: The money was just resting in my account.
Location: Airstrip Two
Contact:

Re: Why Johnny can't code

Post by klr » Sun Sep 26, 2010 10:10 pm

:hehe:


I was afraid to make that point myself ... :shifty: ... but yes, there are easier languages to start a kid on than C.
God has no place within these walls, just like facts have no place within organized religion. - Superintendent Chalmers

It's not up to us to choose which laws we want to obey. If it were, I'd kill everyone who looked at me cock-eyed! - Rex Banner

The Bluebird of Happiness long absent from his life, Ned is visited by the Chicken of Depression. - Gary Larson

:mob: :comp: :mob:

User avatar
Gawdzilla Sama
Stabsobermaschinist
Posts: 151265
Joined: Thu Feb 26, 2009 12:24 am
About me: My posts are related to the thread in the same way Gliese 651b is related to your mother's underwear drawer.
Location: Sitting next to Ayaan in Domus Draconis, and communicating via PMs.
Contact:

Re: Why Johnny can't code

Post by Gawdzilla Sama » Sun Sep 26, 2010 10:12 pm

I once took a class in Assembly Language just to have something to do.
Image
Ein Ubootsoldat wrote:“Ich melde mich ab. Grüssen Sie bitte meine Kameraden.”

User avatar
klr
(%gibber(who=klr, what=Leprageek);)
Posts: 32964
Joined: Wed Mar 04, 2009 1:25 pm
About me: The money was just resting in my account.
Location: Airstrip Two
Contact:

Re: Why Johnny can't code

Post by klr » Sun Sep 26, 2010 10:14 pm

Gawdzilla wrote:I once took a class in Assembly Language just to have something to do.
:what: Were you by any chance sane at the time, or were you just your usual deranged self? :Erasb:
God has no place within these walls, just like facts have no place within organized religion. - Superintendent Chalmers

It's not up to us to choose which laws we want to obey. If it were, I'd kill everyone who looked at me cock-eyed! - Rex Banner

The Bluebird of Happiness long absent from his life, Ned is visited by the Chicken of Depression. - Gary Larson

:mob: :comp: :mob:

VazScep
Posts: 14
Joined: Wed Mar 03, 2010 11:19 pm
Contact:

Re: Why Johnny can't code

Post by VazScep » Sun Sep 26, 2010 10:14 pm

Pappa wrote:I heartily recommend "Scratch" for teaching kids programming. It was developed at MIT especially for that perpose. It's a drag-and-drop programming environment that does an excellent job of teaching kids all the important programming concepts like variables, loops, conditionals, etc.. All in a way they can pick up easily without being dumbed down in the slightests. I'd recommend having a look at it. :tup:
Scratch is Smalltalk, and Smalltalk is nothing like BASIC. The beauty of Smalltalk is that it is simultaneously aimed at kids and at expert programmers. It is, to this day, one of the most powerful high-level languages ever invented.

User avatar
Gawdzilla Sama
Stabsobermaschinist
Posts: 151265
Joined: Thu Feb 26, 2009 12:24 am
About me: My posts are related to the thread in the same way Gliese 651b is related to your mother's underwear drawer.
Location: Sitting next to Ayaan in Domus Draconis, and communicating via PMs.
Contact:

Re: Why Johnny can't code

Post by Gawdzilla Sama » Sun Sep 26, 2010 10:15 pm

klr wrote:
Gawdzilla wrote:I once took a class in Assembly Language just to have something to do.
:what: Were you by any chance sane at the time, or were you just your usual deranged self? :Erasb:
At the time I was waiting to go to Purdue, and living in a house on a corner. The other three corners were fields with corn or soybeans. The land behind the house was corn or soybeans. From my second floor room I could see two things.
Image
Ein Ubootsoldat wrote:“Ich melde mich ab. Grüssen Sie bitte meine Kameraden.”

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests