Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions

Submissions

comment 4y ago · link · parent

The median home value in SF is ~$1.5 million. A typical mortgage on a home like that is ~$4-5k per month. So you're assuming folks have $25-30k in liquid cash hanging around all the time. Not unrealistic but certainly not everyone working at tech companies there has that kinda cash. And that's before you factor in other costs like property taxes, insurance, etc. that you'll need to cover too.

comment 4y ago · link · parent

Now go look at the cost of a home or apartment in San Francisco or nearby towns. I'll wait...

comment 4y ago · link · parent

Honestly I'd look at using Electron because you can take a hard dependency on the browser capabilities and state. If you rely on the user bringing their own browser you're going to have headaches of people on ancient browsers or just supremely jacked up browsers (messed up browser plugins, proxies, turned off javascript, etc.). Node can easily launch processes and there are even fancy process management libraries like pm2 you can add as a dependency should you need it, so the logic in your electron layer can be very simple and just launch some other processes and ferry requests to the view layer.

Alternatively a webview-based framework or something like Lorca might be another option if you don't want to use Electron: https://maori.geek.nz/golang-desktop-app-webview-vs-lorca-vs...

comment 4y ago · link · parent

Putting a sqlite db in a git repo doesn't work well, it's just an opaque blob to git so you can't merge changes beyond "wipe out every other change and accept this as the new complete state of the world".

comment 4y ago · link · parent

You can already store and sync issues in git repo metadata, check out git-bug: https://github.com/MichaelMure/git-bug

comment 4y ago · link · parent

Are you sure you want to use sqlite if your workload is mostly multiple, independent writers?

comment 4y ago · link · parent

Git is an abstraction over file trees (or even more generally just chunks of data), and it turns out a ton of problems in software are easily modeled and dealt with as files in a tree.

comment 4y ago · link · parent

No it's explicitly systemd-resolved behavior: https://www.freedesktop.org/software/systemd/man/systemd-res...

> The hostnames "localhost" and "localhost.localdomain" as well as any hostname ending in ".localhost" or ".localhost.localdomain" are resolved to the IP addresses 127.0.0.1 and ::1.

mDNS only uses the .local suffix but AFAIK it will never resolve anything to localhost on that domain. I'm pretty sure having a mDNS service that advertises a .local domain as 127.0.0.1 would really break things too if it serves that address up to other machines on your network.

comment 4y ago · link · parent

Caddy uses a library from step certificates which injects a self signed CA cert into your browser and OS trust stores automatically, so your browser will actually be perfectly happy with the SSL certs. The first time you run caddy it will prompt to elevate privilege so it can install the certs and then it should be good to go after that point.

comment 4y ago · link · parent

Oh nice! Had no idea they added that behavior.

comment 4y ago · link · parent

Something nice about selfhosting on localhost with a modern linux machine (using systemd and systemd-resolved for DNS) is that by default *.localhost DNS queries are routed to localhost. So you can setup your local apps to have domain names like "photos.localhost", "code.localhost", etc. and not have to muck with hostname entries and such.

Setup caddy as a reverse proxy and it will automatically inject a local CA cert into your browsers and auto provision local SSL certs too so you can access local services by names instead of ports, and everything happily works with SSL automagically.

I really, really wish windows and mac had a similar behavior to just route all *.localhost queries to localhost.

comment 4y ago · link · parent

You can totally just use esbuild, it is extremely well documented and easy to grok. It's very easy to embed in a go app too, but you don't have to do that or be a go programmer to use it (they put it on NPM and gave it a super basic CLI). The docs are great: https://esbuild.github.io/getting-started/

If you're just bundling JS, transforming typescript, maybe doing JSX, etc. then it's just a simple esbuild CLI command to do it. Toss it in a makefile or your CI tooling and you're done.

comment 4y ago · link · parent

This was super cool, it reminded me of the demoscene and demos. Programming something purely for the fun of its performance.

comment 4y ago · link · parent

> At no point in my life as an adult have I ever depended on my current job for my financial stability. I depended on having a marketable set of skills, a network and a savings account.

Congratulations on being one of the most privileged people in the country. You realize ~50% of the country doesn't even have enough money in their checking/savings to cover a $400 emergency expense right? https://www.fool.com/the-ascent/personal-finance/articles/49...

This isn't a "well just stop buying avocado toast, and start pulling yourself up by bootstraps!" problem. This is a systemic problem with wage stagnation and complete decimation of the middle class over the last decades. The fact is the average American can only dream of having privilege you mention like not depending on their current employment to pay next month's rent/mortgage.

comment 4y ago · link · parent

Nope, although if you got disabled (perhaps from an accident at work) and were laid off as a result a short term disability insurance would help.

