It is possible to learn programming..

jan777

motion control..? srsly? so 2008. 3DS is teh bombz
OP
Member
Joined
Jan 4, 2008
Messages
2,835
Trophies
1
Age
29
XP
878
Country
Hey guys.
hmm. I really want to learn to code or program. I wanted to take computer science at school, but they were out of slots, so what they gave me was media/visual designs or something. but that wasnt really what i wanted. so i was pissed off.

hmm, i guessed, that since i have loads of free time anyway, maybe i could just self study or something. I want to try and learn from the internet.

It would help, since in college, I am torn between Law and Computer Science. I thought that, maybe if i could learn the shits from here, I could just take up law.

I dont really plan on pursuing a career in Computer but its there on the back of my head.

So yeah, i need opinions. anyone can tell me where to start or something? some motivation / demotivation
laugh.gif
?
 

Veho

The man who cried "Ni".
Former Staff
Joined
Apr 4, 2006
Messages
11,416
Trophies
3
Age
42
Location
Zagreb
XP
42,437
Country
Croatia
I have a few self-taught friends that now work as developers. It pays pretty well. Not sure about online stuff, but you can get some pretty good books on programming (something from the "For Dummies" series and then move on to the more advanced stuff).
 

SixtySixHundred

Well-Known Member
Member
Joined
May 21, 2010
Messages
432
Trophies
0
Age
41
Location
Eternia!
XP
124
Country
You could easily teach yourself some basics online. I picked up some C programming skills off t'internet which I am taking further with some night classes.

Basically, use the web to find a a language you like, learn what you can, then take it further by buying a book. Or I'm sure there's tonnes of scans of the 'For Dummies' books on the web somewhere. And I will see if I can remember which sites I used to get some basics..
 

raing3

CNET_Richard
Member
Joined
Apr 2, 2009
Messages
529
Trophies
1
Age
33
Location
Australia
XP
801
Country
Whilst I would not say my programming quality is of the highest standards I would suggest..
  • Finding a language which suits your needs, C# with Visual Studio is fairly straight forward and has very good documentation included (stay away from Visual Basic) or a simple web application with HTML and JavaScript, then move onto a dynamic web language like PHP.
  • Compile and test a few simple sample applications you find by googling on the "interwebz", try to understand the purpose of each line of the source code.
  • Decide on a simple objective for your program, possibly a problem you want to solve or a task you want to automate? (eg. processing a text file and reformatting it or a calculator etc.)
  • If you come to a road block try googling for a bit and if you still can't solve your problem move on to another area of your program until you have cleared your head a bit and give it another go.
Programming can be really frustrating and some problems you may encounter may take hours to fix and could end up being caused by only 1 line of problem code. Don't think of this as a reason to give up on programming though because the satisfaction you get from actually producing a working program is great.

After completing numerous programming courses in university over the past 2 years I must say that I hate it. In my opinion it is a much more relaxing learning experience if you set your own goals... of course if you ever do software development as a profession you won't have much say over what you develop but the best way to get interested is going along at your own pace with something that is of interest to you.
 

Joe88

[λ]
Global Moderator
Joined
Jan 6, 2008
Messages
12,736
Trophies
2
Age
36
XP
7,440
Country
United States
wabsta said:
Go this way:
HTML/CSS > PHP > JAVA > Other programming languages. (like C#)
half of those are internet scripting languages
completely different from actual programing languages
 

Issac

Iᔕᔕᗩᑕ
Supervisor
Joined
Apr 10, 2004
Messages
7,025
Trophies
3
Location
Sweden
XP
7,354
Country
Sweden
Overlord Nadrian said:
Learn C++.

You'll love it.

I agree with this to a hundred percent!

you could also start with C or Java as well though... but I think learning c++ right away is good. and I would recommend THIS book: http://www.amazon.com/Primer-Plus-5th-Step...ader_0672326973
It is really awesome and kinda holds your hand through it all... Sure maybe the most advanced things aren't in there... but enough to learn. And after you've "mastered" this book, get the book on Design Patterns (by Gamma et al.) which will rock your programming skills up a level or eight.
 

Issac

Iᔕᔕᗩᑕ
Supervisor
Joined
Apr 10, 2004
Messages
7,025
Trophies
3
Location
Sweden
XP
7,354
Country
Sweden
Also, I don't know if any of this is interesting, but in 07 i made some comments on programming here:
<a href="http://gbatemp.net/t55290-making-a-game?view=findpost&p=707554" target="_blank">http://gbatemp.net/t55290-making-a-game?vi...st&p=707554</a>
<!--quoteo(post=707554:date=Jul 14 2007, 06:40 AM:name=Issac)--><div class='quotetop'>QUOTE(Issac @ Jul 14 2007, 06:40 AM) <a href="index.php?act=findpost&pid=707554"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->devkitarm (part of devkitpro) Go download it! (libnds should come along, you need it bad!)
some program to write c code in... (if you plan on doing it in c, like me) You can use notepad, or whatever flum...
and the command window... (cmd).

Not much more is needed actually!

Much info and help and tutorials at drunkencoders.com and gbadev.org <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> (the gbadev forum that is)

best of luck, and any more questions, go ahead <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

EDIT:

Okay, some basic info.. do you know c ? it helps quite a lot, but isn't that necessary if you know any other programming language since if you write your code in pseudo code, you can easily translate it all into which ever language you want, by looking it up in a c book for example. (you don't even have to know ANY language, but it will make it a bit harder.. not impossible though! But if you know some language, you will have some structure help probably..)
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->... and then it should loop eight times, calculating 4 + x where x increases from 1 to 8...
TRANSLATE!
...
for(x=0; x<=8; x++){
ÂÂ some_variable = 4 + x;
}
...
WHAT DOES IT MEAN?
...
for every x value, while x is smaller or equals 8, and x increases with one each time: some_variable is 4 + x (4+1. 4+2. 4+3 etc.)....<!--c2--></div><!--ec2-->

