Live data from Hacker News

Beej's Guide to Network Programming

beej.us

41–50 of 91 posts

Re: Beej's Guide to Network Programming

#41
post #38

Open question: in what fields are you working where you really need to work with actual sockets? Most of the network programming I do fall into one of two categories: 1. A library exists to abstract over the bytes-into-sockets layer, meaning I don't need to deal with it; or 2. A library probably exists to abstract over the bytes-into-sockets layer, but I've chosen to ignore it either because I'm truly ignorant of it,…

At least on Unix and Windows file read and write methods work for sockets too, so streaming bytes isn't different.

How would you implement, say, netcat? Launch a jango rest service with kubernetes, which will run in a wm if it's a wrong OS, create a certificate with letsencrypt and access it with a react electron app?

Re: Beej's Guide to Network Programming

#42
Beej's guides are fantastic. He went to Chico State and I was happy to learn that his books were used for teaching network programming there when I attended.

Genuinely inspirational hacker. Feel's great to have had that experience at a state school.

Re: Beej's Guide to Network Programming

#43
post #38

Open question: in what fields are you working where you really need to work with actual sockets? Most of the network programming I do fall into one of two categories: 1. A library exists to abstract over the bytes-into-sockets layer, meaning I don't need to deal with it; or 2. A library probably exists to abstract over the bytes-into-sockets layer, but I've chosen to ignore it either because I'm truly ignorant of it,…

I don't work with it either. But I find that learning the abstraction below where you're working at can be quite beneficial to understanding the constraints of your layer, debug, and solve problems.

E.g.: Learn the basics Transport Layer protocols (TCP/UDP) if you work with HTTP

Re: Beej's Guide to Network Programming

#44
Related (note: reposts are fine after a year or so - https://news.ycombinator.com/newsfaq.html):

Beej's Guide to Network Programming (1994-2020) - https://news.ycombinator.com/item?id=26100075 - Feb 2021 (165 comments)

Beej's Guide to Network Programming - https://news.ycombinator.com/item?id=13983212 - March 2017 (44 comments)

Beej's Guide to Network Programming - https://news.ycombinator.com/item?id=13670971 - Feb 2017 (6 comments)

Beej's Guide to Network Programming - https://news.ycombinator.com/item?id=12402313 - Aug 2016 (4 comments)

Beej's Guide to Network Programming (2012) - https://news.ycombinator.com/item?id=9445692 - April 2015 (31 comments)

Beej's Guide to Network Programming - https://news.ycombinator.com/item?id=7584974 - April 2014 (1 comment)

Beej's Guide to Network Programming - https://news.ycombinator.com/item?id=5241220 - Feb 2013 (47 comments)

Beej's Guide to Network Programming - https://news.ycombinator.com/item?id=584557 - April 2009 (22 comments)

Guide to Network Programming - https://news.ycombinator.com/item?id=337371 - Oct 2008 (7 comments)

Re: Beej's Guide to Network Programming

#45
post #38

Open question: in what fields are you working where you really need to work with actual sockets? Most of the network programming I do fall into one of two categories: 1. A library exists to abstract over the bytes-into-sockets layer, meaning I don't need to deal with it; or 2. A library probably exists to abstract over the bytes-into-sockets layer, but I've chosen to ignore it either because I'm truly ignorant of it,…

1. Writing the libraries you describe

2. Speaking unusual protocols for which (good) libraries don’t exist.

3. I think interacting with the sockets api can also be relevant for tweaking various options to get better performance (though often there are Linux defaults that can be tweaked instead)

Re: Beej's Guide to Network Programming

#46

All Beej's guides are fantastic, but if you're interested in Network programming you could do way worse than follow this up with his guide to network concepts. https://beej.us/guide/bgnet0/ If you search Algolia for Beej you'll see his material has been on hacker news numerous times.

Is this better as a preface to Network Programming or a suffix?

Re: Beej's Guide to Network Programming

#47
I love this guide, I gave this link as a reference to my students when I was teaching networks a few years ago. But the last time I looked at it the guide didn't have IPv6 taken into account! Very nice to know that it is now the case! Thanks for posting :).

Re: Beej's Guide to Network Programming

#48
post #23

There is also a C guide [1] which has a pretty interesting email policy... I’m generally available to help out with email questions so feel free to write in, but I can’t guarantee a response. I lead a pretty busy life and there are times when I just can’t answer a question you have. When that’s the case, I usually just delete the message. It’s nothing personal; I just won’t ever have the time to give the detailed ans…

Why not like ...just leave the message alone lol?

We don't have 64 Kilobytes of limited memory on our email servers anymore.

Re: Beej's Guide to Network Programming

#50
post #14

> "The way I see it, it's the educators who hold all the power in the world. No, stop laughing and hear me out. A good instructor can, over the course of their career, create hundreds of millions or even billions of dollars of GDP. Let's say a teacher teaches 40 students a year for 30 years. And Each of those students goes on to work for 40 years. And, due to the quality of instruction, they earn $10,000 more per yea…

Yea he's using economic output as a measure.. then equating it to having power, which is laughable.

Anyway, in an age of information abundance and videos, educators are overvalued if they just give instruction alone. It's the whole package, the checks and balances on the student, that possibly provides some sort of value. Then again, there are irregularities, like the programmer who's never been to college who contributes as much or even more.

Post reply on HN