I have been writing some CGI scripts in C++, and I was wondering if anyone else has done the same? I have built a pretty decent sized library of functions I use a lot for formatting form inputs and such. The reason I chose C++ is because I'm so familiar with it. I was wondering if I should do myself a favor and learn a language a little more popular for CGI scripting. From what I know so far, perl or bash scripts wouldn't be as portable and reusable as c++ code would be. What is everyone's opinion on using C++ vs other languages like Perl or PHP
nanodano 0 Junior Poster in Training
Recommended Answers
Jump to PostI've done enough CGI with C and C++ to realize that they're very poor languages for it. Perl, or any language with powerful string handling capabilities, is much better suited to CGI.
Jump to Post>c++ has strong string handling capabilities.
Bwahahahaha!
Jump to Post>What so funny _jsw?
C++'s string handling capabilities are horrible. Not the worst, that's a spot reserved for C, but pretty low on the totem pole. Anyone who says that C++ is good at text manipulation clearly hasn't don't much of it. That's what's so funny. :)
Jump to Post>I admit the perl regex library out-do c++ style strings...
Regex isn't a library, it's built into the language.>c++ style strings still support all these
Primitive operations that I would expect from any string type. That's not exactly an argument that C++ strings are powerful.>there is …
All 14 Replies
Narue 5,707 Bad Cop Team Colleague

iamthwee
Narue 5,707 Bad Cop Team Colleague

iamthwee
Narue 5,707 Bad Cop Team Colleague

iamthwee
Narue 5,707 Bad Cop Team Colleague

iamthwee
Rashakil Fol 978 Super Senior Demiposter Team Colleague

iamthwee
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Rashakil Fol 978 Super Senior Demiposter Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Rashakil Fol 978 Super Senior Demiposter Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.