Live data from Hacker News

Silent Teacher – A game to learn how to code

silentteacher.toxicode.fr

21–30 of 56 posts

Re: Silent Teacher – A game to learn how to code

#21
When I see such projects, I try to remember how I learned to code.

And I certainly didn't do such practices.

First thing I did, was mIRC-script most of it copied from other scripts and retrofitted.

I think this was a good start, since I got something useful out of it and it increased my interest in coding. I didn't understand much of it, not even arrays.

But I wrote a web-crawler with this basic knowledge and a copy of a TCP socket example, got some data from a website, used 10 vars (the start-page of the news site just showed 10 articles at once lol) to save and modify it and spam the titles in the channels, with links to it.

I was intrigued by this power I got, even if I didn't understood much of it, fusing web and irc together, I felt like a hacker...

Later I went to a IT school, studied computer science etc.

Most of this basic stuff was boring and I just did it because I knew it would increase my power over things that interested me, but if I didn't had this "aha-moment" in my youth, I couldn't bring up the motivation...

Re: Silent Teacher – A game to learn how to code

#22
post #2

My problems: 1. This doesn't teach you how to code, this teaches you how to read code and learn arithmetic logic that goes with programming. 2. You use Javascript as a base.

Nothing wrong with using JavaScript as a base.

Of course there is. Learning how to be a developer with JavaScript is like learning how to become a mechanic by fixing Rube Goldberg machines.

Re: Silent Teacher – A game to learn how to code

#25

I don't mean to be mean but some of these answers depend on what language you use. For example var a = '3'; var b = '4'; a + b; Depending on the language may give you 7 or maybe give you 34.

What's an example of a language that, when adding two strings/chars, parses them as integers first?

Re: Silent Teacher – A game to learn how to code

#26
This is fine as an introduction to javascript. It's terrible as an introduction to programming. I really dislike teaching language idiosyncrasies that get in the way of clear expression of logic. And the first few levels are basically nothing but javascript idiosyncrasies.

Re: Silent Teacher – A game to learn how to code

#27

I don't mean to be mean but some of these answers depend on what language you use. For example var a = '3'; var b = '4'; a + b; Depending on the language may give you 7 or maybe give you 34.

For a = 3; b = '0';

I tried to give the answer "TypeError" which I thought deserved full credit, but alas, no. :-)

Re: Silent Teacher – A game to learn how to code

#28
post #25

I don't mean to be mean but some of these answers depend on what language you use. For example var a = '3'; var b = '4'; a + b; Depending on the language may give you 7 or maybe give you 34.

What's an example of a language that, when adding two strings/chars, parses them as integers first?

In perl you use + for addition and . for concatenation. So '3' + '4' converts the strings to integers and returns an integer, and 3 . 4 converts them to strings first and returns a string.

Re: Silent Teacher – A game to learn how to code

#30
post #25

I don't mean to be mean but some of these answers depend on what language you use. For example var a = '3'; var b = '4'; a + b; Depending on the language may give you 7 or maybe give you 34.

What's an example of a language that, when adding two strings/chars, parses them as integers first?

Perl.

Altough its adition only apply to numbers, so that would be a bad example, it does automaticaly interpret digit strings as numbers.

Post reply on HN