Live data from Hacker News

Teach Yourself Programming in Ten Years (1998)

norvig.com

281–290 of 323 posts

Re: Teach Yourself Programming in Ten Years (1998)

#281

I bought a copy of "Sams Teach Yourself C++ in 24 Hours" at a CompUSA in 1999. The guy at the checkout looked at it, laughed, and told me about this article. When I was 16 I was looking at programming books at Borders and a guy handed me a copy of "The C Programming Language"; changed my life. So much of my career has been shaped by running into developers or just people interested in programming out in the world. Th…

Might have been 2001.

Re: Teach Yourself Programming in Ten Years (1998)

#282
post #158

Earlier quoted context omitted.

Fundamentals don't change. Sure there's a new frontend framework every week but they're all just generating html.

+1. What are the fundamentals of CS? Algorithms?

Read SICP and do the Scheme (a LISP) exercises oline:

https://sarabander.github.io/sicp/

If you want to run these locally, I can set Chicken Scheme for you.

Re: Teach Yourself Programming in Ten Years (1998)

#283

Earlier quoted context omitted.

> But thing I miss from back then, was the feeling that the book was going to be the key to getting you started writing whatever crazy idea you had for a program in your head. Yes! I miss it too. For me, that book was Head First PHP & MySQL[0] - Late 2000's, I was living and working in Thailand for a family friends small logistics company in the capacity of a BA, trying to move them into this century. We were trying…

How long did it take you to learn what you needed to learn, and how long to "ship" your "product"?

IIRC, 3 months to hack together a CRUD like app, another 3 to “ship” the “product”, and yes, quotes very much intended.

I did spend the next year or so adding features, bug fixes, etc. It was very much a case of learning on the job and I was quite fortunate to be in the position that I was. I think it was 2 or 3 years later I managed to land a dev role at Agoda (who had offices in Bangkok at the time)

Re: Teach Yourself Programming in Ten Years (1998)

#284
post #180

Earlier quoted context omitted.

>> It'd be like being a carpenter or mechanic but spending the majority of your time debugging, fixing, and communication with manufacturer's of broken or poorly working tools. What do you think a mechanic does ALL DAY? Very few carpenters start with a raw blank of nice wood and craft something amazing. It's all interpreting plans (poor spec), framing (boiler plate), figuring out an addition (bolting on features to a…

> What do you think a mechanic does ALL DAY? Are you implying that they are fixing their tools rather than cars? I don't know any mechanic that would put up with that and would replace their tools with tools that actually work.

I think the implication was that mechanics generally spend all day "debugging" a car or other machine.

Re: Teach Yourself Programming in Ten Years (1998)

#285

I bought a copy of "Sams Teach Yourself C++ in 24 Hours" at a CompUSA in 1999. The guy at the checkout looked at it, laughed, and told me about this article. When I was 16 I was looking at programming books at Borders and a guy handed me a copy of "The C Programming Language"; changed my life. So much of my career has been shaped by running into developers or just people interested in programming out in the world. Th…

> programming books [...] a copy of "The C Programming Language"; changed my life.

My particular life-changing book was the BASIC manual that came the C64.

This was then reinforced when (~8 years later) I got Turbo Pascal, and it came with everything needed to get up to speed, then further reinforced when I started with Linux in 1995, and discovered that manpages (and info) were installed that basically got me up to speed on everything needed to write programs for that system. Later, late-90s, ISTR reading through the EGCS manual front-to-back.

I miss the days when the software came with all information required, instead of simply requiring you to search google for a product page or a manual.

I guess in about 5 years I'll miss the ability to easily google stuff (which I used to get in manuals) because all the relevant information got posted to discord and remained unindexed.

In early 2000s I learned sockets programming on Linux and FreeBSD completely from the manpages. Later I got Stevens' book and got through it very quickly, thanks to having already tried the manpages and written a few programs.

Re: Teach Yourself Programming in Ten Years (1998)

#286

I bought a copy of "Sams Teach Yourself C++ in 24 Hours" at a CompUSA in 1999. The guy at the checkout looked at it, laughed, and told me about this article. When I was 16 I was looking at programming books at Borders and a guy handed me a copy of "The C Programming Language"; changed my life. So much of my career has been shaped by running into developers or just people interested in programming out in the world. Th…

I wonder who's going to write the "Teach yourself Rust from scratch in 21 days" book. If C and even C++ can be learnt effectively as a first programming language, there's little reason why Rust couldn't be. And if not Rust, maybe Golang could play that role.

> If C and even C++ can be learnt effectively as a first programming language, there's little reason why Rust couldn't be.

You must not be very familiar with Rust.

Re: Teach Yourself Programming in Ten Years (1998)

#287

Earlier quoted context omitted.

https://en.wikipedia.org/wiki/C_mathematical_functions#compl... https://learn.microsoft.com/en-us/cpp/c-runtime-library/comp... https://en.cppreference.com/w/c/language/arithmetic_types#Co...

Yes. They already got the answer, thanks. Pointing out links after the fact is laughable. Some of you are set in this idea that an LLM can possibly not be even slightly helpful that you have to trudge through pages of documentation just to look for one slight thing that it'd have told you right away _if_ you wanted it to.

Hacker News is a strange place.

Re: Teach Yourself Programming in Ten Years (1998)

#288

Earlier quoted context omitted.

https://en.wikipedia.org/wiki/C_mathematical_functions#compl... https://learn.microsoft.com/en-us/cpp/c-runtime-library/comp... https://en.cppreference.com/w/c/language/arithmetic_types#Co...

Can't use any of that, because they all use complex.h (not supported by my compiler) and I have an interleaved array of complex numbers where 0 = real, 1 = imag, 2 = real, 3 = imag etc. Dear ProbablyRealPersonGPT, please provide the necessary code in C with a short explanation

It must be old or weird, then. I thought older versions of MSVC were the only C compilers in real use that didn't support it?

Re: Teach Yourself Programming in Ten Years (1998)

#289

Earlier quoted context omitted.

I wonder who's going to write the "Teach yourself Rust from scratch in 21 days" book. If C and even C++ can be learnt effectively as a first programming language, there's little reason why Rust couldn't be. And if not Rust, maybe Golang could play that role.

Golang yes, but not rust. I think rust is a terrible beginner language. Despite having decades of experience it took me about a month to feel productive in rust and stop “fighting the borrow checker”. I learned Go in about 12 hours. Let beginners cut their teeth on stuff like Python and Go. Rust can wait.

Yes but that's the thing, if you pass everything by value or read-only reference you don't have to deal with the borrow checker, and that's quite acceptable when you're first writing code. That's why I think Rust is almost a FP language in disguise with imperative features added after-the-fact - and it could be taught as such.

Re: Teach Yourself Programming in Ten Years (1998)

#290

Earlier quoted context omitted.

Can't use any of that, because they all use complex.h (not supported by my compiler) and I have an interleaved array of complex numbers where 0 = real, 1 = imag, 2 = real, 3 = imag etc. Dear ProbablyRealPersonGPT, please provide the necessary code in C with a short explanation

It must be old or weird, then. I thought older versions of MSVC were the only C compilers in real use that didn't support it?

That's another thing I like about ChatGPT. It doesnt judge my compiler ;)

... Which is Tiny C Compiler

Post reply on HN