Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

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

Submissions

comment 5y ago · link · parent

Given that the change happened in the mid-morning PST (timezone where GitHub HQ and most devs are located), I'm going to bet it's almost certainly something messed up from a regular update or deployment.

comment 5y ago · link · parent

Github folks--this is really getting bad. I find it strange that your leadership will spends weeks of time, and pen hundreds of words about making right the wrongs they created with censorship (see: https://github.blog/2020-11-16-standing-up-for-developers-yo...), yet there's almost no attention given to these major outages that keep happening for a year now.

Where is the acknowledgment of a problem, root-cause analysis, and followup for new practices and engineering to prevent issues? Who is responsible for these issues and what are they doing to make it right? What positions are you hiring for _right now_ to get to work making your service reliable?

comment 5y ago · link · parent

Each of these components stands on their own. You can use one without having to link to or consume any of the others. Shouldn't each one have documentation that describes how they work, a license, etc? I don't want to have to go hunt down some separate documentation project, which is almost certainly years out of date, to figure out how to use these components. If someone is consuming or even contributing to one of these components everything they need is in front of them in one repo.

I'm really scratching my head to understand your concern here. Apparently there is some magical minimum bar of file size that a project needs to pass before it's worth having a repository on github with a readme, license, etc? Even though the git repo and a few text files only take a few bytes to store?

comment 5y ago · link · parent

The NPM world is putting a lot of weight behind monorepos and have tooling like lerna and yarn workspaces (also now in NPM 7) to make working with multiple packages in one or many repos easy. They're learning the lessons that folks like Google did with monorepos being much easier to manage and change sets of related projects (i.e. atomic commits that update everything at once).

As far as why break every component up into different packages, that's a nice easy optimization for end-users. If you only want to use one of these components you just link to it in your page and you're done. No need to setup a complex bundler with tree-shaking etc. to remove all the other components you aren't using. Remember with JS & HTML every import is paying a cost in time and space for your endusers so it's critical to prune unused or unnecessary code.

IMHO you need to spend a few months getting into frontend development. These kind of repos and organizations will make a lot more sense when you see and deal with the problems firsthand. You look pretty silly calling it 'crap' and no one who reads this is going to take you seriously...

comment 5y ago · link · parent

I invite you to spend time with my little 10lb. tortoiseshell-colored ball of fur and fury to see if it changes your mind about cats and human suffering. :)

comment 5y ago · link · parent

Real problem: people growing invasive species like bamboo that escape and over time destroy local plant ecosystems (see all the kudzu in the south of America as another example).

Silly problem just to show how silly the OP's argument is: putting a plant indoors now means it costs carbon to keep it living--I have to water it, but that water doesn't come for free and depends on a vast pipeline of industrialization to extract water, pump it to my home, and then build containers for me to hold the water and drip it on my indoor plants. It would be better to just cut that chain entirely and let plants get water from rain directly... by not being indoor houseplants.

comment 5y ago · link · parent

But a cute cat might make you the perfect viral Tik Tok video that earns you the money you need to get that electric car business idea off the ground...

comment 5y ago · link · parent

Yep that's a great point, and really the security of TLS isn't so much algorithms and bits over the wire but all of the certs, processes, machinations etc. around generating and trusting them. There definitely would be a lot of headaches around building that chain of trust with dozens and hundreds of tab processes.

comment 5y ago · link · parent

You could make the same argument for peopling having houseplants.

comment 5y ago · link · parent

Carnivores like cats can't survive on plants alone. There are sad stories of folks who thought they could feed their cat a vegan/vegetarian diet and ran into significant, debilitating issues with lack of taurine. I'm not saying it's impossible to feed pets a solely plant-based diet, but you need to do a lot of research to make sure their nutrient requirements are being met. I would definitely do this under the guidance and consultation of your vet. See: https://www.aspca.org/news/why-cant-my-cat-be-vegan

comment 5y ago · link · parent

Yeah it's more just defense in depth. The browser is already going to have a super optimized and battle-hardened TLS engine, so might as well use that IMHO. Today we can reasonably assume process IPC is secure... but who knows what exploits will surface tomorrow.

It also opens up an interesting possibility where the tab process isn't on the same machine. That could be handy for power users, or even for interesting things like browser testing apps on different, remote devices.

comment 5y ago · link · parent

Meh, my three year old phone has 8GB of DDR4 RAM and 8x cores clocked at over 2ghz. In the time it takes my brain to send signals to move my muscles to move my mouse to a different tab my computer has lived multiple lifetimes of operations. For handling unbelievable load at scale, sure processes will kill scaling. But for handling a user clicking and touching their inputs of dozens or hundreds of tabs.. I doubt anyone will notice on today's machines.

comment 5y ago · link · parent

Is this all solved by just spawning a new process for each browser tab?

If so do it and spawn a single process for the browser window UI. Communicate between the browser window and tab processes with whatever flavor of IPC you desire, and secure it with whatever security layer you trust (TLS 1.3+ for example). We've basically reinvented the operating system desktop, which isn't that far off from how we treat browsers and the web today anyways...

comment 5y ago · link · parent

