5 Tips for Writing Idiomatic Code in Golang - Part 2

preview_player
Показать описание
In this episode I share with you 5 tips for writing idiomatic code in Go! Let's get into it:

■ Context should be the first parameter
■ Return early
■ Avoid the init() function
■ Comments are for machines and humans
■ Avoid unnecessary functions

== Relevant links

== All Go/Golang Playlists

== Socials

00:00 - Start
00:10 - Idiomatic Golang Tip 1: Context should be the first parameter
03:10 - Idiomatic Golang Tip 2: Return early
05:59 - Idiomatic Golang Tip 3: Avoid the init() function
10:54 - Idiomatic Golang Tip 4: Comments are for machines and humans
12:54 - Idiomatic Golang Tip 5: Avoid unnecessary functions

=== 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

=== Affiliate links

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!
Рекомендации по теме
Комментарии
Автор

Thanks Mario! There aren't many go YouTubers so I appreciate your work! I've been dabbling in some go stuff at work and enjoying it. Generics soon thank God. Not gonna lie I love my map filter and reduce 😛

erikslorenz
Автор

Hey Mario,
Thanks for the video.
How do you quickly decide if a Struct var should be exported or not? Are there cases where we should NOT be exporting? So extra funcs are needed there to get/set

TomVioTheBand
welcome to shbcf.ru