Welcome, Guest. Please login or register.

Author Topic: i want to learn to code, where should i start?  (Read 4269 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline darksun9210Topic starter

i want to learn to code, where should i start?
« on: August 13, 2008, 11:43:38 AM »
Hi all, i've kinda come to the idea that i want to learn to code properly. where should i start?
i did some pascal back in school, and i can read C, VB, other macro scripting to kinda follow it to see what it does, or coherency check, but sit me infront of a blank screen and ask me to put something together and i'm completely lost.

i've kinda wanna knock out some 68k demos and stuff, maybe get into game engines in a year or two.
i'm mulling over 68k assembly, but that just looks a little frightening, so maybe later on when i've got an idea how to get stuff going first.
then there is C, in all its forms. but again, where to start?
what about blitz basic? whats that about?

 :-?

A500, A600, A1200x3, A2000, A3000, A4000 & a CD32.
and probably just like the rest of you, crates full of related "treasure" for the above XD
 

Offline NovaCoder

Re: i want to learn to code, where should i start?
« Reply #1 on: August 13, 2008, 12:01:17 PM »
This might help coding

You might also want to grab yourself a copy of Storm C V4 if you want to get serious with some Classic Coding  :-D
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: i want to learn to code, where should i start?
« Reply #2 on: August 13, 2008, 12:04:04 PM »
Pick a language which does what you want and has syntax you like. You say you can already read C, and C can do pretty much anything. So that's a good start. Then think about what you actually want to do and then Google for examples. In my experience that's a really good way to learn the functions of the language, and since you already know the syntax you should be writing your own code before you know it once you have learned the functions you need by looking at examples.

Edit - Make sure you are using a decent IDE. An environment which offers code completion makes things *much* easier. When you can see the possible functions you can use as you are typing, and then see the arguments for that function, you can blag it. For example, I was recently writing some VB (which I have never used before). I needed to use some socket functions. I started typing, and the IDE completed the name of the function for me and popped up the arguments. So I could use the functions without ever using them before or having to look it up.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline darksun9210Topic starter

Re: i want to learn to code, where should i start?
« Reply #3 on: August 13, 2008, 12:04:38 PM »
cool thanks :-)

classic is where i'm at! :-D

A500, A600, A1200x3, A2000, A3000, A4000 & a CD32.
and probably just like the rest of you, crates full of related "treasure" for the above XD
 

Offline countzero

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 1938
    • Show only replies by countzero
    • http://blog.coze.org
Re: i want to learn to code, where should i start?
« Reply #4 on: August 13, 2008, 12:10:08 PM »
I would also recommend Coder's Heaven at EAB. Lots of good amiga specific 68k talk going on there and there are a few threads for beginners/useful links.
I believe in mt. Fuji
 

Offline darksun9210Topic starter

Re: i want to learn to code, where should i start?
« Reply #5 on: August 13, 2008, 12:31:57 PM »
sweet. right. thats my evenings sorted ;-)

A500, A600, A1200x3, A2000, A3000, A4000 & a CD32.
and probably just like the rest of you, crates full of related "treasure" for the above XD
 

Offline Atheist

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 820
    • Show only replies by Atheist
Re: i want to learn to code, where should i start?
« Reply #6 on: August 13, 2008, 12:36:39 PM »
Excellent!

NatAmi60 needs SW!!

Amiga is on the move again!!!
\\"Which would you buy? The Crappy A1200, 15 years out of date... or the Mobile Phone that I have?\\" -- bloodline
So I guess that A500, 600, 1000, 2000, CDTV, CD32, are pure garbage then? Thanks for posting here.
 

Offline DBAlex

  • Sr. Member
  • ****
  • Join Date: Aug 2005
  • Posts: 304
    • Show only replies by DBAlex
Re: i want to learn to code, where should i start?
« Reply #7 on: August 13, 2008, 12:43:39 PM »
This is also a good guide too.

It's more about Amiga specific programming though, you need a general C or C++ Tutorial for the basics, these can easily be found via a quick google search. Once you've learn't the basics you can move on to more amiga specific stuff.

 :-)
Machines:
- A1200, Blizzard 1260 w/ 64MB RAM, 1.2GB HD, PCMCIA WiFi, AGA w/ RGB Adapter, OS3.9
- Pegasos I, G3 600Mhz, 512MB, Radeon 9200se, 80GB HD, AmigaKit WiFi Card, MOS 1.4.5
- Mac Mini, G4 1.5ghz, 512MB (1GB Soon), Radeon 9200 64MB, 80GB HD, OSX 10.5 (Leopard)
- PCs, Laptops... *yawn*... :D
 

ChuckT

  • Guest
Re: i want to learn to code, where should i start?
« Reply #8 on: August 13, 2008, 01:25:26 PM »
In the old days, we would learn how to count in Hexadecimal and how to count in binary.  

In my old computer classes, the professor said that Machine language is chip specific or specific to the 68XXX of that machine.

You really have to learn how the chips work.
 

Offline darksun9210Topic starter

Re: i want to learn to code, where should i start?
« Reply #9 on: August 13, 2008, 01:33:20 PM »
yup, we did that in my CS classes, to the point where we were taking exam questions in floating point binary. how many bits was the mantissa? is it BCD or pure? happy days. not!  :lol:

A500, A600, A1200x3, A2000, A3000, A4000 & a CD32.
and probably just like the rest of you, crates full of related "treasure" for the above XD
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: i want to learn to code, where should i start?
« Reply #10 on: August 13, 2008, 02:12:29 PM »
Make sure you get a powerfull IDE. Makes it a lot easier to code when you use lots of libraries.
And the canary said: \'chirp\'
 

Offline darksun9210Topic starter

Re: i want to learn to code, where should i start?
« Reply #11 on: August 13, 2008, 02:31:55 PM »
i think i am going to go with Storm C, and get that nailed before exploring 68k asm :-)

thanks for all the links on tutorial code, this should get me going :-)

A500, A600, A1200x3, A2000, A3000, A4000 & a CD32.
and probably just like the rest of you, crates full of related "treasure" for the above XD
 

Offline skurk

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 929
    • Show only replies by skurk
Re: i want to learn to code, where should i start?
« Reply #12 on: August 13, 2008, 02:41:28 PM »
WinUAE and AmiDevCpp will get you far.
Code 6502 asm or... DIE!!

[C64, C128, A500, A600, A1200, A3000, MBP+Mini, Efika/MOS2.1, Sam440 w/AOS4.1
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: i want to learn to code, where should i start?
« Reply #13 on: August 13, 2008, 02:55:53 PM »
Quote

ChuckT wrote:
In the old days, we would learn how to count in Hexadecimal and how to count in binary.  

In my old computer classes, the professor said that Machine language is chip specific or specific to the 68XXX of that machine.

You really have to learn how the chips work.
Well, you have to learn 2 things really:
How the hardware works, and how you set up a big program (with design patterns and documentation).
So, I'd recommend beginning with Pascal, then C and assembly, and then C++.
And the canary said: \'chirp\'
 

Offline AeroMan

  • Sr. Member
  • ****
  • Join Date: Oct 2007
  • Posts: 342
    • Show only replies by AeroMan
Re: i want to learn to code, where should i start?
« Reply #14 on: August 13, 2008, 05:53:55 PM »
I've used High Speed Pascal on the Amiga. It is a nice tool.
I believe C will be more up to date, as it is a standard for programming today