3 ms·
These are all Aurelia 1 concerns which have been fixed in Aurelia 2. - There is no dirty-checking in Aurelia 2. The observation system now uses proxies and oth
by DigitalSea 3y ago
These are all Aurelia 1 concerns which have been fixed in Aurelia 2.
- There is no dirty-checking in Aurelia 2. The observation system now uses proxies and other sensible fall-back strategies. The computed decorator for getters is also gone in v2, meaning no accidental vectors for dirty-checking.
- Observation system was rebuilt to use many of the same strategies detailed in point one. No dirty checking and proxy-first. Similarly, your next point about mutations, also has been addressed by the new binding system.
- Many of the templating bugs people encountered were spec implementation issues due to how the browser interprets template tags and content inside them. There were a few repeater bugs, but the ones outside of non-spec compliance haven't been a problem in years and do not exist in Aurelia 2.
- You can write type-safe templates now.
- You have have conditional slots now if you use the new au-slot element. A lot of the slot limitations in Aurelia 1 were because Aurelia adhered to the Web Components spec for how slots worked. In v2 there is still slot, but a new au-slot has been introduced to allow you to do dynamic slots, spot replacement, detect if slots are defined or contain content.
It's important to realise Aurelia 1 was released in 2015, so it's not perfect and some design decisions reflected the state of the web and browser limitations at the time. Aurelia beat out React in a lot of benchmarks back in the day. I'm sure Aurelia 1 vs React has slipped, but Aurelia was one of the faster options for a while, especially in re-rendering performance. You should give v2 a look. It improves upon v1 in every single way.
- em-bee 3y agohow is the transition from aurelia 1 to 2? my app has actually very little aurelia specific code so i expect this should not be to hard. if only i can find an aurelia 2 equivalent of this version that works without any build system: https://news.ycombinator.com/item?id=36971080 https://news.ycombinator.com/item?id=36971080
- DigitalSea 3y agoThe syntax and overall paradigm of Aurelia 2 is the same. The team avoided where possible a repeat of what Angular did to the community with the transition to Angular 2. Most notable differences are routing and dynamic composition. There is a build system free version documented here. Is this what you mean? https://docs.aurelia.io/developer-guides/cheat-sheet#script-tag-vanilla-js https://docs.aurelia.io/developer-guides/cheat-sheet#script-... If you need any help porting it over, just let me know.
- em-bee 3y agothat looks interesting, but it doesn't seem to work. https://unpkg.com/aurelia/dist/native-modules/index.js https://unpkg.com/aurelia/dist/native-modules/index.js doesn't resolve. i tried https://unpkg.com/aurelia/dist/native-modules/index.mjs https://unpkg.com/aurelia/dist/native-modules/index.mjs which does resolve, but it links to a dozen other files which all don't seem to resolve either. it looks like unpkg.com is rather broken. with aurelia 1 there was a downloadable archive (which still exists) that had everything bundled that i could just unpack and it was ready to run. it didn't even need a server to host the files if i was running a browser on the same machine. the original documentation for that is here: http://web.archive.org/web/20160903072827/http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/quick-start/1 http://web.archive.org/web/20160903072827/http://aurelia.io/... basically there are two things i am looking for: i want to be able to develop the application without using browser-sync or build steps and it appears the version you linked promises that. but i also want to be able to host and develop the application completely offline without any need for internet access. the reason for that is that i am using the application (in production as it were) while i am developing new features or fix bugs that i discover while using it. running the transpiler in the browser doesn't bother me, it's been fast enough so far. i would use aurelia-cli if i could figure out how to make it build a development version without browser-sync and without transpiling and compressing the code before it is deployed.
- SebastianKra 3y agoAurelia 2 has been in alpha for years and is now only in beta. My point wasn't only that these issues exist. If a framework has this many issues that go unfixed for years, while the user-base dwindles, maybe you shouldn't trust the developers. In addition, I believe that not only the implementation, but the fundamental design that is flawed. There's a reason why UI development has moved away from the OOP/Mutation/MVVM approach. The problems that hooks were intended to solve are real, and every big Framework since React has provided approaches to solve them... except Aurelia.