Showing posts with label Improve Programming Skill. Show all posts
Showing posts with label Improve Programming Skill. Show all posts

Saturday, May 9, 2015

You may Quit Blogging if you don’t adopt these skills

Blogging is not easy. Blogosphere is getting bigger day by day. Updating valuable and unique content is challenging. In order to survive in blogging you need to adopt some skills.


Writing Skills:

First and the uttermost thing as a blogger is his writing skills. You can’t succeed without the basic writing skills. Perhaps, I am not a good writer, but I try to keep the basics right.
How to improve your writing skills?
  • Read books: Yes. Reading books significantly improves your writing skills. You’ll get adopt to new writing styles and skills.
  • Practice: Take a note book or a blank sheet and write the shit out, even if it doesn’t make sense.
  • Watch and adopt: Watch the famous writers. Read their blogs, books. Adopt their style.
  • Join Twitter: Honestly, I was lazy to write even a single sentence before joining twitter. 140-characters limit twitter forced me to write and experiment with my vocabulary. If you not joined the twitter yet, join now.

Technical Skills:

No, no, you don’t have to be a rocket scientist to manage technical issues of your blog. If you are not a techie no need to worry, managing blogs are easy these days. By Technical means you just have learn about few things like monitoring your site through Webmasters tools, securing your site from hacking etc. for example; Google is not indexing your blog posts. It happens when Googlebot can’t access your site due to some errors. You will not be aware of this if you don’t have webmasters tools account connected with your site. You will not get any search engine results. Due to this you may quit blogging.
How to build Technical Skills?
  • Don’t skip information: It is essential that you shouldn’t skip any information even you are not interested in it. Just take a glance on that subject.
  • Don’t fear: Do not fear to experiment with technical issues, even though you’re not a geek.
  • Be Curious: You might have heard the phrase: “There is no better teacher than curiosity”. Got the point? So, try to be curious and don’t afraid to experiment.

 Creative Skills:

Creativity is the essential thing in blogging. Without creative thinking skills you can’t survive much long. You need to adopt creativity.
How to build creative skills?
  • Question yourself: Questioning yourself helps to build creativity. Wonder how? Read the next point.
  • Find answer yourself: In order to build creativity, try to solve the puzzles yourself. For example; you are struck on a particular problem, don’t google right away, try to find the solution yourself. You never know you might end up inventing new thing!
  • Experiment: Don’t bother about outputs, just experiment.

 Promoting Skills:

This is the last and final skill you need to adopt. Even if you have above three skills and if you don’t know how to promote your blog then those skills will be wasted. In order to build readership you need to promote your blog.
How to promote your blogs?
  • Make Use of Social media: Since it is 21st century and almost everyone has a social media accounts, make a most of it.
  • Don’t afraid to share: This is crucial, do not afraid to share your work through social media or any other platform.
  • Encourage others to join you: Make friends with common-interest people. Invite them to join you.
Also Read: The Ultimate Guide to Getting Started with Guest Blogging

Wednesday, February 11, 2015

How to become A Good Android Developer


