10+ Examples and Best Practices in Responsive Web Design

With more and more people surfing the internet via their smartphones, it has become mandatory for web designers and developers to figure out ways to cater websites to visitors coming from mobile devices. The ever-growing demand for mobile-friendly websites has given birth to responsive web design trend. If you too are all excited to know about the best practices in responsive web design, you've landed on the right blog. Here, I'll be discussing about finest practices and examples of responsive web design. Take a look and you'll know how responsive design works wonders for building websites that need to look awesome on any frame size, square, wide-screen or window size.


First, let's cover some best practices in Responsive Web Design

1. Abide by a specific content strategy

As the first and foremost responsive web design practice, you need to create a content strategy and abide by it. Nowadays, visitors spend a greater amount of time on websites with more visuals and less text. As per a research, it has been found that a consumer consults an average of 10.4 pieces of content before actually choosing a particular product/service. Hence, it is essential make your content count. You must ensure to minimize the long-page scrolling using the tabbed content. Here, I'd like to mention the fact that unlike the case of long-page scrolling, tabbed content renders visitors an easy flexibility to click and dive into exactly what they're interested in.

2. Use user-friendly images

Images play a pivotal role in making or breaking the performance of a web design. Especially, if you're designing for the mobile, it becomes essential to include images that work well across all the standard web browsers used by internet surfers. Don't forget to experiment with scaling, alignment and re-sizing of images across a wide range of viewports.

3. Check out the navigation tabs supported by your responsive design

Navigation is yet another crucial component of every website. As a web designer, you need to pay attention to the navigation tabs that the particular responsive design can support. It is recommended to be clear and concise with the navigation tabs placed on different pages within your website. Visitors will probably get confused if they aren't rendered with easy-to-interpret navigation options.

4. Include frequent scrolling

Maintaining integrity throughout the web page is something that can't be denied. If you want to improve the user experience, it is advised to include frequent scrolling within the web pages. This will help in keeping the visitors engaged on your website.

5. Build user-friendly forms

While designing a responsive website, it is suggested to opt for creation of forms that scroll fast. Doing this will aid the visitors in figuring out what exactly they need to fill in, without getting the second thought of leaving the page.



And now, let me walk you through 6 finest responsive web design examples that'll serve as your inspiration

1. Gravitate Design

Gravitate Design

As a remarkable design studio, Gravitate Design has its official website featuring a responsive web design. The clean and simple look of this website plays a vital role in grabbing the attention of targeted clients. Equipped with a vertical scrolling feature, Gravitate Design's website has the potential of keeping visitors engaged. The color palette is brilliant with the borders, shadowing, content and everything else in place.

2. Wendy's

Wendy's

A globally-popular fast-food restaurant Wendy's has its official website running with a responsive web design. The fresh and user-friendly design of this site has become an instant hit with thousands and thousands of foodies visiting the site on a daily basis.

3. Plank Design

Plank Design

Plank Design is a beautiful and amazingly optimized website best suited for iPhones. It uses the jQuery Touch mobile application framework to load each web page along with several fancy transitions and interactions. This mobile-friendly website can be completely loaded in a single HTML file.

4. Clean Air Challenge

Clean Air Challenge

Clean Air Challenge is a perfect example of responsive website with parallax scrolling. While only the clouds in the background area contain parallax scrolling, the site looks great on every mobile device with any screen dimension. With a beautiful combination of blue, green and brown, Clean Air Challenge is extremely soothing to the eyes.

5. Weightshift

Weightshift

Backed by a grid-based collection of images, Weightshift is a simple responsive website that serves as great inspiration for entrepreneurs looking ahead to design a mobile-compatible corporate website. With beautifully managed images and content, Weightshift is far better in looks and performance when compared to its predecessor. The built-in slider navigation is connected with the menus bar to render a neat look to the entire website.


6. Hubspot

Hubspot

The all-in-one inbound marketing giant Hubspot also has its website designed using a responsive web design. Equipped with large images and impressive content presentation, the site conveys the business message well. Utilizing the long page scrolling feature, Hubspot re-confirms the fact that with the appropriate responsive design, visitors never mind scrolling to reach the desired content.

Wrapping Up

Using responsive design is the best means of improving customers' connectivity with your brand. With a website designed for the mobile devices, you can easily promote, sell and educate customers, irrespective of where they are.

Do spare a minute to drop in your views/opinions on the above post.

Author Bio:
Maria Mincey is a web development professional who works for Markupcloud Ltd. - Photoshop to Wordpress conversion company. She has been actively writing on diversified topics and has also participated in several renowned communities and forums. She also happens to be a blogger with a strong passion for everything related to the world of WordPress.

Find her on twitter at twitter.com/mariamincey64

The C++ Programming Language 4th Edition By Bjarne Stroustrup Pdf Download

The C++ Programming Language, Fourth Edition is written by Bjarne Stroustrup, the creator of C++. I am sure that you will not miss the chance of reading and learning from this book. So just click on download link given below to download pdf version of this book for free.

Also Read: The C Programming Language, 2nd Edition by Brian W. Kernighan and Dennis M. Ritchie PDF Free Download


