Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
In this session we'll go off the Rails and take a look at what our Pythonista cousins are doing with Django. I'll start with some live coding: recreating DHH's infamous 15 minute blog demo using Django and explaining the building blocks of a Django app along the way. I'll then take that app and use it to look at some design decisions Django makes, and how they compare to Rails. You'll see convention over configuration in places you didn't expect it, why Django doesn't need attr_accessible or strong parameters, and how the template method pattern could change your life. Why talk about Python at a Rails conference? Seeing another way of doing things forces us to think about what we're doing, challenges or validates the assumptions we make about our work, and inspires us to try new things. Help us caption & translate this video! http://amara.org/v/FGag/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the video titled "Sleeping with the enemy," George Brocklehurst presents a comparison between the Ruby on Rails framework and Django, highlighting the strengths and unique features of Django in the context of web development. This session was held at Rails Conf 2013 and focuses on learning from different frameworks to enhance understanding and improve applications. The key points discussed during the session include: - **Introduction to Django**: George shares his background, detailing his experiences transitioning from Rails to Django and emphasizes that his comparisons aim to identify Django’s strengths without denigrating either framework. - **Project Structure in Django**: An overview of how a Django project is organized is provided, pointing out key components such as project settings, URL routing, and application management. - **Models and Views**: George explains how Django handles models similarly to Rails, but with different syntactic approaches. He highlights the use of classes to structure models and the absence of separate schema definitions. - **Generic Views in Django**: The presentation demonstrates Django’s generic views as a powerful feature that reduces boilerplate code by linking URL routing to the appropriate view classes, which automatically handles common functionality like showing model data. - **Create Operations and Forms**: The discussion moves to form handling in Django, illustrating the creation of forms that manage user inputs, data validation, and model interaction fluidly. He contrasts this with Rails' handling of parameters and the potential complexity involved. - **Convention Over Configuration**: George underscores how Django’s design embodies the principle of convention over configuration, allowing for less code to achieve common functionality. He discusses the template method pattern that Django employs, making it adaptable and easy to extend. - **Learning from Each Other**: The talk encourages developers to explore other frameworks like Django to glean insights and practices that can enhance Rails development. George advocates for cross-pollination among programming communities to encourage better solutions and innovations in web development. - **Conclusion**: The main takeaway is an invitation for Rails developers to experiment with Django and draw lessons that could reshape their understanding and usage of Rails. This exploration can lead to improved coding practices and application design. This comparison is not just to favor Django but to celebrate the unique solutions different frameworks provide, ultimately suggesting that understanding diverse technologies can lead to personal and community growth in web development.
Suggest modifications
Cancel