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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #fantom

当前筛选 #fantom清除筛选
Algebra DEX Engine

@cryptoalgebra · Post #2012 · 18.09.2024 г., 13:00

🦄 V3 DEXes featuring concentrated liquidity & dynamic fees powered by Algebra are taking over! 💪 Shoutout to SuperSonic DEX, the advanced DEX built natively on Sonic Labs (fka #Fantom) with Algebra's groundbreaking V3 AMM. 🤖🔧 ⚡️ Get ready for up to 95% efficiency soon on the Sonic Network!

Hashtags

🎉🎄НОВОГОДНИЕ УТРЕННИКИ В ПОДРАЗДЕЛЕНИИ СЛУЖБЫ ПСИХОЛОГО-ПЕДАГОГИЧЕСКОГО И МЕДИКО-СОЦИАЛЬНОГО СОПРОВОЖДЕНИЯ! 🎉🎄 Хотим поделиться с вами замечательной новостью! В нашем подразделении службы психолого-педагогического и медико-социального сопровождения началась серия ярких и волшебных новогодних утренников! 🎄🎁 Наши талантливые педагоги показали театральную зарисовку «Сказочный хоровод». Дети получили море положительных эмоций и незабываемые впечатления. Атмосфера праздника, радости и веселья царила на протяжении всего мероприятия. Украшенный зал, яркие костюмы, сверкающая ёлка, Дед Мороз со Снегурочкой и, конечно же, долгожданные подарки – всё это создало ощущение настоящего новогоднего чуда. 🌟🎉 Выражаем благодарность Установочному центру Fantom, который оказал благотворительную помощь в приобретении новогодних подарков для детей. #fantom https://vk.com/fantom_tmb

Hashtags

JJ.ai (NFA)🪽

@jsmjsmxyz · Post #1201 · 23.03.2023 г., 19:51

The #FantomHackathon Q1 2023 was a huge success! 🎉 Winners include familiar faces, plus introduce many new projects to the #Fantom ecosystem 🏆⤵️ 🥇 $10k @EstforKingdom (#GameFi) 🥈 $7.5k Rezy (recycling) 🥉 $5k Hazed (privacy) Congrats all! Full list: https://fantomq12023.devpost.com/project-gallery https://twitter.com/FantomFDN/status/1638988754659713024?s=20

✉️ Nomis x EYWA Protocol: Real utilities for the real DeFi guys Meet EYWA Reputation Score: Prove Your Cross-Сhain Activity and Be Eligible For the Airdrop SCORE YOUR WALLET TO START FARMING We've partnered with EYWA, the cross-chain trading powerhouse that aggregates Curve Finance pools, to ensure airdrops go where they're earned—right to real degens like YOU 🫵 🖥HOW TO GET STARTED: 1. Visit THE SCORE PAGE to get your Score 2. Go to THE SWAP PAGE 3. Make cross-chain swaps using EYWA and farm extra points 4. Check your total points HERE 5. Wait for the airdrop date to be revealed! 🔝 In the meantime, make more swaps, increase your EYWA Score, and farm points! ➡️HOW TO BOOST YOUR SCORE: Make swaps across #Ethereum, #Optimism, #BSC, #Polygon, #Fantom, #Arbitrum, and #Avalanche The higher swaps volume, the higher your Score! ➡️HOW TO GET MORE POINTS: The higher your Score, the bigger rewards! 🚨 EXTRA REWARDS TIPS: • Score < 60: Earn 15 points per Score • Score 60-80: Earn 18 points per Score • Score 80+: Earn 20 points per Score (max 2000 points) It seems like we've covered all the questions 🧐 Missed anything? Reach out in the comments! And now... Get in, Get yours, LFG⚡️

Venture Village Wall 🦄

@venturevillagewall · Post #3814 · 07.01.2025 г., 19:00

Bitcoin Caps and Central Banks 🌍 *Salvador Nasralla*, Honduras' leading presidential candidate, recently wore a Bitcoin cap in an interview. 💬 *Michael Saylor* claims Bitcoin at $100,000 is still a 90% discount. 📉 In a dramatic case on Chinese Twitter, a recent fight between a BTC whale and founder of Solv Protocol led to the creation of the *ZachAI* ($ZAI) token, with the whale dumping on followers post-launch. 🇨🇿 Czech Central Bank is considering BTC as a reserve asset. 🔥 50 million USDC burned at USDC Treasury. 🏗️ President-elect Trump announces $20 billion investment in new data centers in the U.S. #Bitcoin#BTC#Crypto#USDC#Solv#AI#ZAI#CzechRepublic#Honduras#Investment#Trump#DataCenters#Curve#Treasury#Ethereum#Blockchain#CryptoWhale#Fantom#Sonic

SIGNAL

@finsignal · Post #3295 · 22.06.2024 г., 07:33

📰 CRYPTO NEWS 🆕️The founder and CEO of #CryptoQuant stated that compared to the previous cyclical peak, the fundamental elements of the bitcoin network can maintain a market value three times higher than the current one. He considers it "possible" to "keep" the bitcoin price at $265,000. 🆕️As part of the presale, #WATER raised $41 million. Which also makes WATER the largest Memecoin pre-sale to date, with over 26,000 wallets participating. The team has regained control of its account in X. 🆕️50 Cent's #Twitter account was hacked in order to promote the Solana Meme Coin. 🆕️Internet Computer will launch the #ICP Hub Accelerator Program 2024, which aims to help early blockchain projects transform their concepts into market solutions, create a strong blockchain innovation ecosystem and promote technological progress in the ICP community. 🔹 21 million #LINKS ($295 million) of non-convertible Chainlink contracts have been unblocked today. 🆕️DAO Osmosis supports a commission-free bridge for transferring bitcoin to the #Cosmos ecosystem. 🆕️Scroll ZKP presents "Scroll Sessions", a loyalty program to reward the Scroll Marks community for their participation and involvement in the #Scroll ecosystem. 🆕️Arbitrum introduces the "Layer Leap", a single-stage bridge from L1 to L3 for the #Orbit ecosystem. 🆕️#Reef plans to launch a new product on June 26. ‼️ Dogwifhat Whales dropped #WIF by 16 million in a week. 🆕️#Fantom has released #Sonic's third management offering, which includes an annual token destruction mechanism, as well as the launch of Sonic Spark and Sonic University. 🆕️#Bluefin announces integration with Wormhole Connect. The Wormhole community will participate in the future release of Bluefin tokens. 🆕️#StacksNakamoto has announced the completion of 90% of the work on the project and is preparing for the official launch on July 15. The Nakamoto Stacks update should increase the transaction speed to 5-10 seconds, which is about 100 times faster than the current speed. ➡️ This is a significant event for the Stacks project and the Bitcoin ecosystem, will improve the speed, overall efficiency and scalability of Layer2 on #Bitcoin, promising faster and more efficient transactions for users.