Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If you only have a hammer...or [closed]

I need to download some csv files over http from the internet, parse it and convert it to a more useful fomat. Eventually a C++ program will consume the data. A few years ago, I would be pulling out my Perl books and start writing Perl scripts to do the downloading and parsing. But now with Boost and Qt I can do the download, parsing, and throw in a GUI front end in C++ with very little effort. Last time I wrote Perl/Python was about 6 months ago. It will probably take me longer to do it in Perl/Python and my Perl/Python code will be crap. If the only tool I have is a hammer, everything looks like a nail? Or time has changed and C++ can be productive in area traditionally dominated by script languages such as Perl or Python?

like image 228
Shing Yip Avatar asked Dec 08 '22 07:12

Shing Yip


2 Answers

What does it matter what other people might usually expect the solution to be? If you can get the work done better and faster in C++, do it in C++, end of story.

like image 121
Crashworks Avatar answered Dec 29 '22 00:12

Crashworks


For your example it seems that you will be more productive and able to solve your problem more easily using C++ as that is what you know.

But generally I would expect that more people would use python/perl for this kind of task.

like image 34
Mark Avatar answered Dec 28 '22 22:12

Mark