Imagine what your android smart phone would be without those apps that you love so much. Starting from the apps that you use to access your social media pages and games, apps are essentially make your phone what it is.
Our lives today are so dependent on apps and there are new ones being developed daily for different purposes. The apps have touched our lives in a way that if today they were to disappear from our phones life would never be the same again. Imagine if you did not have that app that you use for your diet program or work out? What if you were unable to access your favorite social media site because you did not have an app to do so?
The importance of apps for the smooth running of our daily lives cannot be overemphasize. This is especially so with the increased migration from desktop computers to smartphones and tablets. Development of apps is slowly becoming a simpler task that anyone can do after a few lessons. However, developing a functional app that can be used by many people is still a challenge to many developers. Developing an app is easy; developing a good one is the more difficult part.
Be willing to learn. Just like anything else in life, your willingness to learn will determine if you are able to make a great app or not. App development may not be rocket science but it is also not as simple as taking a cup of tea. Willingness to learn and a little dedication will ensure that you learn all the coding necessary to develop an app fast.
Basic knowledge in some specific areas like XML and Java is an added advantage. This acts as a good foundation of any android developers to build on. Knowledge of these areas makes your learning much easier and faster as you are able to grasp the concept behind app development quicker. However, if you know nothing about any of this it does not mean you cannot become a good app developer. Everything you need to know can still be taught to you.
Trial and error is a good learning experience. In the beginning you may create terrible apps but this shouldn’t discourage you. In a learning process you get better after trying a couple of times. It is through trying that you will be able to identify the areas you are not good at. After a couple of trials you will start noticing some improvements which should encourage you to push on.
Make it as simple as possible. What kind of apps do you like on your phone? Chances are you like the ones that are simple to use. This is the same for most people and so when developing an app the simpler it is the better. Most people learning how to develop apps fail because they are always focusing their effort on developing something very complex. Remember that simple does not mean that your app is substandard.
Focus on the real world. The most successful apps are the ones that try to emulate the real world as much as possible. Unless you are creating a game then the real world should be your main focus when learning and developing your app. When doing this also keep in mind that the purpose of an app is to make things better for its users.

Where to learn

When you think about that magnificent app that you enjoy using so much you assume it was created by a tech graduate from one of the best colleges in the world but that is not necessarily true. Learning how to make an app is quite simple and you can do it online from the comfort of your home.
Some of the good websites you can learn app development would include.
1. Developer Android
Developer Android is Google’s official android app development page. Here you will find all the materials you will need to learn app development.
2. Treehouse
This is a subscription based program but very rich in resources. Here you will get to learn all the basics of app development and also all the complex stuff you will need at a later date.
3.Udemy
Udemy also has a very good course on app development. It is a good place to learn especially for those without prior knowledge.
This article may not be professional for you but these are very important points and can be helpful for those who want to start android development. After all, How can one expect to learn android development from a single article? Go ahead and start learning. best of luck :)

Thursday, February 5, 2015

PHP Coding Styles & Standards

No matter how much proficient you are in PHP, no matter how much do you know about the in and out of the language syntax or functions, it is very simple and easy to write obfuscated and sloppy code. But such kind of code is very difficult to debug and maintain. If you are proficient in PHP and writing hard-to-read code, then it means you are having a lack of professionalism. So here you’ll find out some PHP coding styles & standards to improve your coding style.

Indentation

Although indentation or any code styling is not mandatory in PHP, but is a very nice visual organization tool that you should always consistently apply to your code. Check the following example without indentation.
1
2
3
4
5
6
7
if($day == 'Sunday' || $month == 'April') {return 30;
}
else if($day == 'Monday') {
if($month == 'January') {
return 29;
}
}
Above code is very hard to read and understand. Now compare the above code the below one:
if($day   == ‘Sunday’ ||
   $month == ‘April’) {
   return 30;
}
else if($day == ‘Monday’) {
    if($month == ‘January’) {
        return 29;
    }
}
You can see the difference between the two that which code snippet is clear. So using indentation is a good strategy to clear up your code.

Using Whitespace

Using whitespace is also a good strategy to reinforce and provide logical structure in code. You may use whitespaces to group assignments and show associations. Check the code below without whitespaces:
1
2
3
4
5
$local_time = localtime();
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$month = $_REQUEST['month'];
$day = $_REQUEST['day'];
Above code seems messy because, I couldn’t find logical group related assignments clearly. So now check the below code with whitespace.
$local_time    = localtime();
$name            = $_REQUEST[‘name’];
$email            = $_REQUEST[‘email’];
$month          = $_REQUEST[‘month’];
$day               = $_REQUEST[‘day’];

Using Braces in Control Structures

Most of the PHP code is adopted by the C programming language. As we could see in C, a single line conditional statement doesn’t require braces in PHP. But you should use code like below with control structures in PHP.
if(isset($email)) {
    echo ‘Email is correct';
}
else {
    echo ‘Email not correct';
}

Using continue & break to Control Flow in Loops

