Попробовал, наконец, разработку на 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
President Biden honors fallen police officers
President Joe Biden spoke to hundreds of uniformed officers at a memorial service to honor law enforcement officers who lost their lives in the line of duty
#JoeBiden#News#Reuters
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
Biden says U.S. ports open 24/7 a 'game-changer'
U.S. President Joe Biden launched an effort to ease supply chain blockages that are threatening to disrupt the U.S. holiday season, relying on expanded round-the-clock port and shipping operations.
#News#Reuters#JoeBiden
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
Biden calls for Democrat unity ahead of mid-terms
President Biden appealed for unity within the Democratic party to get his infrastructure and social spending plans through to the American people
#JoeBiden#News#Reuters
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
https://x.com/SavinoBalzano/status/1815087418912993448?t=v_o45bevej_RsJbbRsr-xw&s=19
La notizia vera? Ha firmato correttamente #JoeBiden: pare stesse per scrivere #DonaldTrump.
Si chiude una parentesi tristissima: un uomo palesemente bollito si fa da parte.
Oggi a dirlo sono tutti, solo qualche mese fa ci facevano passare per matti.
The US has sanctioned 21 Venezuelan officials, including military commanders, intelligence heads, and ministers, freezing their US-based assets and restricting visas.
Caracas condemned the measures, calling them part of a 'failed regime change policy.' The sanctions come after Washington supported the opposition's disputed election claims.
Learn more here: https://shorturl.at/ggDjj
#JoeBiden#OFAC#sanctions
In his last interview as president of the United States, Joe Biden tells the story of his first meeting with Netanyahu in Israel after October 7. Bibi told Joe: “We did in Gaza what you did in Berlin.”
#UnitedStates#JoeBiden#BenjaminNetanyahu#Israel#Gaza#Palestine
Biden meets Kenyan President Uhuru Kenyatta
President Joe Biden told visiting Kenyan President Uhuru Kenyatta that the United States will make a one-time donation of more than 17 million doses of the Johnson & Johnson vaccine to the African Union.
#News#Reuters#JoeBiden#UhuruKenyatta#COVID#vaccine
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
https://x.com/SavinoBalzano/status/1858430435358863776?t=VUJsK-vlRVQEBXJhqfqa-w&s=19
Ve la ricordate la storia del barbaro oscurantista #Trump? Quello che non avrebbe mai accettato l’esito del voto qualora avesse vinto #Harris?
Ebbene, mi domando dove siano tutti quei giornalisti, quegli opinionisti, quegli augusti intellettuali che ci mettevano in guardia dalla furia antidemocratica di #DonaldTrump.
Nonostante l’esito elettorale, infatti, l’amministrazione di #JoeBiden ha deciso di autorizzare l’#Ucraina a utilizzare le armi statunitensi nel territorio della #Russia. Vi pare accettabile che una decisione di tale portata, la quale ha impegnato il dibattito pubblico occidentale letteralmente per anni, venga in definitiva assunta da chi è in uscita dopo che la sua parte politica è stata bocciata per quanto realizzato, letteralmente stracciata in occasione delle ultime presidenziali?
Ovviamente la determinazione non è riconducibile alla persona del Presidente uscente: quello non si ricorda nemmeno il suo stesso nome. È da ricondurre all’establishment democratico, all’amministrazione di cui #KamalaHarris, l’eroina dei sinistri lobotomizzati di tutto il mondo, è vicepresidente.
La campagna elettorale di #Trump non lasciava spazio ad alcuna ambiguità ed è per questo che ha stravinto: ha promesso la fine dell'escalation nel conflitto. Nonostante l’elettorato sia stato chiarissimo, l’amministrazione uscente forza la mano, prova un gravissimo colpo di coda: alla faccia della transizione pacifica!
Come vedete, al di là della scialba retorica perbenista e salottiera c’è la verità, la realtà dei fatti: una parte dell’Occidente brama la guerra totale, lo scontro diretto con la Russia. Il tentativo è chiarissimo: si cerca l'incidente definitivo, quello che costringerà il futuro Presidente in un giogo senza alternative.
L’unica speranza è che, di qui al 20 gennaio, le gravissime provocazioni non vengano raccolte: saranno due mesi davvero pericolosissimi.
The Venezuelan government has rejected the Biden administration’s latest employment of “worn-out intervention strategies” by recognizing former opposition candidate Edmundo González Urrutia as “president-elect.”
The statement emphasized that Venezuela would respond with “firmness” and “dignity” to “any attempt to undermine stability or incite violence.”
Caracas has broken diplomatic ties with Paraguay's President Santiago Peña for hosting González in what the Venezuelan government has called an act of subordination to “the interests of foreign powers.”
Read the article → https://shorturl.at/qpLo7
#Venezuela#Washington#Paraguay#NicolásMaduro#EdmundoGonzález#JoeBiden
Il mondo occidentale si affida alla guida di un nonnetto rincitrullito.
In una delle parentesi più drammatiche e delicate della nostra storia recente, siamo in balia delle nebbie di un uomo finito.
Questa è la verità.
La mia al TG Plus di Cusano Italia TV
#italia#politica#attualità#notizie#informazione#dibattito#televisione#Biden#JoeBiden#usa#giornalismo
https://www.youtube.com/watch?v=6onPU8ekk5o&ab_channel=SavinoBalzano
President Joe Biden enlists Walmart, FedEx to fix bottlenecks
President Joe Biden urged the private sector to help ease supply chain blockages that are threatening to disrupt the U.S. holiday season and said the White House plans a nationwide overhaul of the clogged system.
#JoeBiden#supplychain#Walmart#FedEx#UPS#News#Reuters
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
#Trump o #Biden?
Temete che gli #StatiUniti siano guidati dai populisti? Temete che gli #Usa siano guidati dai facinorosi? Temete che l'#America sia totalmente soggiogata dalla retorica della violenza e della guerra?
L'estremismo non vi fa dormire la notte? L'#OndaNera vi provoca stitichezza? Allora non è per Biden che dovete "tifare".
#DonaldTrump#JoeBiden
https://x.com/SavinoBalzano/status/1806564599740637638