<link rel="alternate" type="application/rss+xml" href="/engineering/feed/" />136 karma · joined June 4, 2018
<link rel="alternate" type="application/rss+xml" href="/engineering/feed/" />Pyright's VSCode integration, Pylance, provides a great auto complete experience. So I use Pyright for autocomplete in VSCode and mypy for type checking.
from typing import TypeVar
T = TypeVar('T', int, float)
def pow(base: T, power: T) -> T: ...You can also skip the object serialization from the ORM and work with python dicts directly to significantly improve serialization performance from the database.
Cache is the most archaic and least usable programming environment I've ever experienced. Unit tests are not a thing. MUMPS, which underlies the whole system, is stringly typed. The entire stack is junk, so it's no surprise that Trackcare is either.
I was surprised how they dismissed HAProxy integration with Consul using SRV DNS records. Can anyone confirm the problems they highlight?
It seems like their service that broke would not be needed if they went the DNS route.
https://github.com/alan-turing-institute/CleverCSV/blob/mast...
> There is no mandated development environment. Some developers use vim. Some use Emacs. And even more engineers use our internal, unified development environment called Nuclide.
You can also write custom transforms with 2to3 but I've found https://pybowler.io is a decent wrapper. I haven't used it for 2to3 conversion though.
Using percent formatting is superior in many ways:
- errors that occur in formatting a message will be logged instead of raising an exception into your application
- error reporting services like Sentry can properly aggregate events
- interpolation won't occur if you don't have the logging level enabled
- it's recommend by the Python docs: https://docs.python.org/3/howto/logging-cookbook.html#use-of...