I’ve been asked several times lately by colleagues what the Optional<T> is good for, so today some more basic stuff. You can use the Optional class is as an elaborate null check like Optional<String> optionalString = Optional.ofNullable(someString); if(optionalString.isPresent()) { String string = optionalString.get(); } // Or worse // String string = optionalString.orElse(null); // null […]
This is probably gonna be an exceptional personal post. I love coding. I live and breath this. My mind is a bastard, it seldom sits down and does nothing. There are endless possibilities out there, coming to it through my wonderful timeline, blogs, reddit and more. New technologies i want to learn, new things i […]
JavaLand 2015 resulted in a sweet little toy project for me (See my little reviews of the conference itself here: 24.3, 25.3 and 26.3, JavaLand 2015 was one of the best conferences i attend. Lots of fun, lots of good talking, i really enjoyed it).Wolf Nkole Helzle had this My-Matrix project going on there and […]
Nearly 2 years ago, excellent WebSocket Support appeared in Spring 4, easily usable using STOMP over Websockets / SockJS on the client side, backed by a pluggable broker on the server side, which can either be simple broker using scheduled executor services to handle message or a full fledged RabbitMQ or ActiveMQ solution. Using @EnableWebSocketMessageBroker@EnableWebSocketMessageBroker […]
To get somewhat more detailed CPU information on your Mac than the system profiler shows, use the following command: sysctl -n machdep.cpu.brand_stringsysctl -n machdep.cpu.brand_string