Home » Archives for Sebastian Daschner » Page 5

Author Archives: Sebastian Daschner

Sebastian Daschner is a self-employed Java consultant and trainer. He is the author of the book 'Architecting Modern Java EE Applications'. Sebastian is a Java Champion, Oracle Developer Champion and JavaOne Rockstar.

Create Git patches from command line

Git patches are an easy way to apply changes to a project if you don’t want to go through the regular commit-pull-request flow. Patches are files that contain an equivalent diff of a Git commit. You can create a patch of your modified working state using git diff. The diff output is in the correct patch format. $> git status ...

Read More »

Video course on efficient enterprise testing

java-interview-questions-answers

I’ve created a few videos on the topic of effective enterprise testing. I still see a huge importance in this topic in real-world projects. Here are my experiences in testing Enterprise Java projects together with some examples. 1. Introduction & efficient Maven usage In this video, I’ll give an introduction to the testing course and show how to structure tests ...

Read More »

GitHub on the command line

hub is a command line client for GitHub. You can use it to view or create issues, pull requests, conveniently fork or check-out repositories, and much more. I frequently use the following commands: hub clone <org>/<repo>hub browse and hub browse -- issues which opens in the browserhub pull-requesthub issue create Hub is repository- and branch-aware and the commands usually work ...

Read More »

Matching patterns with Java

If you’re using Java, there’s a high chance you’ve seen its pattern matching before. The String#matches(String) method internally uses the Pattern type, which comprises more complex functionality: A Pattern is created by compiling a regular expression. The pattern matches any input string and can optionally find capturing groups, which isolate certain parts of your string data. The API is used ...

Read More »

Global gitignore

A widely used Git feature is to use local .gitignore files which list which names and patterns of files and directories will be ignored within the Git repository. There is also the possibility to create a system-wide gitignore file which lists patterns that should always be ignored, in all of the user’s Git repositories. You can point to the file ...

Read More »

Managing multiple Java installations

With more and more Java releases coming up, it’ll be more interesting to manage multiple Java installations on your local environment. Different projects may require different Java versions. The jenv project is a convenient way how to manage Java installations. It can setup local Java installations on global, directory and shell level and uses easy-to-remember Java version identifiers: $> jenv ...

Read More »

Efficient enterprise testing — conclusion (6/6)

java-interview-questions-answers

This last part of the series will cover additional end-to-end tests, testing in production, and a conclusion of the parts. Further end-to-end tests & testing in production Besides system tests that only verify a single application-under-test and mock external concerns, our pipeline must also include full end-to-end test that verify the system as a whole. The good news is that ...

Read More »

Efficient enterprise testing – test frameworks (5/6)

java-interview-questions-answers

This part of the article series will cover test frameworks and my thoughts and experiences on when and whether to apply them. Thoughts on test frameworks The reason why I’m not too excited about most test framework is that, from my view, they mostly add some syntactical sugar and conveniences, but per se don’t solve the problem of having maintainable ...

Read More »

Efficient enterprise testing — workflows & code quality (4/6)

java-interview-questions-answers

This part of the article will cover the impact of having effective workflows during our development sessions as well as how proper test code quality enables us to create maintainable tests, especially for complex projects. Development workflows & pipelines Programming is a flow activity and we developers should be interested in keeping our workflow efficient and the turnaround times low, ...

Read More »