Fully statically typed ASP.NET Core views with Object Pages

preview_player
Показать описание
Demonstration of a project which uses an approach I call Object Pages, as opposed to Razor Pages.

00:20 Issues with stringly-typed views.
6:40 Object Pages
7:09 Compare Razor Page vs Object Page for Students Index
9:05 Hyperlinq library
10:19 Generating Previous and Next page buttons
11:10 Strongly-typed link to Create page
13:54 Strongly-typed form
14:55 Strongly-typed form field
17:24 SubmitButton widget
18:38 Table generation
22:25 PageButton local function
24:05 Snack break
24:40 The object page for the Create Student form
32:25 Fixing a bug live
35:15 React comes with JSX. Might we have CSX someday?
44:00 Finding all page references

Benefits of Object Pages
- Fully statically typed views
- Full power of C# for abstraction
- Code navigation between pages
- Views are more concise than Razor Page views

This is not beta. It's not even alpha. It's experimental. A proof-of-concept sketch.

Project as it existed at the time of this video:

The object pages within the project:

The Hyperlinq library that is used for HTML generation:

Рекомендации по теме
Комментарии
Автор

Do you know of any existing web frameworks which take a similar approach? Let me know in the comments.

dharmatech
Автор

For the obs mouse issue, you might find success by changing your cursor to the black variant.

farsidesc
welcome to shbcf.ru