Mocks are for schmocks
This is a rant about the use of libraries such as MagicMock or go-sqlmock for writing tests. I really believe that you should avoid any library that matches the following regular expression /(mock|patch)/
.
This is a rant about the use of libraries such as MagicMock or go-sqlmock for writing tests. I really believe that you should avoid any library that matches the following regular expression /(mock|patch)/
.
In the age of fancy machine learning models with billions of parameters that can almost drive cars, or answer complex questions, or even write code. By far the most common way of debugging a program is by inserting print statements in the code. so much so that I’d argue that most programmers don’t know how to spin or use a debugger.