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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #236 · 28.02

Сопоставление с образцом (pattern matching) — сильный механизм языков программирования, который, к сожалению, встречается не так часто. Причём, как в коде разработчиков, так и в поддержке со стороны самого языка. Разработчики на функциональных языках используют этот механизм довольно часто, потому что у них вообще многое определяется статически через правильный подход к системе типов. Разработчики же на императивных языках очень любят огромные многоуровневые ветвления. Есть даже такое понятие «Спагетти-код» — раньше его применяли к коду, перегруженному операторами перехода, но в современном виде это скорее об избытке операторов условия. Pattern matching позволяет накладывать на объекты некоторый трафарет и смотреть, попадают ли они под него. Это не только выглядит лаконичнее и короче, чем дерево условий, но ещё и понятнее с точки зрения восприятия человеком: вот у нас заказ содержит более 10 элементов и при этом стоит более 1000 долларов, значит делаем на него скидку 10 центов. При этом трафарет работает как сортировщик монеток: самая маленькая проваливается в первый паз, следующая по размеру в следующий итд, применение условий идёт сверху вниз. Есть и неявный плюс: такой подход автоматически провоцирует разработчиков проводить проверку на null. Ведь null не может подходить под трафарет «содержит более 10 товаров». К счастью, в C# этот механизм в последних версиях активно развивают и совершенствуют. И это одно из многочисленных преимуществ C# над Java. #dev

Hashtags

Резултати

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

Общо глобално търсене

Ben Edgington | 𝕏🧵 RT @abcoathup: FAQ ⌛️@ethdevnews limited run Weeks not months. Unless I find sponsors/grants. @optimism's RetroPGF 2 grant for @weekinethnews pays my rent and feeds my family. But after living off that for years (thanks @evan_van_ness🙏) it is finally coming to the end. I want to work for Ethereum forever but also need to eat. 🤖 Can't AI do ethdevnews Not yet, but eventually. Currently news gathering is manual (twice a day, 7 days a week), with manual curation. I use AI for quick fact checking, but my wife is the best proof reader. If your AI news just points to where I have curated updates on @EthMagicians or assigned EIP/ERC numbers, then it is still me doing manual work (though happy for AI to takeover these unpaid tasks). 🧑‍💻@abcoathup job hunting Tech writing/community likely suits me best. I'm more of an AI prompter than a software engineer these days but would consider testing. I want remote async & family friendly. I’m in Melbourne Australia. Travelling (family commitments) and public speaking (autistic) are both hard for me. Resume and writing samples available. --- Thanks friends for all the support. 🙏 ~ ₿izFeed#⃣:#dev#ETH

Hashtags

vitalik.eth | 𝕏🧵 RT @liron: Doom Debate with @VitalikButerin has dropped: Will “d/acc” Protect Humanity from Superintelligent AI? Vitalik is both a hardcore techno-optimist and builder, and someone willing to seriously consider AI regulation and coordination mechanisms. He coined the term "d/acc'" – defensive, decentralized acceleration – as a middle path between uncritical AI acceleration and total pause scenarios. We debate the tractability of AI alignment, whether approaches like d/acc would actually work when superintelligence arrives, and why he thinks a pluralistic world of competing AIs might be safer than a single aligned superintelligence. The crux of our disagreement is that I think we're heading for a "plants vs. animals" scenario where AI will simply operate on timescales we can't match, while Vitalik believes we can maintain agency through the right combination of defensive technologies and institutional design. Finally, we tackle the discourse... View original post ~ ₿izFeed#⃣:#dev#ETH

Hashtags

‌Ben Edgington | 𝕏🧵 RT @ethresearchbot: New post on EthResear.ch! Integrating 3SF with ePBS, FOCIL, and PeerDAS By: - Luca Zanolini - Roberto Saltini 🔗ethresear.ch/t/22909 Highlights: - The integration of 3SF with ePBS, FOCIL, and PeerDAS aims to enhance blockchain efficiency and security by addressing transaction inclusion and proposer-builder separation. - The proposed system operates in slots, allowing all validators to vote on blocks every slot, which simplifies the process and removes the need for epochs or committees. - FOCIL ensures that important transactions are included in blocks by requiring proposers to follow inclusion lists created by a committee of validators, preventing censorship. - ePBS formalizes the separation of roles between block builders and proposers, allowing for a more competitive and transparent block construction process. - The research highlights the importance of maintaining core properties of 3SF, such as reorg resilience and transaction inclusion, even when integrating new mechanisms. ELI5: This research explores how to combine a new protocol called 3SF with other proposals to improve blockchain performance and security. It looks at how these systems can work together without causing problems, ensuring that transactions are included fairly and efficiently. ~ ₿izFeed#⃣:#dev#ETH

Hashtags

Ben Edgington | 𝕏🧵 RT @0xzak: I've been in crypto for over 10 years and I’ve Never been hacked. Perfect OpSec record. Yesterday, my wallet was drained by a malicious @cursor_ai extension for the first time. If it can happen to me, it can happen to you. Here’s a full breakdown. 🧵👇 ~ ₿izFeed#⃣:#dev#ETH

Hashtags

vitalik.eth | 𝕏🧵 A good book, worth reading to understand the basic case for why many people, even those who are generally very enthusiastic about speeding up technological progress, consider superintelligent AI uniquely risky https://twitter.com/ESYudkowsky/status/1922710969785917691 ~ ₿izFeed#⃣:#dev#ETH

Hashtags

12•••5•••89101112•••15•••20•••25•••30•••35•••40•••45•••50•••55•••60•••65•••70•••7273