Erik Engheim
1 min readJul 21, 2022

--

Ultimately what matter is being happy with the tools we use. I have been using TextMate now for 20 years, and a lot of people probably think I should permanently make the transition to VS Code šŸ˜

We all have different tastes and preferences. I personally donā€™t like the look of Python code. I find it too inconsistent. I like the beauty of the regularity of Julia code: You are always writing functions and these functions are so beautifully generic.

I also think modern Python code has become really messy and undreadable. A lot of the decorator heavy code I have seen isnā€™t very readable.

A lot of things are just done really elegantly in Julia. Perhaps I should write a story at some point about the beauty of Julia code šŸ˜„

Maybe this story comparing iterators and generators in Python gives some ideas. I think Julia in this case gives a cleaner solution: https://erik-engheim.medium.com/generators-and-iterators-in-julia-and-python-6c9ace18fa93

But perhaps coroutines/async is a better example. I think Julia gives a really nice solution here while I think async in Python is quite messy. Async in Python kind of infects everything it touches. You got to make functions specifically to manage async. Julia is a lot more like Go, which I find makes async code much easier to write. Easier to read and more composable: https://levelup.gitconnected.com/coroutines-and-tasks-in-julia-and-python-c82f7ec52a9e

Not saying you got to jump ship, but if you ever find yourself thinking doing concurrency in Python is messy, you should try to give Julia a chance.

--

--

Erik Engheim
Erik Engheim

Written by Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.

No responses yet