comment 4y ago · link · parent

The entire US is not at-will employment. And companies with strong employee unions do not have this issue of suddenly and without notice firing their staff...

comment 4y ago · link · parent

Good luck with that attitude when your company depends on highly skilled labor that comes from a very small pool of talent (relative to all labor in the country). The game industry, and game engine programmers in general, are a small group and if a company isn't good to their employees they are going to have a very, very difficult time hiring and staying competitive. It's not like they can just grab bodies and throw them at projects. Even hiring the very best and brightest cloud engineers from a FAANG is going to see them flounder and waste time ramping up to game engine development.

comment 4y ago · link · parent

WadAuthor was great at the time. It was the first editor that really clicked with me as it had a simple "just draw/make sectors" UI. I remember the other popular editors at the time like DEU were more like janky CAD software and very difficult to use.

comment 4y ago · link · parent

No and there are currently investigations ongoing: https://www.forbes.com/sites/jackkelly/2022/02/12/ibm-accuse...

Companies have many ways they obfuscate or hide layoffs of older workers though, there is very little legal protection as long as the company isn't so stupid and brazen as IBM (i.e. leaves a trail of evidence in emails).

comment 4y ago · link · parent

That 4% turnover is already 'priced in' and these layoffs are in addition to the regular management out, etc. they plan. If these were just rolled into the regular attrition they wouldn't even mention it or make news about it.

comment 4y ago · link · parent

IBM and HP in their waning years were pretty upfront in quarterly reports that their older staff were a liability and they were actively working to manage them out through early retirements, layoffs, etc.

comment 4y ago · link · parent

CEO: "Don't worry we are not planning any layoffs!"

me: "Phew, OK realtor let's close on this new house purchase! It's a big investment but my future looks great!"

<two weeks later>

CEO: "I'm sorry but I was wrong and you are terminated effective immediately."

Bank: "Congrats on your house purchase closing, your new monthly payment of $XXXX is due in two weeks!"

How is THAT a better situation than warning people there could be instability ahead? People are being thrown completely under the bus with no warning.

comment 4y ago · link · parent

Look at Astro, it's very similar to Fresh but lets you plugin the client side framework of your choice like Vue: https://astro.build/

Sveltekit is kind of similar in style too with single file components containing a script block, HTML, styles, etc. vs. JSX style components.

comment 4y ago · link · parent

The way people use modern Linux systems is moving past how most people used Unix systems back in the day. Instead of piles of shell scripts glued together we now use a monolith (systemd) to manage most of the low level services and initialization. No one really cares or tries to setup proper multi-user systems and instead we focus on multiple roots with each application given an exclusive root filesystem, view of the system, etc. (i.e. containerized). Computing is a lot different than it was 50 years ago, and that's not a bad thing.

comment 4y ago · link · parent

Not a bad thing IMHO. Take the best parts of PHP but use the language you already know and like (modern JS or typescript).

comment 4y ago · link · parent

If a human can't figure it out than an AI trained on human behavior (or more specifically, trained on comments left next to code) can't figure it out either. It's not like malware authors annotate their code with nice "here's where I exfiltrate all the user's secret data" comments.

comment 4y ago · link · parent

China has eradicated omicron. Shanghai had _zero_ cases of omicron reported on June 24th. A couple months ago they were seeing 25k+ cases a day. This is a city of 25 million people, the third largest and most dense city in the world. And yet somehow with a collective attitude and government support they beat back the virus and have fully reopened and returned to normal.

Contrast this with the United States where we have so far had over _one million deaths_ from COVID-19. In the same timespan China has seen just a few thousand deaths.

If China can do it, why can't the US?

comment 4y ago · link · parent

> It's also getting less politically viable when ~70% of Americans have had covid (the CDC estimated 60% in late April)

This means nothing. The virus reinfects people with existing immunity. For example Senator Wicker from MS is on his _third_ infection: https://www.magnoliastatelive.com/2022/06/13/senator-roger-w... Two of those infections have been in the last four months alone!

We have to use NPIs like masking to stop the virus from spreading in order to stop new variants from evolving. There is no herd immunity. There is no natural immunity.

comment 4y ago · link · parent

You admit it yourself, I will quote you:

"they are more transmissible, more likely to evade immunity"

Intrinsic severity of the virus doesn't change the fact it is the most transmissible virus we have ever seen in the world.

Even if it is intrinsically less severe than previous variants, because we are allowing it to spread to EVERYONE in the world we are seeing a much worse impact. Did you miss that in the US alone we've had over 160k deaths from COVID-19 just in the last 6 months of this year? No other virus has had this level of death in the same timeframe.

1
404142
84