Calculate the Average Value for a Field Inside an Array with MongoDB

In this post, you will learn how to use MongoDB queries and calculate the average value for fields inside an array sub-document. The document model We will use a lego model for this example. The lego set document has a reviews property. Each review has a rating score. Let’s take a look at what we… Continue reading

Java by Comparison Book Review

“Have you ever looked back at a piece of code you wrote several months ago and wondered what you were thinking? Could any of your colleagues understand it within a reasonable amount of time? Writing readable code is an essential skill for a programmer. In fact, it’s one of your most important communication skills—it’s your… Continue reading

Create Applications with Angular and Spring Boot Course

Spring Boot and Angular are two technologies that are becoming more and more popular. But combining them can be a little bit challenging, especially for developers familiar with more legacy JavaScript frameworks. That’s why I decided to create a video course that will teach you everything you need to create applications with Angular and Spring… Continue reading

Why I decided to become a programmer

Call me nostalgic, but I was thinking recently about the day when I knew for sure that I had to become a software developer. I studied Computer Science at the University of Bucharest. During my first year, the only programs that I created were about solving math problems or various algorithms using. That was very… Continue reading

Send emails in Spring Boot

If you are looking for a fast tutorial on how to send emails in Spring Boot applications, then you landed in the right place 😀 1) Add the spring-boot-starter-mail dependency to the pom.xml file <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 2) Configure a mail server for testing purposes. I would recommend Mailtrap, a free online service for… Continue reading

Set Culture for all threads in C# apps

Set the culture for all threads in C# before .NET 4.5 In the simplest form, to change the culture of .NET applications, we can just set the current thread Culture/UICulture during the initialization phase. But, problems can occur if the application is multi-threaded. Take a look at the example bellow. class Program { static void… Continue reading

Email testing for developers with Mailtrap

Email testing for developers can be annoying Do you remember the last time you worked on a project that had email integration? Do you remember when you spammed all your colleagues because you had to test the email capabilities of your application? Email testing for developers, while not a difficult task, can be very annoying… Continue reading