---
title: "Discussion on \"Design Principles -Contd.\" | Hashnode"
description: "Discussion on \"Design Principles -Contd.\". Prefer interface over concrete class\nTo make design flexible, always try to program interface over concrete classes.\nThis helps to extend code later very easily.\nFavor composition over inheritance\nInheritance is the easiest way to reuse the code. Jus..."
url: "https://hashnode.com/posts/design-principles-contd/60b3b6c1fb51fd32a4dc32b9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Design Principles -Contd.](https://yashbafna.hashnode.dev/design-principles-contd?utm_source=hashnode&utm_medium=feed)

Prefer interface over concrete class To make design flexible, always try to program interface over concrete classes. This helps to extend code later very easily. Favor composition over inheritance Inheritance is the easiest way to reuse the code. Jus...

May 30, 2021 · 2 min read · yashbafna.hashnode.dev  
Read the article

-   [#design](https://hashnode.com/tag/design)
-   [#design-principles](https://hashnode.com/tag/design-principles)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[Yash Bafna](https://hashnode.com/@ybafna)

@ybafna · India

  
[View profile](https://hashnode.com/@ybafna)

Senior Software Engineer. Building Routiq - a local-first LLM gateway with semantic caching and complexity routing.

Senior engineer, 7+ years building distributed systems at scale - identity, auth, high-throughput async architectures. Currently shipping Routiq, a local-first LLM gateway. Writing here about systems design, LLM infrastructure, and what I learn shipping them.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
