Live data from Hacker News

Ask HN: Can you program without an Internet connection?

news.ycombinator.com

1–10 of 28 posts

Ask HN: Can you program without an Internet connection?

#1
I ran a little experiment the other day to see how I would get on coding without an Internet connection. I was doing a bit of web development, mostly frontend stuff, and was proud of how many obscure HTML elements I was using like and etc. Then the urge to open a browser came within 10 minutes of coding. I wanted to code a hamburger menu, but didn't want to reinvent the wheel. Specifically I wanted the hamburger menu to work with CSS only so was looking for a snippet of code that done that, but had no Internet.

I was genuinely asking myself: 'Am I even a competent developer if I have to use the Internet every five minutes to code?'

How do you cope with this feeling, of tapping into the Internet hive mind to code properly?

Re: Ask HN: Can you program without an Internet connection?

#2
You can, with a bit of effort, gather up a large offline documentation collection; and even if its not totally current it can save yer ass when you're without connectivity. Even if you have a solid connection there's latency advantages.

If you have a stack of library references next to you when you're programming, be the online, offline, or actual books, are you less of a programmer? Or are you leveraging information technology to best use by only mentally maintaining the index of where the thing you need to know is?

Re: Ask HN: Can you program without an Internet connection?

#3
Internet resources are here, we use them.

When it did not existed, we used simpler technologies: A good book was enough to code a 1970/1980' microprocessor, or in C language (for example thanks to "The C language" of Ritchie and Kernighan).

Even 20 years ago, it was possible to code with a small desktop documentation on Internet standards. HTML4 [0] (~2000) was something simple to code, and as you know coding a TCP socket is something really trivial.

[0] https://www.w3.org/TR/html401/

Re: Ask HN: Can you program without an Internet connection?

#4
Yes, I can. The limiting factor for me is when I hit a library I'm less familiar with, then I go to its documentation which may or may not be installed with it. I've found over the past decade that StackOverflow and similar Q&A sites offer very little to me unless I'm brand new to a language or environment. I suspect this is largely because I learned to program in the 90s by reading manuals instead of paying attention to classes, then going home and trying out what I learned. I still practice that, I mean I decided to learn Smalltalk properly so I read the Bluebook over a week last month. Of course, I also tend to have books available and have good recall for which book and which section has information I want. When I was programming C# a lot (now almost a decade ago), I had a couple heavy reference books, and when I hit a snag they were my first stop. I'd read the relevant section or chapter, probably one or two more, and get back to it. And when I had downtime, I'd just pick them up and read random sections.

Re: Ask HN: Can you program without an Internet connection?

#7
I feel this is less about a hive mind, and more about having access to reference materials. We all need to check documentation from time to time. Back in ye olden days, we had books on our desk for language references. I don't miss that, but neither am I going to feel like I am a weak programmer just because I need to look something up.

Re: Ask HN: Can you program without an Internet connection?

#8
We used to have documentation and dev libraries installed on our machines. If you downloaded, compiled and installed a new library or tool, it came with documentation. We also had CDROMs and floppies full of the source code. And you could download whole archives of HOWTOs pretty quickly. Reference manuals and books were a thing too.

Nowadays if I'm going to be working from a train or plane, I download as much as I can ahead of time. But since modern libraries and apps don't come with docs, it's harder than it used to be.

Has anyone born after 1995 even written a man page before?

Re: Ask HN: Can you program without an Internet connection?

#10
post #6

I only use whiteboards for coding since that's how it's done in interviews /s

I've often used a whiteboard notebook, specifically the Nu Board. It's great for iterating on a concept and also sharing with others. It also has transparent sheets so you can protect the drawing on the whiteboard portion, or put printed (or other) material underneath to draw over without marking it up directly.
Post reply on HN