Thanks for the book! I really like your style and I think this is another great resource I'll get a lot out of. One of my concerns about .NET core is it seems that there are a handful of ways to do things compared to Java. But I'm starting to like the fact that there are fewer options that work really well. Plus there are things like LINQ that I haven't seen used much elsewhere that blow my mind.
LINQ and the async/await pattern are my two all-time favorite things about C#.
The Little ASP.NET Core Book
41–50 of 50 posts
Re: The Little ASP.NET Core Book
#42I would like to see a version for REST and SPAs as well
Having read through it, it is indeed nice and concise - but I'm of two minds of the content - is it really good to introduce server side rendering with jquery and ajax - today?
I think, that showing server side rendering is good, for a beginner (how do I go from a form, to db, and back to a simple html table?) - but I'm not sure how useful the "half-way to smart client"-approach of jquery is. I'm almost convinced throwing out most of the server side rendering in favour of returning json and rendering everything client side would be better, than the "in between" approach.
Now you have rendering and interaction spread over server side views and client side javascript - and I'm not sure I like the path it sets up for new developers.
But for someone that "grew up" with the html to html+ajax it made the book very accessible, and manages to show off a remarkably broad and (apparently) useful section of asp.net core to someone not well versed in asp.net core.
Re: The Little ASP.NET Core Book
#43Enjoying the book, I'm new to to asp and razor although I have done a little .net wep api before. I have an issue with the first view, when running I get the error below on all references in the cshtml. I'm using a stock install of VS 2017. Any ideas? /Views/Todo/Index.cshtml(4,5): error CS0103: The name 'ViewData' does not exist in the current context /Views/Todo/Index.cshtml(8,33): error CS0103: The name 'ViewData'…
Re: The Little ASP.NET Core Book
#44Enjoying the book, I'm new to to asp and razor although I have done a little .net wep api before. I have an issue with the first view, when running I get the error below on all references in the cshtml. I'm using a stock install of VS 2017. Any ideas? /Views/Todo/Index.cshtml(4,5): error CS0103: The name 'ViewData' does not exist in the current context /Views/Todo/Index.cshtml(8,33): error CS0103: The name 'ViewData'…
Did you also install the .Net Core 2.0 SDK?
dotnet --version shows 1.1.0, I think I assumed that the latest VS2017 would have the latest dotnet core but this doesn't seem to be the case.
Re: The Little ASP.NET Core Book
#45Earlier quoted context omitted.
Did you also install the .Net Core 2.0 SDK?
Not yet, and I was thinking that this might be the issue - would you expect this to be required? dotnet --version shows 1.1.0, I think I assumed that the latest VS2017 would have the latest dotnet core but this doesn't seem to be the case.
Re: The Little ASP.NET Core Book
#46Earlier quoted context omitted.
Not yet, and I was thinking that this might be the issue - would you expect this to be required? dotnet --version shows 1.1.0, I think I assumed that the latest VS2017 would have the latest dotnet core but this doesn't seem to be the case.
This is a common misconception, VS2017 doesn't ship with the .Net Core SDK, you need to manually install it seperatly. This is also described in the Book: https://nbarbettini.gitbooks.io/little-asp-net-core-book/con...
Re: The Little ASP.NET Core Book
#47I have been following along and so far filed a couple of minor issues on github. This is a very very good book and does well to explain the various mechanics. Thanks!
Re: The Little ASP.NET Core Book
#48I would like to see a version for REST and SPAs as well
Agreed! It's great that the book is published under an open license - my first thought was that it'd be fun to port this to f# - and my second thought was to restructure it a bit, focusing on REST/SPA. Having read through it, it is indeed nice and concise - but I'm of two minds of the content - is it really good to introduce server side rendering with jquery and ajax - today ? I think, that showing server side render…
Re: The Little ASP.NET Core Book
#49The "little" part is appreciated, as I recall all too vividly learning ASP.NET by slogging through "Beginning ASP.NET" by Imar Spaanjaars. It's a good book, don't get me wrong, but its two biggest strengths (thoroughness and being good for beginners) result in its being 800 pages long!
Re: The Little ASP.NET Core Book
#50great starter book! Any plans of expanding it to a more advanced level? I would like to see elaboration on the async/await patterns and more on http verb support techniques and routing. I like your holistic but bare bones approach and I would pay for an advanced version of this book, especially if it included short exercises with answers after each chapter.