Containers run on lots of non-Docker runtime environments. You can just install runc, or if you have systemd you can use systemd-nspawn. Or if you want a more Docker-like experience there's podman. Or if you're working with it kubernetes and containerd will run containers.

And if you don't like any of that, look in the Dockerfile and replicate the setup on your server. IMHO in 2021 it's not worth someone's time to worry about the eccentricities of 20-30 year old bespoke unix/linux distributions and their myriad of incompatible decisions.

comment 5y ago · link · parent

I really liked Expresss API Gateway, a middleware for express that gives a nice API for creating and using auth tokens: https://www.express-gateway.io/ It can act as a proxy to downstream services and secures access to them with those tokens.

Also check out bigger players in the API gateway space. Kong, Krakend, etc. Most of them all support auth tokens out of the box in the open source versions.

comment 5y ago · link · parent

Just guessing, but maybe a fire suppression system going off could wipe out all the machines?

The couple datacenters I've been inside were small, old and used halon gas which wasn't supposed to destroy the machines. No idea how it works in big places these days.

comment 5y ago · link · parent

Interfering with a system over RF is going to get the FCC and authorities after you very quickly. The law is very broad and hand-wavey here, a lot of innocent fun could be interpreted as something worthy of a felony.

comment 5y ago · link · parent

I get your frustration (and shared it a year ago), but you're really doing something like react a disservice by dismissing it like that as just hype. On the contrary react has evolved significantly over the years, introducing things like JSX (templating HTML + JS in the same file, now standard in every other component system), build tooling like create-react-app (zero config tooling, now standard in every JS build tool), functional component model with hooks (now copied by every other component library), and on the horizon stuff like server-side components. It has only gotten more stable, more proven, and easier to use over time.

comment 5y ago · link · parent

And I personally can't wait to see what amazing things the creators of these component systems will land on next...

Next.js is pretty corporate-friendly. Very easy to split things up and have many folks and teams working on monoliths or services with it.

comment 5y ago · link · parent

React & next.js are worth evaluating. It's a super powerful full stack with everything from server side rendered data (REST APIs even) all the way to complete client-side SPAs, all using the same react components. It's a slick little swiss-army knife that can make anything from a basic blog with markdown content, to a static marketing page, to a full client-first PWA experience. There is sadly almost nothing else really like it right now.

MDX is another neat step, it's markdown + react components and fits in very well with next.js: https://github.com/hashicorp/next-mdx-remote

Vue, and Svelte to just get an idea of what other components systems are like. They're all equally capable and just have different tradeoffs and styles. Keep an eye on Svelte in particular as its next.js-like system (SvelteKit) is working on a major revamp to be serverless-first and is quite interesting. Once you learn one component system it's easy to switch between them all--they're all cribbing and building on top of each other's ideas. The whole space is innovating in a great way.

Web components are good to learn and compare to component frameworks above. It's still a changing space but points to a nice future where we can all just publish and share components.

comment 5y ago · link · parent

Check out tools like vite or snowpack, which use esbuild internally. They're the HMR developer experience you're looking for.

comment 5y ago · link · parent

The JS & frontend world is _seriously fun_ right now. If you blew it all off as a quagmire of complexity, sketchy engineering, treadmill of tools, etc... it's time to re-evaluate everything. I have more fun and feel more productive working on modern frontend stuff with tools like esbuild than any other GUI programming I've done in 30 years.

comment 5y ago · link · parent

Snowpack uses esbuild internally now, there's a good rundown of it and other awesome snowpack features like streaming imports in their 3.0 release announcement: https://www.snowpack.dev/posts/2021-01-13-snowpack-3-0

comment 5y ago · link · parent

I'd measure the humidity (log and track it over a few days to see trends) and check if your humidifier is enough to keep it up at a comfortable level.

comment 5y ago · link · parent

Netlify CMS is nice, and despite the name it works completely independenly of using Netlify as the host: https://www.netlifycms.org/docs/intro/ I won't lie though it is very akward to setup and use if you aren't using Netlify--documentation is extremely thin, and it's a beta phase feature to selfhost. But it is a really nice and simple editor view that non-technical people could use. This is where the (very thin) documentation for self hosting it outside Netlify starts: https://www.netlifycms.org/docs/beta-features/#working-with-...

Another good one is Jekyll Admin: https://github.com/jekyll/jekyll-admin It's not as nice as wordpress but gets the job done for a basic markdown focused site. Selfhosting it is a lot easier and more documented than Netlify CMS.

comment 5y ago · link · parent

Yeah it's a neat idea but I struggle to think of good use-cases for merge, other than toy datasets. If I'm working on a service that's sharding millions of users across dozens of DB instances a merge is going to be incomprehensible to understand and reason about conflicts.

comment 5y ago · link · parent

Friend, let me introduce you to the horrorshow that is GNU autotools.

comment 5y ago · link · parent

Every DB engine used at scale has a concept of snapshots and backups. This just looks like someone making a git-like porcelain for the same kind of DB management constructs.

comment 5y ago · link · parent

I'm just cracking a smile and almost laughing at the thought that 25 years ago I wanted an Intel Pentium but had to settle for a cheaper AMD 586 clone that ran hotter and performed worse. My, my, my how the tables have turned on Intel...
1
777879
84