030 - O Custo Oculto da Herança em Programação - The Pragmatic Programmer episode artwork

EPISODE · Jun 12, 2025 · 10 MIN

030 - O Custo Oculto da Herança em Programação - The Pragmatic Programmer

from Entrelinhas do Código · host Tiago de Abreu

💰 Você já sentiu que "herdou" mais problemas do que soluções ao usar herança de classes na sua programação? Neste episódio, exploramos o conceito de "Imposto de Herança" (Inheritance Tax), conforme apresentado no Tópico 31 do livro "The Pragmatic Programmer" 📚.Descubra por que a herança tradicional (subclassing) pode criar um acoplamento forte e introduzir custos invisíveis no seu código 🚧. Assim como herdar um casarão antigo vem com suas dívidas e problemas estruturais, herdar classes pode te prender a detalhes de implementação indesejados, tornando seu código frágil e difícil de mudar 🏚️💔.Mas não se preocupe! O episódio também apresenta alternativas pragmáticas para evitar essa armadilha e construir sistemas mais desacoplados e resilientes:✨ Interfaces, Protocolos ou Traits: Foque no O QUÊ uma classe faz, não no COMO, permitindo polimorfismo sem acoplamento de implementação. 🎯1 🤝 Delegação: Em vez de herdar, use outros objetos para realizar tarefas, aumentando o desacoplamento e controlando a interface do seu objeto. 🛠️2 🧬 Mixins: Adicione funcionalidades flexíveis a classes existentes sem usar herança profunda, ideal para compartilhar código e comportamentos (como validação!). 🧩34Entenda por que herança raramente é a melhor escolha56 e aprenda a usar essas técnicas para escrever código mais limpo, ortogonal e fácil de evoluir. Prepare-se para desafiar o uso de hierarquias de classes complexas e escolher a abordagem que melhor expressa sua intenção! 😉🎧 Aperte o play e livre-se do imposto da herança! #ProgramaçãoPragmatica #POO #OrientacaoAObjetos #Acoplamento #Desacoplamento #DesignDeSoftware #InheritanceTax #DesenvolvimentoDeSoftware

💰 Você já sentiu que "herdou" mais problemas do que soluções ao usar herança de classes na sua programação? Neste episódio, exploramos o conceito de "Imposto de Herança" (Inheritance Tax), conforme apresentado no Tópico 31 do livro "The Pragmatic Programmer" 📚.Descubra por que a herança tradicional (subclassing) pode criar um acoplamento forte e introduzir custos invisíveis no seu código 🚧. Assim como herdar um casarão antigo vem com suas dívidas e problemas estruturais, herdar classes pode te prender a detalhes de implementação indesejados, tornando seu código frágil e difícil de mudar 🏚️💔.Mas não se preocupe! O episódio também apresenta alternativas pragmáticas para evitar essa armadilha e construir sistemas mais desacoplados e resilientes:✨ Interfaces, Protocolos ou Traits: Foque no O QUÊ uma classe faz, não no COMO, permitindo polimorfismo sem acoplamento de implementação. 🎯1 🤝 Delegação: Em vez de herdar, use outros objetos para realizar tarefas, aumentando o desacoplamento e controlando a interface do seu objeto. 🛠️2 🧬 Mixins: Adicione funcionalidades flexíveis a classes existentes sem usar herança profunda, ideal para compartilhar código e comportamentos (como validação!). 🧩34Entenda por que herança raramente é a melhor escolha56 e aprenda a usar essas técnicas para escrever código mais limpo, ortogonal e fácil de evoluir. Prepare-se para desafiar o uso de hierarquias de classes complexas e escolher a abordagem que melhor expressa sua intenção! 😉🎧 Aperte o play e livre-se do imposto da herança! #ProgramaçãoPragmatica #POO #OrientacaoAObjetos #Acoplamento #Desacoplamento #DesignDeSoftware #InheritanceTax #DesenvolvimentoDeSoftware

NOW PLAYING

030 - O Custo Oculto da Herança em Programação - The Pragmatic Programmer

0:00 10:04

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

LIGHTS, CAMERA, SMILE! Creatives Club Media Lights, Camera, Smile, is a podcast for anyone with a dream to share something with the world, out of the overflow of themselves - be it their mind, their heart, their personalities, and much more. Each of us are alive in this moment in time, with an innate ability to have ideas and create various things to benefit both ourselves and the people around us for a reason, and here, you will find the encouragement, the inspiration, and the motivation to do just that. Hosted by Cicily, founder of Creatives Club, she dives into various topics surrounding creativity and business. Exploring entrepreneurship for creatives in a corporate reality, sharing tips and tricks in a media centered company, answering questions regarding what a creative actually is are just a few of the things discussed on this podcast. Be encouraged to create for yourself as Cicily gets vulnerable by pivoting the camera to herself for the first time.To submit questions for Cicily to answer, or have her address certain t Solving for Change MOBIA Technology Innovations Solving for Change welcomes business and technology leaders to share stories of bold business transformation within complex organizations. In an era when technology and markets are changing around businesses, the key to staying competitive is to evolve in response to those changes.  MOBIA’s Mike Reeves and Marc LeBlanc investigate business transformation, deconstructing the challenges, ambitions, and market disruptions that drive companies to embark on transformation journeys, and exploring their unique approaches to achieving meaningful outcomes.  What sparks leaders to pursue business transformation? How do they overcome the challenges along the way? What are the keys to creating enduring change?  Through in-depth conversations with business and technology leaders, Mike and Marc answer these questions and explore how businesses evolve by pulling four key transformation levers: people, process, technology, and culture. Powering the Middle TJ Wilde The podcast that celebrates the backbone of America, our middle class and small businesses. We dive into the challenges that harm consumers. Threaten businesses and undermine our economy. How do we blend timeless values and traditions with modern technology to secure a brighter future? Come explore how middle class values and small businesses can keep driving the economy, creating jobs, and offering the American dream Tweens and Dreams Anna B 💕 Hi! I’m Anna, a 12 year old in seventh grade! I’m a theater kid! (HAMILTON IS GOD!!) I post about a variety of things; some of these things include journaling, TV shows/movies, music, shopping, theater, books, etc. If you have any episode requests please comment and I will do my best to do them! If you have any movie, TV show, book, or music recommendations I would love to hear them so please comment!! I’m always looking for more TV shows, movies, books, and music artists to watch/read/listen to! But anyways, I hope you enjoy listening 💕💕

Frequently Asked Questions

How long is this episode of Entrelinhas do Código?

This episode is 10 minutes long.

When was this Entrelinhas do Código episode published?

This episode was published on June 12, 2025.

What is this episode about?

💰 Você já sentiu que "herdou" mais problemas do que soluções ao usar herança de classes na sua programação? Neste episódio, exploramos o conceito de "Imposto de Herança" (Inheritance Tax), conforme apresentado no Tópico 31 do livro "The Pragmatic...

Can I download this Entrelinhas do Código episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!