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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #721 · 26.12

Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #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Следваща