News for hackers. Stuff that matters.
Re:Show HN: Print a WiFi Login Card by bndw on Sunday July 11, 2021 @03:19PM (#27803837)
Answering as the author who also understands the fundamentals of all of the technologies involved and questions much of what goes on in the minds of today's web developers and designers--

I use Make as the standard way to interact with every repo I own. This allows me to type `make build` instead of `$some-language-specific-command-I-forget-in-2-weeks`.

I use Docker for distributing every app I build. If the app is a website I also use the nginx base image. Docker images make packaging and distribution a breeze IMO.

Regarding yarn, npx, react, and jest: I'm similarly disillusioned by the churn but I also like to remain knowledgeable as the industry evolves. React was something I hadn't touched before, so I decided to pick a simple project to give it whirl ;)

Re:Show HN: Print a WiFi Login Card by weejewel on Sunday July 11, 2021 @03:43PM (#27804014)
But now you’re paying for keeping a server online, whereas a GitHub page could’ve hosted this static website for free.
Re:Show HN: Print a WiFi Login Card by cinntaile on Sunday July 11, 2021 @04:15PM (#27804230)
He did this for fun, his motivation wasn't to find the cheapest way to host his content.
Re:Show HN: Print a WiFi Login Card by dividedbyzero on Sunday July 11, 2021 @05:24PM (#27804613)
It's also not like you'd have to have a separate server/vserver for every such project, a very affordable vserver will run quite a lot of nginx containers. Plus I guess some people will have a vserver or something like that anyway (I have a small one to get around NAT at the ISP level), in which case it might be net-zero.
Re:Show HN: Print a WiFi Login Card by 867-5309 on Sunday July 11, 2021 @07:11PM (#27805277)
>get around NAT at the ISP level

genuinely interested in the benefits of this. care to share?

Re:Show HN: Print a WiFi Login Card by dividedbyzero on Sunday July 11, 2021 @10:03PM (#27806176)
My ISP puts everyone behind some sort of NAT, which means I can't reach my home network from elsewhere since I can't open ports. They'd let me buy my own IP address for a monthly fee, but I've found that an old Pi I already had, an autossh-ed reverse shell, SSH forwarding and a cheap cloud instance work just fine for checking sensors and the like, cost less and the cloud instance has other uses, too.
Re:Show HN: Print a WiFi Login Card by 867-5309 on Monday July 12, 2021 @09:56PM (#27816986)
I see, so NAT traversal over SSH as opposed to VPN/DDNS
Re:Show HN: Print a WiFi Login Card by hsn915 on Monday July 12, 2021 @02:09AM (#27807558)
I honestly don't understand where's the fun in using docker for anything.

Unless one is into masochism.

Re:Show HN: Print a WiFi Login Card by dolmen on Monday July 12, 2021 @04:49AM (#27808352)
Especially to host what could be implemented as a single static HTML file.
Re:Show HN: Print a WiFi Login Card by cyral on Sunday July 11, 2021 @04:52PM (#27804454)
React is compiled to static content so this could be hosted with GitHub pages too
Re:Show HN: Print a WiFi Login Card by moltar on Sunday July 11, 2021 @07:49PM (#27805501)
I build static sites in Docker too. But then simply extract the built files out and upload them to any static hosting I need.

This allows me to self contain all the build tooling. And allows other developers to setup a dev environment in a few easy steps.

Re:Show HN: Print a WiFi Login Card by shepherdjerred on Sunday July 11, 2021 @06:25PM (#27804952)
There's no reason that this would have to be hosted on a traditional server.
Re:Show HN: Print a WiFi Login Card by quickthrower2 on Tuesday July 13, 2021 @03:01AM (#27818264)
Free as in beer, yes
Re:Show HN: Print a WiFi Login Card by kortex on Sunday July 11, 2021 @07:35PM (#27805428)
> I use Make as the standard way to interact with every repo I own.

After much fussing around with many kinds of solutions, this too is what I have settled on. Download repo and run `make` will "do the needful" to get you going, and all the major entry points are make stanzas.

Re:Show HN: Print a WiFi Login Card by hootbootscoot on Sunday July 18, 2021 @08:02AM (#27872232)
except that "making" anything, or any commands in a new language he forgot, etc = entirely unnecessary for a single static html page.
Re:Show HN: Print a WiFi Login Card by manuel_w on Sunday July 11, 2021 @05:00PM (#27804505)
> I use Make as the standard way to interact with every repo I own. This allows me to type `make build` instead of `$some-language-specific-command-I-forget-in-2-weeks`.

I also used to do this until I switched out Make by Just[1]. I find it worth a recommendation.

https://github.com/casey/just

Re:Show HN: Print a WiFi Login Card by sneak on Sunday July 11, 2021 @05:33PM (#27804660)
Just like perl and grep, I stick to make because it's likely to be already available everywhere I need it. Such is the tyranny of the installed base. :/
Re:Show HN: Print a WiFi Login Card by catlifeonmars on Sunday July 11, 2021 @07:59PM (#27805552)
I second this. “just” is like make, but without the extraneous/confusing parts.
Re:Show HN: Print a WiFi Login Card by lionkor on Sunday July 11, 2021 @06:49PM (#27805113)
make all and make run would be more standard, no?
Re:Show HN: Print a WiFi Login Card by superjan on Monday July 12, 2021 @01:27AM (#27807327)
I liked your page. I might even use it!