Posts
Overview Fri, Sep 18, 2020This gives an overview of posts you can find on this website. |
|
Forward Usage of Enum Siblings Sun, Apr 23, 2023Sometimes you want to access other values of the same enum even if they are not yet defined. Is this possible? |
|
Double Equality Fri, Feb 10, 2023Today I once again was hit by a simple question: when are two |
|
War Story: Porting an Unstable Fortran Program Wed, Feb 8, 2023Programmers tend to tell each other war stories, i.e. stories of a special one of their never-ending fights against complexity. Here is one I can share with the hope that co-programmers in similar situtations might learn something. |
|
Combining Predicate Types Thu, Sep 17, 2020The Java |
|
4X4 Matrix Decomposition Tue, Apr 14, 2020I was in need to decompose transformations given as 4X4 matrices into simpler ones. What I found on the web wasn’t suiting my need for understanding what I’m doing. So I had to figure it out myself. |
|
Enhancing the Debugger with Dedicated Views Thu, Dec 19, 2019During a debugging session I came to a complex |
|
How to Enhance Java Enums With Individual Behavior Fri, Apr 12, 2019This week I learned a neat trick how Java enums can define behavior which differs for each enum value. |
|
Java 11 versus Java 8 Performance Thu, Apr 4, 2019Today I found a nice example of the enormous performance improvements between Java versions. |
|
Bad Java Example from Book Sat, Aug 19, 2017Today I started reading a book about old and new Design Patterns which I brought from my latest visit to the local library, and stumbled over some bad piece of Java code. |
|
Serialization Proxy Wed, Jul 19, 2017Serialization is often complex for real-world classes. Here comes a nice trick which may be useful in your tool box. |
|
Iterator Exports Mutability Fri, Jan 27, 2017Wrapping a collection without exporting any modifying methods should make an immutable object. Or not? |
|
Changed String.substring() Behavior Mon, Oct 31, 2016One of my tools was running extremely slow since I ported it to run with my new sources, and I always wondered why. |
|
Bug Hunting 01 Tue, Oct 11, 2016I create bugs all the time, but usually they are plain stupid. But sometimes I can become quite creative… |
|
Enhancing Enums Sun, Jul 24, 2016As already mentioned elsewhere, I like Java enums a lot, because you can enhance them easily to make them more useful. But the examples I gave until now are quite complex. So here are some easier ones. |
|
Give Java Applications More Memory Tue, Jun 7, 2016Here you’ll find a neat trick how to allow your Java applications to use more memory without any user interaction. |
|
Bit Flag Enums Tue, May 17, 2016Java enums are nice, but how can you use them as them as bit flags? In many other programming languages this is perfectly simple. |
|
Enum values() Method Should Be Avoided in Time-Critical Code Mon, May 16, 2016
|
|
Multi-typed Parameters Sun, May 15, 2016In some cases you want to define a method parameter which is of a certain type (i.e a class or an interface), but also implements another interface. |
|
Java Package Bridge Pattern Sun, Jan 13, 2019The Java Package Bridge allows access between your packages without giving
access to the outside world. This makes it similar to the |