# What has been the worst Julia production code you have written?

**URL:** <https://discourse.julialang.org/t/what-has-been-the-worst-julia-production-code-you-have-written/60524>\
**Category:** Offtopic\
**Created:** [May 4, 2021, 3:13pm UTC](https://discourse.julialang.org/t/what-has-been-the-worst-julia-production-code-you-have-written/60524 "2021-05-04T15:13:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [May 4, 2021, 4:34pm UTC](https://discourse.julialang.org/t/what-has-been-the-worst-julia-production-code-you-have-written/60524/6 "2021-05-04T16:34:31Z")

</div>

I wrote a piece of code that used `collect`:

> [@How to use string substitution in variable names](https://discourse.julialang.org/t/how-to-use-string-substitution-in-variable-names/55192/14):
>
> Faster an shorter:
> 
> ```julia
> collect(eachcol(diagm(ones(7))))
> 
> ```

😔

---

_[View the full topic](https://discourse.julialang.org/t/what-has-been-the-worst-julia-production-code-you-have-written/60524)._
