The first rule for good software design: Get the names right! Software design is complex. There are many patterns, solutions and different ways for doing something. You can talk about Factory Methods, Reactive Programming or using a Service Mesh. The topics are endless. But whatever you do: Get the types and names right! Use good […]
Unterstanding Rust’s Vec and its capacity for fast and efficient programs
You want your programs to be fast and memory efficient. Rust’s built-in collections give you both speed and efficiency. The most important collection is std::vec::Vec (just called Vec below), which is a dynamically growing array similar to std::vector in C++ or ArrayList in Java (but unlike the persistent Vector in Scala). Vec is part of […]
Book review: Rust Essentials
Rust is a very exciting new programming language developed by Mozilla. In Mai 2015 Packt Publishing published the first print book, also available as an ebook incl. in PDF format (DRM-free!!!) about Rust. It is called Rust Essentials and it is a rather short book covering the basics of Rust so that an experienced developer […]
Book review: MongoDB – The Definitive Guide, 2nd edition
Disclaimer: I got a free copy of this book as part of the O’Reilly Blogger Review program. The opinion here is not influenced by that. It is only my own and honest opinion of this product. MongoDB is one of the stars in the NoSQL market (surpassed in popularity maybe only by Cassandra) and several […]
Video review: Functional Thinking by Neal Ford, O’Reilly Media
Disclaimer: I got a frew copy of this video as part of the O’Reilly Blogger Review program. The opinion here is not influenced by that. It is only my own and honest opinion of this product. I’ve liked Neal Ford’s freely available talks about functional programming and I’ve attended one of his talks last year […]
Book review: Confessions of a Public Speaker by Scott Berkun
I like to go to developer conferences. It is great to meat new people and learn something about new technologies like Clojure, Scala or Akka. Unfortunately sometimes the talks I listen to during conferences are terrible. Very boring speaker, many bullet points, monotone voice and other things make it hard to stay awake after 5 […]
- Concurrency
- ...
Java concurrency: Understanding CopyOnWriteArrayList and CopyOnWriteArraySet
Java has a huge amount of useful collections and several are made specifically for use in concurrent code like the ConcurrentHashMap. Two sometimes very useful classes are the CopyOnWriteArrayList and CopyOnWriteArraySet. They implement the java.util.List and the java.util.Set interface respectively. Let’s focus on the CopyOnWriteArrayList to understand what it is all about. Contrary to the […]
Book review: The C++ Standard Library – A Tutorial and Reference, 2nd Edition
When Nicolai Josuttis published the first edition of The C++ Standard Library – A Tutorial and Reference, it quickly become of the most popular C++ books. The fantastic book was a must have for every serious C++ developer who wanted to use the standard library effectively. Now in 2012, Nicolai Josuttis has published the 2nd […]
- C/C++
- ...
Getting started with Eclipse CDT, Threading Building Blocks, parallel_for and C++11 lambdas
When doing concurrency with C++ you have many choices incl: Posix threads: Very low level, rather ugly C API, avoid if possible. C++11 concurrency features: Very interesting and good stuff, no full compiler support yet but some things already usable with some compilers. Boost: Has many good things, close to the features in C++11. Ready […]
- Concurrency
- ...
Understanding java.util.concurrent.CompletionService
The java.util.concurrent.CompletionService is a useful interface in the JDK standard libraries but few developers know it. One could live without it as you can of course program this functionality with the other interfaces and classes within java.util.concurrent but it is convenient to have a solution that is already available and less error prone then doing […]