Попробовал, наконец, разработку на 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
🛵 Two female tourists fell from the Yellow Bridge on Nusa Lembongan
📰 They were riding a motorcycle across the bridge connecting Nusa Lembongan and Nusa Ceningan when they lost control, collided with the railing, and plunged into the water. The police have urged local authorities and road services to urgently repair the bridge, which is in a state of disrepair and poses a threat to all road users.
#accidents#roads@BaliNews
🪨A road that collapsed near Ubud has blocked a tourist route
📍 A main road collapsed in Pedjeng village in Tampaksiring district, Gianyar. The collapse was 25 meters deep and 15 meters wide.
🚧 Authorities have completely closed the road as it was impassable for both cars and motorcycles.
📰 The Public Works Department is expected to restore the collapsed road as soon as possible. It is of great importance to locals and tourists alike. Passersby now have to make a significant detour. Farmers who used to use this route to transport their crops are also affected.
@BaliNews
#accidents#roads
🛣Gilimanuk-Mengvi highway decided to split into three parts
📰 The Gilimanuk-Mengvi highway is in the news again. This time the authorities, apparently tired of finding investors and buying back land, decided to change their approach.
🔎 They have divided the 100-kilometer toll road into three sections and are going to work with each of them separately, namely:
Section 1: Gilimanuk-Pekutatan, which is 53.6 km long.
Section 2: Pecutatan-Soka, 24.3 km long.
Section 3: Soka-Mengvi, 18.9 km long.
📆 It is scheduled to be completed in 2028.
@BaliNews
#roads#projects
🛣Construction of a new highway to western Bali will resume in 2025
📰 Minister for Infrastructure Affairs Dodi Hanggoto said that construction of the Mengwi-Gilimanuk highway will continue in 2025. The minister emphasized that President Prabowo Subianto's plan to develop the north of the island, including the construction of a second airport there, cannot be fulfilled without a new road.
🔎 The road will be 97 kilometers long and the potential cost of construction is $1.58 billion. The project is now at the stage of approval of the general contractor.
📆 Also last week, Governor Wayan Koster confirmed that construction of the highway will begin in mid-2025. Until then, the local government is committed to buying the land for future construction.
ℹ️ On September 10, 2022, authorities had already announced the start of construction, but after that, the project stood up due to lack of funding. We would like to believe that the new authorities will find the necessary funds and the project will still be realized.
@BaliNews
#projects#roads
🌍 The world’s highest paved international road, the Karakoram Highway, climbs over 4,700 meters linking China and Pakistan. Its route carves through mountains shaped by ancient glaciers and landslides. ✨
#transport⚡#mountains⚡#roads⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The Trans-Amazonian Highway spans over 4,000 kilometers across Brazil, but much of it remains unpaved and nearly impassable in the rainy season, highlighting the challenges of transport geography in remote regions. ✨
#infrastructure⚡#roads⚡#rainforest⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The world’s longest continuous road, the Pan-American Highway, stretches about 30,000 kilometers from Alaska to Argentina. Its route is interrupted by a wild jungle gap called the Darién Gap. ✨
#transport⚡#infrastructure⚡#roads⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🛣Bali will have new bus routes and toll roads
🧳 The Kintamani region of Bali is gaining popularity with touristsand island authorities are looking for ways to make traveling to this remote area easier.
📍 The Bangli Transportation Authority has proposed adding new bus routes to Kintamani to make it easier for tourists to get there. There are plans to open a new Damri bus route that will connect Kintamani to Ubud via Payangan and Gianyar.
🪙 In southern Bali, congestion is also being tackled by building new roads. Indonesian Tourism Minister Sandiaga Uno revealed the construction of a new toll road that will connect resorts in southern Bali with northern regions. The project has been approved by the central government and a tender for construction will be held in 2025.
📆 The work will temporarily worsen traffic congestion in the Kuta, Jimbaran and Baypas Ngurah Rai and Labuan Sait areas. Travelers are advised to plan their trips in advance and take into account delays in the Bukit Peninsula area from September.
@BaliNews
#roads#transport#tourism
🛣Transportation changes in Bali and their implications
📆 Next month sees the launch of several infrastructure projects that, while intended to improve the traffic situation in the long term, could make it much more difficult in the short term.
These include:
1 - The start of construction of the metro, namely its first section between the airport and Kuta.
2 - The construction of two new underground interchanges: one in Sanur, at the intersection of Tohpati and Bypass, the second – the exit from Bypass towards Uluwatu.
3 - The ongoing mass paving of storm drains and sidewalks in central Bukit.
❓What should tourists do?
The solution for tourists going to Bali anytime soon is to choose self-sufficient neighborhoods where you don't have to drive anywhere and everything can be done on foot.
Plus, instead of staying for a week or more in one place, travelers divide their vacation into 3-4 days in one location and then move on to other places of interest.
A classic set might look like this: Uluwatu/Bingin for beach vacations and beautiful sunsets, Ubud for cultural vacations, and north Bali for a couple days for unique nature.
@BaliNews
#roads#transport#tourism
🛣Bali's big toll road project is back on the agenda
👍 One of Bali's biggest infrastructure projects resumes this month. Development teams have been given permission to proceed with work on the Gilimanuk-Mengwi toll road, which will connect the heart of the island to the far west, the Java Ferry.
In June 2024, after nearly two years of delays and postponements, the land acquisition process will be allowed to continue. Construction itself will begin as early as September.
@BaliNews
#goodnews#transport#roads
⛔Bali Tol Mandara toll road will close for 32 hours during Nyepi
📰 PT Jasamarga Bali Tol management company PT Jasamarga Bali Tol announced that it will temporarily close access to the Bali Tol Mandara Toll Road for 32 hours due to the Nyepi celebration on March 29, 2025.
🚧 The road will become inaccessible on Friday, March 28 at 23:00 and will reopen on Sunday, March 30 at 07:00.
Although the road will be closed to the general public, passage will be free for emergency services and in case of non-emergency situations.
@BaliNews
#transport#roads#holidays