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

Be careful, websockets are tricky to secure and get right. It's easy to do something like forget to check the origin and now you've opened up a whole class of cross-site websocket scripting attacks. I love the idea of easy access and nice UI to prod machines, but put it behind a secure proxy or VPN layer and not facing the public internet.

comment 5y ago · link · parent

Uhh, that's why I have the Android app too on my phone that's always in my pocket. It syncs everything offline.

comment 5y ago · link · parent

In addition to it being open source as mentioned, the server is open source too and you can run your own self-hosted instance: https://standardnotes.org/help/47/can-i-self-host-standard-n...

comment 5y ago · link · parent

I use the web version and it's great, no install or anything (obviously need internet access).

comment 5y ago · link · parent

I like that FastAPI has documentation meant to be read from beginning to end. It walks you through not only the how but the why of core design decisions, and even dives into ancillary things like pydantic. This is in sharp contrast to most python packages of modest size where IMHO the bare minimum effort is put into technical docs. Usually you get something using a 10+ year old Sphinx template that hasn't changed for modern devices, and no description of usage is more than a trite paragraph (i.e. the attention span of a developer writing a docstring).

comment 5y ago · link · parent

Nothing is immune, these are fundamentally people and person problems which can and will affect any language. It's ironic that just this week one of the core maintainers of Perl stepped down because of backlash and harassment from other maintainers over proposed changes (https://news.ycombinator.com/item?id=26779152).

