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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #beginner

当前筛选 #beginner清除筛选
Repositorio data science

@repo_science · Post #3454 · 19.07.2023 г., 18:01

#powerBI#Beginner 📊 Microsoft Power BI - Complete Beginners Guide to Financial Dashboards Microsoft PowerBI is Microsoft’s new business intelligence tool. I will guide you from downloading and installing Microsoft Power BI Desktop to creating reports and dashboards with a sample data set. 🔗Link ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3452 · 19.07.2023 г., 02:11

#powerBI#Beginner 📊 Microsoft 365 Power BI- Beginner This course begins the Power BI Desktop journey with an introduction to self-service business intelligence. The basics are addressed by connecting to data and preparing it for formal analysis. Considering what makes a good visual comes next followed by a number of visuals. Finally a dashboard is created in the Power BI Service with interactivity. 🔗Link ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----

Pensive|

@PensivePost · Post #4928 · 14.02.2021 г., 11:39

Once again ! Once again someone came and went Shattered my heart once again Yeah it was me Who built bunch of expectations But I just followed my heart once again I know she was worthy enough to fall for But that's not how goes life's cart, once again I wanted to confess this time too But yeah; in race of this hiding emotions I proved that I'm smart once again Brain said Stupid go and study But it wasn't heard by heart once again Did my best to stop it But uncontrollable was my Emotional dart, once again I tried decorating it by all mean But I guess this wasn't my chart once again I know it's a bit difficult to digest But yummy was this tart once again Well it's done now Let's have a new start once again Yess people come and go In someone we will find our part once again It's okay to end this now Beacuse; that's after end Where something new start once again Dear heart it's okay Just start behaving like heart once again So I guess I'm free now Feeling the freedom athwart once again And it's going to be Me only So I won't let anyone impart once again Dear heart please Now start behaving like heart once again What did u just say U r missing her Don't u dare to start mr. Heart once again Once again I fell for someone And yeah We simply fell apart once again ! #review#poetry#beginner#anniii

English Speakers

@English_Speakers · Post #5139 · 23.12.2022 г., 16:46

#converisation #Beginner #Daily_life @English_speakers ⚜➖⚜➖⚜➖⚜➖⚜➖ A: I’m going to take a nap. B: You should unplug the phone. A: That’s a good idea. B: Do you want me to wake you in an hour? A: No, thanks. Just let me sleep until I wake up. B: I’ll start dinner at 6:00. A: Okay. I think I’ll be awake by then. B: If not, your nose will wake you up. A: You mean I will smell the food cooking? B: You might even dream about dinner A: I don’t think I’m going to dream about anything. I’m really tired. B: Have a nice nap. Listen and practice 👇

Dasturlash hayoti️️ ️

@dasturlash_hayoti · Post #4101 · 15.12.2025 г., 13:15

#Dasturlash#IT#Beginner#futurecoder#OnlineLearning futurecoder — dasturlashni noldan o‘rganish uchun mukammal platforma futurecoder — bu hech qanday tayyorgarliksiz dasturlashni boshlash mumkin bo‘lgan bepul va interaktiv ta’lim sayti. Platforma foydalanuvchini asta-sekin fikrlashga, kod yozishga va muammolarni hal qilishga o‘rgatadi. Qanday o‘rgatadi? — Brauzer ichida kod yozish va ishga tushirish — Interaktiv topshiriqlar va real misollar — Har bir mavzu bo‘yicha aniq va sodda tushuntirishlar — Qiyinchilik darajasi bosqichma-bosqich oshirib boriladi Afzalliklari: — Dastur o‘rnatish shart emas — Amaliyotga yo‘naltirilgan — O‘rganish jarayonida xatolarni tushuntirib beradi — Mustaqil o‘rganish uchun juda qulay Kimlar uchun mos? — Dasturlashni endi boshlayotganlar — Python’ni tez va tushunarli o‘rganmoqchi bo‘lganlar — O‘qituvchilar va mentorlar — Amaliy mashqlar orqali bilim olishni istaganlar Rasmiy sayt: 👉https://futurecoder.io/ 💻@dasturlash_hayoti— dasturchilar hayoti va IT memlari aralash kanal😉

GitHub Trends

@githubtrending · Post #14891 · 01.07.2025 г., 11:30

#other#beginner#contribution#contributions_welcome#css#frontend#hacktoberfest#html#javascript#open_source#opensource#php#projects#python#react You can find a well-organized collection of coding project ideas divided into three skill levels: beginner, intermediate, and advanced. Each project includes clear goals, user stories, optional bonus features, and helpful resources, making it easier for you to build and extend your projects. This helps you improve coding skills, experiment with new technologies, and create impressive portfolio pieces to attract employers or clients. The list covers various technologies like JavaScript, Python, React, MERN stack, and blockchain, with tutorials and design resources included. You can also contribute ideas and examples to grow the collection and get community support. This resource saves you time and inspires your learning journey. https://github.com/The-Cool-Coders/Project-Ideas-And-Resources