The C++ Programming Language 4th Edition By Bjarne Stroustrup Pdf Download

Book Name: The C++ Programming Language 4th Edition
Author: Bjarne Stroustrup
Size: 10.32 MB


5 Tips to Become a Better Programmer

In this article I am sharing the 5 best tips that will really help you to increase your programming skills and become a better programmer.

Also Read: 5 Facile Yet Incredibly Valuable Ways to Enhance ASP.NET Developer’s Efficiency

5 Tips to Become a Better Programmer

1.Know Basics

You should have a good understanding of basics of the programming language in which you are working or learning. If your basic concepts are strong then you can solve complex problems by breaking it into smaller problems. Your code should be neat and well structured, so that if you start working with the code after few months then you can easily know where you left off.

2.Practice a Lot

We all know the fact that “practice makes a man perfect”. For improving your skills you have to practice thousands of hours. There are plenty of ways for practicing, like you can solve problems from good programming books or find online programming contests. There are many awesome websites like codechef.com, topcoder.com, etc where you can practice.

3.Be Amenable to Change

Technology is changing very rapidly so you have to aware of such changes. You should make sure that the projects or technologies on which you are working are not outdated. For becoming a better programmer you should always engage yourself in learning new things.

4.Read a Lot

The more you read, the more you learn. Read good programming books, articles, documentations. The best way for reading and learning programming is to join various programming forums and contests.

5.Help Others

Join great forums like stackoverflow.com where you can help other programmers by answering there questions. By helping others you can find answers of your own questions. You can also ask questions in the forums and get your problems solved; this will help you to become better program


These are few tips that will surely help you in becoming a better programmer. If you have any other tips then please mention it in the comment section.

Image Source: http://www.theguardian.com/society/series/how-to-get-ahead-in+social-housing

Head First Java, 2nd Edition Pdf Download

Head First Java is a popular book to learn java programming in a esay way. This ook is written by Kathy Sierra and Bert Bates, published by O'Reilly Media. In this article I am sharing the link to download its pdf version for free.

Also Read: Java The Complete Reference PDF Download


Head First Java, 2nd Edition Pdf Download

Book Name: Head First Java, 2nd Edition
Author: Kathy Sierra and Bert Bates
Size: 34.63




Source: http://www.ebooks-it.net/ebook/head-first-java-2nd-edition

Hello World Program in Eight Different Popular Programming Languages

This fact is true that Hello World program is the first program that a programmer writes when he/she start learning a new programming language. Today I thought that I should share the hello world program in different languages. A video is also added for easy understanding of the programs. Let’s take a look on these programs.

Hello World Program in Eight Different Popular Programming Languages

Hello World Program in Java

class HelloWorld
{  
        public static void main(String args[])
        {
           System.out.println("Hello World");
        }
}

Hello World Program in C

#include<stdio.h>

main()
{
    printf("Hello World");

}

Hello World Program in C++

#include <iostream>

int main()
{
    std::cout << "Hello, world";
}

Hello World Program in Javascript

<script>

window.onload = function()
{
     document.getElementById('result').innerHTML = "Hello World";
}

</script>

<div id="result></div>

Hello World Program in HTML

<p>Hello World</p>

Hello World Program in Python

print "Hello World"

Hello World Program in Perl

print "Hello World"

Hello World Program in Ruby 

puts "Hello World"



Source: http://blog.learntoprogram.tv/hello-world-eight-languages/

Java Program for Multiplication of two Matrices

import java.util.Scanner; //import Scanner class in our program

class demo
{
public static void main(String...s)
{
int i,j,m,n,p,q,k;
Scanner sc=new Scanner(System.in); //used to read from keyboard

System.out.print("Enter number of rows and columns of first matrix:");
m=sc.nextInt();
n=sc.nextInt();
System.out.print("Enter number of rows and columns of second matrix:");
p=sc.nextInt();
q=sc.nextInt();

if(n!=p)
System.out.print("\nSorry multiplication can't be done!!");
else
{
int a1[][]=new int[m][n];
int a2[][]=new int[p][q];
int a3[][]=new int[m][q]; //resultant matrix will be of size mxq

System.out.print("\nEnter elements of first matrix:\n");
for(i=0;i<m;++i)
for(j=0;j<n;++j)
a1[i][j]=sc.nextInt();

System.out.print("\nEnter elements of second matrix:\n");
for(i=0;i<p;++i)
for(j=0;j<q;++j)
a2[i][j]=sc.nextInt();

System.out.print("\nMultiplication of Matrices:\n");

for(i=0;i<m;++i)
{
for(j=0;j<q;++j)
{
    a3[i][j]=0;
for(k=0;k<n;++k)
    a3[i][j]=a3[i][j]+(a1[i][k]*a2[k][j]);

System.out.print(a3[i][j]+" ");
}
System.out.print("\n");
}
}
}
}

Java Program for Multiplication of two Matrices

Java Program for Addition of two Matrices

import java.util.Scanner; //import Scanner class in our program

