Why Johnny can't code

Post Reply
User avatar
beige
Posts: 577
Joined: Wed Mar 24, 2010 7:52 pm
Location: Bristol, UK
Contact:

Re: Why Johnny can't code

Post by beige » Sun Sep 26, 2010 10:20 pm

I have my first C++ lecture this Tuesday at 9:00AM. I can see that timeslot not helping.
In the best laid plans of history lie the ruins of the past
And a chronicle of suffering shows the mythic pall they cast
To believe is true religion, but to see is truth at last
Oh no, too late to hold a trial, time doesn't wait for the watchmaker's dial

Image

User avatar
Ronja
Just Another Safety Nut
Posts: 10920
Joined: Wed Feb 24, 2010 8:13 pm
About me: mother of 2 girls, married to fellow rat MiM, student (SW, HCI, ICT...) , self-employed editor/proofreader/translator
Location: Helsinki, Finland, EU
Contact:

Re: Why Johnny can't code

Post by Ronja » Mon Sep 27, 2010 3:28 am

beige wrote:I have my first C++ lecture this Tuesday at 9:00AM. I can see that timeslot not helping.
My condolences. Keep us posted about how that goes. Does not have to be horrible, may require quite a bit of caffeine-rich drink of your preference. :tup:
"The internet is made of people. People matter. This includes you. Stop trying to sell everything about yourself to everyone. Don’t just hammer away and repeat and talk at people—talk TO people. It’s organic. Make stuff for the internet that matters to you, even if it seems stupid. Do it because it’s good and feels important. Put up more cat pictures. Make more songs. Show your doodles. Give things away and take things that are free." - Maureen J

"...anyone who says it’s “just the Internet” can :pawiz: . And then when they come back, they can :pawiz: again." - Tigger

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

Re: Why Johnny can't code

Post by VazScep » Mon Sep 27, 2010 6:07 am

Gawdzilla wrote:I once took a class in Assembly Language just to have something to do.
Some assembly languages are extremely simple. The ARM RISC assembly language was tiny, at least back in the mid-90s. You can learn all the instructions in an afternoon. Teaching kids such assembly languages can show them what computation is really about, and show them how few instructions are actually needed to carry out any task that any computer can perform. Some toy-assembly languages are even used as mathematical formalisms for computation.

Just don't teach Intel Assembler, not for modern processors. That's a monster that only compilers should understand.

User avatar
Xamonas Chegwé
Bouncer
Bouncer
Posts: 50939
Joined: Thu Feb 26, 2009 3:23 pm
About me: I have prehensile eyebrows.
I speak 9 languages fluently, one of which other people can also speak.
When backed into a corner, I fit perfectly - having a right-angled arse.
Location: Nottingham UK
Contact:

Re: Why Johnny can't code

Post by Xamonas Chegwé » Mon Sep 27, 2010 6:36 am

Robert_S wrote:
JimC wrote:This topic has echoes with debates in maths education about the use of various types of calculators at various levels, and the degree to which their use could become a crutch which hampers useful skills in some situations.

For example, some people argue that, with wide-spread calculator use, the times tables should be put on the scrap heap. However, a knowledge of the times tables makes processes such as factorisation so much easier... On the other hand, long division is probably best seen as an historical curiosity.

The latest CAS calculators, with their ability to manipulate and solve algebraic expressions and equations, have heightened the debate.
I forget how to do long division within a week after the last use and have to actually reinvent it on occasion.

What I want to know is how many people who can remember the procedure of long division actually understand why it works and could reinvent it should they forget how it's done.
I once wrote programs in BASIC to add, subtract, multiply and divide integers of any length - using string functions to convert sections of each number into integers and recombine the sections afterwards. Since it was running on a relatively early Amiga, it wasn't too sprightly, but I did manage to get it to generate factorials of all integers up into the early thousands.

So, yes, I could reinvent long-division. Anyone that understands what it is doing and how it works could. Although I would rather spend my time in the pub until the call comes. :biggrin:
A book is a version of the world. If you do not like it, ignore it; or offer your own version in return.
Salman Rushdie
You talk to God, you're religious. God talks to you, you're psychotic.
House MD
Who needs a meaning anyway, I'd settle anyday for a very fine view.
Sandy Denny
This is the wrong forum for bluffing :nono:
Paco
Yes, yes. But first I need to show you this venomous fish!
Calilasseia
I think we should do whatever Pawiz wants.
Twoflower
Bella squats momentarily then waddles on still peeing, like a horse
Millefleur

User avatar
Clinton Huxley
19th century monkeybitch.
Posts: 23739
Joined: Mon Mar 02, 2009 4:34 pm
Contact:

Re: Why Johnny can't code

Post by Clinton Huxley » Mon Sep 27, 2010 7:14 am

I remember the old days when you could walk into Boots and see a row of Soectrums, Dragon 32s and Amstrads, each running the same programme:-

10 print "fuck off"
20 goto 10

