Ask HN: I won't have Internet access for months, How could I use my time?

91 points by awabrh ↗ HN
Am a software developer located in Khartoum, Sudan. The country is going through a turmoil.

Long story short Internet access is becoming more and more unstable, probably will go completely out within the next week.

I want to know what can I do to utilize my free time to be a better developer, but almost every development environment/learning resources requires internet access.

- I have 1 YOE as an Android Developer

- I am self-taught

77 comments

[ 5.4 ms ] story [ 166 ms ] thread
I'd practice math problems, in the areas of linear algebra, vector spaces, and so on. The experience will help me assimilate AI/ML better once I get Internet back.

Also, for variety, I may discipline my thought process further by learning mathematical proof techniques. The extra discipline will help me acquire knowledge of deeper subjects, with less effort.

You can download all of Wikipedia (20 GB for English):

https://meta.wikimedia.org/wiki/Data_dump_torrents#English_W...

You can also download Android documentation:

https://androidsdkoffline.blogspot.com/p/android-offline-doc...

You can KINDA download MDN (very YMMV and $$$):

https://developer.mozilla.org/en-US/plus/docs/features/offli...

https://devdocs.io/offline can also download 600 documentation sets into the browser. I don't know how reliable it is over several months "Note: your browser may delete DevDocs's offline data if your computer is running low on disk space and you haven't used the app in a while."
Shame they don't offer something like an electron app with guaranteed persisted storage. Or even just a .zip containing everything, to be served from a local web server.

Maybe install it into a separate browser profile & make a backup of it just in case

If you're using firefox, create a separate profile and add devdocs documentation to it. That keeps your docs isolated from general browsing and so you reduce the risk of the browser deleting it to free up space.
Thank you for giving me the solution to this problem!

I always wanted devdocs to work (long train journeys especially would suddenly be more fun) but after this happened a couple of times and I couldn't figure it out or stop it I gave up.

Another thing you can checkout is for example HTTrack, you can use it to make a local clone of a website. I have used it when moving to a remote location where I wouldn't have Internet for a long time.
Nice that you recommended HTTrack.

That's a name I haven't heard in a long while: a blast from the past :).

"You can KINDA download MDN"

Or you just download them zipped here:

https://kapeli.com/mdn_offline

In general, you can use a crawler and download (allmost) any website you like. Works better with static sites of course, but learning ressources usually are.

You can download documentations (directly, or through apps like zeal or dash), e-books for your preferred topics, make local copies of videos (with yt-dlp) and from open source-projects. Just studying source code and documentation, and making some small projects of your own should help you by leap and bounds.
Also very importantly, you can download parts of Stackexchange (askubuntu, stackoverflow and others) in Kiwix format (same as Wikipedia). You can download courses from Khan Academy this way. https://www.kiwix.org/en/

I used to spend several months with very little Internet access (every other week on my cell phone). I made a small server with Jellyfin, tons of podcasts with airsonic, several youtube channels, a big Kiwix library (Wikipedia and Wiktionary - several languages), an ebook library (I haven't found the right way to do it, Calibre-server is a little complicated). https://github.com/awesome-selfhosted/awesome-selfhosted

And also a dozen of physical books, typically in a language I'm learning.

I'd pick up e-book copies of the computer books that are famous for having lots of follow-along problems to solve.

SICP exercises, "learn to code" books are generally structured that way. 'How to build X' books are similar.

Not a suggestion necessarily, but 'Land of Lisp' is mostly taught through author-guided tutorials and how-tos for small projects. I imagine that format would be useful in a disconnected area.

I remember working through Brian Harvey's SICP lecture notes and HWs a couple of years ago. Each Homework had one harder exercise labeled "Extra for Experts" which I later found out was standard in a lot of UC Berkeley courses.

The recursion HW was really fun so I took it upon my self to never look up the answer to the Extra exercise no matter how long it took me to solve it. The problem was to re-implement the recursive function of the last exercise using only lambda functions. I wrestled with it for hours, then gave up, then got back to it days later before I finally cracked it.

Later that day I googled the question to see better/ more elegant solutions and found out about this thing called Y combinator, I googled it to know more but everywhere I look I see this company called Ycombinator. Down the rabbit hole I went and 27 PG essays, 230 HN hrs and 2 years later, here am I

Good times :)

Use some of the time to take a break from internet style interactions, read a few classic books.

But before you go just download a couple of IDEs and all the documentation for them and the language you want to use and install all the libraries you might think of using. Then turn off the net and see how it goes.

Or just download Emacs and a bunch of elisp resources. The create some applications and tools in Emacs. It is pretty self contained.

We used to write huge applications without any network access of any kind.

Maybe download ebooks, especially those that teach you how to go to the next level in your career beyond the programming you're doing now. And download any development environments you need. Libraries are going to be hard so download as many common ones as you can.
If you have free time, you could try to build an (offline) app that you or someone near you might need. It is good fun to find a user and build features for them.

