# When to define a \`module\`

**URL:** <https://discourse.julialang.org/t/when-to-define-a-module/120935>\
**Category:** General Usage\
**Tags:** question, package, modules\
**Created:** [October 4, 2024, 5:51pm UTC](https://discourse.julialang.org/t/when-to-define-a-module/120935 "2024-10-04T17:51:34Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [October 6, 2024, 4:52pm UTC](https://discourse.julialang.org/t/when-to-define-a-module/120935/21 "2024-10-06T16:52:41Z")

</div>

Example?

---

<div class="post-metadata">

**Author:** ![GeorgeGkountouras](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GeorgeGkountouras](https://discourse.julialang.org/u/GeorgeGkountouras)\
**Post date:** [October 6, 2024, 7:56pm UTC](https://discourse.julialang.org/t/when-to-define-a-module/120935/22 "2024-10-06T19:56:51Z")

</div>

You can also `dev --local RegisteredPackage` to bring it to the environment folder. Very helpful if you need to `dev` the same package twice.

---

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [October 6, 2024, 11:20pm UTC](https://discourse.julialang.org/t/when-to-define-a-module/120935/23 "2024-10-06T23:20:53Z")

</div>

You’re rocking my world with this pro tip!

[Previous page](https://discourse.julialang.org/t/when-to-define-a-module/120935.md?page=1)
