# \#best-practices

**URL:** https://discourse.julialang.org/tag/best-practices/1019.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Best practices for listing organizations (logos, users, contributors) on JuliaHealth site?](https://discourse.julialang.org/t/best-practices-for-listing-organizations-logos-users-contributors-on-juliahealth-site/136535)

<div class="topic-metadata">

**Author:** [@kosuri-indu](https://discourse.julialang.org/u/kosuri-indu)\
**Replies:** 0\
**Last updated:** [April 3, 2026, 5:57am UTC](https://discourse.julialang.org/t/best-practices-for-listing-organizations-logos-users-contributors-on-juliahealth-site/136535 "2026-04-03T05:57:37Z")

</div>

Hello everyone! :waving\_hand: I am actually working on adding a section to the JuliaHealth website to highlight organizations using or contributing to the ecosystem (e.g., researchers, users, developers). This is loose…

---

## [How to properly nest parametrically typed structs while using @kwdef](https://discourse.julialang.org/t/how-to-properly-nest-parametrically-typed-structs-while-using-kwdef/131036)

<div class="topic-metadata">

**Author:** [@askprash](https://discourse.julialang.org/u/askprash)\
**Replies:** 0\
**Last updated:** [July 24, 2025, 11:29pm UTC](https://discourse.julialang.org/t/how-to-properly-nest-parametrically-typed-structs-while-using-kwdef/131036 "2025-07-24T23:29:59Z")

</div>

How to use @kwdef with parametric structs and default constructors? I’m trying to understand how to best use @kwdef with parametric structs in Julia, particularly when I want to define some default constructors and have …

---

## [Ask user to provide points coordinates as two vectors or as a single vector of tuples?](https://discourse.julialang.org/t/ask-user-to-provide-points-coordinates-as-two-vectors-or-as-a-single-vector-of-tuples/117717)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 10\
**Last updated:** [August 2, 2024, 9:21pm UTC](https://discourse.julialang.org/t/ask-user-to-provide-points-coordinates-as-two-vectors-or-as-a-single-vector-of-tuples/117717 "2024-08-02T21:21:42Z")

</div>

When asking the user to provide coordinates of plan points for my package RingStarProblems.jl I initially thought the following was best: xycoordinates = tuple.(1:10, rand(1:10, 10)) somefunction(xycoordinates) However…

---

## [ModelingToolkit.jl and type-based equation deciding: best practices?](https://discourse.julialang.org/t/modelingtoolkit-jl-and-type-based-equation-deciding-best-practices/107491)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [January 12, 2024, 11:13am UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-and-type-based-equation-deciding-best-practices/107491 "2024-01-12T11:13:33Z")

</div>

What do people recommend for ModelingToolkit.jl with variable equations that change depending on some input “type” specification? By that I mean that I have some sort of physical process that has a couple of different wa…

---

## [Anonymous function/comprehension coding](https://discourse.julialang.org/t/anonymous-function-comprehension-coding/107775)

<div class="topic-metadata">

**Author:** [@SergeantMike](https://discourse.julialang.org/u/SergeantMike)\
**Replies:** 10\
**Last updated:** [December 19, 2023, 11:14am UTC](https://discourse.julialang.org/t/anonymous-function-comprehension-coding/107775 "2023-12-19T11:14:56Z")

</div>

Having a difficult time wrapping my head around Anonymous function and Comprehensions coding, not an easy thing for someone who thinks in ecological terms. What I am doing is doing a life-table calculation for the propo…

---

## [Best practices for defining inner constructors for parametric types](https://discourse.julialang.org/t/best-practices-for-defining-inner-constructors-for-parametric-types/106494)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 3\
**Last updated:** [November 20, 2023, 11:31pm UTC](https://discourse.julialang.org/t/best-practices-for-defining-inner-constructors-for-parametric-types/106494 "2023-11-20T23:31:57Z")

</div>

In much of my development, I have parametric types that need inner constructors to be defined with some validation code: struct MyType{T\<:Number} a::T b::T # Inner constructor goes here. end However, I’m no…

---

## [ANN: COPIERTemplate.jl](https://discourse.julialang.org/t/ann-copiertemplate-jl/104412)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 0\
**Last updated:** [September 29, 2023, 8:03pm UTC](https://discourse.julialang.org/t/ann-copiertemplate-jl/104412 "2023-09-29T20:03:06Z")

</div>

I am happy to announce COPIERTemplate.jl A template using copier, a python package that renders project templates; and A Julia package created with said template, wrapping the copier Python package. I chose copier bec…

---

## [Implement two variants of a simulation which works with the same objects](https://discourse.julialang.org/t/implement-two-variants-of-a-simulation-which-works-with-the-same-objects/103321)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 2\
**Last updated:** [August 29, 2023, 9:17am UTC](https://discourse.julialang.org/t/implement-two-variants-of-a-simulation-which-works-with-the-same-objects/103321 "2023-08-29T09:17:03Z")

</div>

I want to simulate two variants of a process that involves the same objects (e.g. a stochastic process on the unit interval \[0,1) or on the circle \\mathbb R/\\mathbb Z). For the first variant, I’ve grouped the objects de…

---

## [Best practice for not requiring users to load package for package extensions?](https://discourse.julialang.org/t/best-practice-for-not-requiring-users-to-load-package-for-package-extensions/102316)

<div class="topic-metadata">

**Author:** [@M-PERSIC](https://discourse.julialang.org/u/M-PERSIC)\
**Replies:** 3\
**Last updated:** [August 4, 2023, 3:33pm UTC](https://discourse.julialang.org/t/best-practice-for-not-requiring-users-to-load-package-for-package-extensions/102316 "2023-08-04T15:33:07Z")

</div>

I am looking to make loading package extensions transparent to the user of a package, meaning they would not have to manually include the conditional dependency to their environment. For example, if the user calls a func…

---

## [Good coding practices: How to cluster many variables in function argument](https://discourse.julialang.org/t/good-coding-practices-how-to-cluster-many-variables-in-function-argument/92855)

<div class="topic-metadata">

**Author:** [@physh](https://discourse.julialang.org/u/physh)\
**Replies:** 7\
**Last updated:** [January 13, 2023, 2:46am UTC](https://discourse.julialang.org/t/good-coding-practices-how-to-cluster-many-variables-in-function-argument/92855 "2023-01-13T02:46:01Z")

</div>

Hello there, I’m still fairly new to julia, but I guess it is anyway a general programming question. In my code there are several physical parameters, e.g. mass,speed,height,… as well as numerical parameters for differ…

---

## [Is there a Julia Style Guide?](https://discourse.julialang.org/t/is-there-a-julia-style-guide/80195)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 23\
**Last updated:** [April 29, 2022, 2:24pm UTC](https://discourse.julialang.org/t/is-there-a-julia-style-guide/80195 "2022-04-29T14:24:40Z")

</div>

Hi, I’m learning Julia right now and want to teach myself a good coding style right form the start. Is there a Julia design proposal similar to the PEP guidelines for python?
