How to create RESTful web service in Spring

Spring provides many facilities to Java developers which ease the programming as well as reducing the complexity of the code. One of the most powerful features Spring supports is called invasion of control or dependency inject. In addition to that, throughout the years Spring framework has had tremendous growth and … Continue Reading →


Object-relational mapping in Java

Object-relational mapping (ORM) is a technique which allows programmers to access a relational database from an object-oriented language and programmers do not need to map and type cast each column of database to classes manually. In other word, ORM technique take care of populating the result sets. In Java there … Continue Reading →


How to create Telegram bot with PHP and host in HeroKu

Nowadays, Telegram is one of the most popular messengers. The reason that the app is so popular is because of three reasons, The application is open source It is cross platform supports and works out of the box Bot support Among the reasons, I believe the third one is so … Continue Reading →


Transaction in JDBC

Java JDBC is a very simple and basic library to access to database data, but it is quite common and easy to setup that is why it is kind of popular. However, it has various shortages such as Object-relational mapping (ORM) and Transaction Management. The latter though can be done … Continue Reading →


How to install Composer in Ubuntu

Composer is a dependency manager tool for PHP programming language which is quite useful for PHP programmers and make the coding process easier. Compose more or less likes Maven that manage dependencies automatically. Installation process of compose is quite easy and will not take more than 5 minutes to set … Continue Reading →


The correct place of bracket in programming

Basically, the location of bracket ({}) in programming is a very old argument and up to now there is no absolute winner. For those that my words look like an alien language let me provide an example. In programming languages like C/C++, Java and so on bracket ({}) are used widely. … Continue Reading →


How to add Gson library to Android Studio project

Google Android Studio from my point of view is the most suitable IDE for native Android programming. It is simply works out of the box. However, during working with this IDE, I have faced the shortage of documentation. Unfortunately, majorities of tutorials have been written for Eclipse IDE and since … Continue Reading →


How to convert nested Json string to Java object using Gson library

Json is everywhere in back end programming, from various webservices, databases and so on.  Gson library is the one the most available libraries for Java which makes the conversion of Json string to Java object hussle free and very easy. What do you all need to do is to download … Continue Reading →


How to install WindowBuilder in Eclipse

Eclipse is my favorite IDE for coding especially for Java programming, even though it might be slower than other IDEs or has high RAM usage. Eclipse has different versions for different programming languages (C/C++, PHP, JavaScript, etc.). For long time, I was using Netbeans to develop Swing applications because it … Continue Reading →


Colorizing output of Git

Apart from various IDEs (including Eclipse) which provide you great Git features visually, accessing Git from command line also can be a new experience which is very useful and from my perspective is a must for any developer that pushes the code in Git (Github, BitBucket, etc.). Git in terminal … Continue Reading →


Install Curl for PHP in Ubuntu

If you get similar error message like “Fatal error: Call to undefined function curl_init()”, means that your Curl lib/module is not installed for PHP. Fortunately, in Ubuntu installing Curl for PHP just requires two commands and it can be done so easily with the help of apt-get package installation. The … Continue Reading →


How to print PHP error in browsers

By default if your PHP code has some errors, it just shows white dead page which is so confusing and for me personally so annoying. By contrast of languages such as Java which you can easily check about any compile or runtime error, in PHP this task is not so … Continue Reading →