Live data from Hacker News

Beej's Guide to C Programming

beej.us

31–38 of 38 posts

Re: Beej's Guide to C Programming

#31

Earlier quoted context omitted.

your timeline is a bit off there, but yes

His timeline sounds exactly right to me, I basically did the same thing. Mid-late 90s I used Beej's network programming guide to write an IRC client.

However, by late 90s you weren't paying for a C compiler, you had Cygwin, MinGW, or DJGPP (OK, probably no sockets in that case).

Re: Beej's Guide to C Programming

#33
In the time section it has:

    .tm_sec=04,    // seconds after the minute -- [0, 60]
Since a leading zero means octal I wouldn't suggest writing a number this way. Of course, in this case octal 4 == decimal 4.

Re: Beej's Guide to C Programming

#34

Earlier quoted context omitted.

Beej's Guide to Network Programming was how I fumbled my way into socket programming AND C. I can't remember if I first encountered it in the late 90's or early 2000's. It's funny to think about that world now. Unless you had a shell account or ran Linux or some sort of Unix you had to _pay_ (or... not pay) to get access to a C compiler. If you were lucky you'd get access to some FTP servers via IRC that might have s…

your timeline is a bit off there, but yes

Screenshot of GCC 10.2 compiling its own source code Original author(s) Richard Stallman Developer(s) GNU Project Initial release March 22, 1987; 36 years ago

Re: Beej's Guide to C Programming

#35
post #33

In the time section it has: .tm_sec=04, // seconds after the minute -- [0, 60] Since a leading zero means octal I wouldn't suggest writing a number this way. Of course, in this case octal 4 == decimal 4.

Good catch... I warn people of this very problem elsewhere in the guide. :)

Lucky I didn't go with nine...

Re: Beej's Guide to C Programming

#37

For those who might not be familiar with Beej, this is not his first or only guide. They're all excellent. There's a link near the top of the page: "Click here for other Guides" Also, see previous posts here on HN https://news.ycombinator.com/from?site=beej.us

Beej's Guide to Network Programming was how I fumbled my way into socket programming AND C. I can't remember if I first encountered it in the late 90's or early 2000's. It's funny to think about that world now. Unless you had a shell account or ran Linux or some sort of Unix you had to _pay_ (or... not pay) to get access to a C compiler. If you were lucky you'd get access to some FTP servers via IRC that might have s…

It was some random socket program I found on an FTP server that got me going on writing this whole thing. The sockets API was pretty confusing in terms of the sequence of what to call when and how, but this sample program spelled it out pretty simply. (So thank you, anonymous author!)

Then it was just lucky timing with the web picking up around then and the fact that we had just gotten NCSA Mosaic installed on the computers at school. :)

Edit: Pretty sure the first version of the guide was ~1995.

Re: Beej's Guide to C Programming

#38
post #37

Earlier quoted context omitted.

Beej's Guide to Network Programming was how I fumbled my way into socket programming AND C. I can't remember if I first encountered it in the late 90's or early 2000's. It's funny to think about that world now. Unless you had a shell account or ran Linux or some sort of Unix you had to _pay_ (or... not pay) to get access to a C compiler. If you were lucky you'd get access to some FTP servers via IRC that might have s…

It was some random socket program I found on an FTP server that got me going on writing this whole thing. The sockets API was pretty confusing in terms of the sequence of what to call when and how, but this sample program spelled it out pretty simply. (So thank you, anonymous author!) Then it was just lucky timing with the web picking up around then and the fact that we had just gotten NCSA Mosaic installed on the co…

Never expected I'd get a reply from Beej themself.

Thank you for your contribution. Your work enabled me to send some bytes from one place on the internet to another, which ignited a passion and a career for me. Thanks again.

Also, thanks for making me wonder where Chico State was and what the pizza was like.

Post reply on HN