DEV Community

потик
потик

Posted on • Updated on

Находки по разработке 2

Прикол недели

Звездочки на Гитхабе можно купить

codelimit - новый Python линтер

Делает одну простую вещь - считает длину строк

GitHub logo getcodelimit / codelimit

Your Refactoring Alarm 🔔

Code Limit

Your Refactoring Alarm 🔔

main codecov Checked with mypy Code style: black Linting: Ruff Checked with Code Limit

Introduction

Code Limit is a tool for developers with one goal: it tells the developer when it’s time to refactor.

Check out the documentation and start using Code Limit today to keep your code maintainable.

Quickstart

Depending on your development workflow, Code Limit can run in many different ways (e.g.: pre-commit hook, GitHub Action, standalone, etc.). See the Quickstart documentation for examples.

Standalone usage

Code Limit can run as a standalone program to check and inspect a codebase, see the Standalone Usage documentation to get started.

Configuration

Code Limit aims to be zero-configuration. However, sometimes the exception proves the rule. Check out the Configuration documentation for all configuration options.

Development

See the Development documentation if you want to extend or contribute to Code Limit.

Feedback, suggestions and bug reports

If you have suggestions for how Code Limit could be improved, or want to…

Пыха выглядит хорошо

Датаклассы, паттерн матчинг - кайф


Чел крутой, чисто пхп приколы постит

Скоро Bun 1.0 выйдет

Уже сейчас можно гонять тесты быстрее чем в Vitest и Jest

Неплохая статья про бранчевание и пулл реквесты

Пушим все в мастер и лучше кодить парно или в команде (mob programming называется) - жаль что я один 💀

https://craftbettersoftware.com/p/the-best-git-branching-strategy

knip - топ-темка для чистоты js-проекта

Ищет неиспользуемый стафф, типа зависимостей, импортов - на питон бы такое

GitHub logo webpro / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!

✂️ Knip

Knip finds unused files, dependencies and exports in your JavaScript and TypeScript projects. Less code and dependencies lead to improved performance, less maintenance and easier refactorings.

export const myVar = true;
Enter fullscreen mode Exit fullscreen mode

This is where ESLint stops: it handles files in isolation, so it does not know whether myVar is used somewhere else This is where Knip starts: it lints the project as a whole and finds unused exports, files and dependencies.

It's only human to forget to remove things that you no longer use. But how do you find out? Where do you start finding things that can be removed?

The dots don't connect themselves. This is where Knip comes in:

  • Finds unused files, dependencies and exports
  • Finds used dependencies not listed in package.json
  • Built-in support for workspaces (monorepos)
  • Growing list of built-in plugins
  • Use compilers to include other file types (e.g. .mdx, .vue, .svelte

alpinejs - хорошее дополнение htmx

Это когда надо добавить реактивности, когда у тебя вместо фронтенда серверный html-шаблонизатор (типа той же джанги)
https://alpinejs.dev/

PyScript - норм альтернатива шаблонизаторству

Можно писать на питоне сразу взаимодействуя с документом

https://pyscript.net/
https://pyscript.com/@07924187-45b9-4482-97a0-94ee74d0ae48/your-info/latest

SkeletonUI - Svelte-UI кит на базе TailwindCSS

Это то чего не хватает Svelte, а то уже у next есть shadcn, у nuxt - nuxtui

Хотя есть daisyui - который вообще фреймворк агностик 🤔

Хотя уже и shadcn на svelte портанули - в какое замечательное время живем

Новый пост от батьки Фаулера

Про то как совмещать TDD и AI-coding

Top comments (0)