TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #247 · 11.03

Попробовали на работе предметно-ориентированное проектирование (Domain Driven Design). Это такой способ построения архитектуры, когда ты (чаще всего с помощью системы типов и ООП) описываешь физическую суть вещей, которые представлены в твоей программе. Например, если в программе есть объект "Книга", то её нужно снабдить свойствами, которые бывают у книг в реальности: число страниц, автор, язык, тип обложки и т.д. При этом данные свойства должны быть такими, чтобы присвоить им нереалистичные значения было нельзя. Допустим, число страниц не может быть отрицательным (и скорее всего в реальном мире не может быть нулём). При попытке установить отрицательное число страниц программа должна выбросить исключение. А совсем в идеальном случае -- не дать этого сделать программисту на уровне статического анализа кода. Описав все свойства книги, вы снабжаете её операциями, которые над ней можно сделать. Например, из книги можно вырвать страницу, и при этом число страниц уменьшается. Нет такого случая, когда можно вырвать страницу без изменения числа страниц. Вы строго программируете эту зависимость, делаете у книги метод "Вырвать страницу", а он уже уменьшает число. Кстати, свойство "Число страниц" при этом нельзя переназначить в уже созданной книге. Можно только создать книгу, передав в её конструктор (так называется в программировании функция создания объектов) заданное число страниц. Но поменять число страниц можно только специальными методами "Вырвать страницу" и "Вклеить страницу". С помощью этого подхода вы гарантируете, что ваши объекты всегда находятся в валидном состоянии -- то есть таком, которое возможно в реальной жизни с объектом, представленным программой. Плюсы подхода очевидны: меньше число ошибок. Код описывает сам себя, и программист, если не лезет внутрь объекта "Книга", вообще не сможет сделать с книгой ничего недопустимого. Минусы, думаю, тоже понятны: изначально проектировать сложнее, нужно учесть много нюансов, писать тесты. Время разработки изрядно растёт. Изменение требований даётся дороже: например, если каким-то образом в ваш книжный магазин поступят книги со страницами из кевлара, которые невозможно вырвать :) Но первый проект с этим подходом мы сдали хорошо, без багов. Лучше, чем многие предыдущие. #dev

Hashtags

Резултати

Намерени 292 подобни публикации

Търсене: #javascript

当前筛选 #javascript清除筛选
GitHub Trends

@githubtrending · Post #15624 · 16.04.2026 г., 12:30

#javascript Evolver is a free MIT-licensed Node.js tool (needs Git and Node >=18) that analyzes AI agent logs in your memory folder, picks the best evolution genes, and generates secure GEP prompts to fix errors or improve prompts automatically. Clone the repo, run `npm install` then `node index.js` (or `--loop` for continuous mode), and it works offline or connects to evomap.ai for shared skills and leaderboards. This benefits you by turning random prompt fixes into reusable, traceable assets that make your AI agents more reliable, stable, and evolvable without manual tweaks or code changes. https://github.com/EvoMap/evolver

Hashtags

GitHub Trends

@githubtrending · Post #15591 · 28.03.2026 г., 11:30

#javascript foobox is a sleek, customizable skin for foobar2000 music player that uses JSplitter for smooth layouts, lyrics, spectrum analyzer, playlists, covers, search, and online radio. Download the free Chinese version package from latest Releases—it works on 32/64-bit, installs green without the base app, and lets you switch layouts via Main Menu > View > Layout > Quick Setup. You get a modern, feature-rich interface that runs fast, giving full control over your music library for better listening. https://github.com/dream7180/foobox-cn

Hashtags

GitHub Trends

@githubtrending · Post #15589 · 27.03.2026 г., 10:30

#javascript Figma MCP server connects your Figma designs to AI coding tools in VS Code, Cursor, Claude, and more, letting agents pull variables, components, and layouts to generate precise code from selected frames. You can write to Figma canvases, search design systems, and use Code Connect for codebase consistency. This speeds up design-to-code workflows, ensures UI matches designs exactly using your tokens, and cuts errors for faster, reliable app building. https://github.com/figma/mcp-server-guide

Hashtags

GitHub Trends

@githubtrending · Post #15548 · 08.03.2026 г., 11:30

#javascript Impeccable is a frontend-design skill with 17 commands like /audit, /critique, /polish, and /animate, plus anti-patterns to avoid generic AI mistakes such as overused fonts or gray text on colors. Download bundles from impeccable.style for tools like Cursor or Claude Code to create polished UIs for pages, dashboards, or apps. It benefits you by speeding up development, ensuring consistent, accessible, high-quality designs that stand out and save time on fixes. https://github.com/pbakaus/impeccable