Other comments have great pointers for downloading docs/books/resources offline. Also textbooks are underrated.

I would see if you can get an ebook of "code complete". I like that book a lot. It's full of (dated) examples and good advice.

If you have the bandwidth I would get two IDEs, maybe Android Studio and Eclipse and give yourself some projects to do.

Also, if you have the time it's not a bad idea to familiarize yourself with blender.

You could apply for funding from a charity to get a copy of the Internet Archive. The IA is making incomplete copies including search function available in form of a container containing several 19" racks called the Petabox: https://archive.org/web/petabox.php

This is still useful after the conflict is over, as rebuilding infrastructure can take decades, and the container could be beneficial if hosted e.g. by a school.

You could create a mesh network that links local organisations to the Petabox without being initially connected to "the" Internet.

In any case, I wish you personally well and peace to your country!

So if one can't find bread, one should go for cake.
Your point is what? OP should single handedly bring the conflict to an end instead? Is he Iron Man?
I think the point is, that this is slightly overkill and not so practical. He could be offline for unknown time any minute now. Applying now is a little bit late. Now you just download what you can
I know this is extreme, but maybe you should consider reality?
Do you understand that OP lives in the city where the fighting is taking place? This advice is very unrealistic on several levels.

Other people right pointed out to download some e-books.

if you try to do any local development you might also need to cache dependencies locally (somehow, predict deps in advance)

probably easier you find someone to sponsor you like internship and you move to some place that has better connectivity (maybe border town)

I spent about a month without internet. I will be honest the last thing I touched was the learning resources. I downloaded youtube videos using ytdl and kept watching them on repeat. I would see a tv series every now and then, but nothing beat YouTube videos. You can request your entire liked videos information from Google. Moreover, it is very difficult learn programming without actually doing it and you can't realistically do programming without Google these days.

I don't think not having internet doesn’t suddenly make you 10x productive or 10x focused. You are the same person with and without internet. Just admit that upfront.

So, prep for it and try to replicate what your habits are with having internet.

You can download a few learning resources but please don't go overboard. Focus on one thing you want to finish completely. Don't go on a downloading spree.

"Don't go on a downloading spree."

Why not? Where is the harm?

It is better to have a book you don't need, than to not have books you discover you do need and memory is cheap.

I spend lots of time off grid and I surely did not touch every ebook I had in my collection, but it was still nice browsing through what I had and then choosing the one I wanted that moment.

> you can't realistically do programming without Google these days.

This is really not true. Try it. It's not that hard, and will likely make you a better programmer.

The thing is that, it is not hard rather, I believe it is unproductive. Learning programming in my opinion is having an understanding of a problem, an abstract idea of a solution and then zigzagging and tumbling across that solution with code.

The end goal is providing a programmatic solution to a problem. The issue is that coding and googling provides the experience of journey across a solution. Hence the zigzag. You try this, you fail, you google why you failed, you learn something new and you try again. This kind of efficient feedback loop helps you learn.

The problem is that without google you have to waste trying to find a solution. The impact is not immediate. There are no progressive bumps of learning. Moreover, without googling you end up doing very hacky programming. Because you only have access to what you know. You can't explore things readily because there is a friction.

For a mature programmer, you can make that suggestion, because they are confident about their knowledge and way around documentation. But for new learners I don't recommend this at all. I have tried this, and this creates a very fatiguing experience.

> This kind of efficient feedback loop helps you learn

I feel like this helps you solve the problem, but doesn't actually help you learn. The time you're "wasting" trying to find a solution is time you're actually spending learning, not just learning how to code, but learning how to actually formulate a solution. Failure is also one of the biggest parts of learning. "Very hacky programming" is just a start, it's like a vomit draft of anything you're writing. Revisiting your code and figuring out what you can do better is how you end up with more eloquent code.

In my experience, no one really explores when googling for answers, they are just searching for an answer.

I know this is extreme, but maybe you should consider reality?
Reality in Sudan seems pretty rough right now.
Given your skill level, I would recommend working through the Structure and Interpretation of Computer Programs in Racket, which has a nice self-contained development environment.
Old guy here, About 1/3 of my computing time was pre internet. Before that we did a lot of trial and error, reading electronic documentation (READMEs etc) and also books.

Depending on your current skill level perhaps the following would help.

I would recommend getting a book on each of your interest areas of the stack and work through them ~2 hours per day per book.

eg: a curriculum could be:

- A book on linux, android, or iOS operating systems. Learn about filesystems, reading binary files, and at least one binary file layout to get a sense of "it's all just data" (Hexdump or C)

