News for hackers. Stuff that matters.

Ask HN: Working Offline for 8 Hours?

I'm going on a long flight and would love to use the time for coding. Any tips how to do it ? I would love to download the whole internet or maybe just stack overflow and GitHub :)

Can work without it BUT for some interesting stuff it is really helpful. Also npm or pip require a internet connection that makes things harder to play around with new libraries.

Would appreciate any hint.

( 7 comments | on HN )
Re:Ask HN: Working Offline for 8 Hours? by PaulHoule on Saturday April 16, 2022 @02:26PM (#31054759)
If you were programming in Python or many other languages you could download documentation and have a local copy.

In both Python and Java doing a mini-project I frequently challenge myself to only use the standard library. It's good for practicing HackerRank-rank style programming (the fun of single-file Java)

When I am waiting for builds I sometimes hack on this

https://github.com/paulhoule/pidove

because I don't really like the Streams API and want to perfect my mastery of generics and internal DSLs.

Now that I think of it, standard-library only for node seems like a good challenge for me because I code a lot of front-end Javascript but just barely know the node API.

I've also hacked on things that are data-science and A.I. related on the bus where I've very deliberately set up a Jupyter environment with everything I need before the trip.

Re:Ask HN: Working Offline for 8 Hours? by MichaelRazum on Saturday April 16, 2022 @02:39PM (#31054877)
Downloading docs is a good Idea. Will check if I can get all the docs for all the various packages. Basically that is not that important, because I already know them pretty well. Actually thought to do some stuff with cython, but guess for that I really need stack overflow to come fast forward.
Re:Ask HN: Working Offline for 8 Hours? by roneoo on Saturday April 16, 2022 @07:10PM (#31056919)
Doc can be downloaded with Zeal
Re:Ask HN: Working Offline for 8 Hours? by MichaelRazum on Sunday April 17, 2022 @10:00AM (#31060861)
Thanks a lot for the hint. That is very helpful!
Re:Ask HN: Working Offline for 8 Hours? by helij on Saturday April 16, 2022 @05:54PM (#31056439)
Why not the way we did it in 1995 most of the time? Out of the head and big fat book.
Re:Ask HN: Working Offline for 8 Hours? by MichaelRazum on Sunday April 17, 2022 @10:03AM (#31060880)
Guess depends on the problem, would love to do it this way. Kind of difficult if you are working with new frameworks.
Re:Ask HN: Working Offline for 8 Hours? by helij on Sunday April 17, 2022 @02:27PM (#31063014)
wget -r 'framework.docs'

Get as much of the documentation you can find downloaded.