• 2018-02-08T00:00:00Z
    • 42m
    • 2h 6m (3 episodes)

    8 episodes

    Season Premiere

    2018-02-08T00:00:00Z

    8x01 Routing Simple Requests

    Season Premiere

    8x01 Routing Simple Requests

    • 2018-02-08T00:00:00Z42m

    The first step in our web framework is to handle web requests. We set up the basic project structure, then define a Sinatra-style routing DSL allowing us to route different request paths to different blocks of code.

    2018-02-28T00:00:00Z

    8x02 Variables in Routes

    8x02 Variables in Routes

    • 2018-02-28T00:00:00Z42m

    We extend our simple request router to allow variables in the routes, like the variable "username" in "/users/:username". It extracts the variables' values from the requested path and feeds them to the handler block, as in most web frameworks. Regexes are the obvious implementation choice in a language like Ruby. We briefly look at the pitfalls in the regex approach, then implement with a much more straightforward method.

    2018-03-30T00:00:00Z

    8x03 Three Router Tweaks

    8x03 Three Router Tweaks

    • 2018-03-30T00:00:00Z42m

    There are a few annoyances with the router that will crop up later. Rather than fixing them during screencasts about the database portion, we fix all three right now. This screencast is optional and doesn't show significant changes to the framework.

    We discover SQL injection attacks!

    8x05 Database Library Tests

    • no air date42m

    Tests drive our SQL injection bug fix.

    We make queries easier and safer.

    A line-oriented template language.

    8x08 HTML Template Rendering

    • no air date42m

    The final piece of our web framework.

    Loading...