- A book on networking (learn all the OSI layers, practice working with the various envelopes, see them in TCPdump / Wireshark or other sniffing tools

- A book on internet like technologies eg: https://hpbn.co/

- A book on Frontend development. perhaps React

- A book on Backend development. Perhaps something about making HTTP + RESTful + JSON apis (alternative GRPC development)

- A book on a datastore of choice, I recommend postgres and you can grab the manual and books from here: https://www.postgresql.org/docs/

just my 2c of how I'd spend ~1 month per book offline but still progressing.

The hardest part is going to be the discipline to actually work at it every day consistently and for more than like 15 mins :)

Pretty interesting to think about how the internet has changed engineering. Eg if most things were learned by book in the past, I’d guess that would result in more coalescence around the standard libraries — need enough readership to make it worth writing a book on it, and it’s also easiest to find the books that are most widely available. Now that we have internet and can easily find stack overflow pages, it probably leads to package proliferation, and less solid knowledge of the standard libraries.
Certainly some element of that - though there was also just a dearth of packages/libraries for most languages, you got the compiler, the standard library and if you where really lucky some vendor extensions that didn't make you want to weep softly.
I agree with this. I travel a lot and read a lot of ebooks. I also get a fair amount of work done without internet connectivity.

  * plan out exactly what you'll be working on, to the minutia
  * save source and upstream dependencies locally
  * have a local environment where you can build and run the code locally
  * download specific sites and documentation with `wget -r` and the like
  * have multiple things stacked up for if you hit a blocker on one project.

If it's a solo big project you can work without internet in perpetuity. You just have to RYO on any libraries you don't have downloaded before hand.
Fun true story. I had a professor in university who only had 1 finger on 1 hand. He would plan out whole programs in his head, debug them mentally (step the code afaik), and then when he knew exactly what he wanted to write, he'd sit down and pluck away at his keyboard, one effortful keypress at a time.

He was productive and smart enough to do it, and I think it's a great exercise for engineers to at least try a few times. Try to think about what you're going to write before you even open your editor. Try to break down the strategy into a recipe of things that can be done in about hundred lines each or so. Then sit down and type it out.

something similar to my process when I was in university doing my internship and was doing half requirements gathering as a business analyst and half developer working on different small projects. It's really helpful to organize yourself , visualize the code, the problems, plan it out on paper and then code... less coding more design upfront.
I hope he's having a heyday with chatGPT translating his voice into code.
Focus on health and safety for yourself and people you care about. In the hierarchy of needs of becoming a better developer, I would say that is foundational.
Get ebook dumps while you can. Some of those are Russian, but most are not.

https://rutracker.org/forum/viewtopic.php?t=5705905

The first post includes an index that leads to a dozen more dumps, grouped by programming language and/or field. Look for links named "Скачать".

If you manage to see this comment before moderators remove it, good for you. If not, at least I tried — there's no contact info in your profile to contact you privately. (Sorry dang. I've been through similar shit and the last thing you care about in that situation are "intellectual property rights" of some Mr. Moneybags from the opposite side of the globe).

Is hosting a small local LLM possible yet that is trained e.g. on wikipedia and developer resources? That would be a really awesome use case.
I would read a couple books about software architecture principles and design patterns (not just the good, but also the bad and the ugly), how to write good tests, TDD, etc. I remember reading about all this as a teenager and this knowledge (both, which principles to follow and which not to follow) has become invaluable to me over the years.
Not sure if practical or affordable, but could consider getting your hands on a Starlink, then selling wifi access to people around you to help cover the cost of the Starlink subscription. Seems like there's coverage in Khartoum.

Good luck out there!

https://ts2.space/en/starlink-in-khartoum-khartoum/

I think the rise of GPT is going to push more engineers into being subject matter experts. My advice is to pick a subject that you are interested in and have resources to learn about and become an expert. That way when your access is restored you can better work with gpt
I'd download and run a few open-source LLMs that can be run without internet access and a laptop - can be an infinite source of math problems, quizzes, programming challenges, etc., that should keep you occupied for a very long time.
Setup a caching repository proxy like nexus: https://github.com/sonatype/nexus-public

This is a little server you run locally and point your package managers like Gradle, pip, npm, etc. at it and it will grab dependencies from their upstream and cache them locally to be available offline later. Once you get it setup go wild adding every dependency you can think of using so it preloads the cache with good stuff. Unfortunately offline caching for package managers is really hit or miss and rarely a priority to support, so expect some pain getting it all setup. Good luck.

Also if you haven't already consider installing and learning languages with a good standard library so you can install them once and do a lot of stuff. Python, go, and deno are really good options with capable standard libraries out of the box. Avoid nodejs or similar minimal/no standard library languages. Rust is surprisingly bad/hard to use offline in my experience too (cargo constantly wants to hit the internet and needs a lot of handholding to play nicely).

I know this is a hard situation and I don't want to make light of it, but maybe for inspiration you can look at what some other programmers were able to accomplish by deliberately going offline for some days/weeks. I was reminded of this post by John Carmack about why he chose BSD for his offline programming week, instead of Linux.

https://www.facebook.com/permalink.php?story_fbid=2110408722...