Urgent.News

What's breaking now, across thousands of outlets.

Tech

Why your code should speak the same language as your business (and not your framework)

Quando você modela os métodos de uma classe chamada CheckingAccount , o que você escreve? get_current_balance() , check_pending_transactions() e approve_limit_increase() ? Isso pode soar natural enquanto você está imerso na IDE. Mas tente explicar para um gerente de produto ou analista de operações que um bug crítico está na função is_bank_ticket_paid() . Ou pior: observe a cara deles durante uma…

Translated from Portuguese Read in Portuguese

The article discusses the importance of using a common language, known as Ubiquitous Language, in software development, particularly in the context of Domain-Driven Design (DDD). This approach involves using the same terms and vocabulary as the business domain in the code, rather than technical jargon, to reduce cognitive costs and minimize bugs.

By doing so, developers can create a more collaborative and rigorous model that accurately reflects the business rules and processes. The article also highlights the need to consider Bounded Contexts, where different contexts within a business require distinct entities and terminology, rather than trying to create a single, generic entity.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Hell Documentation

Anyone who has worked with OS development, especially beginners like me, has probably encountered problems with documentation. I am not writing this as a complaint or an attack on documentation.

More from Tuesday 15 September →