Talk in English - US at php[tek] 2024
View Slides: https://kait.dev/posts/your-frontend-is-not-your-backend-using-data-transfer-objects-to-keep-your-code-focused
Short URL: https://joind.in/talk/dcd8b
(QR-Code (opens in new window))
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.
Comments
Comments are closed.
I live discovering new tools to bring back to the office. DTOs are one I can't wait to pass along to our data team.
Great talk regarding DTOs and their uses.