# Stuck in a Loop

**URL:** <https://discourse.julialang.org/t/stuck-in-a-loop/65164>\
**Category:** Offtopic\
**Created:** [July 23, 2021, 10:33am UTC](https://discourse.julialang.org/t/stuck-in-a-loop/65164 "2021-07-23T10:33:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchebycheff](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Post date:** [July 23, 2021, 10:33am UTC](https://discourse.julialang.org/t/stuck-in-a-loop/65164/1 "2021-07-23T10:33:14Z")

</div>

Julia is so easy to code from first principles (the real formula-translation deal) that I never venture out of for loops. Every year JuliaCon yanks me out of my dreary yet comfortable existence and shows me all those half-line trickery. I hang my head in shame, down a couple of beers and get back to the loops. On it goes.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [July 23, 2021, 1:19pm UTC](https://discourse.julialang.org/t/stuck-in-a-loop/65164/2 "2021-07-23T13:19:50Z")

</div>

Nothing wrong with loops. I use 'em all the time.

---

<div class="post-metadata">

**Author:** ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Post date:** [July 23, 2021, 2:12pm UTC](https://discourse.julialang.org/t/stuck-in-a-loop/65164/3 "2021-07-23T14:12:47Z")

</div>

😆 I’ve come to prefer the simplicity/readability of things like simple loops over one-liner tricks. If I have to figure out some code that I wrote 5 years ago and it’s full of “half-line trickery” I usually end up cursing my former self and wishing that I had written some plain vanilla code.

---

<div class="post-metadata">

**Author:** ![brenhinkeller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brenhinkeller/32/36648_2.png) [@brenhinkeller](https://discourse.julialang.org/u/brenhinkeller)\
**Post date:** [July 23, 2021, 6:53pm UTC](https://discourse.julialang.org/t/stuck-in-a-loop/65164/4 "2021-07-23T18:53:16Z")

</div>

Loops are so much easier to optimize too IMO
