Home Bounties Forums Library Downloads Links
 
 
 
/  Forum Index
   /  General Discussion
/  Ok, How do I learn to program?
page  1 of  3 [1]23»
Print Topic 
Ok, How do I learn to program?

xyphoid
# Ok, How do I learn to program?
#
Priest of the Order of the Butterfly

#
Joined: 2008/7/11
Posts: 558
From: Delaware, USA

It's never too late to learn new things, and since I gave up on flying...How do I break into programming! A novice with a limited background should be able to start out some where.
I have inquired on this before, but now with a macmini, and 3 months of summer at hand, I'm motivated to accomplish something this year.
I have yet to upgrade to 2.5. What's the deal with sdk? If i suck so be it but nothing ventured, nothing gained. And yes I do want to do a game.....at some point
Oh and will we ever be able to write to mac partitions/ formatted drives?

[ Edited by xyphoid on 2010/6/14 21:50 ]
»2010/6/15 2:48
Profile

ausPPC
# Re: Ok, How do I learn to program?
#
Acolyte of the Butterfly

#
Joined: 2007/8/7
Posts: 142
From: SE Queensland

It helps if you have a specific and achievable goal re: the program you want to write. It's also good to look into the various language options and try to make an informed choice. I don't want to bias you there but one of the Haiku contributors is currently putting out a C tutorial aimed at beginners - info here and files here.

--
Want an Efika? Are you insane? No matter, I might have something for you. PPC is dead - Long Live PPC!
»2010/6/15 3:02
Profile

xyphoid
# Re: Ok, How do I learn to program?
#
Priest of the Order of the Butterfly

#
Joined: 2008/7/11
Posts: 558
From: Delaware, USA

yea C is where I intend to start Thanks ausPPC
»2010/6/15 4:19
Profile

xyphoid
# Re: Ok, How do I learn to program?
#
Priest of the Order of the Butterfly

#
Joined: 2008/7/11
Posts: 558
From: Delaware, USA

bump!

[ Edited by xyphoid on 2010/6/15 14:42 ]
»2010/6/15 4:28
Profile

Yomgui
# Re: Ok, How do I learn to program?
#
Order of the Butterfly

#
Joined: 2004/8/31
Posts: 156
From: France

First thing to do for any beginners in computer programming is to choose a language, and if possible the most easier for you!

Starting directly with C is not the most good choice. Especially if you try with an OS dedicated SDK!
If you're really sure to use the C, try to perfectly understand and use the C-ANSI before any OS sdk.
Or use more high level languages likes some Basic(s), Arexx, Python, ...

After, if C-ANSI is boring for you, try an OS sdk and code for this one simple applications (likes ones in C-ANSI but using OS API), then play with more complicated stuffs like graphics, GUI, sounds, etc.

Don't forget also that some high level languages are easier to use when high level suffs like GUI-programming are requiered.

[ Edited by Yomgui on 2010/6/15 17:29 ]

--
And now... next project! :-D
»2010/6/15 16:29
Profile Visit Website

takemehomegrandma
# Re: Ok, How do I learn to program?
#
Paladin of the Pegasos

#
Joined: 2003/2/24
Posts: 1469
From: Sweden

@xyphoid

Exactly my thoughts! I was thinking about learning C programming on MorphOS this summer, and now with the MorphOS 2.5 + SDK released and a long period of no work ahead, it couldn't be a better time! :-)

Want to do a "self study group" here on MZ? Maybe some more people are thinking the same? :-)

--
MorphOS is Amiga done right! :-)
»2010/6/15 16:42
Profile

takemehomegrandma
# Re: Ok, How do I learn to program?
#
Paladin of the Pegasos

#
Joined: 2003/2/24
Posts: 1469
From: Sweden

Quote:


ausPPC wrote:
It helps if you have a specific and achievable goal re: the program you want to write.


OK, how about a simple "hang man" game?

:-)

--
MorphOS is Amiga done right! :-)
»2010/6/15 16:45
Profile

HammerD
# Re: Ok, How do I learn to program?
#
Order of the Butterfly

#
Joined: 2003/7/28
Posts: 193
From: Canada

Best you master C and all the nasty stuff like pointers, then hit the Amiga RKM's and finally MorphOS SDK.

