Showing posts with label Advance Programming. Show all posts
Showing posts with label Advance Programming. Show all posts

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.