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

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

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

Связь: @sobolev_nikita
Download Telegram
Great talk with a great name: "Ruby is Dead"

But. This talk is not about just some specific problems in #ruby on its own, it spreads an inportant idea: "Programmers want tools, not toys". Sadly, that's what #python started to do: shipping toys.

One more fun fact: this talk uses #php as an example of good language evolution. And I tend to agree.
​​Linkalot is a web-based inbox for your links.

Linkalot’s highlights:

- Instantly save links in a link list using the accompanying bookmarklet.
- Add a short description to a link. The description appears as a pop-up on hover.
- All links are saved in a plain text file.
- Password-protected editing area for managing the saved links.

Repo: https://gitlab.com/dmpop/linkalot
Demo: https://tokyoma.de/linkalot/

#php
​​A wrapper around the #php Laravel Pipeline class with a few additional niceties

After using Laravel Pipelines to handle complex data flows in our projects we saw a few patterns emerge:

- Database transactions
- Pipe interface
- Responses and exception handling

This package adds niceties on top of the Laravel Pipeline and consolidates them into a single reusable location.

Looks very close to what we have in dry-python/returns!

https://github.com/zaengle/pipeline

A pipeline is a common pattern for breaking data, logic, and response/exceptions into three distinct elements. Zaengle Pipeline abstracts these parts into helpful classes and gives some structure to the underlying pattern. For example, let's explore at what a pipeline might look like for a ficticious user registration:
​​Rector - Upgrade Your Legacy #php App to a Modern Codebase

Rector is a reconstructor tool - it does instant upgrades and instant refactoring of your code. Why refactor manually if Rector can handle 80% of the task for you?

What Can Rector Do for You?
- Upgrade 30000 unit tests from PHPUnit 6 to 9 in 2 weeks
- Complete @var annotations or parameter/return type declarations
- Complete PHP 7.4 property type declarations
- Upgrade your code from PHP 5.3 to 8.0
- Migrate your project from Nette to Symfony
- Refactor Laravel facades to dependency injection
- And much more...

https://github.com/rectorphp/rector
Breaking news!

#php 8 is released!

Features:
- Union Types
- Named Arguments
- Match Expressions
- Attributes
- Constructor Property Promotion
- Nullsafe Operator
- Weak Maps
- Just In Time Compilation

https://www.php.net/archive/2020.php#2020-11-26-3
​​KDL is a document language with xml-like semantics that looks like you're invoking a bunch of CLI commands! It's meant to be used both as a serialization format and a configuration language, much like JSON, YAML, or XML.

Features:
- Node-based, you won't have to mess with identation to make it work
- Type annotations
- Implementations in different languages: #python, #elixir, #rust, #java, #js, #ruby, #php, etc

https://kdl.dev/