Tag: Java

Using Functional Principles in Java 8 to improve code quality

I have created a short instructional video that focuses on how we can improve our codes readability and quality by applying functional principles made easily available with Java 8. We will specifically learn how to avoid NullPointerExceptions in our code base by using the new Optional class.

Enjoy ­čÖé

Using Functional Principles in Java 8 to improve code quality from Jeppe Cramon on Vimeo.

This talk with focus on how we can improve our codes readability and quality by applying functional principles made easily available with Java 8. We will specifically learn how to avoid NullPointerExceptions in our code base by using the new Optional class.

Advertisements

I’m a .NET shop vs. I’m a Java shop parody

Saying that you’re a .NET shop, a Java shop or some other programming platform shop is just as ridiculous as if a software tester is saying that he is just a BDD man. Hopefully he is much more than that and has a more balanced approach to software testing, so he can select that test approach that makes the most sense for the problem at hand. Wouldn’t you be worried if you went to your car repair shop and were told that they’re only a piston shop?
Continue reading “I’m a .NET shop vs. I’m a Java shop parody”

Can code generated from UML diagrams be useful?

Generating code from UML can be very useful, although the usefulness of the result depends on what type of UML diagrams you use.

We’ve been part of several large projects where we used UML class diagrams to model the domain model, according to the DDD principles. Domain models (being OO persistable class models or Web service model) focus on structural patterns, i.e. how the different constructs (like entities, values objects, aggregate, etc.) relate to each other. For structural models we prefer UML class diagrams as we feel the convey information in a much better way than pure textual DSLs.
[infopane color=”1″]

Visualization of relationships provides a better overview and is a good platform for communication.[/infopane]

Continue reading “Can code generated from UML diagrams be useful?”