No curso do meu trabalho temos de acompanhar a onda da programação e o hot topic do momento é a linguagem Ruby.
Basicamente é mais uma linguagem OOP (objecto oriented programming) que combina a syntax do PERL (daí se chamar Ruby pois é uma pedra preciosa mais valiosa que as pérolas ;-))
Mas pq usar Ruby qt temos Java, C++, etc...?
A questão é que o Ruby é extremamente simples e adaptável pois suporta bastantes paradigmas de programaão, nomeadamente o funcional (scripting), object oriented, imperativo e reflectivo. E acima de tudo é dinâmico e suporta gestão de memória automática.
O que me convenceu a começar a aprender esta linguagem foi a afirmação do seu criador: Yukihiro Matsumoto
"Often people, especially computer engineers, focus on the machines. They think, "By doing this, the machine will run faster. By doing this, the machine will run more effectively. By doing this, the machine will something something something." They are focusing on machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. They are the slaves."
Alguns detalhes :
Features
- Object-oriented, "everything is an object"
- Six levels of variable scope: global, class, class instance, instance, local, and block
- Exception handling
- Iterators and closures (based on passing blocks of code)
- Native, Perl-like regular expressions at the language level
- Operator overloading
- Automatic garbage collection
- Highly portable
- Cooperative multi-threading on all platforms using green threads
- DLL/Shared library dynamic loading on most platforms
- Introspection, reflection and metaprogramming
- Large standard library
- Supports dependency injection
- Supports object runtime alteration[12]
- Continuations and generators
- Methods can be called without parentheses, making Ruby popular for implementing Domain Specific Languages
Versions of Ruby prior to 1.9 lack full support for Unicode, though they have partial support for UTF-8.
Mas podem pesquisar mais sobre Ruby começando pelo artigo da Wikipedia...A aplicação mais usada por mim é para interface com bases de dados e por isso utilizamos muito o RoR (Ruby on Rails)
Abração!
I.

No comments:
Post a Comment