Well I did not come here to bash a language. I m just sharing my experience. Like I said I use JavaScript everyday. I wrote dozen of tools on top of the most popular JS libraries. I know what I m tallking about.
Sure each language has flows and there is not such a thing a the perfect language. But It s simply easier to shoot yourself in the foot with JavaScript than any other language. Sure with given time and effort people can get stuff done in JS. That does not mean that the language is pleasant and suitable for the things people are using it today. There is a reason why Google, Facebook, Microsoft, most of the time use something on top of JS. And I m sure when it comes to big scale web apps they know their stuff. My main problem with JS has been that there is simply no way to ensure that a given dev will work in a given way because in JS anything is possible. I cant simply give you an object and be sure that I will get the same object back(Prototype highjacking I m looking at you). How many time did we spend chasing errors that end up beeing typos errors ? Like the code below. function findMin(arr){ // Can I even ensure that one can only pass arrays here ? If yes can I ensure that it s an array of numbers ? // Still we have a problem is this code. var minimum = arr[0]; for(var i = 0; i < arr.length; i++){ if(arr[i] < minimum){ mininum = arr[i]; } } return minimum; } How about refactoring ? Ever tried to refactor a big scale JS code ? Yes IntelliJ helps a bit with that. But even that awesome IDE has its limit. So lots of enterprise apps end up beeing huge black boxes. No this is not a bashing. JS has flows. Really fundamental flows. And I m glad to see that lots of effort are beeing made to atleast fix some of those. On 2 June 2015 at 06:50, Anton Trapp <anton.tr...@gmail.com> wrote: > Language wars. How funny. Hated JavaScript (came from Ruby and this is > still my favorite), with CoffeeScript I can look at it because it does not > look to ugly :) > Yes, some concepts (or the lack of them) show that not the most clever > people invented it yesterday and used all the experience from other > languages to do that. > > But to say a language is bad because people try to make it better over the > years as the intended purpose changes and it gets used by much more people > is silly. Every language that is used and after every new pattern that > proves worthy (DRY, ...) gets it's updates, otherwise it vanishes. > > And I am in the software business for almost 30 years. Saw many languages > and projects. Not a single one failed because of the used language. Some > failed because of people not able to understand how do deal with the > weaknesses of the languages and frameworks. > > And bashing around on something without any proof is just wasting my time. > JavaScript is definitively one of the most important and most used > languages today. Likely because it is unusable and all people who use it > are idiots. > > Really have better things to do. Out of this thread - have fun bashing ;) > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Alain Ekambi Co-Founder Ahomé Innovation Technologies http://www.ahome-it.com/ <http://ahome-it.com/> -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.