4min chapter

Go Time: Golang, Software Engineering cover image

Design philosophy

Go Time: Golang, Software Engineering

CHAPTER

A Type System Is Not to Be Shared

A type system is designed to allow data to flow in and out of a package. When it comes to data flowing into an a p, you have two choices. You could say, i want the api to accept data based on what it is. This is what i would call concrete functions,. It can accept a user, and only a user. That's what it is; thanks to interfaces, we can write poly morphic functions that say, no, no,api will accept concrete data Based on what it can do. And suddenly we found an exception. There are exceptions to everything. I don't really take exceptions between project layers. Agay, i will never let the foundation layer

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode