Bartłomiej Klimczak

@bklimczak
1 Followers
14 Following
32 Posts
Go Software Engineer, @GoogleDevExpert
in #go Category, blogger, organizer of a meetup
@CracowGo, speaker, and trainer. I teach Go for business development.
bloghttps://developer20.com/
githubhttps://github.com/bkielbasa
Get up to speed with profiling your Go applications 🚀! Dive into Part 1 of my pprof Quick Start series and learn how to enhance your code’s performance in just 10 minutes! 📷 Read now: https://developer20.com/pprof-part1-quick-start/ #GoLang #Profiling #DevTools #PerformanceTuning
Part 1: pprof Quick Start - Get Profiling in 10 Minutes

There is a big mistake that we still keep making - big bang deployments.

I’ve seen many project that failed or partially failed because the tried to make too big change at a time.

I'm extending my #homelab. I have a k8s with master (rpi4) and a worker (old laptop). I've just bought a minipc and installed proxmox there. The plan is to run 2-3 k8s workers on it.

Keep fingers crossed!

Microsoft wants to disable the option to have a local account. The fact they serve ads on the start menu forced me to never install windows on any pc anymore
Unpopular opinion: Table tests are overused in #golang and shouldn't be used in testing business logic.
observability tip: First start logging and later transfer your logs into meaningful metrics. Thanks to that you'll and up in a set of metrics that you really care about and limited number of logs that are hard to search.
@hongster very good article! I only not a fan of using mockgen :)

@cobratbq You can think about a struct as a container for ints/strings, floats that leave togther. The data are the important thing. When you write a method for your type, Go compiler just translates it to a regular function with where the first argument is the type. It's a syntactic sugar. Here's an example https://goplay.tools/snippet/VXtIVkZzhMB

Both `Say` functions will generate exactly the same binary code and, in fact, the method will be transformed into a regular function as shown in the second example

@thiht @nemith @cobratbq In Go, interfaces describe a behavior. It means, they don't say what it is but how a specific type can do without the knowlage about what, in fact, it is.

A good example is io.Reader that say we can read from in no matter if it is a file, in memory data or a network resource.

In #golang,structs are just a container for data. Nothing more and nothing less. Don't try to use them as classes in other languages.