Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Pjax and the Next Generation of Server-Side Web Frameworks - ETE 2012

ChariotSolutions via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the future of server-side web frameworks in this thought-provoking conference talk by Django co-creator Adrian Holovaty. Delve into the potential obsolescence of current frameworks and question the necessity of generating HTML from scratch for each page request. Discover how to automate new best practices like Pjax and learn about innovative solutions for multiple content boxes, context-switching, and auto-diffs via Ajax. Examine the benefits of passing HTML instead of structured data, and gain insights into implementing these concepts using Django middleware and template inheritance. Address challenges such as partial titles, nested template logic, and security concerns while considering the implications for developers across various frameworks, including Ruby on Rails.

Syllabus

EMERGING TECHNOLOGIES FOR THE ENTERPRISE CONFERENCE
Problem #1: Multiple content boxes
Context-switching
Computers should do this MON
Two pages, one system
The Solution
Auto diffs via Ajax
Support multiple content boxes
Support non-visible changes (JS!)
Respect URLs and permalinks
Bail if needed
Favor correctness, win devs' trust
Amaze
Why pass HTML instead of structured data?
Example
Find all on-site links
2. Set onclick
3. Django middleware
Overview
Two bits of MAGIC
Django template inheritance base.html
Basic diff using template inheritance
Template variables
Then it starts to get tricky...
How does the framework know this is a title?
Partial titles
Snippets in HTML tags
Hooking into the HTML: Option 2
Evil HTML snippets
Insertion types
Nested template logic
Template logic in crafty places
Removal of markup
Putting it all together
Security, part 1
Deferred loading
Template scanner

Taught by

ChariotSolutions

Reviews

Start your review of Pjax and the Next Generation of Server-Side Web Frameworks - ETE 2012

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.