Welcome, Guest. Please login or register.

Author Topic: Newbie Coding?  (Read 5239 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Plaz

Re: Newbie Coding?
« on: January 01, 2006, 01:38:59 AM »
This could be my last reply of 2005 :-)

I second the thoughts of Castellen. C (and C++) is the way to go these days for Amiga programing. It's another argument if it's the "best" or not, but it's definitly one of the most used languages right now in Amiga, linux, unix and even windows. Everyone will have suggestions on the best book to start with. I've found that you have to find the right one for the way you learn. What's great for me might be horrible for the next person. The "C bible" is called "The C programming language" by Dennis Ritchie. Most will tell you this is a must have and I agree. But it's not an easy book for the newbie. Personally I liked the book called "C by Dissection". You can read about these and others on Amazon.com. Then you can find the best prices on the same books at bookpool.com. Once you know C, the journey's not over yet. You'll then need to look up Amiga reference docs to figure out how to apply your new C language in the Amiga OS. Some take to C like fish in water, for me it was harder, and still others find it impossible. Good luck and studies if you decide to take it on.

Plaz
 

Offline Plaz

Re: Newbie Coding?
« Reply #1 on: January 01, 2006, 06:39:29 AM »
Quote
I've come to the conclusion C is evil... The ROOT of all computer evil.


Hear, Hear! But I didn't want to compicate his day by adding "If you learn ASM first, every thing else is easier to learn, but it's not portable." :-)

I think C can be good when you learn to mix it with ASM. (though it will always be a bit bigger and slower). It definitly turns fully evil easily in the hands of a bad or malicious coder.

Can you imagine the look on the face of a VB programmer if you told them the had to learn ASM and the architecture of the hardware first? :lol:

Plaz

 
 

Offline Plaz

Re: Newbie Coding?
« Reply #2 on: January 04, 2006, 03:58:28 AM »
An additional warning about using C, C++ and other similar langauges..... The libraries.

The good .... The libraries save you tons of time by making available prewritten modules that can do a lot of work for you. No need to "reinvent the wheel". Just call the appropriate function/method in the correct library and off your program chugs. Many times it may not even be necessary to know what's in the lib, only that you know what data to send it. (Super simplified analogy!)

The bad (IMHO) .... The libraries are typically written by a coding guru or group of gurus. Some libs are simple and do simple jobs. Others are very indepth, read like egyptian hyrogliphics and do "magical" things to data and hardware. The libs are important to know and use. Many times you have to use non-standard libs written by other developers so it may be necessary to read through them and their docs. As a newbie I found many of them hard or impossible to read for some time. It was a great frustration that I wasn't warned about when I got started and I think it could be one of the road blocks that crash many a newbie.

Each OS has it own libs that you need to know and access to make your code hum and keep it compliant accross platforms. A lib that does a graphic in linux, doesn't necessarily apply to Amiga, MOS, MUI or windows and vi-see-versa. You learned a lib that came from AmigaOS2.x, but you may have to relearn the lib for OS4, or even a totally different lib if the program is going to try and use MUI.

So just keep in mind these extra parts and you'll do ok. I really hit a frustrating wall when the libs showed up. I thought I was just going to write all my own code as I used to do in ASM and basic. Nope, those darn pesky libs are going to be part of your C/C++ world. I can only suggest that you get good with the programming syntax. Be a great reader. It's much like reading a novel you've never seen before. Learn your language well and no matter what book you read, you will always be able to understand the story.

@thread
Thanks for some other good tips and suggestions I think I'll use a few of them myself.

Plaz