Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
how do you know which class pars belong to?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Robert Klemme, post: 4467002"] Well, types are not that important in Ruby. When we talk about "Duck Typing" then we mean, that we pass some value and if it doesn't respond to the messages that the method wants to send them we'll see that pretty quickly. This works surprisingly good (surprising for people with a static typing languages background). That's where documentation comes into play. :-) That's one option. The other is to use tests extensively. If test coverage is good (i.e. near 100%) then you will immediately notice all places where this method is called. Or you use a default value for the added parameter(s). Kind regards robert [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
how do you know which class pars belong to?
Top