The Artima Developer Community
Sponsored Link

Agile Buzz Forum
MonkeyPatching with Care

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
MonkeyPatching with Care Posted: Dec 17, 2008 9:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: MonkeyPatching with Care
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

This post explains why "monkeypatching" has such a bad reputation, and why so many people avoid it. If you patch system code in an uncontrolled fashion, you can get into trouble down the line. What I do with this server is something like this:

  • Test my fix on my local (office) network
  • Save a new version of the affected package, and export a patch
  • Upload both the patch and the new version of the package to the server
  • Apply the patch live, and put the new package into the auto-load directory
  • Delete the patch

The last step is key, I think. You don't want to get into the practice of loading in a series of patches, because that is the road to hell - you never really feel like you know what's running. The way I run the server, anytime it needs a restart, I don't have any patches loading - just known versions of code that I've got in my source code repository. So I do monkey patching, but only with the live server. When it starts clean, it starts from versioned code.

Now Listening to: Shadow Of A Lonely Man by The Alan Parsons Project from: Pyramid

Technorati Tags: , , ,

Read: MonkeyPatching with Care

Topic: More WiFi in the Air Previous Topic   Next Topic Topic: What is Beta?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use