People tend to either love or hate regular expressions. I love them. They are powerful and can be written clearly. This session will start with the syntax for writing basic regular expressions (no experience needed) and how to call them from Java. As the regex get longer, we will focus on readability. Next come more advanced features so you can be a regular expression power user.
You’ve probably heard the expression that when you have a hammer, everything seems like a nail. While I love regular expressions, they are not always the right tool for the job. We will also discuss when regular expressions are not the right tool for the job.
There are a variety of static analysis tools for Java to help improve your code including Checkstyle, SpotBugs, PMD and Sonar.
In this session, I will demonstrate each of them and show how to configure them. Then I will show some useful rules and why they are important. Finally, I will show how to write your own custom rules.