Попробовал, наконец, разработку на Blazor. Это такой фреймворк под .NET, который позволяет писать фронтенд на C#. Работает он двумя способами: либо собирает весь проект в WebAssembly, и бедный пользователь грузит себе мегабайтную dll, либо устанавливает клиент-серверное соединение через SignalR и шлёт клиенту информацию об обновлённых DOM-элементах.
Вот вторую то я и пробовал. Казалось бы — каждое нажатие кнопки требует отправить на сервер запрос и получить ответ. Никогда такого не было! Но субъективно разницы во времени отклика нет (потому что веб и так достаточно медленный, хаха).
Фронтенд-часть пишется очень похоже на JSX: вёрстка реактивно вперемешку с кодом. Когда-то я очень ругал React за такой подход, потому что каша. Но нетипизированный JS по-умолчанию каша, а здесь же по факту получается очень удобно: статический анализ не даёт тебе делать ошибки и писать ерунду.
Но приятный полноценный язык программирования вместо JavaScript это лишь вишенка на торте. Самое крутое — вся сила серверного кода с полноценной возможностью обращения к базе данных, шеринг моделей данных между сервером и клиентом, и, наконец, Dependency Injection любого серверного модуля в «клиент»! То есть вы не просто пишете одно приложение вместо двух, вы ещё и получаете отсутствие ошибок при каком-нибудь изменении моделей API, когда сервер стал отдавать не то, что ожидает клиент. Вам вообще теперь не нужен API, достаточно закодить нужную функцию на серваке и инжектировать её в нужный фронтенд-модуль.
Это супер удобно, супер быстро, супер устойчиво к ошибкам. Теперь не хочется возвращаться даже на вполне крутой Vue 3. Но, система пока новая, она не обросла решениями от комьюнити, а браузерный API всё равно придётся дергать через JavaScript Interop. Для совсем кайфа нужно подождать годик, поскольку развитие идёт довольно быстро. Например, там нет очень нужного в таком деле hot reload, но в .NET 6 он уже анонсирован, и вроде как есть в превью, а релиз в ноябре.
#dev
⚡️STON.fi: Introducing WCPI Pools
#STON#TON#ecosystem
STON.fi has launched their first Weighted Constant Product Invariant Pool (WCPI) featuring STON/TON tokens, designed to enhance participation in the TON ecosystem. WCPI pools offer benefits such as customizable asset allocation, improved capital efficiency, and built-in diversification.
Source: link
@tonlines
🌍 The leafcutter ant farms fungi deep in the soil of tropical rainforests. These tiny farmers cut leaves not to eat them, but to feed their underground fungus crops—a complex partnership unique to the tropics. ✨
#rainforest⚡#biodiversity⚡#ecosystem⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌎 The stone forests of Madagascar, called "Tsingy," are sharp limestone formations that rise in spiky towers. Over millions of years, rainwater carved deep grooves and canyons, creating a maze where unique plants and animals thrive, safe from larger predators unable to cross the jagged landscape. ✨
#Madagascar⚡#geology⚡#ecosystem
👉subscribe Interesting Planet
🌎 Flamingos in East Africa sometimes gather in flocks of over a million birds, creating vast pink “seas” along salt lakes. These crowds help them spot predators more easily and find safer nesting grounds together. ✨
#birds⚡#migration⚡#ecosystem
👉subscribe Interesting Planet
Our latest episode of DWF Chats is up. We had the pleasure of hosting Ming Wu, CTO of Conflux Network 🚀👀
In this conversation, we chat about:
🔸The Conflux solution
🔸How Conflux breaks the #blockchain nodes limitations
🔸The global Conflux #community
🔸The #ecosystem integration between Enterprise and #NFT
🔸Conflux collaboration with China Telecom
Full interview here.
//
About Conflux Network:
▫️As the only regulatory compliant, public, and permissionless blockchain in China, Conflux is building a borderless transactional and technological ecosystem for globally-minded crypto projects, extending beyond China to the US, Russia, Europe, and beyond.
Visit here to find out more.
🌍 Some coral reefs create their own sand by breaking down shells and coral fragments. Over centuries, this natural process builds entire white-sand beaches in tropical marine ecosystems. ✨
#coralreef⚡#sand⚡#ecosystem⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
Grassy Ridge Bald, one of the highest grassy balds in the Appalachian Mountains, at Roan Mountain on the N.C.-Tennessee state line.
Balds are home to a variety of what Weigl calls “rare, endemic, relict and disjunct plant species.” These species are light-dependent and cannot exist in forested habitats, and they must have existed over large enough distances and periods of time to speciate. Balds that have grown over have a significant decrease in vertebrate diversity, as well.
There are other places with similar stories. The polonina in Poland are one such habitat that Weigl has studied. They also support rare plants and have large herbivores including European bison, red deer, wild horses, and wild cattle. In addition to fossil data, there is a record of megafauna left by drawings on the walls of caves in that region. There are also grass balds in the Oregon coast with a similar history and rare species.
Whatever their origin, the unmanaged balds are disappearing.
#Ecosystem#Prehistoric#NorthAmerica
The summit of Gregory Bald (el. 4,949 ft/1,508 m) in the Great Smoky Mountains of Tennessee and North Carolina.
The character and distribution of Appalachian balds remained stable from the time the first naturalists explored the region, until forestry regulations no longer permitted annual pasturing of local cattle. While there is some evidence that grassy balds have natural origins, the forest quickly started to reclaim the balds once large-scale livestock grazing was eliminated by the creation of national parks and national forests, with some such as Gregory Bald being maintained by the National Park Service.
While it seems that the balds are maintained by the feeding activities of herbivores, another theory is that the balds are isolated artifacts, not natural landscapes, and a result of Native American activities or the European settlers’ agricultural practices. In other words, that the land is maintained by humans herding herbivores up there.
#Ecosystem#Prehistoric#NorthAmerica
TON is an up-and-coming powerhouse that we're absolutely stoked about⚡
In this video, TON's Head of Incubation, Justin Hyun, shares some exciting insights about Ton Foundation and its role in the #ecosystem.
While TON is younger than other significant Layer 1 blockchains, its rapid #growth and evolution has led it to become one of the hottest projects in the #crypto market in the last month, and it appears that next year will be exciting for TON.
In terms of transaction speed and versatility, TON Foundation remains ahead of other Layer 1 blockchains. In addition to a quick block validation time, the blockchain provides several advanced scalability features, such as sharding support.
Needless to say, we are a fan of this amazing #work and we can't wait to see the innovations that TON is going to bring to this space in the coming years.
We're a proud sponsor of the first Flow Hackathon – a global competition from 2/21–2/26 to push the limits of #web3#onFlow.
Beyond excited to be involved in the expansion of the #ecosystem and to provide an opportunity for developers to shine! 💡✨
This is what's up:
💰 $500K in prizes
🌐 Virtual & IRL events
📚 Education phase to learn more about building #onFlow
✨ Amazing speakers and judges
👨💻 Empowering #developers to do great things
Are you ready to build awesome innovations and earn prizes for your work?
Register today! 👇
https://hackathon.flow.com