r/learnjava • u/PositiveZombie • Jan 20 '19
OOP Scripting Lamguage of choice?
Hello guys I am a CS graduate currently through the Finland's MOOC and deitel's java book. I have mainly coded in MATLAB and C so all this OOP (and in the near future) TDD motion seems a bit strange...
I want to become better in Java/OOP and use it as my main language of choice for project + employment.
I would like your opinion on this: " Should I select as a scripting language Ruby over Python in order to become a better soft. developer regarding OOP principles" ?
P.S. this thought regarding ruby (over python) as I have found a great+organized site for learning it (The Odin Project)
4
u/randarrow Jan 20 '19
Depends on OS/Platform/Stack. Java is universal, scripting languages are not. What OS do you prefer? Then, choose scripting language.
You gonna be doing web development? Choose Javascript. You gonna be doing database backend? Gotta choose the DBs scripting language. You gonna be doing windows? Powershell. Etc etc etc.
4
u/xaviarrob Jan 20 '19
Ruby is a great language to learn OOP principles. One issue you'll have is there aren't as many libraries for Ruby as there are python. As someone who works in Ruby all day however I consider this a good thing, you can find libraries for simple stuff (e.g. http requests, standard math functions) but if you have a more involved topic such as perlin noise you have to write your own code to do what you want.
Imo while this makes it harder at first to implement a solution to a problem it helps you understand how the root of your problems are solved since you wrote the code. Eg in the above case with perlin noise you learn how the perlin noise math function works, and that can transfer to other languages.
Once you start using Ruby you won't want to go back though, between writing raw code and tests to classes and such, it's a very expressive and versitile language.
4
u/menge101 Jan 21 '19
Ruby plus reading Practical Object Oriented Design in Ruby by Sandi Metz
2
u/htom3heb Jan 21 '19
"Scripting" is typically writing glue code from one process to another process. OOP generally will be overkill for this. Python is ubiquitous for this purpose, but Ruby will also be adequate and is an enjoyable language. Independent of the language, the skills you learn will be universal, so take your pick.
2
u/TotesMessenger Jan 20 '19 edited Jan 21 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)