Level: Intermediate (some prior knowledge necessary)
Length: Shorty (30 minutes)
Description:
We backend developers only want to name our variables_like_this, while frontenders are all about that camelCaseLife. But you’re not doomed as aCapulet to war with them forever, so don’t reach for that poison just yet.
Data Transfer Objects are here to save the day. Whether you’re looking to maintain naming convention consistency or convert between similar data types that don’t quite match up (without either sacrificing type safety or bloating the scope of your component), DTO is the way to go.
We’ll talk about the conceptual underpinnings and share examples of when they can be best put to use. Though we'll be using PHP and Typescript, these concepts are applicable to any typed language.
View Slides: https://kait.dev/posts/your-frontend-is-not-your-backend-using-data-transfer-objects-to-keep-your-code-focused