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

Please login to leave a comment

Sean Prunka at 12:19 on 23 Apr 2024

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.

John Boctor at 13:50 on 23 Apr 2024

Great talk regarding DTOs and their uses.