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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #devblog

当前筛选 #devblog清除筛选
DeckForge Announcement

@deckforge_official · Post #233 · 05.05.2025 г., 08:21

Yama again Last time we talked about what matters to you And today I want to share something that matters to us, developers Soo... 🚂 MEET THE ENGINE 🚂 Choosing an engine for our ambitious game was a challenge DeckForge will eventually be available on many platforms and devices That means that our code has to be easily maintainable, configurable and expandable for different environments We considered several possible solutions, including major game engines We prioritized fast loading, flexibility and cool graphics And after careful evaluation we ended up crafting our own solution on top of the good old three.js library 🤘👵🏻🤘 In terms of rendering - the game is an intricate sandwich of three.js scene wrapped with several layers of html The fun part - three.js is a 3D library with gpu shaders and stuff This enables a lot of visual tools, like VFX and camera shakes Oh, we will make her pretty ✨ Brace yourself, next time i will tell you everything about shaders (👁ˋ _ ˊ 👁) #DeckForge#DevBlog Join the DeckForge Community: 🌐YouTube𝕏Twitter🎮Discord 👉Chat👉Announcements

DeckForge Announcement

@deckforge_official · Post #220 · 20.04.2025 г., 14:08

Hello, future Deck Lords I am Yama - Game Director at DeckForge I represent team LAB behind the development process LAB is a dream team of veterans from different branches of gaming industry and we are very passionate about the game We want to share with you, our players, cool stuff about the development process, listen to your feedback and craft a universe for all of us to enjoy Let's start with some basics 🔵this will be an actual game with gameplay and everything \0/ 🔵we have already produced the alpha version and are moving fast towards beta 🔵multi-platform game, baby! Why are we doing this 🔵we believe the time has come to create a real game product for web3 community 🔵we believe our players want everything a good game should have: gameplay, meta, competitiveness 🔵we believe that we can bring together web3 and web2 communities for their mutual benefit Stay tuned The Forge has just been lit 🔥 #DeckForge#DevBlog Join the DeckForge Community: 🌐YouTube𝕏Twitter 👉Chat👉Announcements

DeckForge Announcement

@deckforge_official · Post #230 · 28.04.2025 г., 14:17

Hello gents Yama here 0/ Let's talk Founder Packs We want you to have fun and profit So we came up with a plan Founder Pack Tiers 🔵 there will be several tiers of Founder Packs (we think 5 is good) 🔵 everyone will be able to claim the lowest tier 🔵 $BOOMS holders - we feel you - depending on your account balance and activity you will be able to claim higher tiers What is inside? 🔵 resources and currency to boost your progress 🔵 powerful items that will give you the edge over competitors 🔵 unique cards and customizations that will not be available through other means 🔵 chance to grab precious NFTs and prizes from our partners Stay tuned for more details #DeckForge#DevBlog#FoundersPack ⸻ Join the DeckForge Community: 🌐YouTube𝕏Twitter 👉Chat👉Announcements