Which language to pursue?
Ive lately asked a lot of questions while trying to learn how to use Linux and have been given great options but it is overwhelming trying to learn awk, sed, bash, and perl. I do not want to burn out on coding. My main goal directive is to learn a language and apply it to my job and stay frequent in it. I did take a few classes and really learned java and vb that I thought about going back to just java. However, I've seen great potential with Linux Id like to learn more. So that being said what suggestion of language should I mainly focus on??
I do deal with xml files all day Would like to build a web crawler one day for a personal project I like modify images names Move, rename and modify all other file types is fun |
Python:
- it can do system administration - it has lots of libraries for web (eg. frameworks, web-scraping, etc) stuff. - it has good xml support - it has numerous image libraries - it is commonly used (google, dropbox - Yes, I read yesterday's article about Guido's move:)) |
awk, Bash and sed are more usual in system administration, for anything web related people tend to use one of the scripting languages (Python, Perl, Ruby), they fit much better to this purpose. Python is very simple to learn, with an easy syntax, while Perl can look somewhat weird. I do not have experience with Ruby, so I can't comment on that. All three are very extendable with literally hundreds of ready made modules.
Java is usually used for server side programming of bigger applications and sometimes on the desktop. |
Quote:
|
If you learn Perl you don't need awk. I love Perl for the culture behind it http://www.perlmonks.org/ and http://www.cpan.org/
Perl isn't as easy to learn as Python and Ruby. But you can learn Perl for years and will still learn new things. Perl can be very expressive, it is very similar to human languages (Larry Wall, the inventor of Perl is a Linguist). Perl has a great community, I'd recommend to take a look at the newsgroup comp.lang.perl.misc Markus |
Quote:
As I wrote many times in this forum, from the point of view of language features Python is slowly catching up with Perl, but still lack lexical scoping, for example. Also, new Python releases break code more frequently than new Perl ones. http://qa.perl.org/cpan-testers/ . |
Quote:
Almost anything you can do in Java you can do better in Python. |
To the OP:
As you can see, people tend to have different language preferences. The fact remains that you can't go wrong with either of the mentioned languages (be it Python or Perl). Just play with them and you'll decide for yourself. |
You need another poll option: all of the above :)
|
+1 for Ruby
|
To the OP - in order to kind of stay in Java world, but not at all with Java, but with JVM, consider Scala ( http://www.scala-lang.org/ ), Clojure ( https://en.wikipedia.org/wiki/Clojure ).
But JVM in general is not very good for functional languages - was designed with different goals in mind. |
Quote:
Otherwise one can do functional programming with Perl Markus |
Quote:
|
Quote:
Markus |
All times are GMT -5. The time now is 02:37 AM. |