OOP

Showing 1-3 of 3 results

Share

Well-structured Logic: A Golang OOP Tutorial

Can Golang be object-oriented? Go is post-OOP but can still leverage concepts like binding functions to types (aka classes), constructors, subtyping, polymorphism, dependency injection, and testing with mocks.

9 minute readContinue Reading
Leonhard Holz

Leonhard Holz

As a JS Developer, ES6 Classes Are What Keep Me Up at Night

JavaScript is an oddball of a language with numerous approaches to almost any problem. When ES6 added the “class” keyword, did it save the day or just muddy the waters? In this article, Toptal Freelance JavaScript Developer Justen Robertson explores OOP in modern JS.

11 minute readContinue Reading
Justen Robertson

Justen Robertson

Unit Testing and Coding: Why Testable Code Matters

In this article, I will show that unit testing itself is quite easy; the real problems that complicate unit testing, and introduce expensive complexity, are a result of poorly-designed, untestable code. We will discuss what makes code hard to test, which anti-patterns and bad practices we should avoid to improve testability, and what other benefits we can achieve by writing testable code. We will see that writing testable code is not just about making testing less troublesome, but about making the code itself more robust, and easier to maintain.

22 minute readContinue Reading
Sergey Kolodiy

Sergey Kolodiy

World-class articles, delivered weekly.

Subscription implies consent to our privacy policy

Join the Toptal® community.