by mythz · 5y ago · 0 comments
It's pretty close to the way you'd work with C#/Java. If you were coming from that type of background, it's an easier transition.
A plus, and also a minus, of Angular is that it's pretty "self-contained". There's first party tools built-in, that are maintained by Angular. You also don't have to endlessly tweak Webpack which is also a plus.
That self-containment has also led to a less vibrant ecosystem in my opinion. There's more React "stuff" out there than for Angular.
Also, if you're the "mythz" I think you are, just want to say I'm a big fan of ServiceStack and you do great work on it.
Just wish I could work somewhere that uses it instead of primarily working with it on my personal projects. Given how the .NET community "works" though, I fear that might not happen. Conversation for another thread though. Kudos again.
Cargo culting. There is absolutely no need for a IoC container with Javascript or any other dynamic language for the matter. It only ever made sense for compiled language in order to allow reconfiguration without recompilation.
I say that as someone who heavily used AngularJS in the past. Angular X always seemed to me like a project looking for a problem and not the other way around, trying to justify its existence with complexity and bloat.
export const singleton = new Singleton()
and import it like any other symbol, e.g:
import { singleton } from './providers'
Not saying that these are impossible, but at some point you either end up reinventing dependency injection, or you end up with all the problems that cause people to invent dependency injection.