DEV Community

Cover image for Designing A View - Building SaaS #59
Matt Layman
Matt Layman

Posted on • Originally published at mattlayman.com

1 1

Designing A View - Building SaaS #59

In this episode, I focused on a single view for adding a course to a school year. This view is reusing a form class from a different part of the app and sharing a template. We worked through the details of making a clear CreateView.

The stream started with me answering a question about how I design a new feature. I outlined all the things that I think through for the different kinds of features that I need to build.

After that discussion, I introduced the view that I needed to add. It's a CreateView for a Course model that's an extension of an existing UpdateView.

I pulled together the set of unit tests that will prove that the view will behave as I expect it to.

Once we had the tests to work from, I updated the underlying CourseForm for the extra data that the model needs on creation.

We found that some logic was embedded into a view that we needed for the new view, and we refactored the view code to move that logic to a model method.

For the rest of the stream, we worked through the issues that popped up before the tests could pass.

This article first appeared on mattlayman.com.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay