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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #32 · 29.05

Попробовал, наконец, разработку на 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

Hashtags

Резултати

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

Търсене: #nationalday

当前筛选 #nationalday清除筛选

On June 11, 2024, Russian Embassy in Singapore hosted a state reception dedicated to the #NationalDay of the Russian Federation – Russia’s Day. Minister of State for Culture, Community and Youth, Minister of State for Trade and Industry, H.E. Mr. Alvin Tan attended the function as the Chief Guest. Among the guests were Members of the Parliament of Singapore, eminent representatives of business and social, scientific and cultural community, mass media along with Ambassadors and Military Attaches of foreign states and Russian compatriots. In his welcoming speech, Ambassador stressed that Russia remembers and appreciates that Singapore and other ASEAN countries were among the first to recognize the new Russia. He stated that thanks to this step, we have the opportunity today to look together into the face of the emerging new, fair, multipolar world. Ambassador continues mentioning that “even though large distances separate us, even though the natural and geographical conditions in which we have to live vary, even though we have different views with Singapore on the parameters of regional architecture and the genesis of the events in Ukraine, there is something very significant that connects us and is the subject of our common daily concerns”. “This connecting link is the mutual concern about the threats created by the arms race and the prospect of its spreading into outer space! This connecting link remains the common resistance to the dangers created by terrorism, transnational crime and the money laundering schemes that feed them! We rightfully consider our devotion to the ideals of building a drug-free world to be this connecting link! We consider our common efforts to guarantee international information security to be this connecting link, which would securely block the destructive use of the information environment! And finally, closer to the venue of our meeting today, we see such a link in cooperation for building an open and inclusive, free, predictable region based on the inviolable principles of ASEAN centrality”, he noted. “We invite you to take a closer look at the concept of the Greater Eurasian Partnership that we are promoting and to join the triptowards a new, common and indivisible formula for security in Asia and the Pacific as an alternative to conflicting Indo-Pacific concepts of the collective West. I am convinced that our cooperation has a bright future. It should contribute to the creation of a new world community free from the remnants of colonialism”, concluded the Ambassador.

Hashtags

🇹🇼 祝大家國慶連假快樂!🇹🇼 中華民國屹立於台灣之島,雖身處天災頻發與地緣緊張的前線,一路以來戰戰兢兢、克服一切困難。 我們或許時有歧見與爭論,然而「團結」始終是這片土地上最堅韌而無畏的力量。願我們在相互理解與信任之中,持續邁向更具包容與希望的社會。 中華民國台灣萬歲! #NationalDay#ROC#Taiwan