• Specific problem - What is the best Language?
    8 replies, posted
l'm not a programmer, but want to do something specific for myself and learn programming at the same time. Here is the problem. l get a regular PDF document about 20 pages, which l want to convert into text , edit, analysis and produce statistics. e.g. 10:13 KC 84 1st and 10 I RC RD FB 44 run for gain of 1 yard 10:35 83 2nd and 9 HS LC PD N5 pass defended, incomplete 10:55 83 3rd and 9 HS LC BZ pass complete to TE 89, at gain of 3 yards, and run for gain of 6 yards 11:25 74 1st and 10 I RN RD HB 45 run for gain of 1 yard 11:47 73 2nd and 9 HS LC ZB pass complete to TE 89, at gain of 4 yards, and run for gain of 8 yards 12:15 61 1st and 10 I RC RD FB 44 run powers for gain of 3 yards 12:37 58 2nd and 7 I QO PD N5 pass complete to WR 87, at no gain, and run for gain of 9 yards 13:06 49 1st and 10 I SW RD HB 45 run and forced out of bounds for gain of 2 yards 13:26 47 2nd and 8 HS LC ND pass complete to TE 89, at gain of 4 yards, and run for gain of 6 yards 13:50 37 1st and 10 I RC RD FB 44 run for gain of 2 yards 14:12 35 2nd and 8 HS LC PD N5 pass complete to TE 89, at gain of 4 yards, and run for gain of 8 yards l would greatly appreciate direction on the best programming language for a beginner to learn to solve this problem and where to get started in terms of the best resources to learn the language.
Pretty sure any programming language would be able to do this, and none are really better or worse. I'd say python because codecadamy covers something pretty similar to this in one of it's off-track courses. [url]http://www.codecademy.com/tracks/python[/url] here to learn basics [url]http://www.codecademy.com/courses/data-management-for-scientists[/url] and this should help you understand how to parse data, although your data is a bit different you should be able to apply it if you're creative.
I'd recommend you C. It's small, easy to learn if you have some knowledge of how computers work, and you will learn other languages easier, because most of popular languages are based on C (C++, JavaScript, C#, Java, PHP). It also doesn't have strict typing, so you won't have to mess with casts and conversions very often.
SiPlus. :| Anyways, if you're on Unix I'd use shell scripts for this. They're a little messy but they're FANTASTIC for doing what you want. If you're on Windows, well, I'd try Python.
ty ty ty this has been very helpful l appreciate you taking the time to give me some direction
Python is certainly quite easy to get a hang of and is quite convenient for tasks like this, so I wouldn't think twice. My second choice would be Lua or Java.
Objectively? The best language is probably PHP.
[QUOTE=DarkCybo7;39229069]Objectively? The best language is probably PHP.[/QUOTE] Not sure if this is intentionally hilarious, but it's definitely hilarious.
awk would do great here
Sorry, you need to Log In to post a reply to this thread.