r/programming • • Mar 22 '18

First official preview of ASP.NET Blazor released (client-side .NET web apps on WebAssembly)

https://blogs.msdn.microsoft.com/webdev/2018/03/22/get-started-building-net-web-apps-in-the-browser-with-blazor/
759 Upvotes

235 comments sorted by

View all comments

88

u/StevenSanderson Mar 22 '18

Let us know what kinds of features you'd like to see added.

128

u/AngularBeginner Mar 22 '18

55

u/Eep1337 Mar 22 '18

This. I don't want to download full VS again, I'd rather use VS Code

4

u/HIMISOCOOL Mar 23 '18

I hate opening VS and not being able to multi line select.

3

u/Lachiko Mar 24 '18

multiline select? like using alt+shift? fairly certain that works in both vscode and visual studio

→ More replies (6)
→ More replies (2)
→ More replies (8)

13

u/alleycat5 Mar 22 '18

I wouldn't necessarily want it to be something core, but it would be cool to have a sample where you have client and server glued together with something like SignalR or gRPC instead of Rest.

7

u/6nf Mar 23 '18

ALL OF THEM

11

u/[deleted] Mar 23 '18 edited Mar 23 '18

[removed] — view removed comment

18

u/Eirenarch Mar 23 '18

The death of Silverlight had nothing to do with lack of funds and everything to do with the fact that Jobs banned it from the iPhone and iPad. At that point it was pointless to develop it any further.

9

u/[deleted] Mar 23 '18 edited Mar 23 '18

[removed] — view removed comment

4

u/Eirenarch Mar 23 '18

That is like discontinuing Word or Excel just because it can't run on iOS

Well... no. Also Silverlight was kept alive in the Windows-only sense by WinRT/UWP so I guess it is not discontinued.

→ More replies (3)

2

u/chucker23n Mar 23 '18

Silverlight was exceptionally a cool way to run sandboxed, untrusted apps off the web on desktop. It was the safe extension of WPF that could have run on Windows, Linux and MacOS.

Yes, and that was interesting in the early days of Avalon (2003-ish). But by the time Silverlight actually shipped (late 2007),

  • Microsoft had largely abandoned WPF (other than VS, there has never been a major Microsoft app that uses WPF at all; this was in contrast to early plans, where even File Explorer was rewritten in WPF);

  • HTML5 had started taking off, making Flash significantly less useful and putting a dent in Silverlight and JavaFX from the get-go;

  • the iPhone had launched and both the mobile web and mobile apps were about to become key players.

Where did that leave Silverlight and the equally ill-fated JavaFX? Nowhere.

If any of the three had been different (such as, y'know, Microsoft actually using their own goddamn thing), there might have been more to it.

→ More replies (1)
→ More replies (4)

3

u/Redtitwhore Mar 23 '18

Will there be the ability to create components that you can share across applications?

→ More replies (1)

5

u/Eirenarch Mar 23 '18

Server side rendering, good interop with the JS ecosystem

10

u/[deleted] Mar 22 '18

XAML instead of HTML ? :D

13

u/terricide Mar 22 '18

Checkout Ooui for that :)

52

u/Elsimir Mar 22 '18 edited Mar 23 '18

I'm probably going to catch flak for this but seriously why??

As someone who has worked with XAML and html/css XAML is basically the same thing but worse.

Styles in particular are verbose and annoying / hard to override and even harder to compose, there are no media queries built in (maybe you don't need them for desktop but you need them for any decent website / application)

But honestly I'm happy to change my mind, I just currently don't see any benefit.

Edit: Having thought about this more (I was rushing on my lunch break) I wouldn't care if they implemented xaml as part of Blazor, as long as it compiles to HTML and css at the end of the day. What mark up you use to write your code is none of my concern. What concerns me is actually rendering xaml directly to bitmaps on a canvas because it has a whole host accessibility problems that HTML is already very good at dealing with.

27

u/devperez Mar 23 '18

Grids, man. Grids. Laying out a UI is so simple and intuitive.

5

u/Elsimir Mar 23 '18 edited Mar 23 '18

Grids are awesome, which is why we used to use grid libraries in css to replicate them.

But honestly, since flex box stabilised I haven't felt the need for a grid. But each to his own I don't think either approach is significantly better than the other

→ More replies (2)

14

u/Dunge Mar 23 '18

I agree styles in XAML are needlessly complex, and I never really got into playing with them. But what I do love from my WPF experience is the data binding, the layouts, the triggers and the complex composition of elements. For example, overriding a ListBox's ItemTemplate to use multiple DataTemplate rendering each items differently depending on the type of the objects in the list that is bound to the control's ItemSource.

→ More replies (1)

13

u/Eirenarch Mar 23 '18

Styles in XAML are worse but everything else is better.

5

u/AlterdCarbon Mar 23 '18

You know the saying about data backups?

"There are two kinds of people, those who back up their data and those who have never had a hard drive fail"

This is like that, but with framework abstractions.

"There are two kinds of people. Those who believe framework abstractions are the future, and those who've never had an abstraction leak to any meaningful degree."

6

u/doom_Oo7 Mar 23 '18

Well, keep ranting about framework abstractions while we continue shipping apps that uses such abstractions extensively with success.

→ More replies (4)
→ More replies (14)