Writing a Julia program
Unlike our previous work in the REPL and IJulia notebooks, this will be a standalone program: all the logic will go inside this webcrawler.jl file, and when ready, we'll use the julia binary to execute it.
Julia files are parsed top to bottom, so we need to provide all the necessary instructions in the right order (using statements, variables initialization, function definitions, etcetera). We'll pretty much condense all the steps we took so far in this chapter to build this small program.
To make things simpler, it's best to use a full-fledged Julia editor. Open webcrawler.jl in Atom/Juno or Visual Studio Code (or whatever your favorite editor is).
The first thing we want to do is to inform Julia that we plan on using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access