Skip to content

Improvements to the lesson material #7

Description

@ashwinvis

Syntax

https://enccs.github.io/julia-intro/syntax-intro/

  • Composability: use the using DifferentialEquations: ODE... instead of plain using DifferentialEquations. So it is clear that we compose functions from packages.
  • Add comparison to Python or Matlab code in the beginning.
  • Expand "Functions can be combined by composition" example. Reason: f(g(3)) is not remarkable, since it looks like it is calling two plain functions. but perhaps if you add a step h(x) = f(g(x)) it could be?
  • Add the term multiple dispatch around Additional methods . However it was not clear to me why f(x::Int64, y::Int64). should allow a floating point input with f(3.0, 4.0).
  • In Working with files, can we use something other than f so we don't give an impression that it is a function? Also add the term do-block.
  • After showing throw, show an example of Stacktrace. And explain how to read it. It looks very different from Python's Tracebacks.
  • Style conventions: change upper camel case with Pascal case? camelCase and PascalCase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions