Live data from Hacker News

Tell HN: My child's first program

news.ycombinator.com

101–110 of 139 posts

Re: Tell HN: My child's first program

#101

My girl's favourite saying at the moment is "command not found". That's the thing she reads the most, except on the occasion it does something. Walking around the house saying it gave way to answering back to requests with "command not found daddy". What have I unleashed?

She's a keeper. Edit: whoops, I read that as my girlfriend. I will say your daughter has a good dad as this is a sign you spend meaningful time together.

Re: Tell HN: My child's first program

#102
post #41

Earlier quoted context omitted.

As a kid? When writing stupid scripts, I frequently use `fart` as a variable name to this day. I'm a staunch supporter of naming variables intentionally in software that lives, but I'm definitely not above doing a `fart=True; while fart: ...` in temporary repl work. Maybe I'm just eternally 10 years old, haha.

I must be old-fashioned! My variable names in throwaway programs tend to be x, y, and z and my iteration variables tend to be i, j, and k.

When I learned programming the BASIC variant I used only supported two-character variable names. And even where longer names were allowed, the text of the program consumed memory so you could optimize by keeping variable names as short as possible. So I had the habit of using single-letter variables for quite a while. I still use them as loop counters, or in small functions where the scope of the variable is maybe a few lines of code and completely unambiguous. In such cases I think long variable names are distracting.

Re: Tell HN: My child's first program

#103
post #87

Would you mind sharing how old is your child? My son is almost three. I also want to get him into programming. I am utterly sad that my dad wasted his brain doing manual labor as we grew up in a small city in Poland and he never had the resources to even own a computer. He would be a good programmer, as I got it from him. He is really good at finding solutions to repetitive tasks and hates to do the same thing twice.

My father was a brickmason. He could lay a completely level row of brick, using no line- and in the time that it would take 3 people to do the same thing. After a long conversation with him about learning and doing things- I realized that he would have been a very good programmer if he had been able to do so.

Re: Tell HN: My child's first program

#104

I love the variable names. I definitely had the same naming conventions as a kid :) Funny story. Sophomore year at college, I worked at a dev shop, and I was the first person to set up version control there (CVS... it was like year 2000.) The next day I reviewed changes that were merged and variables $tit and $ass were all over the place. I assumed the guy who checked it in was just immature and met w him to "profess…

I lied! It wasn't CVS... It was Visual Source Safe!

Re: Tell HN: My child's first program

#105

Earlier quoted context omitted.

>they could have a phone if they made an app I think this is a great way to get your kids to have a habit of self-learning. In my opinions, this is the single most important skill a kid can learn. Every time my little cousins ask me something they want to learn, I go with "Let's search for the answer together" and guide them on how to do basic research. Sometimes I ask them follow-up questions if they find the topic…

I think it's a great way to ensure that the only motivation your kids have is external. "What's the point of doing X is no one offered me a phone for it" When I was a kid, I heard that some friends were getting money from parents as a reward for good grades. I always had good grades so I suggested to my mom that I should get money for good grades. She said "No, because then you'll get used to only work hard when I'm…

There is this book "Drive The Surprising Truth About What Motivates Us" which makes the same point, they also cite some studies about this.

Re: Tell HN: My child's first program

#106
I showed many kids in my school how to program the Commodore 64 on display in the local KMart to display obscenities to shoppers:

10 PRINT "Whatever obscene thing comes to mind"

20 GOTO 10

RUN

That's probably the only code many of them ever learned.

Re: Tell HN: My child's first program

#107

Adorable. Interesting that mindstorms didn’t take while Python did. I’d kind of assume the opposite, since MS is more tangible and easier to visualize.

IMO Mindstorms is a bit more of an all-in proposition; you have to build a thing that does a thing, and then build a "complete" program for it. I never really got into Mindstorms either, I remember I would build a thing, then use the pre-loaded programs to run stuff, but then because I was starting from zero and didn't really have an understanding of what was going on, I wasn't able to really fiddle around very much.…

That was my experience with it, too. The feedback time is just too long for autodidactic play. Leetcode style stuff and hacking stuff together in Python? Fantastic.

That said, I did get really into Mindstorms when I went to summer camp that split the days between that in the morning and 3D modeling in the afternoons. Once the time was more structured, the feedback loop of "modify working code on a working robot and see what happens" was very fulfilling.

Re: Tell HN: My child's first program

#109
post #84

Earlier quoted context omitted.

Now re-contextualize that as if it were an employer/employee relationship. That's actually a pretty messed up lesson to teach a kid about negotiation and self worth.

But it's not an employer/employee relationship. It teaches you that you should _also_ consider your own long term goals, as opposed to only chasing the someone else's short term goals. I think it's a great lesson to teach a kid about self-worth.

This seems like someone else imposing their own long term goals onto you because they allegedly know better.

You didn't describe any explanation of why good grades are an important step towards your own long term goals.

I'm not saying that paying for grades is a good way to motivate kids. I'm saying that framing it as "I won't pay you because it'll make you lazy" is a very weird way to teach a kid about long term payoffs.

Re: Tell HN: My child's first program

#110
post #44

Earlier quoted context omitted.

Every Commodore 64 in every department store that I went to was running that loop (but with "Hello") after I left.

I got thrown out of Currys (UK electrical store) aged 11 for doing that with 10 PRINT “Welcome to Currys the electrical ripoff store” 20 GOTO 10

The key was learning how to add a delay at the beginning and then the bell character in the message.
Post reply on HN