Customized Remote Work Solutions From the World’s Largest Fully Remote CompanyCustomized Remote Work SolutionsLearn More

OOP

Showing 1-3 of 3 results
EngineeringIcon ChevronBack-end

Well-structured Logic: A Golang OOP Tutorial

by Leonhard Holz

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
EngineeringIcon ChevronBack-end

As a JS Developer, This Is What Keeps Me Up at Night

by Justen Robertson

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
EngineeringIcon ChevronBack-end

Unit Tests, How to Write Testable Code and Why it Matters

by Sergey Kolodiy

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

Join the Toptal® community.