scart Posted July 20, 2007 Share Posted July 20, 2007 I have a question, Where can I learn how to program in terminal? are there any sites you guys recommend or other great programming software ? Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/ Share on other sites More sharing options...
hecker Posted July 20, 2007 Share Posted July 20, 2007 The terminal is not a programming environment per-se but there is something called shell script programming. I think you should take a look at some programming books for beginners in OSX. I found this one that seems appropriate: http://www.amazon.com/Beginning-Mac-OS-X-P...g/dp/0764573993 (Maybe you can find a PDF of this book on a torrent site) Cheers, hecker Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-411896 Share on other sites More sharing options...
roxen Posted July 20, 2007 Share Posted July 20, 2007 Search for bash scripting. Bash is the default shell (look at the title of the terminal window) If you save a file with the .command extention if will open in terminal on doubleclick. The first line of the script should be #!/bin/bash Perl is also an option, its already installed on OSX and you can also use it for cgi scripts for websites. Then use #!/usr/bin/perl (check with: whereis perl) Make sure the script is executable (chmod +x filename ) and use unix linefeeds. (get BBedit demo) #!/bin/bash echo "Hello World!" or #!/usr/bin/perl print "Hello World!"; Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-411917 Share on other sites More sharing options...
sg Posted July 22, 2007 Share Posted July 22, 2007 did you mean creating programs that will run in the terminal? just any normal UNIX C will work in OSX. just pickup and C book or online C tutorials and you'll be good to go. Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-412876 Share on other sites More sharing options...
bxsci(macuser) Posted July 22, 2007 Share Posted July 22, 2007 did you mean creating programs that will run in the terminal? just any normal UNIX C will work in OSX. just pickup and C book or online C tutorials and you'll be good to go. if your going to learn C go for "C for dummies" that was the best out of the C books i went through Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-412881 Share on other sites More sharing options...
sarahbau Posted July 24, 2007 Share Posted July 24, 2007 if your going to learn C go for "C for dummies" that was the best out of the C books i went through lol. I read that as "C is for Dummies" Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-414287 Share on other sites More sharing options...
Soündless Posted November 5, 2007 Share Posted November 5, 2007 revolution is really easy, but it has a code of its own. if you want to get the jist of coding tho, download the trial Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-495135 Share on other sites More sharing options...
alloutmacstoday Posted November 9, 2007 Share Posted November 9, 2007 no offense soundless, but revolution is for beginners I started out with java, but then i learned applescript too. they are both fun and fairly easy languages (cept java) it takes a while, but it's worth it. Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-500158 Share on other sites More sharing options...
Soündless Posted November 9, 2007 Share Posted November 9, 2007 this is giani we are talking about, that is the only reason i suggested it Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-500186 Share on other sites More sharing options...
alloutmacstoday Posted November 9, 2007 Share Posted November 9, 2007 lol, ya, your right. start out with runtime... ZOMG: it are meh 1 year anniversary of joining insanelymac in 5 dayz!!! Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-500304 Share on other sites More sharing options...
Soündless Posted November 9, 2007 Share Posted November 9, 2007 i turned you onto this site, you turned scart onto this site, wierd. Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-500323 Share on other sites More sharing options...
socal swimmer Posted November 9, 2007 Share Posted November 9, 2007 shell scripting: google: "unix shell scripting" or "bash shell scripting" for writing actual programs: install XCode (it is on the Mac OS X install CD, or the apple website), and use that. to make a C++ or C program, go to file -> new project -> C++ command line utility (this should build C programs too, because C++ includes all C commands, right?) to learn C++: I wouldn't pay for a book. there are so many online tutorials that it is a joke. http://www.cplusplus.com/doc/tutorial/ is what i used, it was very good. there are also many others. and/or (and this is best after learning C++) you could learn to make bona-fide mac os x applications in cocoa, which is based off C with some small variations. both of these sites helped a lot: http://www.oreilly.com/pub/ct/37 <- start from bottom, work your way up. it teaches you everything pretty much. it is awesome. http://cocoadevcentral.com/ there are more resources in teh programming forum. hope this helps. its a lot of fun. also openGL is fun too (pretty 3d shapes...) Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-500378 Share on other sites More sharing options...
alloutmacstoday Posted November 9, 2007 Share Posted November 9, 2007 sounds good... for someone who knows programming and understands how to do it... not scart though Link to comment https://www.insanelymac.com/forum/topic/57629-programing-question/#findComment-500707 Share on other sites More sharing options...
Recommended Posts