3 ms·
I would disagree, there was no one true way, there are a few ways to do a slect for example, like you can use ng-options or use ng-repat for a li. There is als
by simion314 5y ago
I would disagree, there was no one true way, there are a few ways to do a slect for example, like you can use ng-options or use ng-repat for a li. There is also a sure way to have developers created stupid code where the 2 ways bindings will fire changes into an infinite loop. As an example a simple dropdown could just be like
<DropDown dataProvider="someArray"/>
for a bit more complex stuff you have have attributes like
<DropDown dataProvider="someArray" labelField="name"/>
and for custom stuff you provide your own render function
<DropDown dataProvider="someArray" itemRendered="myRenderFunction"/>
With this architecture 99% of cases will not requiere custom code, just setting some attributes, and the 1% you create your function that paints the item in the list. For all you get for free all the DropDown functionality, like keyboard shortcuts(arrow keys, Enter) . accessibility, all the events(before open, open, opened, before close, closed, hover ) in angular world if you are not super lucky to get pro developers with good angular experience you get a giant mess. They added components much later , not sure what was in angular team head not creating the component stuff from the beginning (I inherited a code base before components were invented in angular)
Edit: maybe angular was better then jQuery or whatever stuff was there in JS world but my issue is the guys that created it appears that they never created desktop or mobile apps, is like soem Google devs in their free time invented this shit from scratch with ZERO experience in GUI toolits, in fact I am wondering how big is the ratio of quality code /total code Google devs are creating. I hope their Fushia team has some competent experienced developers in the team.
- throwanem 5y ago> in angular world if you are not super lucky to get pro developers with good angular experience you get a giant mess True, but you only needed one good Angular dev, in a senior or lead role, to avoid that. I had the enormous privilege of getting to be that person a few years back, and maybe that colors my interpretation a little. > They added components much later , not sure what was in angular team head not creating the component stuff from the beginning My impression is that Angular 2 grew components largely in response to and because of React. The concept wasn't precisely new, but React did formulate it in a way that can be fairly called novel.
- simion314 5y agoComponets/Widgets were super old in Desktop world so React did not invented them. This is why I wonder if angular devs ever ever did any GUI development before creating angular, or maybe angular was just a simple toy and for some reason it grew too much. I can't find 1 good thing to say about angular1(version <=1.5) compared to Qt,WPF,Flex4 . Let me know if you worked with that old version any good thing about it (that is not it is a bit better then bad jQuery code)