Latest

Nov
17
Proper Use of Verify in Unit Tests

Proper Use of Verify in Unit Tests

Mocking is a great thing but can cause a lot of headache if it isn't used correctly.
3 min read
Nov
10
How to Write Simple Unit Tests

How to Write Simple Unit Tests

A unit test should follow the same flow, no matter what the test is and test one thing.
2 min read
Nov
03
Tour of the JavaScript Programming Language

Tour of the JavaScript Programming Language

Cheat sheet for the most popular programming language.
9 min read
Oct
27
How to Know What Collection to Use

How to Know What Collection to Use

What collection is the right one for the job?
2 min read
Oct
20
Horizontal and Vertical Code Formatting

Horizontal and Vertical Code Formatting

Code formatting is important for both code readability and your source control system.
2 min read
Oct
13
How do You Know if Code is Duplicated or Not

How do You Know if Code is Duplicated or Not

To detect code duplication, you need to think in terms of concepts instead of individual statements.
2 min read
Oct
06
Document the Why, not the What

Document the Why, not the What

Don't clutter code by adding comments stating what the code is doing but why it is doing what it is doing.
2 min read
Sep
29
Simplifying Your DAO Layer

Simplifying Your DAO Layer

DAO complexities come from doing the wrong thing in the wrong place.
2 min read
Sep
22
How Many Return Statements Should a Function Have?

How Many Return Statements Should a Function Have?

It isn't so much the total number of return statements as it is the complexity of the function.
1 min read
Sep
15
Simplifying Unit Tests with Loops

Simplifying Unit Tests with Loops

Loops are the forgotten tool in your toolbox when writing unit tests.
3 min read