The programmer's notes

Here I am sharing my ideas about design, programming techniques and tricks.

Wednesday, February 13, 2019

Two ways to extend enum functionality

›
Preface In my previous  article  I explained how and why to use enums instead of  switch/case control structure in Java code. Here I wil...
1 comment:

Featured enum instead of switch

›
Problem and  its solution Switch/case is the common control structure implemented in most imperative programming languages. Switch is con...
3 comments:
Saturday, February 2, 2019

Syntax highlighting

›
I have written a lot of blog posts that contain code snippets  in several programming languages (mostly Java). I separated each code snippet...
Thursday, January 4, 2018

Why Gradle is called Gradle

›
Today I asked myself: what does name "Gradle" mean. I asked Google and here are the first 2 answers: Answer #1 It's ...
Thursday, December 7, 2017

DB #42

›
DB #42 or how to choose technology :) We have to implement a new feature. No matter what kind of feature it is. Well, we have to expose...
Thursday, March 17, 2016

Performance of try/catch

›
Yesterday I had a discussion with my friend and he said that according to his opinion try/catch statement in java is very performance expen...
Wednesday, February 24, 2016

Dangerous String.format()

›
Introduction Static method format()  that was added to class java.lang.String in java 5 became popular and widely used method that repla...
Thursday, December 17, 2015

Creating a self-extracting tar.gz

›
Motivation Winzip can create self-extracting executable. Actually this is the unzip utility together with content of zip file that is bei...
3 comments:
Wednesday, December 10, 2014

Why not to develop code on Windows

›
I have been developing code professionally for the last 17 years. Most of these years I used MS Windows because this operating system is m...
Thursday, January 23, 2014

Usage trends of JavaScript MVC Frameworks

›
Analysis JavaScript MVC frameworks became very popular during the last 5 years. Naturally there are a lot of such frameworks. I spent mos...
12 comments:
Thursday, July 11, 2013

Performance of checking computer clock

›
Very often we check computer clock using either System.currentTimeMillis() or System.nanoTime() . Often we call these methods to check how ...
5 comments:
Wednesday, January 9, 2013

Annotation based design patterns

›
Annotations introduced to Java 5.0 became a very well known and widely used language feature. There are more or less "standard" s...
18 comments:
‹
›
Home
View web version

About Me

My photo
AlexR
Experienced software engineer. Busy with coding in various languages since 1997. Has been coding in Java and related technologies since 2000.
View my complete profile
Powered by Blogger.