Erik Engheim
2 min readJun 18, 2022

--

Hehehe I think I get where you tripped up. You are used to these quite formalized statically typed languages with clearly defined entry points. I don't know Fortran but in C there is a function called main where it all starts. Pascal was similar too.

Julia like all dynamic languages don't work like that. It just start executing lines from the first line in your source code files. There is no entrypoint as such.

You can just create a file hello.jl and write println("hello world") inside it. Then on the command line you just write julia hello.jl to run it, assuming you have the Julia binary in your PATH.

For more serious development you would make packages, which are basically just directories organizing your code in a particular manner. I give a guide to setting up everything here: https://erik-engheim.medium.com/my-new-workflow-with-julia-1-0-99711103d97c

You don't really need anything fancy like Eclipse to program Julia. I stay away from complex IDEs like that. I use a fairly simple editor called TextMate. Definitely does not take months to setup.

I give a little video here of how I work. I just have Terminal running Julia and a simple text editor that I jump between: https://www.youtube.com/watch?v=CRiD12Y75wM

I am old school and like keeping it simple. As you get older you cannot keep changing tools all the time right. I find that IDEs change too much. I started using TextMate like 20 years ago. Because it is a generic code editor I can use it for all sorts of coding so my skills using it doesn't get outdated.

A flow chart. Dont' use them much but I use them when teaching stuff.

--

--

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.

Responses (1)