Recent submissions

Comment · 3 years ago
You don't have to use VimScript, you can write your Vim plugins in Python if you wish.
Comment · 3 years ago
I was also surprised the first time I heard you can safely burn explosives: I was reading some comments on the Vietnam war from veterans talking about how they used to heat their meals by burning pieces of C4.
Comment · 3 years ago
> It is funny people can't envision things breaking...

This is what enraged me about the Therac-25 design which ended up killing people. There's a whole report to read on the design, failure and follow up but to paraphrase the designers eliminated the physical locking mechanism and had this attitude that "oh it's electronic so it won't wear out and fail".

Comment · 4 years ago
Incidentally most of them _are_ focusable by the keyboard but just aren't tabbable.

I'm using a Chrome plugin Vimium - one of the shortcuts 'f' (documented as opening links) actually highlights all focusable elements. Using this feature shows most of the checkboxes are interactive.

Edit: I guess the reason for me pointing this out is hopefully there's an easy way to make these more accessible for keyboard users.

Comment · 5 years ago
"Good practice" is also common in English. When folks use the term "Best Practice" I often ask them whether they in fact mean the former.
Comment · 5 years ago
Couldn't be further from the truth, see my reply.
Comment · 5 years ago
Typer looks neat. I don't think it was well-established when I started on this, there were quite a few offerings but the only one I managed to find was python-fire. It didn't quite do what my team wanted and there were a few behaviours that we didn't quite like so we decided to make this.

Having said that bargeparse was meant to rely solely on stdlib as the environment we were operating in was tightly controlled and any 3rd party packages had to go through a lengthy review process to be whitelisted.

Additionally, since our team (and others in our organisation) were mostly using argparse, the goal was to provide a way to declaratively interact with it using existing features in the language itself.

Comment · 5 years ago
Comment · 5 years ago
Comment · 6 years ago
Nice!

Slight nitpick: Django should automatically create the Hstore extension for you [1] during migrate whenever you use a HStoreField

[1] https://github.com/django/django/blob/f5e07601b233a50e6bcca4...

Edit: I might've been mistaken here in thinking the above migration operation was automatically applied as the docs seem to suggest you need to add it yourself [2] but at least it's as easy as adding an operation ;)

[2] https://docs.djangoproject.com/en/3.1/ref/contrib/postgres/f...

Comment · 6 years ago
I'm quietly hoping they'll ask him to work on a typescript-style of project that adds static typing as a layer on top of Python :)
Comment · 6 years ago
"Professional use" just means to use in your profession, not that they are claiming to be an IT expert.
Comment · 7 years ago
I feel like we're just transferring the labour from ops to dev though. Where I work we still haven't got as good a development workflow with lambdas as we did with our monolith (Django).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton