Programming Chi

Tomasz Fijałkowski's programming blog.

Microservices and modularization

Many times I heard that the microservice-based architecture is a solution of modularization issue. This is explained by the statement that monolith is a pure evil with the big ball of mud architecture. Microservices, in contrast, are well separated units of business logic. This biassed point of view is visualized by diagrams like

read more

Responsible work with MongoDB

Understanding data model is sufficient to design good database schema in RDBMS (relational database management system). Having this knowledge you are able to construct normalized tables, add appropriate constraints and finally create indexes to speed up queries. In the world of NoSQL there are no simple solutions, rules and answers. That’s why we can only talk about patterns, tips and hints. MongoDB is not an exception. Besides the comprehension of stored data, deep understanding of an access pattern, how data is searched, inserted and updated by an application is needed.

read more

Don't misuse unchecked exceptions

In its early days, Java has a wide uses of checked exceptions. However, lazy nature of programmers triggered trend to abandonment checked exceptions to unchecked exceptions. This approach causes negligence an error handling and hiding side effects. Additionally exceptions catching is not checked at compilation level.

read more

When use and when not to use default methods in Java interfaces

Java 8 supplies a lot new useful features, unfortunately also new misunderstandings and antipatterns are observed every day. One of that mistake is a wrong use of default method in interfaces.

read more

Welcome on my blog

Programming Chi (or Qi) is a blog about pitiful ideas, bugs and failures I notice every day. Fortunately, besides failures there are also a lot of successes and beautiful solution which I hope I will also write about.

From wikipedia:

In traditional Chinese culture, qì or ch’i (About this sound qì, also known as khí in Vietnamese culture, gi in Korean culture, ki in Japanese culture) is an active principle forming part of any living thing. Qi literally translates as “breath”, “air”, or “gas”, and figuratively as “material energy”, “life force”, or “energy flow”. Qi is the central underlying principle in traditional Chinese medicine and martial arts.