class demo
{
public static void main(String...s)
{
int i,j,n,m;
Scanner sc=new Scanner(System.in); //used to read from keyboard

System.out.print("Enter number of rows:");
m=sc.nextInt();
System.out.print("Enter number of columns:");
n=sc.nextInt();

int a1[][]=new int[m][n];
int a2[][]=new int[m][n];
int a3[][]=new int[m][n];

System.out.print("\nEnter elements of first matrix:\n");
for(i=0;i<m;++i)
for(j=0;j<n;++j)
a1[i][j]=sc.nextInt();

System.out.print("\nEnter elements of second matrix:\n");
for(i=0;i<m;++i)
for(j=0;j<n;++j)
a2[i][j]=sc.nextInt();

System.out.print("\nAddition of Matrices:\n");

for(i=0;i<m;++i)
{
for(j=0;j<n;++j)
{
a3[i][j]=a1[i][j]+a2[i][j];
System.out.print(a3[i][j]+" ");
}
System.out.print("\n");
}


}
}

Java Program for Addition of two Matrices

What is Tail Recursion? Example to Explain Tail Recursion?

Tail recursion refers to recursive call at last line. Tail recursion can be eliminated by changing the recursive call to a goto preceded by a set of assignments per function call. This simulates the recursive call because nothing needs to be saved after the recursive call finishes. We can just goto the top of the function with the values that would have been used in a recursive call.

What is Tail Recursion? Example to Explain Tail Recursion?

The recursive function for Tower of Honoi Problem is given below. It is an example of recursive function with tail recursion.


Recursive function TOH with tail recursion

void TOH(int n,char x,char y,char z)
{
                if(n>0)
                {
                                TOH(n-1,x,z,y);
                                printf("\n%c -> %c",x,y);
                                TOH(n-1,z,y,x);                 //tail recursion
                }
}

Without tail recursion

void TOH(int n,char x,char y,char z)
{
                char temp;
                label:

                if(n>0)
                {
                                TOH(n-1,x,z,y);
                                printf("\n%c -> %c",x,y);
                                temp=x;
                                x=z;
                                z=temp;
                                n=n-1;
                                goto label;
                }


}

Watch below video to understand tail recursion easily.



Image source: http://learnyousomeerlang.com/recursion

Java Program to Find Intersection of two Arrays

For example we have two sorted arrays a1[]={2,3,5,11} and a2[]={4,5,7,9,11} then intersection of a1 and a2 will be {5,11}. A Java program for finding intersection of two arrays is given below.

Also Read: Java Program to Find Union of two Arrays

Java Program to Find Intersection of two Arrays

import java.util.Scanner; //import Scanner class in our program

class demo
{
public static void main(String...s)
{
int i,j,n1,n2;
Scanner sc=new Scanner(System.in); //used to read from keyboard

System.out.print("Enter number of elements of first array:");
n1=sc.nextInt();
System.out.print("Enter number of elements of second array:");
n2=sc.nextInt();

int a1[]=new int[n1];
int a2[]=new int[n2];

System.out.print("\nEnter elements of first array in ascending order:");
for(i=0;i<n1;++i)
a1[i]=sc.nextInt();

System.out.print("\nEnter elements of second array in ascending order:");
for(i=0;i<n2;++i)
a2[i]=sc.nextInt();


i=j=0;
System.out.print("\nIntersection of Arrays: ");
while(i<n1&&j<n2)
{
if(a1[i]<a2[j])
i++;
else
if(a2[j]<a1[i])
j++;
else
{
System.out.print(a1[i]+" ");
i++;
j++;
}
}

}
}

Java Program to Find Intersection of two Arrays

Java Program to Find Union of two Arrays

For example we have two sorted arrays a1[]={2,3,5,11} and a2[]={4,7,9} then union of a1 and a2 will be {2,3,4,5,7,9,11}. A Java program for finding union of two arrays is given below.

Also Read: Java Program to Find Smallest and Largest Element in an Array

Java Program to Find Union of two Arrays

import java.util.Scanner; //import Scanner class in our program

class demo
{
public static void main(String...s)
{
int i,j,n1,n2;
Scanner sc=new Scanner(System.in); //used to read from keyboard

System.out.print("Enter number of elements of first array:");
n1=sc.nextInt();
System.out.print("Enter number of elements of second array:");
n2=sc.nextInt();

int a1[]=new int[n1];
int a2[]=new int[n2];

System.out.print("\nEnter elements of first array in ascending order:");
for(i=0;i<n1;++i)
a1[i]=sc.nextInt();

System.out.print("\nEnter elements of second array in ascending order:");
for(i=0;i<n2;++i)
a2[i]=sc.nextInt();


i=j=0;
System.out.print("\nUnion of Arrays: ");
while(i<n1&&j<n2)
{
if(a1[i]<a2[j])
{
System.out.print(a1[i]+" ");
i++;
}
else
if(a2[j]<a1[i])
{
System.out.print(a2[j]+" ");
j++;
}
else
    {
System.out.print(a1[i]+" ");
     i++;
     j++;
    }
}

if(i<n1)
while(i<n1)
{
System.out.print(a1[i]+" ");
i++;
}

if(j<n2)
while(j<n2)
{
System.out.print(a2[j]+" ");
j++;
}

}
}


Java Program to Find Union of two Arrays