how to learn programming language

Status
Not open for further replies.

killerkaze

Reputable
Sep 3, 2015
63
0
4,630
guys,can any give me some suggestion about how to learn a programming language. because i tried to learn by using books but after sometimes iam so frustrated .
* so please give me some suggestion.....
 
Solution
You're probably just not a person who's best at learning with books. Here's another method that may work for you. Pick any language that sound appealing to you. If you want to start with something easy like VisualBasic, that's fine. After that, start by creating the simplest program you can in that language. For C++, "Hello World" is a notorious starter program. From that point on slowly ramp up the scale of the project, each time making larger more advanced programs If you have any ideas for software that excites you, try to create it. Make sure to utilize online help forms. Youtube can be your friend if you're stuck on a programming concept and can teach you whole books worth of knowledge in tiny bits.
You're probably just not a person who's best at learning with books. Here's another method that may work for you. Pick any language that sound appealing to you. If you want to start with something easy like VisualBasic, that's fine. After that, start by creating the simplest program you can in that language. For C++, "Hello World" is a notorious starter program. From that point on slowly ramp up the scale of the project, each time making larger more advanced programs If you have any ideas for software that excites you, try to create it. Make sure to utilize online help forms. Youtube can be your friend if you're stuck on a programming concept and can teach you whole books worth of knowledge in tiny bits.
 
Solution
There are also sites like codeacademy which offer interactive lessons, where you generally are taught something, then immediately make use of it in a skeleton project/application. That can be finicky, because sometimes what is asked for and what they expect are different, so that can be frustrating. In reality, the best way to learn to program is to build programs that do something. Start small, then start tackling larger and larger problems.
 
You should probably start with a friendly language like Python, as it enforces and teaches good style -- it's not very ambiguous and is fairly direct, meaning that there's usually one way to get a problem done.

For example, to print out "abcdefghijklmnopqrstuvwxyz", in Perl you could write:
Perl:
#!/usr/bin/perl
print for 'a'..'z';

vs.

#!/usr/bin/perl
@alphabet = ('a'..'z');
foreach my $letter (@alphabet) {
	print $letter;
}

vs.

#!/usr/bin/perl
$alpha = "abcdefghijklmnopqrstuvwxyz";
@alphabet = split('', $alpha);
print foreach (@alphabet);

whilst in Python it'd be (more-or-less):

Python:
#!/usr/bin/python
for x in range(ord('a'), ord('z')+1):
	print(chr(x), end="")

If books aren't your thing, the best places to learn coding are MIT OpenCourseWare, iTunes-U, Khan Academy, edX, and YouTube.
 
Status
Not open for further replies.