Happy days.

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 » Mon Sep 27, 2010 7:28 am

Gawdzilla wrote:
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.
Was that back in the day when Assembly implied a soldering iron? :ask:
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
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 » Mon Sep 27, 2010 8:18 am

beige wrote:I have my first C++ lecture this Tuesday at 9:00AM. I can see that timeslot not helping.
I did a c++ module at uni a while back. I enjoyed it. :shifty:
Image
Seth wrote:Fuck that, I like opening Pandora's box and shoving my tool inside it

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 Oct 11, 2011 2:54 pm

Bump. There was a piece on BBC Newsnight last night (10/10/2011) that relates to this:

http://news.bbc.co.uk/2/hi/programmes/n ... 612063.stm - "Is lack of computer science teaching failing pupils?"

If I find a video on YouTube or elsewhere, I'll post it here as well.
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
hiyymer
Posts: 425
Joined: Thu Apr 22, 2010 2:18 am

Re: Why Johnny can't code

Post by hiyymer » Fri Oct 14, 2011 1:36 pm

klr wrote:Bump. There was a piece on BBC Newsnight last night (10/10/2011) that relates to this:

http://news.bbc.co.uk/2/hi/programmes/n ... 612063.stm - "Is lack of computer science teaching failing pupils?"

If I find a video on YouTube or elsewhere, I'll post it here as well.
Interesting. I amend my former advocacy of 'c'. Been doing a lot of java lately and liking it better. Definitely easier to pick up than 'c'. The fact that everything gets passed as a reference is the one niggly thing that you have to get used to.

Whatever happened to FORTRAN (my first and only programming course)?

Even here in the US, I remember my step son making the same kind of comments about the high school computer curriculum. Big disappointment. He got into hacking and picked up machine language to do that before he got into programming in any serious way. Seems to me the point was well taken before, that kids are either going to get into it or not. The only thing the schools need to do is set up the situation where they do actual programming and see whether the light bulb goes off or not. It's not hard. My college course in 1964 for engineer wannabes was just to program and debug a standard deviation calculation as homework while getting lectures at class time about programming concepts. Not rocket science. It was in FORTRAN on card decks, so it took the term to get it debugged anyways. From what I gather, the full blown MIS courses, learning database theory and such, don't do much but give you some work credentials.

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 » Fri Oct 14, 2011 1:40 pm

hiyymer wrote:
klr wrote:Bump. There was a piece on BBC Newsnight last night (10/10/2011) that relates to this:

http://news.bbc.co.uk/2/hi/programmes/n ... 612063.stm - "Is lack of computer science teaching failing pupils?"

If I find a video on YouTube or elsewhere, I'll post it here as well.
Interesting. I amend my former advocacy of 'c'. Been doing a lot of java lately and liking it better. Definitely easier to pick up than 'c'. The fact that everything gets passed as a reference is the one niggly thing that you have to get used to.

Whatever happened to FORTRAN (my first and only programming course)?

Even here in the US, I remember my step son making the same kind of comments about the high school computer curriculum. Big disappointment. He got into hacking and picked up machine language to do that before he got into programming in any serious way. Seems to me the point was well taken before, that kids are either going to get into it or not. The only thing the schools need to do is set up the situation where they do actual programming and see whether the light bulb goes off or not. It's not hard. My college course in 1964 for engineer wannabes was just to program and debug a standard deviation calculation as homework while getting lectures at class time about programming concepts. Not rocket science. It was in FORTRAN on card decks, so it took the term to get it debugged anyways. From what I gather, the full blown MIS courses, learning database theory and such, don't do much but give you some work credentials.
Indeed it's not hard at all. but this basic "screening" exercise just doesn't seem to get done. :ddpan:
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
leo-rcc
Robo-Warrior
Posts: 7848
Joined: Thu Feb 26, 2009 5:09 pm
About me: Combat robot builder
Location: Hoogvliet-Rotterdam, Netherlands
Contact:

Re: Why Johnny can't code

Post by leo-rcc » Fri Oct 14, 2011 2:14 pm

Clinton Huxley wrote:I remember the old days when you could walk into Boots and see a row of Soectrums, Dragon 32s and Amstrads, each running the same programme:-

10 print "fuck off"
20 goto 10

Happy days.
No imagination.

10 a=a+1
20 print spc(a);"Fuck off"
30 if a=32 then a=0
40 goto 10
Best regards,
Leo van Miert
My combat robot site: http://www.team-rcc.org
My other favorite atheist forum: http://www.atheistforums.org

Horsepower is how hard you hit the wall --Torque is how far you take the wall with you

User avatar
Jason
Destroyer of words
Posts: 17782
Joined: Sat Apr 16, 2011 12:46 pm
Contact:

Re: Why Johnny can't code

Post by Jason » Fri Oct 14, 2011 2:55 pm

klr wrote:
hiyymer wrote:
klr wrote:Bump. There was a piece on BBC Newsnight last night (10/10/2011) that relates to this:

