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

Резултати

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

Търсене: #regulations

当前筛选 #regulations清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #3942 · 21.01.2025 г., 19:00

SEC Launches Crypto Task Force Today 📈 SEC Acting Chairman Mark T. Uyeda announced the formation of a new Crypto Task Force, led by Commissioner Hester Peirce, aimed at establishing a clear regulatory framework for crypto assets. This initiative is crucial in developing comprehensive guidelines to navigate the evolving crypto landscape. Read more #Crypto#SEC#Regulations#Blockchain#Finance

Bali News

@balinews · Post #298 · 23.01.2025 г., 13:20

🥤Bali will ban water in plastic bottles 📰 The provincial government of Bali will ban the use of plastic water bottles from February 3, 2025. 🏫 However, the new governor's decree will not affect everyone. To begin with, students of local schools and government officials will have to give up single-use plastic. They are offered to acquire reusable water containers. ♻️ The main goal is to make children and teenagers realize that the amount of plastic waste must be reduced. 🚯 In addition, the Indonesian government is launching a pilot project to promote the concept of “clean tourism” in Bali. The project includes practical activities such as improving infrastructure for waste management, educating local communities and implementing standards to ensure clean beaches, public spaces and natural attractions. @BaliNews #environment#projects#regulations

NIDO Russia (НИДО)

@nido_russia · Post #1885 · 20.11.2024 г., 09:34

Russian government considers amendments to fines for "popular" violations of traffic regulations. 📌The use of seat belts- from 1 thousand to 1.5 thousand rubles (Article 12.6 of Administrative Code); 📌Driving a vehicle under influence of alcohol or transferring right to drive a vehicle- from 30 thousand to 45 thousand rubles (Article 12.8 of Administrative Code); 📌Refusal of medical examination- from 30 thousand to 45 thousand rubles (Article 12.26 of Administrative Code); 📌Speeding — from 500-5000 rubles to 750-7500 rubles (Article 12.9 of Administrative Code); 📌failure to comply with requirements of road signs or markings- from 500-5000 rubles to 750-7500 rubles (Article 12.15 of Administrative Code); 📌Causing minor harm to health- from 2500-5000 rubles to 3700-7500 rubles (Article 12.24 of Administrative Code) 📌Causing average harm to health- 10-20 thousand rubles to 15-30 thousand rubles (Article 12.24 of Administrative Code). #news#russia#nido_russia#transport#regulations https://t.me/nido_russia

Bloomberg4you

@Bloomberg4you · Post #47316 · 03.02.2026 г., 11:33

🚗Китай запрещает скрытые дверные ручки в машинах: безопасность превыше всего 🚨 Китай стал первой страной, запретившей использование скрытой конструкции электронных дверных ручек, популярной в автомобилях Tesla (TSLA). Новое постановление Министерства промышленности и информационных технологий вступает в силу с 1 января 2027 года. Автомобили, прошедшие регистрацию до этого момента, должны адаптироваться к изменениям до 1 января 2029 года. 🔥 Причина запрета связана с серией трагедий, произошедших в Китае. Две аварии с участием электромобилей Xiaomi (XIACY) привели к гибели пассажиров, заблокировавшимся внутри автомобилей из-за неисправности электропитания. Проблема безопасности дверей электромобилей давно беспокоит автовладельцев и власти. Только с 2018 года Национальное управление безопасности дорожного движения США (NHTSA) зарегистрировало более 140 сообщений о неполадках с дверьми Tesla (TSLA), когда двери оставались закрытыми или работали неправильно. Наиболее известной катастрофой стала гибель мужчины и двоих детей в Германии, которые не смогли покинуть горящую машину Tesla (TSLA) после столкновения. 🌍 Европейские регулирующие органы также внимательно относятся к вопросам безопасности дверных механизмов, рассматривая введение аналогичных требований. Хотя большинство автомобилей Tesla оснащены механическим способом открытия дверей на случай отказа электроники, новый китайский регламент призван предотвратить подобные трагедии и усилить стандарты безопасности для пассажиров. #China#Tesla#AutomotiveSafety#ElectricCars#Regulations 😱 Узнайте больше о мировых рынках и экономике — переходите по ссылке!

NIDO Russia (НИДО)

@nido_russia · Post #1923 · 11.12.2024 г., 09:54

The increase in fines for a number of traffic violations will come into force on January 1, 2025 📌"In Article 2, the word" Law "should be replaced with the words "Federal Law", the words "after thirty days from the date of its official publication" should be replaced with the words "from January 1, 2025," the text of the amendment posted in the Duma electronic database says. 📌Under this law, failure by a driver to perform the duty to insure his civil liability, as well as driving a vehicle, if the Compulsory third Party Insurance (CTP) policy is deliberately absent, entails the imposition of an administrative fine in the amount of 800 rubles. 📌Earlier, the Parliament of the Kabardino-Balkar Republic submitted to the State Duma a bill that proposes to establish a fine for repeated violation of the Administrative Code of the Russian Federation, namely the absence of a driver's CTP policy, up to 5 thousand rubles. CTP policy means Compulsory Third Party Insurance Policy #news#russia#nido_russia#traffic#fine#regulations https://t.me/nido_russia

