# Code Organization

**URL:** <https://discourse.julialang.org/t/code-organization/112314>\
**Category:** New to Julia\
**Tags:** modules, code-organization\
**Created:** [March 29, 2024, 10:57pm UTC](https://discourse.julialang.org/t/code-organization/112314 "2024-03-29T22:57:03Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [April 5, 2024, 1:24am UTC](https://discourse.julialang.org/t/code-organization/112314/21 "2024-04-05T01:24:39Z")

</div>

Julia will route calls to the method with the most specific types. LJ and WS will dispatch to the specific methods I defined earlier. I did not define a specific method for `MorsePotential` so that selects the method with `AbstractPotential`.

You can learn more from the following video on multiple dispatch.

> **[The Unreasonable Effectiveness of Multiple Dispatch | Stefan Karpinski |...](https://www.youtube.com/live/kc9HwsxE1OY?si=WkWTkI64wqKq04Hd)**
>
> If you're familiar with Julia and its ecosystem, you may have noticed something lovely but a bit puzzling: there seems to be an unusually large amount of cod...

[Previous page](https://discourse.julialang.org/t/code-organization/112314.md?page=1)
