Находки в опенсорсе
10.8K subscribers
11 photos
1 video
3 files
820 links
Привет!

Меня зовут Никита Соболев. Я занимаюсь опенсорс разработкой полный рабочий день.

Тут я рассказываю про #python, #c, опенсорс и тд.
Поддержать: https://boosty.to/sobolevn
РКН: https://vk.cc/cOzn36

Связь: @sobolev_nikita
Download Telegram
#python #mypy

Have you ever tried to:

- Create complex generic types in your own project?
- Write distributable stubs for your library?
- Create custom mypy plugin?
- Write custom type-checker?

In case you try to do any of these, you will soon find out that you need to test your types. Wait, what? Testing types?!
​​Right after Nominal Types #ts might also get Optional Chaining.

PR is already available: https://github.com/microsoft/TypeScript/pull/33294
​​#python tool to build images from other images. Sounds crazy, looks amazing!

https://github.com/nuno-faria/tiler
​​dump-env - a #python utility tool to create .env files.

dump-env takes an .env.template file and some optional environmental variables to create a new .env file from these two sources. No external dependencies are used.

https://github.com/sobolevn/dump-env
ORMs are something that seem cool until you have to do anything with them, and then they just get in the way. Their promises (backend-agnostic, write type-safe native code, less boilerplate) sometimes have a catch and sometimes are just false.

The reason for this is that ORMs are backwards: they force you to design schemas in your implementation language (python, javascript, java) and then export them to #sql ‘somehow’. (The ‘somehow’ is usually a half-baked migration tool). This is bad for a lot of reasons and horrible if you want to access your data from another language.
​​SHIP: Shell Helper to Initialize (dockerfiles) in a new Project: https://github.com/augustohp/ship

#docker
​​WebAssembly runtimes (e.g. browsers) are slightly diverging in which features they support.

So here’s wasm-feature-detect — think modernizr, but for #wasm.

- Detectors for various WebAssembly proposals
- Tiny (~600B)
- Easy to augment and contribute

https://github.com/GoogleChromeLabs/wasm-feature-detect
​​New PEP to #python! Adding a frozenmap type to collections: https://www.python.org/dev/peps/pep-0603/

At last! That's the first feature in a long time that was really required. Not :=!
​​webhint is a linting tool that will help you with your site's accessibility, speed, security and more, by checking your code for best practices and common errors. Use the online scanner or the CLI to start checking your site for errors: https://webhint.io/

#js #a11y
​​Caddy2 will be completely different from the first version. See the new Quickstart guide: https://github.com/caddyserver/caddy/tree/v2

Currently it is beta, but the new API looks ... strange?

#devops
​​🐋 Keep an eye on your #docker image size and prevent it from growing too big: https://github.com/wemake-services/docker-image-size-limit
​​GitLocalize is a continuous localization tool built for communities and teams that want to simplify their workflow when translating their content.

GitLocalize automatically keeps translations up to date by syncing with your repository.

https://github.com/marketplace/gitlocalize

#i18n #l10n
Backends today are too complicated to build. #dark is designed to massively reduce that complexity. Dark is a holistic programming language, editor, and infrastructure for building backends. You write in the Dark language, using the Dark editor, and your program is hosted on Dark’s infrastructure. As a result, you can code without thinking about infrastructure, and have safe instant deployment, which we’re calling “deployless”.