Python is a little younger than Perl but also faced similar problems--Guido had so much backlash against proposals that he stepped down too (https://news.ycombinator.com/item?id=17515492).

Go is younger than either of those but not immune to the same fate--just look at the total divide and amount of controversy created over things like generics or modules in the community.

There's no magic fix for this--if an organization is going to thrive and grow (or even just survive) for 30+ years it has to address those issues sooner rather than later. Burnout, at all levels, is real.

comment 5y ago · link · parent

This is a really cool list and I'm glad it was shared!

comment 5y ago · link · parent

Well, one sure-fire way to make sure you can turn money into resolved issues is to hire people...

edit: Also the assumption that the 'vibe' of open source is free work-for-hire is a gross misinterpretation.

comment 5y ago · link · parent

Distributing content to the global public is one thing self-hosting doesn't do well. Maybe IPFS or other things will help over time. If github is going to pay for the servers and give you a ton of free bandwidth, why waste it. It's just a markdown file translated to HTML, they aren't locked into anything a SaaS provides.

comment 5y ago · link · parent

I've been listening since the start and don't share any of those perceptions, FWIW.

comment 5y ago · link · parent

There's a full open API schema served by the API server. Tools can read it and build specific interfaces or validate requests before even sending them. And in general k8s is really just a big database of objects. Once you learn the core objects like pod, deployment, service, etc. it becomes very natural to interact with anything else--just find what object it is and interact with its attributes.

comment 5y ago · link · parent

This is a good podcast that effectively curates and discusses interesting self-hosted applications: https://selfhosted.show/

comment 5y ago · link · parent

I've been working in distributed systems for 20 years and k8s is the best yet. The docs are quite good: https://kubernetes.io/docs/home/ The community is growing and despite the Google connection, it's not dominated or controlled by them. Distributed systems are a huge problem space to learn and IMHO I think too many people get frustrated trying to learn all of that, on top of all the k8s tooling and conventions. There's no real shortcut other than getting in and building experience. K8s is by far the easiest system yet to do that--spin up a cluster with kind right now (https://kind.sigs.k8s.io/), it will take 5 minutes, and start playing with the learning tutorials: https://kubernetes.io/docs/tutorials/kubernetes-basics/

comment 5y ago · link · parent

Single node isn't going to buy you much over a basic docker-compose.yml setup, but IMHO you now have a home 'lab' to experiment and hone your skills. Helm charts, despite their flaws, when done well can be really simple and easy to install and maintain application stacks too. Just a couple CLI commands to get a selfhosted app setup with all of its dependencies like a database, ingress proxy, etc.

comment 5y ago · link · parent

Look at what Kubernetes can do... it's beyond even an operating system, it's like if systemd controlled a whole datacenter. It handles everything too--networking, storage, processes, jobs, etc. Of course that's going to be a complex thing with a large surface area. The fact you can just curl into the API server with a consistent and discoverable (all OpenAPI) API is pretty darn amazing.

comment 5y ago · link · parent

Gnome 3 has gesture support. I don't think many are built in, certainly not as many as mac OS gives you out of the box. But you can go wild: https://github.com/mpiannucci/gnome-shell-extended-gestures

comment 5y ago · link · parent

I've been using Pop OS for a bit over a year now and it's perfect. I could totally see whole teams of developers being sold on switching to Linux as primary dev environments. There's zero futzing around with configs and such to get things just right--it's great right out of the box. I haven't had that kind of experience since MacOS X but this is even better since it's just real Linux and stuff like docker containers, etc. run natively without VM overhead.

comment 5y ago · link · parent

It's just a set of about 3 gnome extensions, at least on Pop OS 20.10 right now. So in theory you just need to install the gnome extensions and you're good: https://github.com/pop-os/shell

I've been using it for a year and love it--typing this reply in a browser window tiled next to a terminal. It's easy to add little exceptions too for modal apps you want to hover outside the tiling.

comment 5y ago · link · parent

Not even an acknowledgement or mention of the over 250 people laid off at Mozilla over the last year? Yikes.

comment 5y ago · link · parent

Heh, looking forward to hear about people being asked in tech interviews to reverse a blockchain.

comment 5y ago · link · parent

The IPv6 dream already removes any need for NAT and allows a great P2P experience for everything. I think the problem is we have kind of grown to like and assume NAT and building little 'protected' pockets of the network we can trust. Perhaps as easy to use and trusted VPN tools like Wireguard get more common we can learn to live with an IPv6 wild west.

comment 5y ago · link · parent

Wow if this goes on for long I wonder if we'll see M1 macs shoot up in value. Everyone wants the awesome new ARM experience.

comment 5y ago · link · parent

I wouldn't say helm has won, honestly. The kubectl tool integerated Kustomize into it and it's sadly way too underutilized. I think it's just that the first wave of k8s tutorials that everyone has learned from were all written when helm was popular. But now with some years of real use people are less keen on helm. There are tons of other good options for config management and templating--I expect to see it keep changing and improving.

comment 5y ago · link · parent

Why even have a difference between production and CI in the first place? I see a future where it's Kubernetes all the way down. My CI system is just a different production-like environment. The same job to deploy code to production is used to deploy code to CI. The same deployment that gets a pod running in prod will get a pod running in test under CI. Your prod system handles events from end-users, your CI system handles events from your dev environment and source repo. Everything is consistent and the same. Why should I rely on some bespoke CI system to re-invent everything that my production system already has to do?

comment 5y ago · link · parent

It started as that at Google and was a nightmare in the long run. People would sneak in dependencies on non-hermetic or non-reproducible behavior all the time. The classic "this just needs to work, screw it I'm pulling in this library to make it happen" problem. It just kept getting more and more complex to detect and stop those kinds of issues. Hence a new language with no ability to skirt around its hermetic and non-turing nature.

comment 5y ago · link · parent

Ah, yeah component makers are in a hard spot right now. You can't really write a 'generic' component easily and have to take a bet on using whatever JS framework is in vogue--react, vue, etc. It's not easy for a react project to pick up a vue component and use it or vice-versa. Even ignoring the framework incompatibilities, it also requires your component users to now buy in to the whole bundler game.

You could work around this by sticking with a generic, simpler framework like good ole jQuery. But now your framework users in react, vue, etc. are mad that they need to pull in kilobytes of JS that's doing what their framework already does.

So... as a component author a bundle of HTML and bring your own logic is kind of the only low-level option that's ubiquitous. Things might get better with web components, but it's not all there yet.

comment 5y ago · link · parent

Yeah I'm with you in that plain old CSS is still perfectly good. Now with CSS modules and constructable stylesheets it's getting better to make isolated components too.

I think a lot of the love for tailwind are people finally getting the mental OK to remove the strict isolation of style and template/code which has been dogma for 20+ years. If you're using something like vue, svelte, or a good web components library you can just define components with all their markup and style in one place, all using bog standard CSS. It's fine.

comment 5y ago · link · parent

You want a component library like Tailwind UI: https://tailwindui.com/

You're right though that a lot of people who jump straight to tailwind probably don't realize that its low level might be too low for their needs. A higher level component library like bootstrap, tailwind ui, chakra, etc. is a better start in many cases.

comment 5y ago · link · parent

Ehhh, systems outside frontend are just as complex. Think of a backend service--you've probably got a low-level TCP/HTTP handler written in a fast systems language like C/C++, then your business logic written in a higher level language like Go/JS/Ruby/etc., and that's interacting with your data layer using a completely different logic-based SQL language (and extra complexity to translate that SQL to your high-level language with an ORM layer), and on top of that you probably have a rules engine for authorization because you realized the systems language was too slow to update and deal with fast-changing business requirements.

This is really not that different from the frontend world where you've got a markup language to define semantics of the view, a logic layer in JS to pull in data with web requests to populate the view, and CSS as a style layer to make the view look good.

1
727374
84