Skip to main content

Posts

Showing posts with the label tdd

Non-Test vs Test Driven Developer in Golang

There's been a lot of debates on whether TDD is dead or not! I strongly believe that TDD is very essential in any serious Software Development endeavor, especially for any team which is currently embracing  MICRO-services architecture or might seek to transition to Micro-services later. TDD somewhat will drive you to work out better and better system design rather than just focus on increasing Code Coverage as a vanity metric. The more you aim to improve Testability and TDD compliance in every single piece of your software, the easier you can extend or modify any functionalities in your system. I'm gonna share some pieces of codes to help illustrate my points regarding how different they are in practiceLet's dive into those differences //Non-Test package client import ( "bitbucket.org/sakariai/sakari/proto" "go.elastic.co/apm/module/apmgrpc" "google.golang.org/grpc" ) type Volante struct { proto.VolanteClient conn