HenrikJoreteg
The point is that Apple's policies don't allow other browsers to actually compete on their platform. So users don't get to make the choice. All browsers on iOS have to be WebKit based by explicit policy that's the issue at hand.
It sounds like you like the default choice, and that's great for you. But if it's truly better, they shouldn't be scared to allow users to make a difference choice for themselves, no?
It's fine if they want don't want to implement everything.
The point is that if they don't get to simultaneously say:
1. The Web is a viable way to compete with native apps (which they explicitly said in defense in a current court case). 2. While not implementing features necessary to compete. 3. While not allowing anyone else to build a browser for iOS that implements the features necessary to compete.
Another interesting parallel between the two is that I implement a "loop" mechanism as well. Essentially, if no actions are fired for a while, and APP_IDLE action is dispatched which just updates "appTime" in redux store. As a result any selectors that depend on time as an input will recompute. This allows for actions to be fired over time based on age of the data, etc.
Elm and others are very cool. I just think a pure JS solution is nice, since that's what the browser runs.
Architecting UIs for Change
Betting on the Web – Why I Build PWAs
I'm all for minimal server-side interactions once loaded too.
What the Flux? Let’s Redux. (or why Redux is awesome)
Native Web Apps
Detailed Breakdown of Ampersand.js TodoMVC Implementation
Opinionated Rundown of JS Frameworks for Single Page Apps
Denial-of-Service in “qs” module (used by express, restify, hapi, +286 others)
We support declarative subviews, that might be what you're looking for: http://ampersandjs.com/docs#ampersand-view-subviews
7. Yup, we'll keep doing more here. We just announced it! :)
"less marketing fluff" well, it's an intro post attempting to explain something new. And hey, you're reading it so maybe the marketing worked ;) But, point taken.
API reference: http://ampersandjs.com/docs All the codez: https://github.com/AmpersandJS Guides: http://ampersandjs.com/learn/
I'm not saying you should use it, it's what we use and we're sharing it with the world. If you're already happy with your tools, just keep on keepin' on.
Also, it's worth noting that there's no cost in installing a big framework on the server side. It doesn't hurt to have a bit more text on the hard drive that isn't used. Clearly, that's not true on the client where we have to ship code down the pipe.
You'll notice we actually use hapi on the server for the cli app. So I don't believe these to be at odds. It's all about pragmatism and picking the right tool for the job.
With regard to "pain in the butt to extend" you could use `extend` and just replace that one method that returns those string, right?
InputView.extend({ getErrorMessage: function () { // return error objects instead? } })
/me shrugs
Forms really are a pain, we tried to create a simple contract between a form-view an it's child field views that was as flexible as possible so you could easily write more input types.
More on that contract here: http://ampersandjs.com/learn/forms#form-input-view-conventio...
But hey, also... easy enough to use something else entirely, it's not like the forms stuff is bundled :)
You can use login pages to prime caches, pre-render, etc. That's certainly not a panacea, but can help.
With the right cache headers on the main application assets and a primed cache you can start executing code immediately and eliminate all but your data calls on a good portion of app loads. From my experience, with a primed cache it's not too difficult to get comparable load times to opening a native app.
I'm hoping ServiceWorkers, Improved local databases, and HTTP 2.0 can help us out here.
There's also the option of trying to do the initial render server-side. I've experimented a bit with this, and have some more thoughts and approaches I want to try for this. But, I have yet to see someone do this is a way that didn't add a significant amount of complexity to the codebase :-/
/me shrugs
It's all about how much you actually need to customize beyond what you get from something like angular out of the box.
I'm not wanting to fight a framework war, that's for sure. If angular works well for someone, that's awesome they should keep using it.
The item you pointed out in the second quote, yup... that's a big deal for us.
Picking the right abstraction layer is a fine line to walk. As you pointed out, there's tradeoffs on both sides.
If you pick up a single tip that saves you an hour of effort you've paid for the book.
Just pass {debug: true} to build function.