It's by no means an easy task and programming isn't for everyone. If you are upto it then I look forward to your first software release ;)

--
A4000/060/PPC-200MHz, A4000T/060/PPC-233MHz, CD32, MicroA1, Pegasos 2 G4, AMD Phenom Quad Core 2.5GHz, MacMini 1.5GHz/64MB VRam...mwwmwahhh :)
»2010/6/15 18:30
Profile Visit Website

xyphoid
# Re: Ok, How do I learn to program?
#
Priest of the Order of the Butterfly

#
Joined: 2008/7/11
Posts: 558
From: Delaware, USA

So I guess "to C or not to C" first is the question then. I'll get familiar with your suggestions and go from there...Thanks!!

Hang man get a data base of extensive random words, and add sweet graphics, and fun animation! sounds good!
»2010/6/15 19:51
Profile

Zylesea
# Re: Ok, How do I learn to program?
#
Paladin of the Pegasos

#
Joined: 2003/6/4
Posts: 1028
From: everywhere

I started with C++ (yes, *pure* C++, not C first) and I think that was a rather hard bread. You know, I am only an occasional programmer and IMHO C(++) is usually too hard if you don't use it frequently. I am still very bad on C++ and pretty much fail in writing stuff for MorphOS (stone me, but with the MFC it is is easier - due to endless documentaion and tutorials). Stuff like makefiles are still a red rag for me.
Anyway I would recommend Python. Haven't used it myself yet though but it is said to be rather easy (on my old university department (biological cybernetics) they use it now for the beginners courses) and IIRC there are libs to use MUI. So you can make "real" MorphOS programs, other than with, say, Hollywood (which i also use from time to time for easy stuff and I kind of like it). Having a look on Python is still on my to do list.
»2010/6/15 20:15
Profile

ausPPC
# Re: Ok, How do I learn to program?
#
Acolyte of the Butterfly

#
Joined: 2007/8/7
Posts: 142
From: SE Queensland

My own exposure to C started with a dated issue of 'A Book On C' by Ira Pohl. That's ANSI C and I never moved beyond the command line. I could do somewhat interactive programs but I never cracked being able to modify characters at certain screen positions - could only ever bang out a whole newline at a time. So ASCII graphics never happened for me and eventually I dropped it.

Despite the tutorial I already linked to being focused on Haiku, so far a majority of it applies equally to any platform with a C compiler - C was always supposed to be transportable.

As far as a command line hangman game goes (or any other program), if you can describe the rules of the game in the syntax of C - which is inputs, outputs, loops, comparison, evaluation etc - then it's as good a learning project as any. If you want something *really* simple, how about a program that asks the user to guess the number it's 'thinking'?

--
Want an Efika? Are you insane? No matter, I might have something for you. PPC is dead - Long Live PPC!
»2010/6/16 0:24
Profile

Debaser
# Re: Ok, How do I learn to program?
#
Butterfly

#
Joined: 2005/7/12
Posts: 76
From: NY & PA, USA

takemehomegrandma:

Really cool idea! I was thinking of just fooling with Hollywood and such.. but if I have a support(hehe) er.. study group, I may give it another go.

[ Edited by Debaser on 2010/6/15 19:31 ]
»2010/6/16 0:30
Profile

Clearer
# Re: Ok, How do I learn to program?

Just looking around

#
Joined: 2010/6/16
Posts: 12
From:

You should always pick your programming language to fit the problem. C is a good language for many problems, but for a lot of things, other languages are much better. Just to get you started, the following are (a few) types of programming languages: procedural, functional and logical. C is a procedural language, examples of a functional language could be Lisp or Haskell. Prolog is an example of a logical language (personally I find Prolog confusing and illogical, but that's an entirely different thing).

If you want to to learn how to develop software (aka how to program), you need to learn how to implement (i.e. program), analyse and design algorithms. I think that's the order to do it in, but given that I have not been able to start the learning process over, I can't really tell.
»2010/6/16 3:08
Profile

r-tea
# Re: Ok, How do I learn to program?
#
Order of the Butterfly

#
Joined: 2005/3/27
Posts: 154
From: Opole, Poland

@ Yomgui
Don't forget also that some high level languages are easier to use when high level suffs like GUI-programming are requiered.


Making a MUI GUI with C is really a piece of cake. Belive me. I'm totally a beginner and I can make a MUI GUI with pure C in 15 mins. This is a power of MUI and genius of Stefan Stunz :)

But my first attempts to program for Amiga and with MUI was AmigaE which was really great experience. PortablE i the succesor of AmigaE.
»2010/6/16 9:38
Profile Visit Website

takemehomegrandma
# Re: Ok, How do I learn to program?
#
Paladin of the Pegasos

#
Joined: 2003/2/24
Posts: 1469
From: Sweden

Quote:


r-tea wrote:

But my first attempts to program for Amiga and with MUI was AmigaE which was really great experience.


I fiddled around with E a bit myself back in the days, when I was trying to break out of AMOS make programs with the proper OS look and feel. Liked it a lot, buy I think that while learning C will be more difficult, the reward will also be greater...

Quote:

PortablE i the succesor of AmigaE.


And I thought it was "E Compiler X"?

--
MorphOS is Amiga done right! :-)
»2010/6/16 10:28
Profile

r-tea
# Re: Ok, How do I learn to program?
#
Order of the Butterfly

#
Joined: 2005/3/27
Posts: 154
From: Opole, Poland

Quote:


takemehomegrandma wrote:
Quote:


r-tea wrote:

But my first attempts to program for Amiga and with MUI was AmigaE which was really great experience.


I fiddled around with E a bit myself back in the days, when I was trying to break out of AMOS make programs with the proper OS look and feel. Liked it a lot, buy I think that while learning C will be more difficult, the reward will also be greater...

Quote:

PortablE i the succesor of AmigaE.


And I thought it was "E Compiler X"?


Yeah, you're right, but they both are :) We've got now two up to date AmigaE compilers, and both are still continued projects.
»2010/6/16 12:09
Profile Visit Website

xyphoid
# Re: Ok, How do I learn to program?
#
Priest of the Order of the Butterfly

#
Joined: 2008/7/11
Posts: 558
From: Delaware, USA

what is vbcc exactly?
I also camed across gcc

[ Edited by xyphoid on 2010/6/16 10:39 ]
»2010/6/16 15:36
Profile

Samurai_Crow
# Re: Ok, How do I learn to program?

Just looking around

#
Joined: 2009/12/10
Posts: 19
From: Minnesota, USA

VBCC stands for Volker Barthelman's C Compiler. It compiles only C and not C++.

GCC stands for GNU Compiler Collection. It compiles C as well as C++ and a few other programming languages also.
»2010/6/16 16:01
Profile

amiades
# Re: Ok, How do I learn to program?
#
Order of the Butterfly

#
Joined: 2005/6/2
Posts: 203
From: Asturies, Spain

What about Pascal? I see it as a fine thing to learn programming. And we have a morphos pascal compiler... so, what else do you need to begin?

I learned programming with pascal, and when it became small for me, I just jumped java, and it was feasible... you could jump from pascal to c, which could be easier than bootstrapping from c. Or you could go directly to c++, already having procedural knowledge from pascal...
»2010/6/16 20:06
Profile Visit Website

DiskDoctor
# Re: Ok, How do I learn to program?
#
Order of the Butterfly

#
Joined: 2009/4/17
Posts: 277
From: Warsaw, Poland

@xyphoid

You wanna learn how to program? Just stick to python, the easiest language to learn (except for Pascal). You've got the build on MorphOS. Also there's a UI builder - pymui but - technically - all in early beta.

Anyway stay off C++. This can only scare you away.

--
Icaros Desktop 1.2 on HP 530 (awaiting wifi bounty)
»2010/6/16 20:39
Profile
page  1 of  3 [1]23»
Print Topic 
«  Previous Topic  |  Next Topic  »

Permissions

You cannot post.
You cannot edit.
You cannot add polls.
You cannot attach files.
You cannot reply.
You cannot delete.
You cannot vote.
XML

 
MorphZone engine core provided by RunCMS ©1995 - 2007 RunCMS, Modifications ©2001 - 2009 MorphZone.
RunCms Copyright © 2002 - 2010
- Free Opensource CMS System - 
- Click here to visit our mainsite! -
Design By André Siegel