Skip to main content

Posts

Showing posts from October, 2016

Java Database connectivity (JDBC)

Before starting to learn JAVA DATABASE CONNECTIVITY, We must ask "What is an API?"

What is an API?

API stands for application programming interface. Think of API as the interface between the device and the service requested.

In order to understand what an API is let us consider a real time example:

Suppose you are in a restraint and you have the menu with you .Now you have selected your item and you want to order it. How will you do this? There is an option of going directly into the kitchen and asking them to prepare your meal.

I am sure that no one would go for this method. The second option available for us is to call the waiter in the restaurant and order your item. The waiter then contacts the kitchen and asks them to prepare your order. So, you need someone who can collect your request and make the job done. You need a mediator to communicate.

Similar to the waiter in the restaurant ,an API acts as an interface between your device and the requested service.


What does API cont…

DNS (Domain name system) and Domain namespace

It is a system primarily designed to make computers easy to use for humans. In computing, every system has an IP address which is nothing but a series of numbers .DNS maps names to an IP address just like we map phone numbers to contact names. Like phone numbers it is easy to remember a couple but not all of them. Similar is the case with IP addresses. We may remember some of them but not all the IP addresses of all the computers in the world. DNS makes this easy. It is easy for us to remember names rather than large numbers. Before DNS was developed there was a file called hosts file which was used to map IP addresses with the system names. Before DNS was introduced, the hosts file needs to be copied among various systems when any changes were made. This is ok for few systems but as the internet grew longer and longer this became harder. The hosts file also grew longer and longer.
Before DNS:
DNS was first developed in 1983. It is a hierarchical distributed database that allows to fi…

How to become a good programmer

You might see several programmers solving questions in a quick time. Have you ever thought of becoming an “Efficient programmer” like them?


In this post I am going to give you some direct tips for you to become an efficient programmer.
Anyone who knows a bit of programming in some language can call himself a programmer. But the truth is that he isn’t in real. This might be harsh but let me make a bold statement saying that knowing a programming language cannot make you a good programmer. Programming is completely different from learning. Learning is all about knowing the facts and learning about existing concepts and techniques whereas programming is all about thinking and finding new ways to solve a particular problem. A programmer always finds shortest ways to solve a problem.
So how can I become a good programmer? Perhaps “EFFICIENT PROGRAMMER!” .There are several ways but here I came up with some simple but efficient tips that can help you become a good programmer.

1.Be perfect in al…

Storage in Android

Why store information ?
As developers we have to take care of our user preferences of our app. This includes various services such as storing user preferred settings. We can store our application data in files, databases or preferences in internal or removable storage such as memory card. You can also add a data backup service to let users store and recover application and system data. Storing user application data is a way of “EFFICIENT PROGRAMMING“  as it reduces the burden for the user to enter the  details every time he uses the application. Since we now know the importance of storage in our application, we learn what are the different ways of storing user data of our application. Android provides several options to store application data. The method we choose completely depends on certain needs such as space required to store the data and restrictions such as whether the data is to be made available to all the users and other applications.    
The available options of storage are :