# Avoiding copy/pasting code in app repos

**URL:** <https://discourse.openondemand.org/t/avoiding-copy-pasting-code-in-app-repos/2012>\
**Category:** Get Help\
**Tags:** question\
**Created:** [April 14, 2022, 5:00pm UTC](https://discourse.openondemand.org/t/avoiding-copy-pasting-code-in-app-repos/2012 "2022-04-14T17:00:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonRahaman](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/ronrahaman/32/1031_2.png) [@RonRahaman](https://discourse.openondemand.org/u/RonRahaman)\
**Post date:** [April 14, 2022, 5:00pm UTC](https://discourse.openondemand.org/t/avoiding-copy-pasting-code-in-app-repos/2012/1 "2022-04-14T17:00:36Z")

</div>

Hi all,

Does anyone have advice about avoiding copy/pasting the code in our different app repos?

Like other sites, we have separate repos for the different apps (`bc_jupyter`, `bc_rstudio`, etc.). But there’s a whole lot of code in common between them, and updating that common code in the separate repos is pretty tedious. For example, our `form.js` is identical in all our repos, and most of the `form.js.erb` is the same.

Many thanks,  
Ron

* * *

Ron Rahaman  
Research Scientist II  
Partnership for an Advanced Computing Environment (PACE)  
Georgia Institute of Technology

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [April 28, 2022, 7:12pm UTC](https://discourse.openondemand.org/t/avoiding-copy-pasting-code-in-app-repos/2012/2 "2022-04-28T19:12:07Z")

</div>

Yes this is something we’re working on autopopulating thing in the from from what we can determine from the system.

And we added dynamic javascript in OnDemand itself in 2.0. Here are the docs for the same:  
[https://osc.github.io/ood-documentation/develop/how-tos/app-development/interactive/dynamic-form-widgets.html](https://osc.github.io/ood-documentation/develop/how-tos/app-development/interactive/dynamic-form-widgets.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [October 25, 2022, 7:12pm UTC](https://discourse.openondemand.org/t/avoiding-copy-pasting-code-in-app-repos/2012/3 "2022-10-25T19:12:44Z")

</div>

Closed on October 25, 2022, 7:12pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