Venture Village Wall 🦄

@venturevillagewall · Post #4345 · 09.03.2025 г., 10:00

Crypto Leader Rejects New Tax Proposal David Sachs, dubbed the "Crypto Tsar," opposes a proposed 0.01% tax on crypto transactions aimed at funding a national Bitcoin reserve. He criticized the idea, noting that modest taxes often expand over time, referencing the origin of the income tax. Despite his opposition, Sachs acknowledges the possibility of such taxes being implemented in the future. For more details, read the full article here. #Crypto#Tax#Bitcoin#DavidSachs#Regulations

Venture Village Wall 🦄

@venturevillagewall · Post #4202 · 20.02.2025 г., 19:00

BestChange Unblocked in Russia Again The Russian Federal Service for Supervision of Communications, Information Technology and Mass Media (Roskomnadzor) has lifted all restrictions on BestChange, the largest cryptocurrency exchange aggregator, which is once again accessible to users across Russia. This decision comes after the platform was previously blocked, impacting millions of users. #BestChange#Crypto#Russia#Regulations#Trading

Venture Village Wall 🦄

@venturevillagewall · Post #3772 · 02.01.2025 г., 07:00

Bitcoin Price Prediction for 2025 James Butterfill, CoinShares head of research, forecasts Bitcoin to hit $80K-$150K in 2025. Trump's pre-election promises could influence the price towards the lower end, while better U.S. regulations might propel it higher. Long-term, Bitcoin's market cap may rise to 25% of gold's, potentially pushing prices to $250K, though this is not expected this year. Details: CoinShares Research #Bitcoin#Crypto#VC#PricePrediction#MarketCap#Regulations#Gold

Crypto M - Crypto News

@CryptoM · Post #64785 · 09.04.2026 г., 23:37

🚀 South Korea Implements New Rules for Managing Public-Sector Virtual Assets South Korea has approved a plan to manage 78 billion won, equivalent to approximately $57.7 million, in public-sector virtual assets. According to NS3.AI, the new regulations mandate that any seized or confiscated cryptocurrency from personal wallets must be promptly transferred to an institutional cold wallet, which is not connected to the internet. Additionally, the rules stipulate that private keys and recovery phrases must be controlled by at least two individuals through a split-access arrangement. #SouthKorea#PublicSector#VirtualAssets#Cryptocurrency#Regulations#DigitalAssets#CryptoSecurity#ColdWallet#Blockchain#CryptoPolicy

Venture Village Wall 🦄

@venturevillagewall · Post #4347 · 09.03.2025 г., 16:00

Hedera's ETF Potential and Price Correction Hedera ($HBAR) emerges as a strong contender for a spot ETF in the USA, driven by its ecosystem development and high standards in security and transparency. Currently, it faces a correction after testing a resistance level at $0.260, now moving towards a support zone at $0.195. A sideways movement is anticipated in the coming weeks. BTC price aims for $84,000. Read more: Leviathan News #Hedera#ETF#Crypto#HBAR#Bitcoin#Investing#Markets#Regulations

Venture Village Wall 🦄

@venturevillagewall · Post #4122 · 11.02.2025 г., 13:00

Wall Street Banks Target Crypto Revenues Bloomberg reports that major Wall Street banks are strategizing to engage with the cryptocurrency sector amid changing regulations in the U.S. They believe support from Donald Trump could trigger a wave of IPOs and lucrative transactions in the market. Read more about it here. #Crypto#USA#WallStreet#Banks#Regulations#DonaldTrump

Crypto M - Crypto News

@CryptoM · Post #65024 · 10.04.2026 г., 14:21

🚀 France Advocates for Enhanced Crypto Regulations Amid MiCA Concerns French authorities are advocating for stricter cryptocurrency regulations, focusing on stablecoins issued by non-European entities. According to NS3.AI, a Bank of France official, Denis Beau, has called for tighter limits under the Markets in Crypto-Assets (MiCA) framework, specifically targeting non-euro stablecoin payments. Beau expressed concerns that the current MiCA rules only partially mitigate risks associated with the widespread adoption of these stablecoins. In addition, France's National Assembly has adopted a provision requiring self-custody reporting for cryptocurrency holdings exceeding a 5,000 euro threshold. However, this measure has not yet completed the legislative process, indicating ongoing discussions and potential adjustments before final implementation. The move reflects France's proactive stance in addressing regulatory challenges posed by the evolving crypto landscape. #France#crypto#regulations#stablecoins#MiCA#BankofFrance#DenisBeau#NationalAssembly#cryptocurrency#selfcustody#legislation

ПредишнаСтр. 1 от 3Следваща