New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Newbie wanting to learn about Programming Concepts on a Mac


Post Reply New Thread Subscribe

 
Thread Tools
c1ph3rtxt

 
Member Since: Sep 23, 2009
Location: North Canton, Ohio
Posts: 33
c1ph3rtxt is on a distinguished road
Mac Specs: Snow Leopard 10.6 iMac 2.93 GHz Intel Core 2 Duo, Memory: 4 GB, Hitachi HDT721 640GB

c1ph3rtxt is offline
I am running Snow Leopard 10.6

I am brand new to compiling code on a mac, what tools would I need to compile and make things work on my computer. Would I use Apple Developer Tools? My first mission is to install GhostScript to work with Scribus.

I do have knowledge, although very limited, to programming in C++ (using visual studio) and Java (using the Java Developer Kit, and JRE). I am no stranger to the *nix operating environments running line commands in the Terminal. I have taken college level classes on these as well as the programming languages listed above. However, programming is not my strong point but I would be more than willing to learn and experiment with it. I am a newbie on these topics when using a mac.

Also, are there any precautions that need to be taken with compiling? What about scripting? I just bought this iMac last year. I know misplaced/missing files and such can be disastrous to a system.

Shamefully, I am strictly a GUI user for now. Compiling and running applications from a line command have always intimidated me, but I would love to learn how to use them.

If someone could direct me to a tutorial or something on these topics that would be great. There's alot of information out there, I have Googled the subject before I posted this, but I want the most effective tools and answers.

"The Question is not how far. The question is, Do you possess the constitution, the depth of faith to go as far as needed?"
QUOTE Thanks
DaFlake

 
Member Since: Jun 02, 2008
Posts: 709
DaFlake has a spectacular aura about

DaFlake is offline
What language do you want to focus on? You can program in JAVA on the Mac or you could install XCode (on your install disks) and start to learn Cocoa which is basically an objective C language. So the question still remains, what language do you want to program in?
QUOTE Thanks
c1ph3rtxt

 
Member Since: Sep 23, 2009
Location: North Canton, Ohio
Posts: 33
c1ph3rtxt is on a distinguished road
Mac Specs: Snow Leopard 10.6 iMac 2.93 GHz Intel Core 2 Duo, Memory: 4 GB, Hitachi HDT721 640GB

c1ph3rtxt is offline
Quote:
Originally Posted by DaFlake View Post
What language do you want to focus on? You can program in JAVA on the Mac or you could install XCode (on your install disks) and start to learn Cocoa which is basically an objective C language. So the question still remains, what language do you want to program in?
I probably could dust off my old(er) Java and C++ books and start there.

"The Question is not how far. The question is, Do you possess the constitution, the depth of faith to go as far as needed?"
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
Perusing the Scibus site I saw that there was a link for a PKG installer for Ghostscript, so why not just use that? OK, you may not trust the source distributing it.

To install items from source, you'll need to install XCode. That came on your install DVD.

Often these source projects have easy instructions for compiling and installing. The problem comes when there are dependencies. In some cases those seem to go on forever. That is why people have created tools like MacPorts.

Precautions may vary on your trust level. I'd backup my personal files and anything else that might be difficult to recreate. The few times I've used open source material, I've only downloaded from trusted sources. Either from the project site or sites they point to. Read the install documentation twice and note any exceptions or requirements.

As DaFlake mentioned, you need to define your focus of interest. If you want to write command line scripts then a scripting tool such as csh, bash, Perl, Python, PHP, etc all work well. I believe Python even has the ability to develop OS X GUI apps. Of course if your aim is to develop full OS X desktop apps limited to running on OS X, then learn Cocoa, the frameworks and tools Apple supplies for free. For cross platform development things get a little tricky, but common ones are Java and RealBasic. There are many development tools available for the Mac and understanding your interests will help narrow down your available choices.

It sounds to me that for now you are interested in how shells work to understand install scripts. The default on the Mac is Bash. I don't know how ofter bash is used in things like install scripts, so perhaps it would be better to learn csh (considered harmful), tcsh, or bourne.

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
Oh, forgot to mention Apple's "Introduction to Open Source Scripting on Mac OS X".

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks
DaFlake

 
Member Since: Jun 02, 2008
Posts: 709
DaFlake has a spectacular aura about

DaFlake is offline
Well said xstep!

I'm currently tinkering with PHP. Not a bad little language.
QUOTE Thanks
c1ph3rtxt

 
Member Since: Sep 23, 2009
Location: North Canton, Ohio
Posts: 33
c1ph3rtxt is on a distinguished road
Mac Specs: Snow Leopard 10.6 iMac 2.93 GHz Intel Core 2 Duo, Memory: 4 GB, Hitachi HDT721 640GB

c1ph3rtxt is offline
Quote:
Originally Posted by xstep View Post
Perusing the Scibus site I saw that there was a link for a PKG installer for Ghostscript, so why not just use that? OK, you may not trust the source distributing it.

To install items from source, you'll need to install XCode. That came on your install DVD.

Often these source projects have easy instructions for compiling and installing. The problem comes when there are dependencies. In some cases those seem to go on forever. That is why people have created tools like MacPorts.

Precautions may vary on your trust level. I'd backup my personal files and anything else that might be difficult to recreate. The few times I've used open source material, I've only downloaded from trusted sources. Either from the project site or sites they point to. Read the install documentation twice and note any exceptions or requirements.

As DaFlake mentioned, you need to define your focus of interest. If you want to write command line scripts then a scripting tool such as csh, bash, Perl, Python, PHP, etc all work well. I believe Python even has the ability to develop OS X GUI apps. Of course if your aim is to develop full OS X desktop apps limited to running on OS X, then learn Cocoa, the frameworks and tools Apple supplies for free. For cross platform development things get a little tricky, but common ones are Java and RealBasic. There are many development tools available for the Mac and understanding your interests will help narrow down your available choices.

It sounds to me that for now you are interested in how shells work to understand install scripts. The default on the Mac is Bash. I don't know how ofter bash is used in things like install scripts, so perhaps it would be better to learn csh (considered harmful), tcsh, or bourne.
Cool, if there's a PKG to it I could just use that. I just wanted to learn how to do it the hard way so that way it's just more knowledge to have.

I am a newbie when it comes to running a Mac system, so I am not familiar with MacPorts.

I think Scripting would give me a good start to learning, however it is argued that scripting is not the same as programming. This is largely due to scripting not relying on any logic (such as C++ and Java) and does not need to be compiled.

Yes, install scripts from the command line is what I was referring to and the basic concept for this thread. I've had some training in SSH as I used it when I ran Knoppix in my Linux classes.

I apologize for any confusion based on my non-specific goals.

Thank you for all your help, especially xstep

"The Question is not how far. The question is, Do you possess the constitution, the depth of faith to go as far as needed?"
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
Quote:
Originally Posted by c1ph3rtxt View Post
I think Scripting would give me a good start to learning, however it is argued that scripting is not the same as programming. This is largely due to scripting not relying on any logic (such as C++ and Java) and does not need to be compiled.
LOL.

It all requires logic. The need for compiling is irrelevant.

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks

Post Reply New Thread Subscribe


« MAC official kernel installation | a simple move, select, delete applescript...with an award! »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Primarily getting one just to experience and learn about Mac OS, smart idea? DPatel304 OS X - Operating System 22 11-04-2009 09:16 PM
Mac Newbie asks: No OUTLOOK in Microsoft Office? NJRonbo OS X - Apps and Games 6 01-13-2007 05:20 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 07:52 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?