Blog

Articles in category Teaching

Why I still blog in 2026

2026-02-25 · Teaching · Thomas Sundberg

It is 2026 and I still have a blog. Not because it is cool. Not because it is trendy. Blogging stopped being fashionable years ago. I keep writing because it is one of the best ways I know to actually learn things.

Read more →

Different asserts are good in different situations

2015-11-06 · Java TDD Teaching · Thomas Sundberg

When should you use which assert? It is a question developers new to unit tests may ask themselves.

It is easy as a seasoned developer to think that this is obvious. It isn't when you are learning.

Read more →

Teaching - the difference between a lecture and a conversation

2013-04-02 · Teaching · Thomas Sundberg

There is a big difference when teaching a large group and teaching a small group. I recently had the pleasure of teaching the same material in a few different scenarios. One of them with a large audience of about 70 participants. It took me approximately 2.5 hours to go through all slides and coding an example. Two other scenarios was with small groups with less than 10 participants. The exact same material took a little over a little over 3 hours to complete.

Read more →

What is the difference between i++ and ++i?

2011-08-05 · Clean code Java Programming Teaching · Thomas Sundberg

During a coaching session I got a question about a loop.

Would there be any difference in the output from a loop defined as

for (int i = 0; i < 3; i++) {
    System.out.print(i + " ");
}

and a loop defined as

for (int i = 0; i < 3; ++i) {
    System.out.print(i + " ");
}

in Java?

Read more →