Sign up or Sign in | Share
 
ClearMyBench
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Ruby basics (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Ruby basics
#4331
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Ruby is seen as a flexible language, since it allows its users to freely alter its parts.

Essential parts of Ruby can be removed or redefined, at will.

Existing parts can be added upon. Ruby tries not to restrict the coder
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4332
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Ruby’s block are also seen as a source of great flexibility.

A programmer can attach a closure to any method, describing how that method should act
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4333
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
The closure is called a block and has become one of the most popular features for newcomers to Ruby from other imperative languages like PHP or Visual Basic.

There are many other methods in Ruby which help the developer to write their own block to fill in the details of what that method should do.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4334
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Unlike many object-oriented languages, Ruby features single inheritance only, on purpose.

But Ruby knows the concept of modules .

Modules are collections of methods
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4335
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Classes can mixin a module and receive all its methods for free.

So for developers this is a much clearer way than multiple inheritance, which is complex and can be too restrictive.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4336
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Generally Ruby often uses very limited punctuation and usually prefers English keywords, some punctuation is used to decorate Ruby
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
logo footer   Copyright 2009 - 2013 HotRecruiter.Com - All Rights Reserved