now that's a useless piece of code, but.... you get the idea... and If you already know... never mind me ^^

Tip 2:
Comment a lot! Leave small or sometimes large comments, so you know EXACTLY what everything does... you should be able to look at the code after 3 years and know what's going on in each step <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> the most obvious comments can be excluded (and, don't overdo it!!! do NOT leave comments on every single row of codes, just have a larger comment in the beginning of a certain piece which describes what the following does, and then if it is something extra strange there, that can be commented to... but avoid things like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> // this is a comment, and the following is stupid
x = 1;ÂÂÂÂÂÂÂÂÂÂ// x is 1
d = 5 + x;ÂÂÂÂ// d is 5 plus 1
f = d * x;ÂÂÂÂ // f is 6 times 1

BUT, this can be "smart":
// following codes calculate some minor calculations where x is gravity, d is doom-speed, and f is fuckdoiknow?
x = 1;
d = 5 + x;
f = d * x;<!--c2--></div><!--ec2-->

comments on every line can be confusing... that's what im trying to say! <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

hmm... well Furthermore, I recommend this little tutorial: <a href="http://www.patatersoft.info/manual_online.html" target="_blank">Patatersoft NDS introduction</a>
<a href="http://www.patatersoft.info/manual.php" target="_blank">PDF, source codes here</a>

Though, i say STAY AWAY FROM SOURCE CODES (I mean, the source codes to his tutorial) and stay away from copy and paste!!! WRITE IT ALL YOURSELF. even if you indeed will copy him character for character, do it by typing it manually! you'll learn from that!

and read the following text on that NDS introduction page, with the header: Working with the Makefile.. IT IS VERY IMPORTANT and... you have to use a makefile to compile it <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

hmm what else, what else... start small! make a mini mini game... nothing fancy at all... maybe just make something that changes background color when you press a button (this time, without a tutorial) look at the tutorial at patatersoft if you wish, to see how to use button presses etc. but try to make it "on your own"... if you get what i mean <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

GOOD LUCK ONCE AGAIN! <img src="style_emoticons/<#EMO_DIR#>/nds.gif" style="vertical-align:middle" emoid=":nds:" border="0" alt="nds.gif" /> :yayds:<!--QuoteEnd--></div><!--QuoteEEnd-->


and talk a bit more generally on programming basics here, including pseudo code <--- learn THIS!

<a href="http://gbatemp.net/t86352-i-wanna-be-a-homebrewer?view=findpost&p=1145945" target="_blank">http://gbatemp.net/t86352-i-wanna-be-a-hom...t&p=1145945</a>
<!--quoteo(post=1145945:date=May 14 2008, 11:26 PM:name=Issac)--><div class='quotetop'>QUOTE(Issac @ May 14 2008, 11:26 PM) <a href="index.php?act=findpost&pid=1145945"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--quoteo(post=1145831:date=May 14 2008, 10:35 PM:name=arctic_flame)--><div class='quotetop'>QUOTE(arctic_flame @ May 14 2008, 10:35 PM) <a href="index.php?act=findpost&pid=1145831"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--quoteo(post=1145820:date=May 14 2008, 10:32 PM:name=dawn.wan)--><div class='quotetop'>QUOTE(dawn.wan @ May 14 2008, 10:32 PM) <a href="index.php?act=findpost&pid=1145820"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->lol.. it gonna be much harder than yous Basic HTML w/o tables.. IMO you should learn tables or atlease frames/iframes they will help you make those good looking webpages..

