PDA

View Full Version : basic or pascal or c++ ?




Anarchy99
Feb 15, 2005, 12:34 PM
what programing language should i learn ive never programed before
my teacher says basic and or pascal because they are good for beginners but ive been told C++ is more useful



dejo
Feb 15, 2005, 12:54 PM
Correct. Basic or Pascal are good for beginners. C++ IS more useful (than those other two) but harder to learn. Since you are new to programming, Basic will allow you to learn general concepts that you can then apply to most other programming languages.

Cuckoo
Feb 15, 2005, 01:09 PM
By far is Pascal the most stuctured. It will only compile (run) if the code is very clean. Basic isn't near as 'picky'.

I think the choice is, if you're just looking to have fun and not a particulair goal, go with basic.

If you want to lean how to program, and move on up to (for instance) to C(++) and/or Java or whatever, then start with Pascal. Pascal is a better playground for the more serious languages.

<oh, and im not looking for a discussion weather or not basic is a serious programming language, i say it's not, but to each it's own, basic is good clean fun, nothing more, nothing less>

bousozoku
Feb 15, 2005, 01:21 PM
Those are three of the worst programming languages you could learn.

BASIC allows you to be sloppy.

Pascal allows you such a precise implementation that you may not be able to figure out what you did 3 months ago.

C++ is probably the most useful as well as the most used language right now. It can be severely clear in the right hands and severely difficult to decipher in other hands.

However, I'd suggest you go with C++ or Java to start, if you're serious.

therevolution
Feb 15, 2005, 01:27 PM
Though I have not spent as much time with it as I'd like, Python is touted as a great language for a beginner. Clean, easy to read, straightforward, and even useful. I would recommend Python over Pascal or Basic without hesitation. C++ is useful but not terribly friendly as a first language. If it has to be one of the three mentioned, go with C++. Otherwise, check out Python (http://python.org) and see if that appeals to you.

DavidLeblond
Feb 15, 2005, 02:04 PM
If you have never programmed before, I'd suggest BASIC first. Just look at it and get the hang of using variables, if/then statements, and loops. Then get a good C++ or Java book to get you started on object oriented programming.

If you just start right off with C++ you might possibly get overwhelmed and frustrated. Just remember, its not about learning a language, its all about logic.

FritzTheWonderM
Feb 15, 2005, 02:38 PM
Might as well learn something you can get paid for: Java. Then if you have time or are doing more programming, C++.

plinden
Feb 15, 2005, 04:18 PM
what programing language should i learn ive never programed before
my teacher says basic and or pascal because they are good for beginners but ive been told C++ is more useful

I've recommended before that if someone's serious about programming, they should start with Java, and then they could move onto C++ later, but I'm not sure if that's such a good idea now. I have a feeling that a Java programmer trying to learn C++ would just get frustrated and give up easily. I went in the other direction, C++ -> Java, and haven't looked back.

Anyway, I do think Java is a good programming language to learn, and would open up opportunities in developing applications for Web services, even if it still has limited uses for desktop applications. C++ would be more useful for standalone applications and games programming, and knowing it would prepare you well for learning other languages.

Anyway, you'll know you know C++ when you can read Stroustrup without wincing.

tutubibi
Feb 16, 2005, 11:42 AM
You may also want to check this thread:

http://forums.macrumors.com/showthread.php?t=102014

If you just want write programs just go with Python or Basic ( :( ). If you want to become programmer, Pascal is good starting point. Later on move to something actually used in the real world, like Java ( :( ) or C/C++ ( :cool: ).

Omen88
Feb 17, 2005, 03:06 PM
I recommend Pascal as a first language as it was mine as well. Basicly it's comparable to C, but less cryptic.

Start off with writing some console applications before trying to program a GUI dealing with event-handling. Then learn the principles of object oriented programming and go for Objective-C if you want to program a mac, or Java/C++ if you want to be a more general programmer.

I might add I absolutely love Objective-C, it's really worth learning but has a pretty steep learning curve for beginners.

codpilot
Feb 17, 2005, 03:17 PM
I teach programming, Java, VB, C++, C, Unix.

Here's a thought. Try shell programming. Same basic constructs as in the other languages, it's built into the OS and you can do some pretty nifty things with it.

Once you get somewhat comfortable, then I suggest Java. Mainly because of the tons of documnetation and tutorial at Sun. C++ is a bit arcane (I believe slightly more powerful, just a bit harder for complex stuff)

Besides there are tons of ebooks on programming in the Bash shell - heres one:
http://w******dp.org/LDP/abs/html/

The next thing I recommend - decide on something to code! Solve a problem, add something. Otherwise no book will teach you enough. Good luck
:)

tpjunkie
Feb 17, 2005, 03:52 PM
Man, anyone else miss LOGO? ;)

Yeah BASIC is really easy to learn, I wrote some pretty complex programs in it on my Apple II back in about third grade (BASIC was the only language offered in my elementary school). If you are at all serious though, go with C++.

bousozoku
Feb 17, 2005, 04:01 PM
Man, anyone else miss LOGO? ;)

Yeah BASIC is really easy to learn, I wrote some pretty complex programs in it on my Apple II back in about third grade (BASIC was the only language offered in my elementary school). If you are at all serious though, go with C++.

I miss PILOT and LOGO. They're both good, simple languages that allow you to do things simply without being a rocket scientist. In fact, I'm working on an interpreter for both.

tutubibi
Feb 18, 2005, 01:31 PM
What about Unlambda or INTERCAL?

http://www.eleves.ens.fr:8080/home/madore/programs/unlambda/

http://www.catb.org/~esr/intercal/

Nermal
Feb 19, 2005, 06:22 PM
LOGO? Was that the one with the turtle? :D

Edit: Yes, it is, I just found and downloaded StarLogo (http://education.mit.edu/starlogo/).