Skip to main content
00:00/00:00
Lecture 17 of 34

Consider using builders

Download Course (Free)

Course Content

0 / 34 completed
Section 1: Introduction2 videos

Who should take this course

2m

How to use this course

14m
Section 2: Data Types5 videos

Choose primitives over boxed primitives

5m

Pick the right data type for ids

5m

Don’t concatenate many strings

4m

Watch out for float and double precision

5m

Understand date and time challenges

8m
Section 3: Methods5 videos

Always use @Override

3m

Validate parameters

7m

Pick the scope of method responsibility carefully

5m

Return appropriate results

9m

Design method signatures carefully

19m
Section 4: Classes and interfaces6 videos

Restrict access as much as possible

9m

Consider using static factory methods

12m

Design utility classes correctly

3m

Use dependency injection

6m

Consider using builders

9mNow Playing

Favour immutability

26m
Section 5: Exceptions4 videos

Throw appropriate exceptions

7m

Throw exceptions in if blocks

3m

Design catch blocks carefully

4m

Use meaningful error messages

4m
Section 6: Modern Java Elements4 videos

Java 7 Use try-with-resources

5m

Java 10 Use var correctly

12m

Java 1421 Prefer switch expressions and pattern matching

9m

Java 14 Use records

5m
Section 7: General Programming Rules4 videos

Follow popular naming conventions

5m

Use libraries

5m

Program to interfaces where appropriate

5m

Don’t optimise code too early

12m
Section 8: Summary1 videos

Congratulations!

2m
Section 9: Other3 videos

Follow unit test best practices

8m

Avoid Java serialisation

5m

Package by feature, not by layer

6m