Final thoughts

Introduction to Julia

James Fulton

Climate informatics researcher

The exciting world of Julia

  • Julia created 2012
  • Expanding rapidly
  • Stable version 1.0 released in 2018

The Julia programming language logo.

Introduction to Julia

Some things we've covered

  • First steps
    • println(1+1)
      
    • x = 0
      
    • y = "fin"
      
  • Arrays
    • x = [1,2,3,4,5]
      
    • x .* 2
      
    • x[2:end]
      
  • Conditional statements
    if enjoyment == 5
      println("Leave a rating?")
    else
      println("Goodbye :)")
    end
    
  • Functions
    function f(x)
      return x^2 + 2*x + 1
    end
    
Introduction to Julia

Some things we've covered

Broadcasting

x = [1,2,3]
y = f.(x)

Multiple dispatch

function f(x::Int64)
    return x^2 + 2*x + 1
end

function f(x::Bool)
    return x
end

Using Packages

import Statistics
using DataFrames

DataFrames

df = DataFrames(CSV.Files("run.csv"))
Introduction to Julia

Congratulations!

Introduction to Julia

Preparing Video For Download...