Category Archives: Tips & Tricks

Code Smells: Deeply Nested Code

Or: I wants all your data, give it to me… my precious…. Continuing the series of code smells and what do about them, in this post I examine some fairly innocent looking code that defies the obvious refactoring.  Although the … Continue reading

Posted in Tips & Tricks | Tagged , | Leave a comment

Code Smells: Null

During my research on refactoring I’ve seen a number of patterns (smells) crop up again and again. None of these are particularly new, and there are plenty of books, blogs and videos that cover smells and how to deal with them, but I wanted … Continue reading

Posted in Tips & Tricks | Tagged , , , , | 24 Comments

Git Questions – How and When do I Merge or Rebase?

Ever since Gary and I started the Git Questions video series, we’ve been asked to talk about merging.  We’re also frequently asked about rebasing – what is it, and when should I do it? In this week’s video, we take … Continue reading

Posted in Tips & Tricks | Tagged , | 12 Comments

Git Questions: How do I see who made certain changes?

In this week’s Git video, Gary and I look at how you can Annotate your code to see who made which changes.  We also show how you can use this information to understand a bit more about the context of … Continue reading

Posted in Tips & Tricks | Tagged , , | Leave a comment

Git Questions – How to get started with a GitHub project

In this week’s Git questions we take a look at a simple but rather important step when you’re working on a GitHub Open Source project – how do you get started? In the video, Gary and I demonstrate how to … Continue reading

Posted in Tips & Tricks | Tagged , , , , | 1 Comment

Git Questions – How to Keep a Git Fork up to Date

Carrying on our series of Git Questions, this week Gary Hockin (PhpStorm Advocate) and I look at the question: how do I make sure my GitHub fork is up to date when the open source project it forked has moved on? … Continue reading

Posted in Tips & Tricks | Tagged , , , | 5 Comments

Git Questions – How do I switch branches without losing my work?

We regularly get questions about how to achieve a particular thing – as developers there are parts of our workflow which trip us up, that our tools can help us with if we understand how.  So we’ve decided to start answering … Continue reading

Posted in Tips & Tricks | Tagged , , , | 13 Comments

IntelliJ IDEA Inspection Settings for Refactoring to Java 8

I’ve been giving a talk this year showcasing how to use IntelliJ IDEA inspections to help you refactor existing code to Java 8. The initial version of this, the one I gave at DevoxxUK (video), is based on my Migrating … Continue reading

Posted in Tips & Tricks | Tagged , , | 8 Comments

Java 8 Top Tips

I’ve been working a lot with Java 8 code over the last couple of years, for both new applications and migrating existing ones, and it feels like the right time to write down some of the “best practices” I’ve found useful. I … Continue reading

Posted in Tips & Tricks | Tagged , | 31 Comments

Webinar Recording: Refactoring with IntelliJ IDEA

Last week we had two exciting events: IntelliJ IDEA 2016.2 Public Preview announcement, and a webinar in which Bill Wake gave a one-hour masterclass on refactoring with IntelliJ IDEA. The preview is definitely worth a try, so please help yourself to … Continue reading

Posted in Tips & Tricks, Webinars | Tagged | 3 Comments