Yahoo Groups archive

The Logic Off Topic list

Index last updated: 2026-04-28 23:27 UTC

Thread

question regarding programming

question regarding programming

2003-11-10 by dave

I have never programmed a computer in my life...

I would love to make a couple of basic OSX programmes...

I would love to learn to make

1) a program for time mgmt in OSX
2) some programs for teaching music to kids.


How do i learn the programming basics - where can i start my 
reading/learning?

Anybody got any advice?

Regards

David T

Re: [L-OT] question regarding programming

2003-11-10 by Hendrik Jan Veenstra

On a fine day, 10-11-2003, dave wrote:

>I have never programmed a computer in my life...
>
>I would love to make a couple of basic OSX programmes...
>
>I would love to learn to make
>1) a program for time mgmt in OSX
>2) some programs for teaching music to kids.
>
>How do i learn the programming basics - where can i start my
>reading/learning?
>Anybody got any advice?

Woh... that's quite the question...  I honestly wouldn't know where 
to start -- it's been so long since I first started programming, that 
the resources I used then would be totally useless nowadays.

One things to be aware of is that no matter which environment you 
pick, be it hardcore assembler or some cute & friendly drag & drop & 
add-code environment, learning to write a proper non-trivial program 
is going to take *very much time*.  Not something you do on a late 
Sunday evening.  Please do not underestimate the effort involved in 
coming to grips with basic concepts such as event-flow, 
control-loops, input/output handling, etcetera.

That being said, I think that nowadays I would recommend a 
programming environment such as RealBasic.  I honestly think it 
doesn't get any easier than this.  You create a new window, and drag 
& drop a button and a textfield into it.  Double-click the button, 
and a window opens in which you can enter code for the event 
"button_clicked".  So you can start typing something like
   MainWindow.close
   MsgBox MyTextField.text
I.e. when the button is clicked, the window called MainWindow will be 
closed.  Next a message-box will be shown displaying the text that 
was entered in the text-field which you'd called MyTextField.
Compile the program, and you have your first mac-programm running -- 
including an automatic menu with Quit option (always handy :), and an 
Edit menu with functioning cut/copy/paste commands, so that you can 
paste text from the clipboard into the text field for example.

This is of course an example whose simplicity doesn't do justice to 
the complexity of programming in general, but at least you'll get an 
idea of the methodology of writing a program in RealBasic.  No 
worries about linking files and libraries and including headers and 
stuff (all of which you'll run into when programming in C/C++). 
RealBasic gives lots of functionality "for free".

The drawback is that since it's a relatively "high level" 
environment, you're screwed if the environment hasn't implemented 
something you want to do.  Example: RealBasic for OSX has no means of 
using the CoreMIDI routines, which simply means you can't do any 
midi-stuff at all (which sucks indeed).  It is possible to extend 
RealBasic's functionality with 3rd party plug-ins (written in C/C++), 
but no CoreMIDI plug-in has been written yet... (the same lack of 
midi-support holds for OS9, but at least there's a 3rd party OS9 
plug-in that lets you use OMS).

I know this doesn't answer your literal question, but... well, at 
least it might give you some ideas about which directions you might 
want to explore further.  BTW, the RealBasic website is at 
http://www.realsoftware.com/.



-- 
Hendrik Jan Veenstra   h @ k n o w a r e . n l
Omega Art: http://www.omega-art.com/

Re: [L-OT] question regarding programming

2003-11-10 by dave

>>
>> 1) a program for time mgmt in OSX
>> 2) some programs for teaching music to kids.
>>
>> How do i learn the programming basics - where can i start my
>> reading/learning?
>> Anybody got any advice?
>
> Woh... that's quite the question...  I honestly wouldn't know where
> to start -- it's been so long since I first started programming, that
> the resources I used then would be totally useless nowadays.
> That being said, I think that nowadays I would recommend a
> programming environment such as RealBasic.


Thanks Hendrik....

I have downloaded a demo and will start soon!

David Tobin

Re: question regarding programming

2004-01-12 by fauxstout

> How do i learn the programming basics - where can i start my 
> reading/learning?

hendrik's advice on RealBasic is good, but his caveat about the
breadth of control is also true. 

personally i would recommend the slightly harder road of Java. Youll
have more conceptual problems to tackle up front than in RealBasic but
its a fairly good language to learn on in and its got a pretty robust
set of libraries. OSX has good support for it and anythign you write
in it can, theoretically, be run on other platforms. Plus any code you
write, if its worth keeping, can be upgraded and reused as you learn more.

kristian

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.