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

Резултати

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

Търсене: #nationalassembly

当前筛选 #nationalassembly清除筛选
Venezuelanalysis

@venanalysis · Post #2337 · 15.04.2026 г., 13:31

📰 NEWS | Venezuelan National Assembly Picks New Attorney General, Ombudswoman The Venezuelan National Assembly has appointed Larry Devoe as Attorney General and Eglée González Lobato as Ombudswoman during a session held on April 9. The appointments follow a parliamentary selection process reviewing dozens of candidates after the February resignations of previous officeholders. Both officials were ratified with 275 out of 285 votes, receiving support from the ruling bloc and part of the opposition. The leadership change coincides with the implementation of an Amnesty Law approved in February, with authorities reporting more than 8,000 beneficiaries in under two months. Read our full report here: https://shorturl.at/UV59T #NationalAssembly

Venezuelanalysis

@venanalysis · Post #1822 · 02.12.2024 г., 14:55

The Venezuelan National Assembly approved the "Simón Bolívar against the Imperialist Blockade" Organic Law, punishing those endorsing sanctions against Venezuela. Measures include bans from public office, up to €1M fines, and prison sentences of 25-30 years. Read the full report here: https://shorturl.at/CcMGx #NationalAssembly#Sanctions

Venezuelanalysis

@venanalysis · Post #2286 · 28.02.2026 г., 00:00

📰 NEWS | Venezuela: Attorney General and Ombudsman Resign as Authorities Process Thousands of Amnesty Requests National Assembly President Jorge Rodríguez confirmed the resignations of Attorney General Tarek William Saab and Ombudsman Alfredo Ruiz. Parliament declared urgency, formed a 13-member committee to appoint new officials within 30 days, and named interim replacements. The developments come as authorities process Amnesty Law requests covering cases dating back to 1999. Deputy Jorge Arreaza reported 8,110 petitions filed since approval last week, with 4,757 individuals benefiting so far, including 223 released from prison and 4,534 cleared of parole-type measures. Read our full report here: https://venezuelanalysis.com/news/venezuela-attorney-general-and-ombudsman-resign-as-authorities-process-thousands-of-amnesty-requests/ #2026AmnestyLaw#NationalAssembly#TarekWilliamSaab

NIDO Russia (НИДО)

@nido_russia · Post #1770 · 24.08.2024 г., 15:32

Promise of more focus on Nigerian Issuestowards speedy resolution In my meeting yesterday and today with the Honorable Director, Diaspora & International Affairs, from National Assembly of Nigeria, Hon. Shadé Adepeju-Joseph, she promised to bring governmental attention to most of the plight that Nigerians face here, including unpaid student stipends/salaries and documentation. She also promised to take back home, much of the beautiful experience she got in Russia towards the betterment of bilateral ties, increased cultural exchange and trade. Sputnik Africa also interviewed us to get to the bottom of these issues and brainstorm potential solutions. Stay tuned! Yours in Service, Dr. Godwin Ibe Chairman, NIDO Russia https://t.me/nido_russia/1770 #senate#Nigeria#nationalassembly#nido

Venezuelanalysis

@venanalysis · Post #1977 · 24.05.2025 г., 13:44

📝 INTERVIEW | ‘We’re Building a New Way of Life’: A Conversation with National Assembly Candidate Albanys Montilla Albanys Montilla, a 27-year-old PSUV candidate and lifelong communard, believes the National Assembly must create laws that empower Venezuela’s communes to manage resources directly, without intermediaries. She speaks about growing up under imperialist aggression and how sanctions fractured Venezuelan families, especially hurting women and youth. But Montilla also emphasizes the commune’s role in rebuilding consciousness through collective work and direct democracy. 'The commune is not just a slogan, it’s a reality we’re constructing. The new parliament must pass laws that let communities manage resources themselves.' 🔗 Read the full interview here: https://shorturl.at/VKC47 #Communes#LegislativeRegionalElections2025#NationalAssembly#Sanctions#Youth

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

Venture Village Wall 🦄

@venturevillagewall · Post #3993 · 26.01.2025 г., 22:00

Bitcoin Supply Drops Below 1M 🟠 Only 1,056,700 Bitcoin left to mine, forever. This significant milestone emphasizes Bitcoin's scarcity as its supply rapidly decreases. 📈 Hyperliquid achieves record $157B monthly volume in perpetual contracts, projecting $0.5T by March 2025 if trends continue. 🇫🇷 French Senate approves 2025 budget including an annual ‘unproductive wealth’ tax on unrealized cryptocurrency gains. Awaiting vote in the National Assembly. 🚨 180M USDT transferred from Tether Treasury to Bitfinex. Details from Whale Alert. #Bitcoin#Crypto#Tax#Finance#Volume#France#Investment#Currency#USDT#Tether#Bitfinex#WhaleAlert#PerpetualContracts#Market#Scarcity#Trading#Budget#NationalAssembly#Future

Crypto M - Crypto News

@CryptoM · Post #64773 · 09.04.2026 г., 21:50

🚀 Venezuela's National Assembly Approves New Mining Law to Attract Foreign Investment Venezuela's National Assembly unanimously passed a new mining law on Thursday, which includes 131 articles aimed at garnering support from the United States and attracting foreign investment. According to Jin10, the law features provisions that support foreign investment, such as an 'economic balance' clause and international arbitration options, differing from the 1999 framework that restricted disputes to local courts. The legislation introduces a simplified tax system, with royalties up to 13% of production and a new mining tax up to 6% of total revenue, while exempting several existing taxes. The maximum concession period is extended to 30 years, up from the previous 20 years, with the possibility of two 10-year extensions. Officials stated that the reform aims to attract investment in projects involving gold, bauxite, and other strategic minerals. However, the government retains the authority to designate certain resources or areas as national interests and impose special conditions. #Venezuela#MiningLaw#ForeignInvestment#Gold#Bauxite#EconomicReform#TaxIncentives#NaturalResources#NationalAssembly#InternationalArbitration