When you are writing a code in a loop, you can utilize PHP break to jump out blocks when you feel no need to be there. Check the code below:
while(($getLine = fgets($fileOpen)) !== false) {
    if(strcmp($getLine, ‘_END’) == 0) {
      break;
    }
    if(strncmp($getLine, ‘//’, 3) == 0) {
     continue;
    }
}

Global and Constants Variables

You should always use global and constant variables in uppercase letters. So you can easily identify them as constant or global variables.

Long-Lived Variables

Write long-lived variables descriptive and concise. Because it aid readability and make the large section of code easy to read. Now question is what are long-lived variables? These variables are used through any significant length of code and/or whose representation can use clarification. For example, $cacheFiles.

Temporary Variables

Temporary variables should be concise and short in length. Because these variables usually live only within a small section of code. For example, replace $number_of_parent_indices to $pcount.

Function Names

You should handle function names as variable names. For example, they should be separated by underscores and all in lowercase. But when it comes to braces, try to use classic style to separate function declarations from other conditional types.
function say_hello($text)
{
     echo “Hello $text”;
}

Multiword Names

If you want to use variable to have multiple words, then you can apply two methods. Either you should use mixed case like $cacheFiles or you can use separated by commas like $cache_files.

Class Names

When writing class names, you should follow the following guidelines:
1. Multiword class names should be concatenated, and the first letter of each world should be capitalized.
2. Use underscores to simulated nested namespaces.
3. Keep first letter of the word capitalized. Because this visually distinguishes a class name from a member name.
For example, Text_PrettyPrint{} or XML_RSS {}.

Method Names

Method names should be in mixed case like below:
class Test_Class
{
        function casheFiles() {}
}

Naming Consistency

Variables that are used for the same purpose should have similar names. For example, if you are getting maximum, minimum or sum of some specific elements or variables. Then use variables like below:
$sum_elements;
$min_elements;
$max_elements;

Avoid to Use Open Tags

Don’t use open tags, because there may be the time you are also using complete tags. For example replace
<?
echo “Hello”;
?>
To
<?php
echo “Hello”;
?>

Don’t Construct HTML Using Echo

PHP also has one great beauty to embed HTML in PHP or vice versa. For example:
1
2
3
4
5
6
7
8
<?php
echo "<table>";
echo "<tr><td>Name</td><td>Position</td></tr>";
foreach ($employees as $employee) {
echo "<tr><td>$emplaoyee[name]</td><td>$employee[position]</td></tr>";
}
echo "</table>";
?>
But writing code like above is not a good strategy. Instead write like:
Select Code
1
2
3
4
5
6
<table>
<tr><td>Name</td><td>Position</td><tr>
<?php foreach ($employees as $employee) { ?>
<tr><td><?php echo $emplaoyee[name]; ?></td><td><?php echo $employee[position]?></td></tr>
<?php } ?>
</table>

12 Useful PHP Tutorials, Techniques and Components

Building a dynamic web application is very easy today by using PHP. We also can build web applications by using PHP different platforms like Drupal, JoomlaWordPress, Magento, Zen Cart, CakePhp etc. Everyone is using PHP because it is open source, secure, stable and fast. For the developers, I’m presenting a list of 12 Useful PHP Tutorials, Techniques and Components.

1. PHP components: Autosuggest

autosuggest-component
This PHP component makes autosuggest feature easy. You can now implement all features of autosuggest using PHP, AJAX & MYSQL.

2. How to Build a Login System for a Simple Website

How to Build a Login System for a Simple Website
You will learn how you can build a login system using PHP and MYSQL via video. You can also get the source code for this tutorial. This tutorial will cover cookies, sessions, classes, jQuery, Prepared statements and MySqli concepts.

3. 3 ways to compress CSS files using PHP

compress
If you don’t want that your CSS files load slowly, then this tutorial will help you to compress CSS files using PHP. You will learn The Reinhold Weber method, The Perishable Press method and The Paul Stamatiou method.

4. Caching Dynamic PHP pages easily

Caching Dynamic PHP pages easily
This tutorial will teach you how you can create cached pages for your website. You can easily implement cache on specific pages which have high traffic and on a whole site.

5. 10 PHP code snippets for working with strings

10 PHP code snippets for working with strings
In this tutorial, you will learn how to extract emails from a string, how to check if a string starts with a specific pattern, search for a string in another string, how to parse CSV files, how to convert string to slugs, how to remove URLS from string, how to split text up into 140 char array for Twitter, Transform URL to hyperlinks, get the text between $start and $end, and automatically remove HTML tags from a string.

6. Backup Your Database into an XML File Using PHP

Backup Your Database into an XML File Using PHP
If you don’t want to loose your database then this tutorial will teach you how to backupyour Database into an XML file Using PHP.

7. Sanitize and Validate Data with PHP Filters

Sanitize and Validate Data with PHP Filters
When you are working with forms, Data validation is an important part. Because invalid submitted data can lead to security problems. In this tutorial, you will learn how to sanitize and validate data with PHP filters.

8. JpGraph

JpGraph
JpGraph supports internal caching, more than 400 named colors, various layouts, multiple Y-axes, flexible scales, advanced Gantt-charts, country flags, several plot types, interpolation with cubic splines, automatic generation of client-side image and many more features.

9. Libchart

Libchart
Libchart a free PHP library will help you to draw pie charts, line charts and vertical or horizontal bar charts.

10. The CSS and PHP Bar Graph

The CSS and PHP Bar Graph
When you are using “The CSS and PHP Bar Graph” you will not need graphics library on the server and calculation.

11. pChart – a PHP class to build charts

pChart - a PHP class to build charts
By using this PHP class you can create aliased charts. This class is completely free to use. You can retrieve data manually, from CSV files or from SQL queries.

12. CakePHP

CakePHP
CakePHP makes building web applications simpler, faster and require less code. CakePHP has clean MVC conventions, secure with friendly license.

Sunday, January 25, 2015

5 Ways You can Learn Programming Faster


1. Look at the Example Code

Reading is usually about the words on the page, but learning to program is about code. When you're first learning to program, you should make sure to look at, and try to understand, every example. When I first learned to program, I would sometimes read the code examples before the text, and try to figure out what they did. It doesn't always work, but it did force me to look at the example very carefully, and it often helped make the writeups clearer. 

If you want to see what sample code looks like, you can read this site's introductory programming tutorial. This tutorial spends a great deal of time talking about the sample code to help you work through exactly what the code does.



2. Don't Just Read Example Code--Run It

But when you're reading a programming tutorial (or book), it's easy to look at the sample code and say "I get it, I get it, that makes sense". Of course, you might get it, but you might not get it, and you just don't know it. There's only one way to find out--do something with that code. 

If you haven't already, get a compiler like Code::Blocks set up. 

Then type the sample code into a compiler--if you type it, instead of copying and pasting it, you will really force yourself to go through everything that is there. Typing the code will force you to pay attention to the details of the syntax of the language--things like those funny semicolons that seem to go after every line. 

Then compile it and run it. Make sure it does what you think it does. 

Then change it. Software is the most easily changed machinery on the planet. You can experiment easily, try new things, see what happens; the changes will happen almost immediately, and there is no risk of death or mayhem. The easiest way to learn new language features is to take some code that works one way, and change it.

3. Write your Own Code as Soon as Possible

Once you understand something about the language--or even if you're still getting your head around it--start writing sample programs that use it. Sometimes it's hard to find good ideas for what programs to write. That's OK, you don't have to come up with every idea at the beginning. 

You can find some programming challenges on this site. 

You can also reimplement the examples from the book or tutorial you are reading. Try to do so without looking back at the sample code; it won't be as easy as it seems. This technique can work especially well if you tweak the sample code. 

If you can't think of a small program to write, but you have in mind a larger program you want to implement, like a game, you could start building small pieces that you can later use for a game. Whether you use them later or not, you will get the same useful experience.

4. Learn to Use a Debugger

I already talked about the importance of debugging in The 5 Most Common Problems New Programmers Face--And How You Can Solve Them. But it bears repeating; the sooner you learn good debugging techniques, easier it will be to learn to program. 

The first step in doing so is to learn how to use a tool called a debugger, which allows you to step through your code. 

A debugger will allow you to step line by line through a piece of code. It will let you see the values of variables, and whether the code inside an if statement is executed. 

A debugger can help you quickly answer questions about what your code is doing.
int main()
{
        int x;
        int y;
        if( x > 4 )  // <-- what is the value of x here?
        {
                y = 5;   // <-- did this line of code execute?
        }
}


A final word about debuggers: the first time you learn about a debugger, it will take you longer to fix the problems with your code. After the tenth or so bug, it will really start to pay off. And believe me, you will have way more than ten bugs in your programming career. 

I often saw students unwilling to use a debugger. These students really made life hard on themselves, taking ages to find very simple bugs. The sooner you learn to use a debugger, the sooner it will pay off.

5. Seek out More Sources

If you don't understand something, there's a good possibility the way it was explained just didn't click. 

First, look for alternative explanations. The internet is filled with information about programming, and some explanations work better for different people; you might need pictures, someone else might not. There are also lots of good books with detailed explanations. 

But if that doesn't work, the easiest way to figure out where your misunderstanding lies is to ask someone else. But try to go beyond saying, "I don't understand. Please explain." You're likely to get a link back to the same text you didn't understand. Instead, rephrase your understanding of the text in your words. The more your question reveals about what you are thinking, the easier it will be for a knowledgeable expert to answer it. Programmers sometimes have a reputation for being grumpy about answering questions, but I think the reason is that they want to make progress in a conversation, and that requires both sides to put in effort. If you ask a smart, detailed question that shows you are thinking, you will generally get good results. 

Saturday, August 30, 2014

5 Reasons Why You Should Advance You Programming Skills!



Dreaming to become a better developer? We are here to tell you why you need to inspire yourself to become the best one. 

It's not possible that you know everything when it comes to programming or anything else. There is no end to knowledge. You may be a programmer, or a developer, or just a coding beginner, but you will always need to develop your development skills. Here are five reasons which explain why you should advance your programming skills:

First of all don't lose your calm in any situation, however challenging it is, and never think that you have gained knowledge much more than required. So never think you know everything,

Never commit this mistake by thinking that you know everything. There is always something or other left in our learning process and there is always someone who knows something different from you. That person may have greater skills than you or lesser, it doesn't matter much. Keep up your drive to learn new things, don't become complacent at any stage of your life.

Don't forget that there is no word like job security. You have to learn new things, otherwise you yourself will generate the path for others to snatch your job.

There are so many people around you who are always trying to excel you by learning new skills and these efforts are enough to land your career in a mess. So you need continous development and think that you have no other choice left. Your career depends on your learning and development skills. Be a great developer and learn for your own sake first.

There is no limit to dynamic channels of getting new information about programming languages.

C++, HTML5, Xcode, D Programming language and so on, there is no end and there is also no end to the channels from where you can gain knowledge about all of them. The world is not that much big that any language becomes completely inaccessible. Languages are the most important tools in creating great developers who build amazing apps, websites and programs. Evolve yourself, reinvent yourself every new day.

Don't plan to work under someone throughout your life. Aim to become the Boss.

You are a fresher, not a problem. You have spent just few years in programming, again not a big deal. You are drawing an average salary, well sounds good. But what about the change? What is your target in your life, to remain the same? Hope not so. So learn everything possible around you, perform good and move up your scale. The average salary thing is not a constant for any good programmer or developer. The best part will come in just few years, no worries. Just keep up your good work. See yourself as the Boss.

Love your work and work will gradually seem God to you

If you love something, you worship the same. Your respect for your love comes automatically. Work is just like that. Love your passion of programming, keep pushing yourself towards better learning and further adoption of new skills. All this game of love, respect and worship will make you the best skilled programming professional.

Or just think coding as your favourite game and you will never feel down with workload or something like that.

So what are you waiting for? Start gaining new developer skills and try your hands in creating coolest apps, helpful websites and intelligent software.