Re:Show HN: Print a WiFi Login Card
by tomc1985 on Sunday July 11, 2021 @08:33PM
(#27805706)
As other comments have pointed out, the tech stack used here is excessive for what it is trying to do. The author has said it was a project to learn some specific technologies. There is a lot of mirth for overcomplicated contraptions mucking up otherwise simple tasks (and rightfully so, IMO), hence the retort of a one-line console command.
[ Parent
| on HN ]
It's not excessive. The linked post is way easier to use and doesn't require a terminal or installing packages manually. I wouldn't even know how to get the cli version to work on windows.
The only downside IMO is that you are entering your wifi details in to an untrusted website.
The command-line app is effectively eternal as long as it's mirrored and the runtime interface doesn't change. Can we count on this link to still be there when we need it?
Do you know how long most "Show HN" links still work after a year or two?
You can just fork/clone/whatever it, it's right there.
Ok, great. If it goes down now one has to host it or remember to start it via the command-line. So we're back to square one...
It's literally a webpage with some javascript, so if you save it along with the asset files, you can just open the page in browser from your filesystem, no need to specially host it or start anything.
But yes, I agree running a command like qrencode from terminal is easier in the long run.
Saving a webpage and expecting your browser to render this the same way in a few years is only possible if you are saving the browser version with it.
The command line tool will have a longer life
You could just use google to find the same thing in a few years. The project is so simple I could replicate it and have it hosted in a few hours.
"so simple" ... "in a few hours"
The project is so simple that it would be easier to rewrite it from scratch in that time frame. But the qrencode CLI allows to just avoid that.
Does that work for node.js apps?