its programing kid, C++ is a not very hard language.. least we dont have to do this crap in asm

if you have prior programming experience it helps... cause you would know it's not what u know, but how long it takes u to learn it.<!--QuoteEnd--></div><!--QuoteEEnd-->

No designer worth his salt uses frames.

Also, if you're getting into programming, I recommend C over C++
<!--QuoteEnd--></div><!--QuoteEEnd-->

To Everyone: Let's get back on topic!

To the quote: I'd say start with c++ directly. I learnt C in high school, and now I'm learning c++, and boy it is so much different!
and c++ is built with oop in mind, alongside with the goodness of c... so I say c++!!!

And a tip is to get the book C++ primer 5th ed. by Stephen Prata! It's really great and has great examples.. but i'd suggest at least two hours a day, because less wouldn't get your brain going. It's like working out... jogging for five minutes isn't enough... <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />

And I also suggest that you, when you've read and made some of the examples from the book, make some small applications that you think is managable to do. a Factorial calculator is a great example as a first test, it has no OOP but is good anyway to learn the structure... then later I can give you a few examples (I think I'll post a few in my blog here <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />)

(oh, factorial: 5! = 1*2*3*4*5, 9! = 1*2*3*4*5*6*7*8*9... the code for this would be simple!)
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:Pre;overflow:auto'>PSEUDO CODE:

include good stuff
start program
define variables
write a welcome text
ask for a number
imput a number X
loop from i = 1 to X
SUM = SUM*i
end loop
write answer
end program</div>

Now, to translate this into C++ you'll have to know some syntax and such, and know the basic structure of a simple program. This should be learnt!!!
BUT syntaxes isn't that mandatory to learn by heart... you'll always be able to use google or a book to look up functions and other stuff...

Might write the solution to this program tomorrow <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> it's half past midnight now... got to sleeeeeep!

Good luck dude!!
<!--QuoteEnd--></div><!--QuoteEEnd-->


I hope you'll find these interesting!

EDIT: Quoted the posts <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Might include some irrelevant comments, but maybe some info can be useful! <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

SECOND EDIT: Some more info on Pseudo code <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
<!--quoteo(post=1048682:date=Mar 24 2008, 02:11 AM:name=Issac)--><div class='quotetop'>QUOTE(Issac @ Mar 24 2008, 02:11 AM) <a href="index.php?act=findpost&pid=1048682"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->-snip-
[edit]
I might as well add that Pseudo Code is a VERY important "tool", or "language".
it helps you a lot when you're a beginner, and even more if you are experienced!
write it all on paper even!
And what is this Pseudo Code you might ask; It's nothing more than English.... or Swedish, Arabic, Chinese... whatever language.. it can be C++Javabasic if you want <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />
write something like:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:Pre;overflow:auto'>set a variable x to exist
ask the user for a number to x
loop the following piece x times
write "hello world!" on the screen
that's all of the loop
end the program</div>

Then you can Translate it into any language you want!
Just use a "dictionary" like a Java book, a C++ book, online documentations (HIGHLY Recommend these!!!)
so I look up my "i'm too tired to look, and remember"-C book, and translate it into:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:Pre;overflow:auto'>int x;
cout<<"How many times do you want to loop?";
cin>>x;
for(i=0; i<=x; i++){
cout<<"hello world!";
}
retyurn(0);</div>


Now that was just a basic basic example, but you get the idea. Pseudo Code is useful for more complex things as well, which I hope you understand <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

[/edit] <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

Third EDIT: Put things in spoiler tags to make the post a bit smaller <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 

jan777

motion control..? srsly? so 2008. 3DS is teh bombz
OP
Member
Joined
Jan 4, 2008
Messages
2,835
Trophies
1
Age
29
XP
878
Country
Hooorah. thanks guys. I'll try to find a book or something too.
reason why i asked because, i was reading this stuff about C and it told me that it wasnt a beginner's language, so i said to myself that maybe i wasnt starting at the right point so... yeah.

Thanks!
wub.gif
 

Raiser

I am mad scientist.
Member
Joined
May 31, 2008
Messages
1,563
Trophies
0
Website
Visit site
XP
636
Country
Canada
Although it's not really recommended by most, Visual Basic is actually a very good start.
Gives you an idea of the logic and parts that most codes (especially in games) tend to have.

Definitely do not consider it as a fully practical language though.
A good step up from that would be Java. I'm still on that, but I can say that the jump from VB could be a tad bit difficult, but you'll learn very fast if you dedicate yourself.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @BigOnYa, burp +1