Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 25th, 2007, 02:33 PM
andym1981 andym1981 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 1 andym1981 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 8 sec
Reputation Power: 0
Question General - What Language???

Hi.

I'm required to write an application to filter, sort, categorize and generate a list of keywords. This is for PPC advertising. The list could be as large as 100,000 keywords.

There will be limited database interaction required, Just lots and lots of string searching and string comparisons.

What would language would be best suited for this situation? I have considered perl as I understand it is good for string comparisons. Or possibly Java?

Would a desktop application, possibly written in C++ be more suited to this? and what would be fastest?

I'm considering knocking up a temporary solution in PHP, only because that is my strength but I understand its not really suitable.

Please help,

thanks,

Andrew

Reply With Quote
  #2  
Old June 25th, 2007, 05:16 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 27 m 47 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Unless an actual interface is needed for this, a small C, Java, or Python program would probably be best.
One of the things I would look for here would be a compiled language vs an interpreted one only because of dealing with the size of the data that you could be dealing with, if written correctly a compiled language would outperform the interpreted one.

Just my opinion.

Reply With Quote
  #3  
Old June 25th, 2007, 05:43 PM
Oler1s Oler1s is online now
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2006
Posts: 1,564 Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Oler1s User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 12 h 38 m 27 sec
Reputation Power: 486
What OS/platform are you on? But that aside, if you were to mention string manipulation, perl/sed/awk would probably come out on top. There reputation is not undeserved; those three languages are extremely well suited for easily expressed string comparison and manipulation.

I use Python for my scripts, and Ruby is another contender. Both are high level languages, so they make expressing abstract logic easy, and have very good string manipulation capabilities. They also happen to be general programming languages like Perl. I think you should investigate Python and Ruby, and Perl. The first two are pretty easy to pickup.

Java isn't ideal for string manipulation. It's better, than say, PHP, and definitely C.

C and C++ are definitely horrible when it comes to string manipulation. C is definitely the worst. No abstraction at all. C++ is better with the STL. But not that much. Performance? Sure. Simply amazing. Ease in expressing your logic? Not at all.
__________________
C/C++: Books, C FAQ, C++ FAQ, C/C++ Reference.
Python: Website, Beautiful Soup.

Reply With Quote
  #4  
Old June 26th, 2007, 06:34 AM
salem's Avatar
salem salem is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2005
Posts: 1,645 salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 1 Month 2 Days 21 h 34 m 21 sec
Reputation Power: 276
> I'm required to write an application to filter, sort, categorize and generate a list of keywords.
How often do you need to do this?
- once a week (or less frequent)
- once an hour (or more frequent)

If it's on the infrequent side, then there should be no problem running it as an overnight job. Whether it takes one hour or three hours won't really matter.

> What would language would be best suited for this situation?
Start with the languages you know. Unless you're willing to get someone more specialist in to do the work, the time it would take you to become competent (to create large efficient programs) in any other language has to be measured in months. Can the collective organisation afford to wait that long?

> I'm considering knocking up a temporary solution in PHP, only because that is my strength
Seems like a good idea to me. At least you'll have something to measure at the end of it. Plus you'll have something which gets the job done even if it is a little slow (maybe the performance will be OK, or at least tolerable).

Plus, since you know the language, you'll be able to react much quicker to any requirement changes.

I'm sure PHP has a whole bag of tricks which can be employed to make the code faster if necessary.

Should you decide to re-implement it, at least you'll have a concrete implementation to compare with, and test against.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > General - What Language???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway