Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: How persistent and smart do you have to be to learn to program?.
Very persistent I would say. I have a lot of persistence, but I don't think that I have enough.
For now, put the train set away, and learn Ruby. With enough persistence, you could end up beating some professionals.
I looked up reversing strings in Ruby and ROR, no wonder you're bored. I had to write all this to get it done in C and it was quite entertaining:
char *reverse(char *s) { char *a=s, *b=s+strlen(s)-1, c; while(a<b) { c=*a; *a=*b; *b=c; ++a; --b; } return s; }
There are no comments on this comment yet.
Very persistent I would say. I have a lot of persistence, but I don't think that I have enough.
For now, put the train set away, and learn Ruby. With enough persistence, you could end up beating some professionals.
I looked up reversing strings in Ruby and ROR, no wonder you're bored. I had to write all this to get it done in C and it was quite entertaining: