Попробовал, наконец, разработку на 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
A detailed watercolor painting of a serene winter forest scene
A detailed watercolor painting of a serene winter forest scene. Tall, slender pine trees with textured bark stand gracefully, their branches heavily laden with fresh, white snow. The snow covers the forest floor, creating a smooth, undisturbed blanket. Soft, diffuse light filters through the trees, casting a gentle glow that highlights the delicate snowflakes and the subtle variations in the icy landscape. The background reveals more snow-covered trees fading into a misty, pale sky, evoking a peaceful and quiet winter day. The scene captures the tranquility and beauty of a snow-covered woodland, with a delicate balance of light, shadow, and texture.
#StableDiffusion
Beauty of a cute Soviet girl at cozy room posing freedom
dreamlike, Beauty of a cute Soviet girl at cozy room posing freedom, blonde long hair, (by Savrasov and Monet:1.2), abstract estetic, (shy:1.1) light smile, love, breast, (cinematic posing closeup:1.2), light blue and emerald palette, extremely detailed, flower and heart shape
#StableDiffusion
Young woman sitting at the edge of balcony
speed painting by hand an visual sunny vibe of punk happiness, big border brushstroke, big brushstroke, close up half-body, bliss, night city high, young Russian woman sitting at the edge of balcony, dark moon background, realistic skin texture, starry night, looking at camera, light smiling, attractive and sexy, summer sunlights, breast, photorealistic, long flowing brown hair, dreamlike light incidence, white sparkles sunlight beams, on a violet canvas,, giving them a radiant and romantic aura, cinematic and film grain in style of 80's, Soviet style, Iranian style, (by Rutkowski and painting by ilya Repin, in style Oil painting:1.2)
#StableDiffusion
Young Russian woman laying on the long grass and flowers in the sun
dreamlike paint, allegory style, (art style by Casey Baugh:1.1), close up half-body, bliss, summer sunset, young Russian woman laying on the long grass and flowers in the sun, violet and blue flowers glowing background, realistic skin texture, closed eyes, smiling, attractive and sexy, autumn sunlights, breast, photorealistc, creative commons attribution, long flowing brown hair, dreamlike light incidence, white sparkles sunlight beams, on a yellow canva, often described as flame-like, digital art, (watercolours paint:0.9), neon vibe
#StableDiffusion
A half-body model-shot
half-body model-shot, a close up of a Russian cute woman with ginger hair and a soft pink lipstick, reflective deep eyes, breast, dramatic light on face, sunrise light, summer smile, a beautiful teen-aged girl, shadow-play, connectedness, with very thin lips,pale - skinned, surrender, super beauty 4k photo
#StableDiffusion
A fox-woman in a blue outfit
cute (russian:1.2) fox-woman in a blue outfit posing on fantasy black dark room, fantasy, Ahri, trending on artistation, cold lighting, photo taken of an epic intricate, cute furry, asuna yuuki, frostbite, inspired by Guan Daosheng, casino, fairy cgsociety
#StableDiffusion
A portrait redhair woman posing in the forest with flowers
closeup the teen (Triss Marigold:1.3) portrait redhair woman posing in the forest with flowers, magically effects, shy smile, the witcher fantasy theme, sun and shadow play, the magician, magically dissolving, lovely gaze, extravagant sexy undress, seducing eyes, official print, (romantically old classic photo, photorealistic, film grain:1.2)
#StableDiffusion
Woman with a hood on in the snow
woman with a hood on in the snow, beautiful blueish eyes, photoreal, cgsociety, looks like young Mexican, skyrim snowstorm, gaze, (freckles on the nose:0.3), brunette fairy woman, ian callum, piercing clear eyes, guard, hidden, rogue, mistborn, beautiful faces aesthetic, nephilim, texturing rich hood
#StableDiffusion
A classical portrait of a young woman
A classical portrait of a young woman with fair skin and light brown hair styled in an elegant updo. She has a calm and confident expression, with subtle makeup and soft features. She is wearing a large, elaborate ruffled white collar around her neck, typical of 17th-century fashion, and a black dress with a high neckline. She also has a delicate gold chain necklace visible just above the collar. The background is dark and plain, emphasizing her face and attire. The painting has realistic detail and soft lighting, showcasing a refined and noble appearance.
#StableDiffusion
A cute russian girl removes the fox mask and opened face
cute russian girl removes the fox mask and opened face, highly detailed saturated, the demonic masquerade, silhouette-shaped, dream background, kabuki mask, furry character portrait, intricate detailed dress, cute face, clean image, <lora:hand 5.5:1>, dreamlike paint, allegory style, (style by Henry Asencio:1.2), detailed, glowing, the atmosphere of art, poetry as a symbol of happiness,
#StableDiffusion