Live blogging from SymfonyLive London 2019

This commit is contained in:
Oliver Davies 2019-09-13 13:56:11 +01:00
parent 35b4ceda22
commit 5f2d3faef5

View file

@ -317,6 +317,25 @@ framework:
## Feeling unfulfilled by SPA promises? Go back to Twig. (Dan Blows)
A way on the front-end JS, CSS, images at the beginning of the request, sends a HTTP request (XHR/AJAX) to the back-end
## Why SPAs?
- A way on the front-end JS, CSS, images at the beginning of the request, sends a HTTP request (XHR/AJAX) to the back-end
- no full page refresh
- Supposed to be much quicker
- 'Right tool for the job' - JS on the front-end, PHP on the back-end
- Division of responsibility == faster development
- Reusable API - Api -> Mobile App and SPA - easy to add another consumer
- Easier to debug
## Why not SPAs?
- Lots of HTTP requests (400 to load the initial page on one project) == slow front end
- Blurred responsibilities == tightly coupled teams
- harder to debug, bugs fall between systems and teams. Huge gap between front-end and back-end, passing responsibilites.
- You can fix these problems in SPAs, but is it worth it?
## Using Twig as an alternative to an SPA?
## BDD Your Symfony Application (Kamil Kokot)
## Migrating to Symfony one route at a time (Steve Winter)