Diamond Posted April 22, 2007 Share Posted April 22, 2007 So then i decided to look at C++ and i realised that it was almost exactly like the script we use in game modding. the layout is the same and most of the functions. Do not be fooled be the similarity of syntactic elements. C++ has a lot of details that you do not usually care about in a scripting language. I was wondering, which one would be better to learn out of C++ or Perl? And what do you want? Link to comment Share on other sites More sharing options...
glovemaster Posted April 22, 2007 Share Posted April 22, 2007 (edited) And what do you want? Well, at the stage i am at i dont actually want anything. Just to learn a programming language for future use or out of interest. I suppose i should ask, which one is the easyer to learn would you say? and which one could i do more with? Edited April 22, 2007 by glovemaster Link to comment Share on other sites More sharing options...
Diamond Posted April 22, 2007 Share Posted April 22, 2007 Perl is definitely easier. You can find plenty of tutorials around the net, as well as Perl Cookbook which is helpful for standard tasks. You can also try writing CGI scripts in Perl for some variety. Link to comment Share on other sites More sharing options...
glovemaster Posted April 22, 2007 Share Posted April 22, 2007 okay then, thank you! I'll look at the links you posted. Thanks again! ~gm Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted April 22, 2007 Author Share Posted April 22, 2007 Perl is not as useful... I would actually recommend Java. And I actually dislike Java. "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
Diamond Posted April 23, 2007 Share Posted April 23, 2007 Perl is not as useful... You, sir, are wrong. Link to comment Share on other sites More sharing options...
glovemaster Posted April 23, 2007 Share Posted April 23, 2007 I have just had a look at java and its even more familiar, layout-wise, as it uses "void" and similar functions to KotOR's script syntax. I will be happy to make the effort to learn a more difficult programming language. Which would you say i could do more with? I've seen Perl Tk scripts with a graphical interface and Executable Java files. I would be more tempted to learn java from the programs i have seen but which do you suggest? Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted April 23, 2007 Author Share Posted April 23, 2007 Perl is not as useful... You, sir, are wrong. Am I... and why is that? Seriously, perl has it's place, but it's pointless for a newb to even bother with it, Java is far superior as a first language. "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
Diamond Posted April 24, 2007 Share Posted April 24, 2007 Seriously, perl has it's place, but it's pointless for a newb to even bother with it, Java is far superior as a first language. A lot of beginners have trouble with the concept of object-oriented programming, that's why our first year university programming course is going to switch from Java to Python (I personally have been marking a lot of really terrible Java code). Java is a good object-oriented application programming language, but procedural thinking should be set straight first. And Perl is very good to hack together useful and usable things quickly, just what a newbie wants. I'm not advocating Perl as "the one and the only", but given a choice between the two, I'd go for Perl first. Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted April 24, 2007 Author Share Posted April 24, 2007 (edited) I suppose we have a difference of opinion, as I suppose intention of use is always key for me. I generally take the opinion of, is it useful for making a game (perl is useful for making tools, python is aswell, especially file conversion), but the core needs for me are simply, how useful is the language for making a game? I'm often in two minds about BASIC languages being a good option for newb's, on the one hand it's easy to get something off the ground quickly, but a pain in the ass to build anything of substancial weight. No language is bad, not even brainf**k, as it has a potential purpose, so it's more a matter of taste. Also perl looks pretty ugly. Edited April 24, 2007 by @\NightandtheShape/@ "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
Humodour Posted April 25, 2007 Share Posted April 25, 2007 My favourite languages: Machine/Assembly (There's just something awesome about having absolute control over the machine - especially when you can embed it in C) Haskell (The purest functional language around, and a joy for maths majors like me!) C++ (For practical stuff) Java (Some fun things to do in jaba and it is a relatively 'neat' language) Python (Just learning this, but seems VERY powerful and uses whitespace instead of punctuation, like Haskell) I use Bloodshed Dev C++ for a lot of stuff on windows (even non C stuff). I am too lazy to install Crimson Editor. On Linux I use Kate - an awesome editor. I haven't really done much practical stuff yet. I'm in my second year of Computer Science/Applied Maths at the Australian National University. Mostly focusing on Software/Hardware interaction, distributed systems and computation (algorithms for solving maths problems, often using linear algebra, mainly). Even so, I actually just want to be a graphics programmer. P.S.: Perl sucks. Go Python! Link to comment Share on other sites More sharing options...
Diamond Posted April 25, 2007 Share Posted April 25, 2007 (edited) No language is bad, not even brainf**k, as it has a potential purpose, so it's more a matter of taste. Also perl looks pretty ugly. I think templated C++ wins the award here. P.S.: Perl sucks. Go Python! NO U! /Perl fanboy Edited April 25, 2007 by Diamond Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted April 25, 2007 Author Share Posted April 25, 2007 C++ can be beautiful, when done correctly, it flows, in a loveable fashion. "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
Diamond Posted April 26, 2007 Share Posted April 26, 2007 I recommend that you to take a look in STL headers (in include/c++/<version>/bits/). Link to comment Share on other sites More sharing options...
karka Posted April 27, 2007 Share Posted April 27, 2007 What is wrong with the STL? It's a great library. Link to comment Share on other sites More sharing options...
Diamond Posted April 27, 2007 Share Posted April 27, 2007 STL is excellent, when you use it. But if you look in the internal headers, you can see how hairy they are. I mean, they are still pretty wonderful, just ugly (since we are talking about ugliness here). Link to comment Share on other sites More sharing options...
AnthonyD Posted April 27, 2007 Share Posted April 27, 2007 C++ for me, though I am really starting to come around to C# for either tools or rapid prototyping. The study of history is a powerful antidote to contemporary arrogance. It is humbling to discover how many of our glib assumptions, which seem to us novel and plausible, have been tested before, not once but many times and in innumerable guises; and discovered to be, at great human cost, wholly false.--Paul Johnson Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted April 30, 2007 Author Share Posted April 30, 2007 C++ for me, though I am really starting to come around to C# for either tools or rapid prototyping. I've grown very very fond of C#. "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
Ellester Posted May 1, 2007 Share Posted May 1, 2007 VB.net, C# and MS SQL Server 2005, just because they are so much easier to program with. Life is like a clam. Years of filtering crap then some bastard cracks you open and scrapes you into its damned mouth, end of story. - Steven Erikson Link to comment Share on other sites More sharing options...
Diamond Posted May 20, 2007 Share Posted May 20, 2007 Resurrection time. The following program is valid in EIGHT programming languages: COBOL (ANSI) Pascal (ISO) Fortran (ANSI, f77) C (ANSI-ish) PostScript Linux/Unix shell script (bash, sh, csh) x86 machine language (MS-DOS, Win32, Linux) Perl (version 5) True insanity. (*O/*_/ Cu #%* )pop mark/CuG 4 def/# 2 def%%%%@@P[TX---P\P_SXPY!Ex(mx2ex("SX!Ex4P)Ex= CuG #%* *+Ex= CuG #%*------------------------------------------------------------------*+Ex= CuG #%* POLYGLOT - a program in eight languages 15 February 1991 *+Ex= CuG #%* 10th Anniversary Edition 1 December 2001 *+Ex= CuG #%* *+Ex= CuG #%* Written by Kevin Bungard, Peter Lisle, and Chris Tham *+Ex= CuG #%* *+Ex= CuG #%* Polyglot suports the following languages: *+Ex= CuG #%* 1. COBOL (ANSI) *+Ex= CuG #%* 2. Pascal (ISO) *+Ex= CuG #%* 3. Fortran (ANSI, f77) *+Ex= CuG #%* 4. C (ANSI-ish) *+Ex= CuG #%* 5. PostScript *+Ex= CuG #%* 6. Linux/Unix shell script (bash, sh, csh) *+Ex= CuG #%* 7. x86 machine language (MS-DOS, Win32, Linux) *+Ex= CuG #%* 8. Perl (version 5) *+Ex= CuG #%* *+Ex= CuG #%* Usage: *+Ex= CuG #%* 1. Rename this file to polyglot.[cob|pas|f77|c|ps|sh|com|pl] *+Ex= CuG #%* *+Ex= CuG #%* 2. Compile and run with your favorite compiler and operating *+Ex= CuG #%* system. *+Ex= CuG #%* *+Ex= CuG #%* Notes: *+Ex= CuG #%* 1. We have attempted to use only standard language features. *+Ex= CuG #%* *+Ex= CuG #%* 2. Without the -traditional flag gcc will issue a warning. *+Ex= CuG #%* *+Ex= CuG #%* 3. When transferring from Unix to DOS make sure that a LF *+Ex= CuG #%* is correctly translated into a CR/LF. *+Ex= CuG #%* *+Ex= CuG #%* 4. Keep the blank lines at the start of the program. They *+Ex= CuG #%* are important. *+Ex= CuG #%* *+Ex= CuG #%* 5. This text is a comment block in all eight languages. *+Ex= CuG #%* *+Ex= CuG #%* Please mail any comments, corrections or additions to *+Ex= CuG #%* polyglot@ideology.com.au *+Ex= CuG #%* *+Ex= CuG #%*------------------------------------------------------------------*QuZ= CuG #%* *+Ex= CuG #%*!Mx)ExQX5ZZ5SSP5n*5X!)Ex+ExPQXH,B+ExP[-9A-9B(g?(gA'UTTER_XYZZXX!X *+ CuG #(* *( C # */); /*( C # *) program polyglot (output); (*+ C # identification division. C # program-id. polyglot. C # C # data division. C # procedure division. C # C # * ))cleartomark /Bookman-Demi findfont 36 scalefont setfont ( C # * ( C # C # * hello polyglots$ C # main. C # perform C /# * ) 2>_$$; echo "hello polyglots"; rm _$$; exit; C # * ( C # C *0 ) unless print "hello polyglots\n"; __END__ print C stop run. -*, 'hello polyglots' C C print. C display "hello polyglots". ( C */ int i; /* C */ main () { /* C */ i=printf ("hello polyglots\n"); O= &i; return *O; /* C *) (* C *) begin (* C *) writeln ('hello polyglots'); (* C *) (* ) C * ) pop 60 360 ( C * ) pop moveto (hello polyglots) show ( C * ) pop showpage (( C *) end .(* ) C)pop% program polyglot. *){*/} See Polyglot. Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted May 21, 2007 Author Share Posted May 21, 2007 INSANE! "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
metadigital Posted May 22, 2007 Share Posted May 22, 2007 It'd probably work in SnOboL, too. OBSCVRVM PER OBSCVRIVS ET IGNOTVM PER IGNOTIVS OPVS ARTIFICEM PROBAT Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted May 22, 2007 Author Share Posted May 22, 2007 How long you been coding Meta? "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
metadigital Posted May 24, 2007 Share Posted May 24, 2007 Well, I haven't actually programmed a punch-card reader, I have been given instructions ... OBSCVRVM PER OBSCVRIVS ET IGNOTVM PER IGNOTIVS OPVS ARTIFICEM PROBAT Link to comment Share on other sites More sharing options...
@\NightandtheShape/@ Posted May 24, 2007 Author Share Posted May 24, 2007 Well, I haven't actually programmed a punch-card reader, I have been given instructions ... So basically.... A very very very long time LOL "I'm a programmer at a games company... REET GOOD!" - Me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now