Comments (1)
Hello there,
sorry for the late reply.
First of all, thank you for purchasing the book: I'm glad you've managed to like it despite the hours you've lost to make some of my examples to actually work.
Regarding the "dll hell" issue you're having, I honestly don't know what could have gone wrong: occasionally I also run into such problems but fortunately I can always solve in a few minutes using the visual studio tools (Clear Project and so on) and/or getting back the project from scratch from my GitHub's latest pull. I think that the best thing you can do is to get a "working version" of Chapter 11 by getting it from the book's GitHub repo and then try to replace the json, cs, ts and html files until you get the one that's messing things around (it might be the angular.json file or other configuration files). I agree with you that these configuration issues are a nightmare and that they can easily cripple the whole programming experience of anyone who doesn't have the experience and/or the "StackOverflow grinding" patience required to eventually overcome them.
Regarding the "Broken Code Myth" issue, I think you may have misunderstood the concept I wanted to express in that paragraph. The fact that the book may contain typo or errors is practically inevitable: the myth I'm talking about is not the presence of errors, but the fact that they can seriously compromise the programming experience. From February to September we received over 50 bug reports, which I have personally reviewed: 99% of these were objectively insignificant in terms of understanding the code and could be easily solved by any developer just by observing the intellisense suggestions and acting accordingly: moreover, a huge number of them were not even present in the GitHub code, which I've struggled to keep updated and 100% build-capable with the given set of tools. Don't get me wrong, I do realize that in some edge-case scenarios these errors can lead the readers astray and make them waste a lot of time, especially if they don't check the GitHub code everytime something seems odd (general rule: whenever it doesn't compile or doesn't work as expected, it's definitely odd). At the same time, I am 100% convinced that exaggerating those inevitable typos and talking about "hours wasted trying to make a broken code to actually work" is a myth that needs to be defeated, especially when we talk about "differences between the book's text and the downloadable project code". The Broken Code Myth paragraph literally says what to do in this circumstance: Is the book's GitHub repository also affected by this issue? Did I try to compare it with my own code, possibly replacing mine? That said, if you think I'm wrong in saying this, I'll be more than happy to discuss a couple of issues you've had with the book source code and how they took hours to get fixed because of typos or missing bits.
As for the SeedController
's Import()
method, you're definitely right: there is no reason to trigger the DB save upon each iteration, you can do that at the end of each for cycle. I've just released on GitHub a patched version of that method that calls the context's SaveChangesAsync(
) method a maximum of two times (only if there is at least a new country or city to add). This can be done ever more efficiently using a single call near the end, but I do prefer to have different calls for countries and cities. While I was there, I took the chance to keep track of the existing cities too, so that multiple calls on the Import()
method won't have the effect of adding duplicate cities on the DB. Hope you'll like it :)
from asp.net-core-3-and-angular-9-third-edition.
Related Issues (18)
- Sql Timeout HOT 8
- The application to execute does not exist
- HTTP Error 502.5 - Process Failure HOT 3
- Issue page 160 HOT 1
- Issue Page 213 HOT 1
- Adding the Initial Migration Fails HOT 1
- Chapter 5 Client Side Paging HOT 2
- Facing error while retrieving all cities or countries HOT 1
- Issue Page 299 HOT 2
- Issue Page 304 HOT 1
- Issue Page 319 HOT 2
- Issue page 320 HOT 1
- Issue Page 347 HOT 1
- Issue Page 519 HOT 2
- Pg 108 ICMPHealthCheck.cs HOT 1
- Upgrading Angular from 8 to 9 HOT 2
- Unit Tests are not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asp.net-core-3-and-angular-9-third-edition.