News for hackers. Stuff that matters.
Re:Beej's Guide to Network Programming (1994-2020) by LeonM on Thursday February 11, 2021 @06:31AM (#26100416)
Back in 2010 I had my first embedded programming job. I needed to do some network programming in C (controlling a PLC over ethernet). My boss at the time told me "just read Beej's guide and you'll be fine". He was right. That system is running 24/7 since then.

Good to see that the guide is still being updated.

edit: typo

Re:Beej's Guide to Network Programming (1994-2020) by KuiN on Thursday February 11, 2021 @06:57AM (#26100570)
Same here, my first job out of university was network programming on embedded Linux and Beej's guide was an invaluable resource.
Re:Beej's Guide to Network Programming (1994-2020) by anilakar on Thursday February 11, 2021 @07:52AM (#26100926)
Heck, I passed my uni network programming courses thanks to Beej. It also helped tremendously that our professor was a seasoned UNIX programmer and during lectures he actually typed in his own code and ran it.
Re:Beej's Guide to Network Programming (1994-2020) by dan-robertson on Thursday February 11, 2021 @08:06AM (#26101040)
I had a few maths lectures who were highly regarded for turning up and proving things from memory in front of the blackboard. I hadn’t really considered that it might be done in CS.
Re:Beej's Guide to Network Programming (1994-2020) by konjin on Thursday February 11, 2021 @08:39AM (#26101356)
The best lecturer I had in maths would screw up the proofs every time from memory, but the way he screwed them up taught me a lot more than if he'd gotten them right.
Re:Beej's Guide to Network Programming (1994-2020) by dan-robertson on Thursday February 11, 2021 @04:46PM (#26107782)
I remember a lecturer of mine having to state and prove a theorem due to Heawood[1]. I think he did it first because the statement was quite unpleasant and not easy to memorise. I found the point of proving things from memory is that to memorise a proof, one must distill it to key ideas with obvious steps in between. This was particularly useful if you might need to reproduce a proof in an exam.

[1] https://en.m.wikipedia.org/wiki/Heawood_number

Re:Beej's Guide to Network Programming (1994-2020) by renerthr on Thursday February 11, 2021 @08:58AM (#26101532)
Did he acknowledge and fix his mistakes? Or it was just you who noticed and fixed them in your mind?
Re:Beej's Guide to Network Programming (1994-2020) by sjburt on Thursday February 11, 2021 @02:09PM (#26105768)
My experience is that they get about 45 minutes into the lecture, realize that there was an error in minute 10 and spend the rest of the period trying to fix it before telling you to check the book for the correct proof.
Re:Beej's Guide to Network Programming (1994-2020) by dan-robertson on Thursday February 11, 2021 @04:38PM (#26107664)
One professor provided scans of his written notes. For one of the theorems in his notes, he’d stated it, attempted to prove it, failed, crossed out the proof and wrote ‘QED’. At least he was honest enough to include it!
Re:Beej's Guide to Network Programming (1994-2020) by endgame on Thursday February 11, 2021 @05:09PM (#26108054)
Heck, my uni's network programming course pointed people to Beej's work.
Re:Beej's Guide to Network Programming (1994-2020) by ravingraven on Thursday February 11, 2021 @07:05AM (#26100624)
Are you guys me? Exact same story. Network programming on embedded systems. Beej to the rescue.
Re:Beej's Guide to Network Programming (1994-2020) by friend-monoid on Thursday February 11, 2021 @07:42AM (#26100857)
Same here. That book and the Linux api book are just invaluable resources.
Re:Beej's Guide to Network Programming (1994-2020) by vymague on Thursday February 11, 2021 @07:52AM (#26100932)
Which linux api book?
Re:Beej's Guide to Network Programming (1994-2020) by friend-monoid on Thursday February 11, 2021 @08:22AM (#26101180)
The linux programming interface by Michael Kerrisk. It’s incredibly good.
Re:Beej's Guide to Network Programming (1994-2020) by tracyhenry on Thursday February 11, 2021 @02:02PM (#26105695)
How does this book compare to Advanced Programming in the Unix Environment? http://www.apuebook.com/about3e.html
Re:Beej's Guide to Network Programming (1994-2020) by renerthr on Thursday February 11, 2021 @09:00AM (#26101551)
I only found this: https://man7.org/tlpi/

Is there any free or low-cost version?

Re:Beej's Guide to Network Programming (1994-2020) by no_wizard on Thursday February 11, 2021 @10:27AM (#26102453)
You may be able to get it from your local library via an app like Overdrive[0][1]. Some library programs even have a way for you to get free access to Safari Books Online[2] (I'd say most if not all, in the US at least)

My experience has been that there is rarely a backlog on technical materials like this.

[0]: https://www.overdrive.com/

[1]: Example of for the LA public library of what I mean: https://lapl.overdrive.com/search?query=The+Linux+Programmin...

[2]: https://www.spl.org/books-and-media/books-and-ebooks/oreilly...

Re:Beej's Guide to Network Programming (1994-2020) by renerthr on Thursday February 11, 2021 @11:29AM (#26103500)
That's great information, thank you!
Re:Beej's Guide to Network Programming (1994-2020) by no_wizard on Thursday February 11, 2021 @11:44AM (#26103739)
Libraries are like the secret weapon of a learner. I don't know why our industry has such a lack of knowledge about this one! I only recently found out about being able to do this myself

(In some ways, we benefit, since there is little pressure for the large publishers not to offer these kinds of things for free via the library system)

Ancedota (and unrelated to the topic of this thread, but interesting none the less I think):

In California, if you go to a state university (but if I recall correctly this doesn't apply to the University of California system, but the CSU system, if I got my facts straight) they must provide a minimum number of copies of each textbook / reading material required for a class be available via the campus library.

I hardly paid for books once I found this out. I just coordinated with others to make sure it was available when needed. Worked well for me.

I could be hazy on the regulation on this though, it might have just been dumb luck that the two places I went to school had this as a policy, but I remember it being explained as I did above.

Re:Beej's Guide to Network Programming (1994-2020) by thinkmassive on Thursday February 11, 2021 @09:59AM (#26102085)
That’s the high-value version, it’s the only legitimate one
Re:Beej's Guide to Network Programming (1994-2020) by wdb on Thursday February 11, 2021 @08:36AM (#26101315)
Yes, I used the guide in 2006 I think or it at least looks similar. I had used it to write a little webserver in C to talk between the Flash UI and the internals of the device. Worked well :)
Re:Beej's Guide to Network Programming (1994-2020) by Person5478 on Thursday February 11, 2021 @08:17AM (#26101132)
Same for me only it was mid to late 90's and I was interested in understanding MUD code.

I have fond memories of that guide and it's always a treat when it pops back up.