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

Ehh, I worked there on online services before Azure even existed and it would have been career suicide and an enormous legal fight to use anything outside MS's stack--IIS, MSSQL, COM & C++, then .NET. Hotmail got away with it for some years because they were an acquisition.

comment 5y ago · link · parent

The main web backend is still ruby it seems: https://github.blog/2020-08-25-upgrading-github-to-ruby-2-7/ I can't remember where it was exactly but I remember recently stumbling on a random github-related OSS project that had chatter in the issues from githubbers talking about .NET and C#. It would not surprise me to see significant pressure from the now 2-year post-acquisition engineering org to get in line with the rest of MS's online services that are all .NET stack.

comment 5y ago · link · parent

Git was designed for decentralized use. It's not as slick and polished as github, but it can get the job done and scales to infinity (the linux kernel has thousands of contributors and runs entirely dencentralized with git).

For read-only access you can host a git repo on any static file store, like S3, netlify, digital ocean, etc. Just rsync/rclone/upload a bare repo from your machine and you're done: https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git...

For write access it's more difficult without running your own server (which is super easy with gitea, gogs, etc. and just a couple clicks to setup on popular hosts like digital ocean). You could take an entirely decentralized approach and run things like the linux kernel--all patches (aka pull requests) get sent to an email list where they're reviewed, discussed, and integrated by the maintainer of the read-only repo.

comment 5y ago · link · parent

Cookiecutter is nice but it requires an entire python install to run, which is a big thing to ask for some of the scenarios mentioned by the tool creator (like someone going through a simple learning tutorial which might not even be using python at all).

IMHO gomplate is a nicer alternative that's just a single static go-based tool that can do everything cookiecutter does and a lot more: https://github.com/hairyhenderson/gomplate

comment 5y ago · link · parent

You can take an approach like the Linux kernel where _one_ person is the sole arbiter and approver of all changes. This person is tasked with having complete, 100% depth and breadth knowledge of the entire system. It is their responsibility to ensure changes adhere to the goals of the system. It is of course an enormous bottleneck, and a big risk for management (the old 'what if they get hit by a bus, what do we do then?' concern).

Realistically, past the 200k lines of code point you aren't dealing with a codebase anymore; you're an _organization_. You need knowledge management--where do architecture decisions live, how are they approved, how are they taught to new developers, how are they updated as maintainers come and go, etc. It takes strong engineering management and leadership to keep it together.

comment 5y ago · link · parent

Yes, in my avalanche education class we learned a lot about the experiences of people who were buried. You are totally immobilized in almost any full burial situation. Even worse, you are running through very precious air and generating toxic CO2 with each breath. Statistics show you only have about 20 minutes for someone to find you and dig you out before you're a goner. Snow is nothing to mess with, despite all the fun you can have around it.

comment 5y ago · link · parent

Avalanches are not like what you think--they're not only on dangerous, steep mountains. Any slope that's about 30-50 degrees and loaded with unstable snow can slide and carry or kill people. There are hills just a few hundred yards away from the visitor center at Mt. Rainier that have slid and killed snowshoers and skiers.

comment 5y ago · link · parent

I'm also AIARE 1 certified and use this article to help educate my friends about how to behave after getting vaccinated for, or gaining natural immunity to COVID-19. Do not fall into a false sense of security of invincibility once you gain more knowledge or risk mitigation techniques. Don't be the idiot who got vaccinated and became one of the ~5% that still got infected or spread the disease.

comment 5y ago · link · parent

It's even simpler now, lambda supports running docker images as of a couple months ago: https://aws.amazon.com/blogs/aws/new-for-aws-lambda-containe...

comment 5y ago · link · parent

Look at a hosted knative solution, like Google Cloud run or one of many others: https://knative.dev/docs/knative-offerings/ You don't have to know or care about anything Kubernetes with it, but you get ease of just throwing containers at something and having it run them for web-scenarios. They scale up and down to zero so you aren't paying a cost when nothing is happening. And when/if you need it, you have the full power of a kubernetes cluster at your fingertips too.

AWS lambda can run plain old docker containers now too. Check out something like the serverless framework to make it easy to define a bunch of web services or APIs and deploy to lambda, knative, etc.

comment 5y ago · link · parent

For totally greenfield python projects check out poetry, it is an opinionated python project workflow that's very close to the nodejs/npm ecosystem's package.json. It does a virtualenv behind the scenes, pins your python dependencies with a lock file, and even has niceties like dev scripts as first class citizens.

Otherwise if you're trying to use some python project with particular dependencies pyenv is a good way to get a specific python version. But if the project has a lot of native dependencies (think scientific computing with lots of fortran, C++, etc. code to compile) then you're almost certainly better off with conda as a higher-level entire binary system manager.

comment 5y ago · link · parent

Python was created in the 90s when most unix users were on huge minicomputer-like shared systems (mostly at universities). In those days you had entire IT staff dedicated to curating and maintaining all of the software on the system, making sure it ran well, keeping it updated, etc. Guido explicitly did not want to bog the language development down with time spent on building packaging, deployment, etc.--those were matters for the system admins. We've all kind of been dealing with the consequences of that decision for many years.

comment 5y ago · link · parent

Python's insistence that it be a system-level utility in one global location, with one global set of libraries, etc. is kind of why we're in this mess of many different ways to install and use python (and the myriad of workarounds like virtual envs, pyenv, pipx, etc.). The official CPython installer is fine for some simple scripting or learning the language, but as soon as you need to tightly control and define multiple different python installs, different versions of libraries, etc. to satisfy different constraints it becomes a huge headache.

comment 5y ago · link · parent

Jupyter Book (and the larger jupyter ecosystem now) are starting to standardize on MyST notebooks as a version-control friendly all text notebook format. It's similar to r markdown and uses fenced code blocks to represent code cells. You can diff them, edit in any text editor, etc. See: https://myst-nb.readthedocs.io/en/latest/

comment 5y ago · link · parent

If you haven't yet, try out mamba. It's more or less a drop-in conda replacement but written in C++ using a super fast SAT solver. The speed difference is incredible--I rarely even have time to finish reading the output before it's done installing a conda environment.
1
8081828384