On Mar 11, 2011, at 4:06 PM, Vincent P wrote: > Hi, > How can I hide parts of Ruby source code from another programmer > working on the same project?
Ideally, don't. It's a lousy way of working. Understand the business drivers, but it's hard enough to work with developers that you trust. That said, if you really have to, consider a web services based application. You write back end web services but just provide developer with stubs they can call for doing the UI. Or create separate silo'd apps for different parts of the problem domain and only outsource the commodity ones. You could also ask the offshore dev to write a gem, writing them some automated functional tests it needs to pass so you can both agree on "done". You could also write gems and get the dev to write the app around them. Then you just need to create a "stub" version of the gem that just responds in a static manner to calls so you're hiding your business logic but providing something they can use to test the interface. You could also get them to create a project and then you could just pull elements from it and integrate them into your *real* project. Understand that any of these approaches will have an overhead on your side - I'd suggest re-evaluating working with someone you don't trust as the overhead and verification may be greater than just working with someone you *can* trust (whether that means onshore or just someone offshore you have a better relationship with). Best Wishes, Peter > I plan to outsource development of parts > of my RoR web site to an overseas programmer. For example, I would > like him to work on only certain views, controllers or models, or > certain features such as the ability to login using a Facebook > account. I don't want him to have all the source code of the web site > because I don't want him to be able to clone the entire site easily > and operate it overseas. I am in the U.S. I am afraid that a non- > disclosure or non-compete agreement with him will be difficult and > expensive to enforce outside the U.S. under a developing country's > legal system. > > Ideally, I would like my overseas programmer to be able to check in > his code into Github and test his code against the whole web site > while not being able to see the source code of other parts of the web > site. > > Thanks. > > Vincent. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

