Home » Author Archives: Peter Verhas

Author Archives: Peter Verhas

Microbenchmarking comes to Java 9

java-logo

I have not written article here for a few months and this will also continue with this exception. I plan to return writing around next year March. Explanation at the end of the this article. Wait! Not exactly at the end, because you could just scroll down. It is somewhere towards the end of the article. Just read on! Three ...

Read More »

Try and Catch in Golang

software-development-2-logo

Golang as opposed to Java does not have exceptions, try/catch/finally blocks. It has strict error handling, functions called panic and recover and a statement named defer. It is a totally different approach. Is it better or is the Java approach the superior? (Sorry that I keep comparing it to Java. I am coming from Java world.) When we handle exceptional ...

Read More »

Do not (only) meet the budget

agile-logo

In a previous article I wrote The actual decision (of a software architect) should lead to a solution that meets availability, performance, reliability, scalability, manageability and cost criteria. (Btw: the first six critera should be met, the last one should be at least met and minimized, but that is a different story.) Many times the criteria are met and there ...

Read More »

Architects Don’t Decide

software-development-2-logo

As pointed out in the article A Little Architecture from Robert C. Martin the job of the architect is not …to lead a team and make all the important decisions about databases and frameworks and web-servers and all that stuff. It is to make decisions that a Software Architect makes are the ones that allow you to NOT make the ...

Read More »

Comparing Golang with Java

software-development-2-logo

First of all I would like to make a disclaimer. I am not an expert in Go. I started to study it a few weeks ago, thus the statements here are kind of first impressions. I may be wrong in some of the subjective areas of this article. Perhaps I will write some time a review of this one later. ...

Read More »

Random Ideas about Code Style

software-development-2-logo

Some of the sentences of this article are ironic. Others are to be taken serious. It is up to the reader to separate them. Start with these sentences. How long should a method be in Java? This is a question I ask many times during interviews. There is no one best answer. There are programming styles and different styles are ...

Read More »

Implementing an annotation interface

java-logo

Using annotation is every day task for a Java developer. If nothing else simple @Override annotation should ring the bell. Creating annotations is a bit more complex. Using the “home made” annotations during run-time via reflection or creating a compile time invoked annotation processor is again one level of complexity. But we rarely “implement” an annotation interface. Somebody secretly, behind ...

Read More »

Java compile in Java

java-logo

In a previous post I wrote about how to generate a proxy during run-time and we got as far as having Java source code generated. However to use the class it has to be compiled and the generated byte code to be loaded into memory. That is “compile” time. Luckily since Java 1.6 we have access the Java compiler during ...

Read More »

Optimize the client for the server’s sake

software-development-2-logo

The Story Once upon a time there was an application that was running on some server and the client functionality was implemented in HTML/CSS and JavaScript. The application was serving trillion (not literally) of users all hanging on the end of some phone lines talking to customers who were usually impatient and needed fast resolution to their problems. Typical call ...

Read More »

The Little Architect

software-development-2-logo

Uncle Bob published recently an article titled “A Little Architecture“. The article is a conversation between a young developer and a senior (Uncle Bob himself presumably) about being software architect. The article starts with these sentences: I want to become a Software Architect. That’s a fine goal for a young software developer. I want to lead a team and make ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns