
a big proud about using this framework, which makes me think about the South Park episode with people proud of using hybrid cars: Smug Alert!.This is just an example, but try to read blogs and questions about Angular and you will find funny dynamics into play: Few years ago people used to tell the same thing when comparing jQuery versus JavaScript.Īs a side note, Angular offers an option to throw exception if you use this kind of notation, and they called it “strictdi”: the name they chose suggests that it’s a more rigorous way to work, compared to the the default (non-strict) behavior. If JavaScript was really so poor, it’s unclear how Angular could be any better, since it is done in JavaScript. Yes, it does use magic strings, but JavaScript is so shitty that it doesn’t offer anything better by itself.
Yes, it does break minification, but there is already a GruntJs task to resolve this problem. The best invention since the sliced bread.Īnd you will find people defending this idea with these weak arguments: If somebody working for Google instead introduces this concept… split ( / \s?, \s? / ) //deps -> Īnd had asked other programmers for their opinions on StackOverflow, in reality most people would have just dumped this idea, labelling it as tricky and bizarre, underlying the fact that it breaks any JavaScript minification. var fn = function ( $scope, $http ) //some user defined function //use the function.toString method to find its parameter names as magic strings var deps = fn. If a single developer had come up with the idea to do something like this, to find the parameters to pass to a function call: Let me do a practical example to explain my point of view. Why am I writing this, now?īecause over the past two years I’ve been using AngularJs, I read many blog posts and questions about this framework, and quite often saw people supporting it with the argument: “It’s done by Google”, or defending aspects of it that they would probably otherwise blame. I do respect the products and services of these corporations too, but I cannot stand the dogmatism that many people create around them. “Microsoft has done it”, so it must be used (ipse dixit, mommy Microsoft). In corporations where Microsoft technologies are used:.
“Google has done it”, so it must be good (ipse dixit, mommy Google). This was self-imposed limitation from the so called intellectual world.Ĭenturies have passed, but people still do the same in many situations, for example with corporations. For many centuries, in Europe, scholars used to say the latin words “ipse dixit”, that mean “he, himself, told it”, to end any debate and justify any of their subjective arguments, if the same arguments had been previously used by the ancient Greek philosopher Aristotle.īecause Aristotle was recognized with so high prestige, that it was a taboo to even try to criticize his writings.