Ehsan Ghanbari

Experience, DotNet, Solutions

Ruby is so cool!

I'm interested in to be familiar with other programming languages although my field of activity is Microsoft.Net . I just read about Ruby, it has such an interesting syntax and standard libraries. it's been in most of the open source projects within 10 years and core document is available. some big companies like NASA or Intel use Ruby. 

Ruby is a programming language from Japan , it is A dynamic, open source programming language with a focus on simplicity and productivity. "It has an elegant syntax that is natural to read and easy to write." based on wiki: "It supports multiple programming paradigms, including functional, object-oriented, and imperative.  It also has a dynamic type system and automatic memory management."

I'm hopping to learn more and write about Ruby, some sample code in Ruby:

  1. puts 'Hi!'                  
  2. print 'enter your name:'    
  3. name = gets.chomp      
  4. puts "Hi! #{name}"        


Arrays in Ruby:

  1. a = [4,6,7,5]    
  2. a.length         
  3. a.rotate         
  4. a.sort           
  5. a.sort.reverse
  6. a[0]             
  7. a[3]            
  8. a[4] = 3        
  9. a << 1           
  10. a[10] = 0   
  11. a.length      


About Me

Ehsan Ghanbari

Hi! my name is Ehsan. I'm a developer, passionate technologist, and fan of clean code. I'm interested in enterprise and large-scale applications architecture and design patterns. I spend a lot of time on software architecture. Since 2008, I've been as a developer for different companies and organizations and I've been focusing on Microsoft ecosystem all the time. During the past years, Read More

Post Tags
Pending Blog Posts
using Elmah in MVC4
Using FluentSecurity in MVC
Strategic design
Factory Pattern
time out pattern in ajax
Redis as a cache server
How to use PagedList In MVC
Multiple submit buttons in MVC
Domain driven design VS model driven architecture
What's the DDD-lite?