I was thinking lately I should share some thoughts with my younger colleagues making some first professional steps as software engineers. I'll go straight ahead without any further ado.
Microservices with Spring Boot, Netflix Zuul, Kotlin, Docker and MongoDB
Recently I've started playing with Kotlin programming language, and wanted to give it a try. Kotlin gives us possibility to write quite concise code.
Mocking same method multiple times using Mockito? Can't be easier than that!
This is fairly short blog post. I recently had the case I needed to mock the same method twice during my Junit test case, with different behavior.
Organize your aliases with .bash_aliases file
Up until recently, I was organizing my bash aliases by putting them directly into my $USER/.zshrc file. While this works, I came across better way to keep the things neatly organized.
Primary school of IntelliJ IDEA
IntelliJ IDEA (IDEA shorter) is a cross-platform IDE, developed by JetBrains company. They have IDEs for other programming languages as well, which are not covered by this post. All their tooling is built on a common core, which is a very robust and intelligent development platform.
Querying Mongodb documents for array properties
Ladies and gents, I’m just posting one short reminder to myself and anyone keen to find out how do
we query array type fields in Mongodb.
Sending mail via GMail using Kotlin and commons-mail library
Continuing series of blog posts related to Kotlin, today we’ll together make a sample application showing us how we could automate
email sending – using Kotlin programming language. Example is quite simple, and surely – you can enhance it with own features. Application
mostly demonstrates compact Kotlin syntax, as well as full compatibility with Java or 3rd party libraries (in this case Apache commons-mail library).
Software development vocabulary for the newcomers
Let's get started explaining some day-to-day jargon used in the software development community, which should make your beginners days as easy as possible.
Pretty much all the topics listed below are significantly simplified for the sake of easier understanding. The idea is that you, as a reader, will be able to find more information about each topic online.
Spring boot and Spring JdbcTemplate example
Let's build some simple example that demonstrate ease of Spring Boot use when building applications that need to connect to, in this
case - MySql database. Final output will be single - standalone jar file that can be executed as java -jar my-boot-artifact.jar and
will be able to process http requests. Application is intentionally made simple, there's no big architecture inside it - you can see
database code inside Controller method, which you'd normally not use for real world projects.
Spring MVC JUnit testing
If you're interested in JUnit testing your Spring MVC controllers, feel free to visit Github repo
containing very simple example of Spring MVC controller and JUnit test class testing it's endpoints. Project is implemented
using Spring Boot framework.
