Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 11th, 2005, 6:06 AM   #41
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 5 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
iksnt perl heavily cgi, and cgi is slower :/ although i think pyton is cgi i dont know someone kill me.
Berto is offline   Reply With Quote
Old Apr 11th, 2005, 7:40 AM   #42
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Perl has to be archaic, because I learned Perl in college but not Python..., learned it on my own -after- Perl
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 11th, 2005, 2:09 PM   #43
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Perl's not *archaic*, but it was basically finalized with not enough features, and now has gone through numerous rewrites or additions that make it overall sloppy and obfuscated.

To get closer to the main subject, the thing about C++ is that there is literally almost nothing you can't do in C++. Many other languages fall short of C++'s overall number and quality of functions. However, it is a very general language, and other languages can outperform it in certain applications.

C++ is NOT the best language to start programming with; you don't really "move on" from C++ to another language. There is no commonly used language that is as useful AND as difficult to master as C++. Once you learn it, you're able to do anything.

The best language to start with is an interpreted one. An interpreted language will give you immediate feedback and are usually higher-level, so they go easy on you. I personally just tried learning python. Not that I was unable, but after learning the Object-Oriented style of C++, I found the strictly functional syntax of Python to be far too terse. I'm sure if you started with it, though, its idioms would become second nature to you.

If you're truly just beginning to program, learn Perl, Python, or PHP first... then DON'T be afraid to move onto a lower-level, compiled language (C++, Delphi, C) once you get the hang of program writing. Overall, if you know either C or C++, you'll have not only the ability to write any program, but you will be considerably more desired by companies hiring programmers to work on non-legacy code.

If you get C++, the .NET platform, Java, and PHP all under your belt, you should have no problem solving any task properly.

Last edited by iignotus; Apr 11th, 2005 at 2:11 PM. Reason: minor spelling changes
iignotus is offline   Reply With Quote
Old Apr 11th, 2005, 3:28 PM   #44
brkstf
Programmer
 
brkstf's Avatar
 
Join Date: Feb 2005
Posts: 89
Rep Power: 4 brkstf is on a distinguished road
i love perl, for some things. here's one of them:

#!/usr/bin/perl
use LWP:imple;
getstore ($source, $destination);

voila! you snatched a web page in three lines.

also, it's capacity for ugly code is truly astonishing. hence the saying: "well-written perl is indistinguishable from line noise."

for people thinking about getting into a web language, perl is great because it is extremely good at parsing and tweaking text files. the RegExps you can make are very powerful and quick (yet impossible to understand after you've gotten them to work).

i did quite a bit of studying on php, but i was always frustrated by its lack of an equivalent to perl's "print qq" command. i HATE escaping inner and outer quotes.
brkstf is offline   Reply With Quote
Old Apr 11th, 2005, 3:41 PM   #45
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
look up addslashes(), also PHP has perl RegExp....

$google_source = readfile("http://www.google.com");

In PHP i snatched a website in 1 line.

PHP is the #1 used web-programming language for a reason, it's online documentation at www.php.net has perl beat. In PHP you have to make an attempt to make ugly code... it's syntax is simple and efficent.
__________________

tempest is offline   Reply With Quote
Old Apr 11th, 2005, 3:49 PM   #46
brkstf
Programmer
 
brkstf's Avatar
 
Join Date: Feb 2005
Posts: 89
Rep Power: 4 brkstf is on a distinguished road
one other thing:

no one ever made a php interpreter for MacOS.
That's probably the main reason I never got into it. Maybe now that I'm getting an OS X box, i might re-enter the php world. i have a python interpreter for MacOS, but i'll be damned if I can get it to do anything. even the sample code won't run.

thanks for the heads-up on addslashes().
brkstf is offline   Reply With Quote
Old Apr 11th, 2005, 5:27 PM   #47
massive-war
Hobbyist Programmer
 
massive-war's Avatar
 
Join Date: Mar 2005
Location: Illinois--> My room
Posts: 117
Rep Power: 0 massive-war is an unknown quantity at this point
c++ isn't that hard. Start out with it, trust me, you'll save yourself months of wasted time on other languages that can't keep up to par with c++. There's just no comparison.

2 quick things:

1) the main reason to NOT start iwth c++ is because it has a lot more features than most other languages, and it's somewhat harder to implement. Starting smaller, and then coming to c++ is to build good programming skills on building programs, not the syntax itself--which in my opinion is a waste of time

2)I have so many friends that started off with basic, then tried to move up to c++. Now matter what, when you start programming you're going to have to think, no matter what language you choose. After they had a hard time doing stuff with basic, then realized that c++ was harder, they just dropped it right there. So, knowing proramming will be "hard" to begin with, why not start out strong and realize that you don't have to move up, and this is the language for YOU.
__________________
Support Our Troops
massive-war is offline   Reply With Quote
Old Apr 11th, 2005, 7:44 PM   #48
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
Talking

the bottom line is that the fundamental principles of programming are pretty much all the same...how you accomplish that is where the language difference come in. i started learning html, then javascript, then Java, and right before i was going to learn GUI programming in Java, i dropped it in favor of C++ and have been very happy with my decision. there are a lot of scary things in C++ (pointers, and references, and multiple-inheritence, oh my!), but you can avoid them until you NEED them. it's more important to understand how to do something or how something works than memorizing a bunch of damn syntax and pre-existing libraries you can look up in a book whenever you want. if you don't know HOW to do something, you'll never figure out how to use the appropriate reference materials to accomplish the task in the first place. ahhhh screw it...C++ pwnz a11 !!!!! :-)
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 12th, 2005, 5:00 PM   #49
shadowhunter
Programmer
 
shadowhunter's Avatar
 
Join Date: Dec 2004
Location: Scotland
Posts: 66
Rep Power: 4 shadowhunter is on a distinguished road
Thumbs up Difficulty of C++

In my own opinion I do not think that the question should be how hard is C++? but maybe you should be asking how much effort are you willing to put into learning C++.

Although I never worked with php or C# I do have several different programming things going on right now. As in my personal info I am a uni student with very basic knowledge of C++. I did some Visual Basic in college and am still using it along with C++ and Assembly Language programming on my uni course.

I needed to do a few programs for my uni modules and needed some advice so ended up joining this forum which I have found very helpful as (seen in my posts) I have been able to get my uni work done thanks to the numerous members in the forum.

If you are willing to put the work in then I am sure if you need some help you can most likely find it here. All the best,
shadowhunter.
shadowhunter is offline   Reply With Quote
Old Apr 12th, 2005, 10:40 PM   #50
massive-war
Hobbyist Programmer
 
massive-war's Avatar
 
Join Date: Mar 2005
Location: Illinois--> My room
Posts: 117
Rep Power: 0 massive-war is an unknown quantity at this point
I tought myself C++

that means no teacher, and it was my first programming language

so i had vitrually no help, no guidelilnes, just my books and articles,

and I turned out just fine
__________________
Support Our Troops
massive-war is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC