In this episode I share with you 5 tips for writing idiomatic code in Go! Let's get into it:
■ Prefer Table Driven Tests
■ Avoid Assert Tests
■ Avoid the empty interface (interface{})
■ Don't return interfaces
■ Avoid stuttering
== Relevant links
■ 5 Tips for Writing Idiomatic Code in Golang - Part 1: • 5 Tips for Writing Idiomatic Code in ...
■ 5 Tips for Writing Idiomatic Code in Golang - Part 2: • 5 Tips for Writing Idiomatic Code in ...
■ Learning Go/Golang : • Learning Go/Golang
■ Example: https://github.com/MarioCarrion/video...
== All Go/Golang Playlists
■ Building Microservices in Go/Golang: • Building Microservices in Golang/Go
■ Go/Golang Tools and Packages: • Golang/Go Tools and Packages
■ Learning Concurrency Patterns in Go/Golang: • Learning Go/Golang Concurrency Patterns
■ Learning Relational Databases in Go/Golang: • Learning Go/Golang: Relational Databases
■ Software Architecture in Go/Golang: • Software Architecture and System Desi...
■ Testing in Go/Golang: • Testing in Golang/Go
== Socials
■ / mariocarrion
■ / mario.carrion
■ / mariocarrion
00:00 Start
00:09 Prefer Table Driven Tests
04:02 Avoid Assert Tests
06:19 Prefer not using empty interface (interface{})
09:57 Don't return interfaces
12:36 Avoid Stuttering
=== Who am I?
Hello👋🏼! I'm Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.
Every week I will share with you different topics I've learned while working for small startups and large companies including the processes I've followed over the years for successfully delivering complex enterprise systems from start to end.
Subscribe if you like Software Development, Software Architecture and Systems Design!
Keep it up. Don't give up!
#golang #tutorial #idiomatic
=== Our Vlog Channel
/ rubycarrion
=== Affiliate links
■ Amazon Shop 🛒 https://www.amazon.com/shop/rubycarrion
■ Technical/Non-technical Books - Recommended by Mario Carrion 📚 https://www.amazon.com/shop/rubycarri...
DISCLAIMER: Some of the links shared above are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost to you. Thank you in advance for your support!
Смотрите видео 5 Tips for Writing Idiomatic Code in Golang - Part 3 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mario Carrion 21 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,249 раз и оно понравилось 105 людям.