Omgili - forum search, search forums  
  

Discussions about use a monkey

Displaying 1 - 10 out of 59,706 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I am curious about the usage of the feature known as open classes or monkey-patching in languages like e.g. Ruby, Python, Groovy etc. This feature allows you to make modifications (like adding or replacing methods) to existing classes or objects at runtime...
Started by on , 4 posts by 4 people.  
An example of its use on the Java platform (since you mentioned Groovy) is load-time weaving with something to the developer can be Spring....
Specifically, relies heavily on extension methods monkey-patched onto the IEnumerable interface.
This is now quite old – but it keeps re-appearing every once in a while on main stream TV. A monkey is shown a display screen with single digit numbers at various locations on the screen, the monkey touches each number in ascending order and is rewarded...
Started by on , 19 posts by 1 people.  
As to whether the monkey as any knowledge of counting, I too would doubt it, but then I doubt also= and the monkey could correctly press....
If the numbers are dispayed in a new, random sequence each time and the monkey remembers where.
Is it possible to implement monkey patching in C++? Or any other similar approach to that? Thanks.
Started by on , 6 posts by 6 people.  
Considering the "guerilla third-party library use" aspect of monkey-patching, C++As monkey patching refers to dynamically changing code, I can't imagine how this could private public prior to header inclusion....
Allocation mechanisms.
Ask your Facebook Friends
Is there a tool for monkey testing for iPhone? Like in the simulator.
Started by on , 3 posts by 3 people.  
You should be able to use a general scripting tool like QuickKeys to issue arbitrary user input.
I want to load the flex framework as an RSL (SWZ, using player caching) but I need to monkey patch a couple of bug fixes in the framework. A number of forums suggest this is not possible. Has anyone gotten this to work?
Started by on , 6 posts by 6 people.  
Create....
If your monkey-patched classes are part understood it to work.
This may be useful if you have multiple flex apps that all use team tried this about a month ago and said he had no problems.
Advantage of the player caching.
Answer Snippets (Read the full thread at reddit):
You must be a monkey....
Ftfy :) Soon That forearm is shaped almost exactly like one of mine .
In Harry Harlow's famous experiments on baby, this monkey has his own ape...
Of this monkey and the doll is being used as a surrogate.
I'm monkey patching a package using a technique given at the beginning of "How can I monkey-patch an instance method in Perl?" . The problem that I'm running into is that the original subroutine used a package-level my variable which the patched subroutine...
Started by on , 4 posts by 4 people.  
Lexicals....
Evil, but it works.
You can obtain lexicals with the PadWalker module.
A lexical variable is by definition limited to its lexical scope, in other words, the block it is in .
The thing you're mistaken in is that they are not package scoped .
According to Wikipedia, a monkey patch is: a way to extend or modify the runtime code of dynamic languages [...] without altering the original source code. The following statement from the same entry confused me: In Ruby, the term monkey patch was misunderstood...
Started by on , 7 posts by 7 people.  
This is monkey patching: class Float def self.times(&block) self.to_i.times { |i| yield The short answer is that there is no "exact" meaning, because it's a novel term, and different folks use insist that it only applies to "runtime" code....
This is more general question then language-specific, altho I bumped into this problem while playing with python ncurses module. I needed to display locale characters and have them recognized as characters, so I just quickly monkey-patched few functions...
Started by on , 5 posts by 5 people.  
Use to consider whether a class can be ....
Each monkey patch should be an exception and marked (for example with a //HACK such as OO (inheritance and composite classes come to mind) are designed to make these non-issues.
I would say don't.
I am still new to Ruby and basically just writing my first micro-program after finishing Cooper's book. I was pointed to the direction of avoiding monkey patching but the problem is I don't know what are the alternatives to achieve the same behavior. ...
Started by on , 5 posts by 5 people.  
There are ways want to be careful of monkey patching in big projects or when you have dependencies, because you can as a symbol, followed by any arguments....
Any other way of doing this would just be a more awkward syntax for monkey patching.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • TheCuteList.com - The 24-7 competition for the cutest things on the Internet
  • Science Questions and Answers in The AnswerBank
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost