Stop Microsoft

Miscellaneous => Programming & Networking => Topic started by: Master of Reality on 22 July 2002, 05:14

Title: Which Language first?
Post by: Master of Reality on 22 July 2002, 05:14
This is a classic question but; which language should i learn first? I know HTML, it took me a few hours to learn it a couple years ago. I was thinking C++ or perl, of course i will eventually try to learn as many as possible.
Title: Which Language first?
Post by: voidmain on 22 July 2002, 07:38
Perl would be an in-between step from HTML to C++. And if you learned Perl, you could fix your CGI scripts.  (http://smile.gif)
Title: Which Language first?
Post by: TheLizardKing on 22 July 2002, 11:24
If you want to go the way of the web, go with PHP.  Its quite simple and although perl came first, it will greatly help you to understand it.  Perl was always more complicated then PHP in my humble opinion.

 http://www.php.net (http://www.php.net)
Title: Which Language first?
Post by: KernelPanic on 22 July 2002, 14:16
Depends what you are doing really. Perl has fairly short code and is very good at what it does, but C++ is very powerful and versatile and not all that difficult. C++ also gives you the opportunity to expand you skils to larger projects and it is OOP.
Title: Which Language first?
Post by: TheLizardKing on 22 July 2002, 14:19
For some reason I found C++ to be quite difficult, much of which was due to the fact I use a lot of web languages so I couldn't quite grasp all of their concepts but thats just me of course.  Oh and yes, it is 5:30am here, sleep is for the weak!
Title: Which Language first?
Post by: runkpock on 22 July 2002, 22:52
PHP = Best Web Programming lang
Objective C/Ansi C/C++ = local apps

keep in mind that (Objective C >= C && C > C++ && Objective C > C++)

perl might be cool but cpan is just evil.
python is underrated and easy.
Title: Which Language first?
Post by: Master of Reality on 23 July 2002, 03:49
i want to learn python too. I heard it is cool
Title: Which Language first?
Post by: TheQuirk on 23 July 2002, 08:12
http://tuxedo.org/~esr/intercal/ (http://tuxedo.org/~esr/intercal/)
hehehe....  (http://tongue.gif)    :D    :rolleyes:
Title: Which Language first?
Post by: NESnerd on 23 July 2002, 12:09
Currently the only kind of language I know is Macromedia's Actionscript. (Based on ECMAscript) It's useful though. I don't do a lot of the coding in Flash as much, but it really helped me understand a lot of the concepts in almost all programming languages. (If statements, loops, arrays, stuff like that.)
Title: Which Language first?
Post by: Kintaro on 23 July 2002, 12:57
If you learn a language dont learn QBasic it gives you many dirty habbits that will make other programming Languages very difficult to learn. I know it and have incorperated its Style with C++.

I prefer C++ because it is Object Orientated, And everything falls togeather, i just need to learn more functions to do things with it that i know with other languges.

Anyway I know:

QBasic (I have been writing shitty apps in this since i was around abouts 8 or 9)
Visual Basic (Arrrrrrrrrrrrrrrgggggggggggggggh)
PowerBasic (nice) www.powerbasic.com (http://www.powerbasic.com)
YaBasic (Comes on PS2 so i learned it)
C++ (From C++ dor Dummies)
HTML (From writing things in Mozilla Composer and then looking at the HTML it produced)
.BAT / .CMD (Windoze Command prompt)
I want to learn PHP or Perl next anyway, i basicly got into computers when i was about 6 or 7 my dad got an XT (Old then, old now) anyway by the first week i had tought myself how to use a HEX editor and to read hex and stuff like that!
Title: Which Language first?
Post by: voidmain on 23 July 2002, 19:35
I take it back.  You should learn "CLIST" and "REXX" before any other language.  (http://smile.gif)
Title: Which Language first?
Post by: Calum on 23 July 2002, 20:34
German, i say. good solid language, that.
Title: Which Language first?
Post by: choasforages on 24 July 2002, 18:06
actally go shell out the $150 needed to buy a TI89. you can program in c for it, in tibasic. and in assmebly, youll need a ti link cable and to download the assembler and the compiler. but comenoe, it comes with a book that teaches you how to use all the ti basic functions and to write your own. it even comes with tools to build a graphical app. if only more programers would learn on those such embeded machines, we wouldn't have this damned bloatware problem i can write tight apps with hooks for assembler routines in a small amount of space, it kinda teachs you to think about the smallest and cleanest and easyest way and the fastest way to do things. and i think that ti should rename the langague, i have never seen a version of basic with such advanced looping and such advanced looping. and this only coun'ts on TI89/TI92 machines, all the other one's basic isn't that good sorry for the rant
Title: Which Language first?
Post by: choasforages on 24 July 2002, 18:08
and if you don't like that idea, you could always buy a macintosh and learn objective-c/*wish i could, i gotta go buy some NeXT books*/
Title: Which Language first?
Post by: ravuya on 26 July 2002, 02:16
I believe there are objective-c compilers for linux. Part of GNU GCC.

You should definitely learn C++. It's the industry standard, and (unlike most) it actually works. Versatile, fast and supported heavily. If you learn in-depth a 'soft' language like any kind of Basic or Pascal, the bad habits you pick up there will render any future experiments in more powerful languages useless.
Title: Which Language first?
Post by: lazygamer on 31 July 2002, 01:41
Rather then make a new thread, I'd like to hear what you people have to say about the C++/C VS Turbo Pascal issue? I grew up on Turbo Pascal(even though I never mastered it). I loved it, it was the ultimate. So clear, concise and efficient. Yet it's outdated, and I am forced to learn C cuz my TP compiler don't like modern systems. I've been using DJGPP.

What's Delphi like, is it modern TP? Is Delphi good? Does it work on Linux?
Title: Which Language first?
Post by: voidmain on 31 July 2002, 03:01
I also began programming using TP back around the late 80s and liked it so much I decided to make programming a profession. After going through school I ended up programming FORTRAN and SAS on mainframes and PV-WAVE and ARC/INFO on IBM RS/6000 UNIX systems. Once on the UNIX systems it was clear that "C" was the language to use.  Everything was written in it. It was extremely portable.

I have also done a fair amount of Delphi programming on Windows.  Delphi to TP is basically what Visual Basic is to QBASIC.  It's an object oriented graphical development environment for Windows.  I definitely prefer Delphi over VB.  However, I have gotten so anti-M$ that I don't program in any of those Windows specific languages any more.  

TP, Delphi, VB are all Windows specific languages.  There are no UNIX versions (well, actually you can get Pascal compilers and there is GNU Pascal but Borland didn't create a version that I am aware of).  You want to program in a portable cross-platform language you need to learn C, C++, and to a lesser extent Java.  Also, Perl is a good cross platform scripting language (Actually, Perl can also be compiled into binary form).

Having said that, I do very little programming any more in compiled languages.  I have become more fond of administration and networking over the last 8 years or so but still do a significant amount of scripting and web/database programming useing Shell scripts, Perl, PHP, PostgreSQL, MySQL, Sybase, etc...  But I think any programmer (who's horizons run above M$) would tell you that you can not go wrong by learning C and/or C++ as a baseline.

[ July 30, 2002: Message edited by: VoidMain ]

Title: Which Language first?
Post by: jtpenrod on 31 July 2002, 11:12
quote:
TP, Delphi, VB are all Windows specific languages. There are no UNIX versions (well, actually you can get Pascal compilers and there is GNU Pascal but Borland didn't create a version that I am aware of). You want to program in a portable cross-platform language you need to learn C, C++, and to a lesser extent Java. Also, Perl is a good cross platform scripting language (Actually, Perl can also be compiled into binary form).
Actually, that's not true. Borland has a product called Kylix that's just like Delphi for linux. While Perl is pretty good, and well worth learning, its syntax tends to be a bit arcane. A better scripting language to learn with would be Python. The syntax is much clearer than Perl, and it's much easier to learn. Not only that, but it's also a full-featured language you can keep on using, not just something you learn on before moving onto something better.
__________________________________________

Live Free or Die: Linux
(http://www.otakupc.com/etsig/dolphin.gif)
If software can be free, why can't dolphins?
Title: Which Language first?
Post by: the_black_angel on 31 July 2002, 18:39
I agree Python is an excellent language to learn first as:

1. It is very easy to learn (i created a calculator after 1 hour of reading, and having no other programming languages besides html)

2. Its very portable

3. gives you good habits for all other languages, e.g. c,c++,java
Title: Which Language first?
Post by: the_black_angel on 31 July 2002, 18:42
does anyone have any good objective-c tutorial?(online) - i have no money for a book  :(
Title: Which Language first?
Post by: voidmain on 31 July 2002, 20:06
quote:
Originally posted by jtpenrod:
Actually, that's not true. Borland has a product called Kylix that's just like Delphi for linux. While Perl is pretty good, and well worth learning, its syntax tends to be a bit arcane. A better scripting language to learn with would be Python. The syntax is much clearer than Perl, and it's much easier to learn. Not only that, but it's also a full-featured language you can keep on using, not just something you learn on before moving onto something better.


What language is Kylix? Pascal? Or is it nothing more than an IDE for C?  If it's another language, is it portable?  If it is not I certainly wouldn't recommend it.  I still say C is the way to go.

I also disagree with the Python/Perl thing.  I don't believe Python is easier to learn than Perl, in fact I would say it is more difficult.  I would also say that Python isn't nearly as widely used accross all platforms.  I stand by my Perl suggestion.
Title: Which Language first?
Post by: the_black_angel on 31 July 2002, 21:09
Perl is starting to show its age - if you want to do a largish program (3-400 lines) which would you choose perl or python? i would use python, perl i find gets too cumbersome if you go above 175-200 lines. Its catch fraze was many way to do the same(or something along those lines  (http://smile.gif)  ) i find this too confusing.

Then again i'm probibly biased as all hell as it is the first language i learnt and am most familiar/comfortable with.
Title: Which Language first?
Post by: lazygamer on 31 July 2002, 21:59
Hypothethical question, if someone transplanted/modified/contiuned the TP language and made it capable of doing oldsk00l text mode stuff or being a cross platform power house that can DIRECTLY interact with macOS, Linux, Wind0ze etc.

Would that rock the house more then C ever would/did? I question whether C is only here because of luck rather then quality. Which is like Microsoft, here because of luck rather then quality. Ok it's true that C is much better then Wind0ze ever was, but im biased...  (http://smile.gif)
Title: Which Language first?
Post by: voidmain on 31 July 2002, 23:12
No, C is not here by accident. C is a lower level language than Pascal.  It is not as strongly typed as Pascal.  Because of that they each have their pros and cons.

The guy who created 'C' is also a major player in the development of UNIX. See the history of C here:

http://cm.bell-labs.com/cm/cs/who/dmr/chist.html (http://cm.bell-labs.com/cm/cs/who/dmr/chist.html)

I started on Pascal as I said, but C is an integral part of UNIX (and other OSs).  It is powerful, fast, compact. I don't believe it is any harder to learn than Pascal and they are somewhat similar languages. I can't imagine why anyone would want to replace C with Pascal.  I can tell you it would never happen.  In fact I know of many applications that were originally written in Pascal later converted to C.  I don't know of any cases where someone ported a C program to Pascal, other than for learning purposes.

[ July 31, 2002: Message edited by: VoidMain ]

Title: Which Language first?
Post by: voidmain on 31 July 2002, 23:20
quote:
Originally posted by the_black_angel:
Perl is starting to show its age - if you want to do a largish program (3-400 lines) which would you choose perl or python? i would use python, perl i find gets too cumbersome if you go above 175-200 lines. Its catch fraze was many way to do the same(or something along those lines   (http://smile.gif)   ) i find this too confusing.

Then again i'm probibly biased as all hell as it is the first language i learnt and am most familiar/comfortable with.



I regularly write 1000-5000 line Perl scripts.  I can see it would be a pain if you don't follow good programming practices.  But if you use subroutines and functions like you do in any other language and use local/global variables properly like in any other language then it could be a pain.

Now, the kinds of things I usually write are system and web scripts that usually don't require more than about 1000 lines.  If I am going to write such a major program I probably wouldn't do it in either Perl or Python but go for C/C++.
Title: Which Language first?
Post by: ahri on 1 August 2002, 05:39
kylix is object pascal

apparently, kylix 3 will let you use either C++ or object pascal http://www.theregister.co.uk/content/4/26321.html (http://www.theregister.co.uk/content/4/26321.html)

The thing i like about kylix is that is lets you use assembly right in your source code. But for some reason, i don't like object pascal. The interface section and all those uses statments are really annoying. Couldn't they be hidden or something. I don't want to see all that junk in my source code, just the routines and maybe variable decs. And that semi colon before the equals sign looks weird for some reason. Maybe i just need to get used to it.
Title: Which Language first?
Post by: voidmain on 1 August 2002, 05:59
I used to like Borland a lot and they have received a lot of money from me for TP, BP, TC, BC, and Delphi. I have grown far away from them in the last few years though. They are still far better than M$ for development.  

I have grown very fond of the UNIX way of programming. Several shell prompts, vim, and gcc.  Agreed writing graphical apps can be much speedier with RAD tools such as kdevelop.  

I imagine that Kylix would be very proprietary.  That is I wonder how easy it would be to generate portable C++ code using Kylix and then be able to take that code over to another platform (or even just another machine with the same OS) and be able to compile it using gcc.  That is a *must*.  It would do me no good if everyone that wanted to compile my code would have to have Kylix, or have to do a considerable amount of code manipulation.
Title: Which Language first?
Post by: ciaran on 7 August 2002, 18:36
Just been reading through this topic and something struck me. Why does nobody recommend java??? I've been forced (damn university) to learn java and c++ and i really like both. I also had to learn visual basic for a job and it just stinks. For simplicity I (in my very very humble opinion) defo recommend java as a stepping stone to c++...
Title: Which Language first?
Post by: the_black_angel on 7 August 2002, 19:27
Java is not very well implemented in Linux (that i know of let me know if im wrong)

It does not run well in microshit at all.

Mac OS X is the only OS that i know of (besides sun) that full implements Java. what i have seen of Java i like i haven't actually learnt it yet but i will (maybe the next holidays).
Title: Which Language first?
Post by: voidmain on 7 August 2002, 20:54
Huh?  Java usually isn't distributed with Linux because it is proprietary if that is what you mean. Get Java for Linux from http://java.sun.com (http://java.sun.com)
Title: Which Language first?
Post by: choasforages on 7 August 2002, 22:18
c++ confuses the hell out of me, then agian, i don't think i should have read 2 books on c before i started playing with c++. i am thinking about buying several NeXT books and maybe a NeXT slab or cube, and learn a little about objective c