http://news.bbc.co.uk/2/hi/programmes/n ... 612063.stm - "Is lack of computer science teaching failing pupils?"

If I find a video on YouTube or elsewhere, I'll post it here as well.
Interesting. I amend my former advocacy of 'c'. Been doing a lot of java lately and liking it better. Definitely easier to pick up than 'c'. The fact that everything gets passed as a reference is the one niggly thing that you have to get used to.

Whatever happened to FORTRAN (my first and only programming course)?

Even here in the US, I remember my step son making the same kind of comments about the high school computer curriculum. Big disappointment. He got into hacking and picked up machine language to do that before he got into programming in any serious way. Seems to me the point was well taken before, that kids are either going to get into it or not. The only thing the schools need to do is set up the situation where they do actual programming and see whether the light bulb goes off or not. It's not hard. My college course in 1964 for engineer wannabes was just to program and debug a standard deviation calculation as homework while getting lectures at class time about programming concepts. Not rocket science. It was in FORTRAN on card decks, so it took the term to get it debugged anyways. From what I gather, the full blown MIS courses, learning database theory and such, don't do much but give you some work credentials.
Indeed it's not hard at all. but this basic "screening" exercise just doesn't seem to get done. :ddpan:
In highschool I wrote a 20,000 line program for this assignment we had to do using every technique taught to us, and some that hadn't been, (our teacher, Mr. Fangraad [still remember the pricks name] had been big on teaching us OOP, as if it was something new and complicated :roll:) it was flawless and I wrote and debugged it in two days then helped my friends work on their projects.. then he marked me not on my coding, but my game design.

Fucker.

User avatar
Jason
Destroyer of words
Posts: 17782
Joined: Sat Apr 16, 2011 12:46 pm
Contact:

Re: Why Johnny can't code

Post by Jason » Fri Oct 14, 2011 2:58 pm

beige wrote:I have my first C++ lecture this Tuesday at 9:00AM. I can see that timeslot not helping.
C++ is the bestest!

I came from C to C++ and was like.. Image

It simplified things so much it was amazing.

User avatar
Don't Panic
Evil Admin
Evil Admin
Posts: 10653
Joined: Thu Feb 26, 2009 12:19 am
About me: 100% Pure Evil. (Not from Concentrate)
Location: Luimneach, Eire
Contact:

Why Johnny can't code

Post by Don't Panic » Fri Oct 14, 2011 5:25 pm

JimC wrote:
Pappa wrote:
JimC wrote:For example, some people argue that, with wide-spread calculator use, the times tables should be put on the scrap heap. However, a knowledge of the times tables makes processes such as factorisation so much easier... On the other hand, long division is probably best seen as an historical curiosity.
While I'm not sure exactly where I sit on the matter... I do think simple mental arithmetic is a vital life skill. Being able to add, subtract, multiply and divide in your head comes in handy in many, many practical situations. Even now, when almost everyone carries a calculator on their mobile phone, it's not feasible to pull it out for quick sums.
I agree, but it is a diminshing skill except for some that use it daily, I suspect...

I am capable of rapid-fire addition of numbers, simply because of the number of tests I correct. Use it or lose it...
I used to get into trouble in primary school for doing the long division in my head and not showing my work in general, the teacher was sure I was using a calculator, so he put some problems on the board and told me to solve them. He stopped annoying me after that.
Gawd wrote:»
And those Zumwalts are already useless, they can be taken out with an ICBM.
The world is a thing of utter inordinate complexity and richness and strangeness that is absolutely awesome. I mean the idea that such complexity can arise not only out of such simplicity, but probably absolutely out of nothing, is the most fabulous extraordinary idea. And once you get some kind of inkling of how that might have happened, it's just wonderful. And . . . the opportunity to spend 70 or 80 years of your life in such a universe is time well spent as far as I am concerned.
D.N.A.

pcCoder
Posts: 284
Joined: Tue Feb 23, 2010 4:57 am
Contact:

Re: Why Johnny can't code

Post by pcCoder » Fri Oct 14, 2011 5:57 pm

VazScep wrote:
Gawdzilla wrote:I once took a class in Assembly Language just to have something to do.
Some assembly languages are extremely simple. The ARM RISC assembly language was tiny, at least back in the mid-90s. You can learn all the instructions in an afternoon. Teaching kids such assembly languages can show them what computation is really about, and show them how few instructions are actually needed to carry out any task that any computer can perform. Some toy-assembly languages are even used as mathematical formalisms for computation.

Just don't teach Intel Assembler, not for modern processors. That's a monster that only compilers should understand.
I remember doing BASIC around 9yo. When I was about 12 and learned C and C++ I was interested in game programming and also learned some x86 assembler. I coded a keyboard handler and mode 13 graphics routines in assembler before realizing I could do the same thing in the Turbo C++ compiler I had at the time. But it was a good learning experience on how to link to assembler code from a C/C++ application.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests