Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite More Features structure #13

Closed
nbarbettini opened this issue Sep 28, 2017 · 7 comments
Closed

Rewrite More Features structure #13

nbarbettini opened this issue Sep 28, 2017 · 7 comments
Milestone

Comments

@nbarbettini
Copy link
Owner

nbarbettini commented Sep 28, 2017

Currently the Add more features chapter tells you to use jQuery to make AJAX calls to some pseudo-API controllers. It would be better to stay fully inside the MVC fold and then contrast with a SPA architecture, instead of mixing metaphors.

Tl;dr - more MVC, less jQuery.

@nbarbettini nbarbettini added this to the 1.1 milestone Sep 28, 2017
@mattwelke
Copy link

Many people consider MPAs (multi-page applications) with AJAX for a few features to be a good alternative to SPAs when you don't need (or can't allow) everything to live in the browser. Showing how to implement a few controller actions to do this probably deserves mention in a "more features" section. However, I agree that it shouldn't be mixed with the core stuff. Perhaps both AJAXifying and doing an SPA both deserve their own sections in multiple "more features" type sections.

@nbarbettini
Copy link
Owner Author

Perhaps both AJAXifying and doing an SPA both deserve their own sections in multiple "more features" type sections.

I definitely went back and forth on this while writing the initial version. It feels like Razor, AJAX, and full-blown SPA could each deserve their own fork of the book. 😄

@mattwelke
Copy link

Funny you mention that. Another thing I was thinking about was this:

This book is tiny. It doesn't expand on many non-MVC features. It's only what you need to get things running basically. And I love that. I think that to try to expand this book to include everything every developer reading it can think of would ruin that experience. It does only one thing, but it does it really well, and I'd like to see it stay that way.

Perhaps it would be worth creating more books which continue the tutorial completed in the book with their own themes. We could have:

  • The Little ASP.NET Core AJAX Book (Start from the finished tutorial in the original book, and add AJAX features)
  • The Little ASP.NET Core SPA Book (Start from the finished tutorial in the original book, and convert it to an SPA with whichever set of RESTful routes etc would be needed)

The community would have an opportunity to explore these other ideas without ruining the quick and effective style of the original book.

@nbarbettini
Copy link
Owner Author

Yep, that's exactly what I was thinking. I really like the size and scope of this little book. The Little ASP.NET Core Book could be a great starting point for:

  • The Little ASP.NET Core REST API Book
  • The Little ASP.NET Core + Angular Book
  • The Little ASP.NET Core + React Book
  • (A Little More) Advanced ASP.NET Core MVC

The "only" thing that needs to be done is write them.

@nbarbettini nbarbettini changed the title Investigate rewriting More Features structure Rewrite More Features structure Nov 26, 2017
@sadqiang
Copy link

sadqiang commented Jan 13, 2018

It is much better if "Add More Features" section discusses CRUD operations that are usually generated by scaffolding including explanation about HttpPost/HttpGet attributes, Post-Redirect-Get pattern, etc.

@nbarbettini
Copy link
Owner Author

@sadqiang I agree. In the next update I'm going to rewrite this section and get rid of the AJAX stuff.

@nbarbettini nbarbettini modified the milestones: 1.1, 2.0 Jan 15, 2018
@nbarbettini
Copy link
Owner Author

Resolved via d1a2086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants