|
|
|
|
|
by apinstein
4471 days ago
|
|
It's interesting that he has a visceral reaction to the "hackiness" of Angular's clever way to do runtime DI but no visceral reaction to the fact that the problem was created by a third-party program which was instructed to purposefully obfuscate the actual source code of his program before delivering it to the runtime... the JavaScript world is indeed a funny place. That said, I am empathetic to his argument. But as a very happy Angular user, the benefits that are gained by having a runtime DI layer that works such that it can be built into the entire platform so far outweigh the one-time tooling change that it doesn't bother me at all. The rest is a slippery-slope argument that I don't think is fair. If you trust Angular as a project, then you have to trust to some extent that they'll make sane decisions. Since this particular clever hack is the only one that won't get "better" over time as runtimes improve, I think that they deserve the trust so far. |
|
Minification pretty much counts as 'normal use' these days, as much as we all have a distaste for it, we really can't change it.
You should watch the video on my post and tell me you are still comfortable with it doing that at runtime.
And the slippery slope thing? I spent 10 years of my life building open source projects with thousands of contributors and untold thousands of users. That's experience talking there. My point was that you can't deny the sufficiently promising excuse to abuse it further, without admitting that it is flawed to begin with.
My suggestion was that now that the ngmin exists, make that the only way to do it and remove all the crazy stuff out of the main execution.
I also said that clever hack is the only one that could never get better. There's no standards path for it.
They have been shown to deserve the trust. they are removing the hackiness from 2.0.