> Best blogg: programming
Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Monday, December 1, 2014

5 Ways You can Learn Programming Faster


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, November 29, 2014

How to Learn Computer Programming

How to Learn Computer Programming
Computer programming is one the most exciting fields to work in. Millions of lines of code are written each day, all over the world, bringing in new applications and software. If you are eager to become a programmer and tap the potential which your computer puts at your fingertips, it's time you began thinking about learning programming on your own. If you enjoy thinking analytically and solving puzzles, as well as problems of all sorts, programming is bound to give you a high. The key to learning programming is to master programming languages and learn to apply them to solve complex problems.

The standard way of learning to program is to get admission into a college and get a degree in computer science. However, there are many who can never make it to college, despite having the skills and the talent for analytical thinking. I have written this article for those of you who never went to college but have discovered the beauty of programming and would like to master it on your own. This is possible today as Internet and the open source movement has created a programming culture online, which can guide you in the process. With self discipline and persistence, you can teach yourself programming and enjoy writing your own software. Not only is it a great way to exercise your mind, who knows, you might even make money, by selling your own software one day or find employment with software firms, if you get really good at it.

How to Learn Computer Programming Without a College Degree?

Computer science is a tough field to master, but it can give you the most enjoyable and creative experiences ever. Here are a few guidelines on how to become a computer programmer.

Learn Programming Languages
Firstly, get hold of a desktop or laptop computer, which enables you to read and execute your programs. Programing is all about learning to communicate with your computer hardware to accomplish various computing tasks. Computer only understands machine language, written in 1s and 0s. For us humans, to communicate with computers, programing languages were created, whose code can be converted into machine readable form by compilers. There are a range of programing languages which vary in their applications and power. You will have to learn at least a dozen essential programming languages, which includes C, C++, Java, Perl, Lisp and Python.

To get your computer programing basics right, start learning C or Python at the start. Use online resources and the hundreds of good books on programming to get the basics. Install the compilers that the language requires for writing code and execute it on your computer. Work through examples and problems provided in books and online tutorials, to write your own code. One of the best books to start learning C is 'Programming in C' by Dennis Ritchie and Brian Kernighan. Another good book is Programing in C by Kochan.

Get a hang of C and then graduate over to object oriented programming that is made possible by C++. Then get a hang of Java, Perl and Javascript, which is extensively used in client side programing for web development. Learn HTML and server side scripting if you plan to get into web development. As you can see, there is a lot to learn and it will take at least 5 to 6 years to get well grounded in most languages. Take help from online tutorials and courses offered by institutes like MIT through their OpenCourseWare.

Start Writing Code
The best way to learn is to practice what you have learned. Write your own code, make mistakes, learn how to debug code. Participate in coding competitions and test your programming skills. Get hold of open source software, read the code and understand how good programs are written. Learn how master programmers achieve economy of code and the logical clarity that makes great programs. Get to know your computer and the hardware basics. Learn how the computer works at the basic levels with memory and processors.

Learn to Run Linux or Unix
You cannot call yourself a programmer until you have mastered using Linux and Unix operating systems. Install a Linux distribution like Ubuntu on your computer and tinker around with it. It will provide you with all the programing tools you need, along with compilers.

Apprentice Expert Programmers
Let expert programmers take you under their wing. Find a good mentor who is ahead on the path of becoming a master computer programmer. Take advice and learn from them.

Read Code, Write Code and Keep Improving
Keep writing your own piece of computer code and keep thinking on how you could improve it. Join the open source movement and analyze the anatomy of good programs. Pick up your domain of expertise and go deep. Remember that there is always room for improvement!

Let there be no illusions that programming is an easy task. It will take ten to fifteen years at least for you to attain a level where you can start calling yourself a complete programmer. Your success in programming is directly proportional to the dedication and persistence you put into your learning. As suggested before, master at least a dozen programming languages including C, C++, Java, Lisp, Python, Perl and Javascript, read and understand new code, keep attacking newer computing challenges and grow as a programmer. The aim of this Buzzle article on how to learn computer programing was to give you a nudge in the right direction. I hope that this objective has been attained in some measure. Free your mind and enter the matrix of programming world with gusto!

Wednesday, April 30, 2014

learn python programming

learn python programming
python programming

Python is a high-level programming language designed to be easy to read and simple to implement. It is open source, which means it is free to use, even for commercial applications. Python can run on Mac, Windows, and Unix systems and has also been ported to Java and .NET virtual machines.
Python is considered a scripting language, like Ruby or Perl and is often used for creating Web applications and dynamic Web content. It is also supported by a number of 2D and 3D imaging programs, enabling users to create custom plug-ins and extensions with Python. Examples of applications that support a Python API include GIMP, Inkscape, Blender, and Autodesk Maya

Learn python programming setap by setap

Learn Python Through Public Data Hacking



Sunday, April 27, 2014

learn Java Programming

Java Programming

 learn  Java Programming


 Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java applications are typically compiled to bytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture


 learn  Java Programming - Step by Step




Source:   http://en.wikipedia.org/wiki/Java_%28programming_language%29

Friday, April 25, 2014

learn php programming

Learning PHP Programming

php programming


 PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. PHP is now installed on more than 244 million websites and 2.1 million web servers


Learning PHP Programming part 1



Learning PHP Programming part 2

Learning PHP Programming 


Thursday, April 24, 2014

how to learn c programming language

                                                  learn c programming language fast  easily

C is a powerful programing language that was first developed in the 1970's. Depending on your previous programming experience, it may take time and patience to learn C. However, once learned, learning other programming languages will come naturally. While learning the entire language is beyond the scope of this article, it will get you started in the right direction.

ThisIs Best video tuto for leaning  c programming language fast 

                          How to learn c programming language video part 1 

                                     How to learn c programming language part 2

                                    How to learn c programming language part 3

                                       How to learn c programming language part 4

Tags: c, how to learn c programming language, learn c programming language, c programming language, learn c language

Saturday, April 19, 2014

Android Programming Book

Android Programming Book

Android Programming Book

AndBook: Android Programming Book by Nicolas Gramlich AndBook is a non-commerical book to learn programming for Google’s Android as a ‘hands on’ process. As mentioned in the book, “This document was written for developers who have worked with Java™ before and want to start developing for the Android Platform. I tried to make this as much “hands on” as possible, placing example codes everywhere it fit. Also I tried to insert as many picture as possible, because they liven up the learning process and relax the reader’s eyes

                                    Download ebook now

Friday, April 4, 2014

PHP/MySQL Programming for the Absolute Beginner

PHP/MySQL Programming for the Absolute Beginner

PHP/MySQL Programming for the Absolute Beginner






This guide teaches Perl and provides the readers with the fundamental programming concepts they need to grasp in order to learn any new computer language

           Download free book  PHP/MySQL Programming for the Absolute Beginner

for search :  free ebook, ebooks, ebook, free ebook PHP/MySQL Programming for the Absolute Beginner , programming, book php, book mysql

Thursday, March 13, 2014

Free ebooks php

(PHP: Hypertext Preprocessor) A scripting language used to create dynamic Web pages. Combining syntax from the C, Java and Perl languages, PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database on the Web server and present it on the Web page. Originally known as "Personal Home Page," PHP is supported by all Web servers and widely used with the MySQL database.

Download best ebook php 

Programming PHP  1       

Core PHP Programming - FTP Directory Listing        

PHP/MySQL Programming        

PHP 5 Power Programming        

PHP Programming Language       

Popular Posts


Copyright @ 2013 Best blogg.

Designed by Templateify & Sponsored By Twigplay