Home » Archives for Sezin Karli

Author Archives: Sezin Karli

Mathematics Engineer & Computer Scientist with a passion for software development. Avid learner for new technologies. Currently working as Senior Software Engineer at Sahibinden.com.

Docker Tutorial Part 2 – The good the bad and the IP

In this second part of docker tutorial, I’ll explain basics of networking in docker with stand-alone containers. Remember from the previous part of the tutorial where we mapped port of our host machine and the container? In this part, we will setup our containers so they can communicate with each other and for that we don’t need to do an ...

Read More »

Docker Tutorial part 1 – fistfull of container

In this docker tutorial series, my aim is to explain basics of docker and to do that with min number of words but maximum number of examples. Before doing anything I want you to install docker on your machine and I hope you have an idea what docker does. If not please check docker.com. Now let me explain two basic ...

Read More »

Best IntelliJ IDEA Plug-ins

I’ve been using Intellij Idea as IDE for some time and wanted to share my favorite plug-ins as I think they can be quite useful for every developer out there. Without a specific order here they are: Key Promoter X: Although its name’s like cheap midi controller, it is a really useful plug-in for those who want to master intellij ...

Read More »

How to publish jar to Maven central

You created your brand new project and you want to release it to maven central so people can use in their maven based project. It is not a really straightforward thing to accomplish so I wanted to write a step by step guide on it (based on his stackoverflow post).  –Create your jira account on sonatype -Login to your jira ...

Read More »

Java puzzlers from OCA part 7

In this part of the Java Puzzlers from OCA series, I will show multiple ways of defining Strings and potential surprises related to that. Two basic types of creating Strings are creation with new keyword, and by just using the string literal. 1 2 String strWithNew = new String("hey"); String strWithLiteral = "ho"; As Strings are frequently used JVM uses ...

Read More »

Java puzzlers from OCA part 6

Even for new Java developers, constructors are probably no big mystery. In essence, when you create an instance of a class, the constructor of this class is started. In the 6th part of Java Puzzlers series, we will see a case related to constructors. 01 02 03 04 05 06 07 08 09 10 public class Puzzler {       public ...

Read More »

Java puzzlers from OCA part 5

In the fifth part of the Java Puzzlers series, we will see something related to X.parseX(String s) methods. You can see what we expect from X.parseX() methods. 1 2 3 4 5 6 7 8 9 public class Puzzler {       public static void main(String[] args){         int i = Integer.parseInt("2");         System.out.println(i); // prints 2         } } We give ...

Read More »

Java puzzlers from OCA part 4

In the fourth part of Java Puzzlers, we have something related to char type. 1 2 3 4 5 6 7 8 9 public class Puzzler {       public static void main(String[] args){         char myChar = 'a';         myChar++;           System.out.println(myChar);     } } You may have guessed it. It will print “b” and the reason for it is that char type ...

Read More »

Java puzzlers from OCA part 3

In this third part of Java puzzlers, we will see a surprise in variable naming restrictions. If I show you this, I’m sure you won’t be surprised that this does not compile. static is one of the reserved keywords so why should it work? public class Puzzler { public static void main(String[] args){ int static = 2; } } Now ...

Read More »