Hashtags

GitHub Trends

@githubtrending · Post #15323 · 09.12.2025 г., 13:00

#javascript Claude-Mem is a tool that helps Claude Code remember everything important from your past sessions by automatically saving and compressing what you do. This means you don’t have to repeat explanations or lose track of your project history, saving you time and effort. It offers smart search to quickly find past work, a web viewer to see memory in real time, and privacy controls to keep sensitive info safe. It also supports long projects by compressing data to avoid running out of memory. This makes your AI assistant a continuous, helpful partner that keeps your work connected across sessions. https://github.com/thedotmack/claude-mem

Hashtags

GitHub Trends

@githubtrending · Post #15197 · 04.10.2025 г., 12:30

#javascript You can create and submit an adapter to DefiLlama by following their guide and submitting a pull request (PR) with "Allow edits by maintainers" enabled. Adapters collect blockchain data to calculate metrics like TVL (Total Value Locked), which must be based on blockchain data for accuracy. After merging, your adapter may take time to appear on the UI. For volume or liquidation adapters, submit PRs to specific repositories. Avoid editing certain files like `package-lock.json`. You can test adapters locally and change RPC providers via environment variables. DefiLlama supports contributors with Discord help and aims for transparency and accuracy in DeFi data. This process helps you list your DeFi project and share reliable data with the community. https://github.com/DefiLlama/DefiLlama-Adapters

Hashtags

GitHub Trends

@githubtrending · Post #15195 · 04.10.2025 г., 11:30

#javascript You can watch live MLB baseball games right in your computer’s terminal using a tool called Playball. It shows game schedules, scores, and play-by-play action in a simple text interface, so you can follow games quietly without needing video. You can install it easily with one command and customize colors and favorite teams to make it easier to see what matters most to you. This is great if you want to keep up with baseball discreetly or on a low-resource device without streaming video, making it convenient and lightweight for any baseball fan. https://github.com/paaatrick/playball

Hashtags

GitHub Trends

@githubtrending · Post #15153 · 19.09.2025 г., 12:30

#javascript You can find a complete collection of recipes from the restaurant 老乡鸡 (Lao Xiang Ji) in this project, which includes detailed cooking instructions and some AI-generated images, with a web version available for easy access. This resource is not official but is based on a thorough report of their dishes, allowing you to cook like they do at home. You can also contribute your own photos to improve the collection. This helps you learn authentic recipes and cooking methods from 老乡鸡, making it easier to recreate their popular dishes yourself. The project is open for suggestions and updates, ensuring it stays useful and accurate. https://github.com/Gar-b-age/CookLikeHOC

Hashtags

GitHub Trends

@githubtrending · Post #15136 · 11.09.2025 г., 21:30

#javascript Ripple is a new TypeScript UI framework that combines the best ideas from React, Solid, and Svelte to create a fast, reactive, and easy-to-use system for building web interfaces. It uses special `$`-prefixed variables for automatic reactive updates, supports clean reusable components with JSX-like syntax, and offers strong TypeScript integration with helpful VSCode tools. Ripple also includes reactive arrays, maps, and sets, making state management intuitive. Although still in early development and not ready for production, Ripple aims to improve developer experience and performance with fine-grain rendering and scoped CSS styling, helping you build modern web apps more efficiently. https://github.com/trueadm/ripple

Hashtags

GitHub Trends

@githubtrending · Post #14924 · 07.07.2025 г., 12:00

#javascript You can learn web development easily in Hindi with a course designed for beginners and intermediate learners. It covers important skills like HTML, CSS, JavaScript, front-end and back-end development, and database integration. The course includes real projects and daily updates to help you practice and improve steadily. Learning in Hindi makes it simpler to understand coding concepts and build websites confidently, even if you are new to programming. This course is perfect if you want to start a career in web development or enhance your skills without language barriers. It offers a clear, step-by-step path to becoming a skilled web developer. https://github.com/CodeWithHarry/Sigma-Web-Dev-Course

Hashtags

GitHub Trends

@githubtrending · Post #14823 · 12.06.2025 г., 11:30

#javascript AJ-Report is an open-source business intelligence platform that helps users control business dynamics with data. It supports multiple data sources like MySQL and Elasticsearch, and users can create dashboards easily by dragging and dropping components. The platform allows users to configure data sources, write SQL for datasets, and design dashboards in just three steps. This makes it easy for anyone to create interactive and visually appealing reports without needing extensive coding skills. The benefit to users is that they can make data-driven decisions quickly and efficiently. https://github.com/anji-plus/report

Hashtags

123•••10•••20•••2425
ПредишнаСтр. 1 от 25Следваща