Intended audience for the manual

With an increasing number of options for learning Julia—and especially the exciting announcement about the freeing of JuliaAcademy—I wonder if it’s worth having a discussion about the intended audience for any “official” learning resource. To kick this thread off, I’d like to have a discussion about the intended audience for the manual, which was started long before there were any other ways to learn Julia but may now be worth reconsidering in light of the plethora of other options.

As it is now, many chapters have a mixture of “introductory tutorial” and “reference” (a.k.a., “the complete story,” often understandable mostly by experts) material. Both clearly have their place, but sometimes I wonder if our current mix is awkward and we should move more in one direction or another, perhaps shifting some of the emphasis, splitting material to different sources, and/or becoming more deliberate in how we mix these two together.

To make this concrete, let’s start with a very simple example, the Variables page, which is the first thing readers see after “Getting started.” If I analyze the likely impact on a variety of audiences, here’s what I come up with:

  • the first section starts as a tutorial understandable by virtually anyone, including someone brand-new to programming. Because it is short, I doubt an expert programmer would resent being dragged through it.
  • a little ways in to the first section, we employ terms like Unicode, UTF-8, and LaTeX without defining them or linking to external resources. Fine for some readers, not for others.
  • we then address “redefining built-in constants and functions”. For newbies, a small hiccup is realizing that pi and sqrt are names of other things—that is revealed after showing that you can assign to them. Conversely, an expert might wish we’d mention that if you do accidentally “overwrite” sqrt, you can “rescue” it by reassignment, i.e., sqrt = Base.sqrt, but we don’t mention that here.
  • the “Allowed Variable Names” seems to start pretty clearly as reference material. It’s utterly essential that we have this information somewhere. Experienced coders will want this information now, and the full list is both useful and an excellent advertisement for Julia’s flexibility and seriousness about supporting Unicode. Newbies could perhaps benefit from a gentle introduction or perhaps don’t really need to know the full details at this point—maybe just knowing that variable names can’t start with numbers would be enough.
  • later in that section we talk about “built-in” statements. That’s presented in more of a tutorial style, though again it’s short so shouldn’t cause resentment for gurus. But for a newbie, what’s the distinction between “built-in” and a constant or function as described in the previous section?
  • in “Stylistic Conventions,” we refer to items (Types, Modules, functions, and macros) that have not yet been encountered. Experienced coders will agree that this is the ideal spot to summarize the rules that apply to the whole language. Newbies may wonder what all these things are and resent the growing collection of terms and concepts they don’t understand.

I did the analysis on this page because it’s short and comes early (and thus makes the analysis easy), not because it’s a particularly striking example of the tensions I documented above. A much better example might be the Types page, which has a leadoff section that might be described as best targeted at language designers, but in the fullness of time covers material relevant for everyone from newbies to highly experienced coders.

Here are some thoughts on possible directions:

  1. Keep it largely like it is. Many people have justifiably praised the manual, as it is well-written, erudite, and effective for many people. It may be particularly well-targeted at an audience that is also likely to be useful to Julia: people who already have some level of coding experience and who might contribute packages and the like.
  2. Declare that the manual is fundamentally the reference standard for the language, and streamline it for that purpose while directing newbies to other sources. Advantage: it’s essential to have a place that tells the truth and the whole truth. Disadvantage: we already have a lot of excellent tutorial material in there, and splitting it out or discarding it would be a big effort with some cost.
  3. Split the manual into a “getting started” tutorial followed by reference material. Advantage: newbies wouldn’t see material not intended for them, and thus won’t be confused by terms or concepts they aren’t ready to handle. Disadvantages: (1) more fractured experience for more advanced readers, particularly those who fall somewhere between “newbie” and “future core language developer”; (2) duplication of other tutorials seems like wasted effort.
  4. Split each chapter into material more explicitly marked as either “tutorial” or “reference” material. Perhaps color-code the section headers, if that’s technically possible. Advantage: newbies might be less bothered by terms they don’t understand if they occur in sections that are clearly marked as non-tutorial. Disadvantage: there is always some awkwardness in delaying discussion on a topic, and where do you draw the line between the two?
  5. Keep things woven together, but work harder to provide links and definitions for terms that might be new. Advantage: all discussion stays coherent from the standpoint of the authors. Disadvantage: newbies might be burdened with details that they really shouldn’t be worrying about at the beginning.

As you can see, I think this is a question of tradeoffs rather than an obviously-right approach. My personal favorite is probably a mix of 1, 4, and 5, slowly beefing up our “tutorial” offerings in other forums while perhaps becoming a bit more intentional about splitting chapters into introductory & advanced material.

Thoughts? I might slowly contribute to this effort, if there is some reasonable consensus about the kind of changes that should be made.

Related discussions: Some comments on the Manual

21 Likes

Thanks for writing up this detailed analysis and initiating this discussion.

I think that pre-1.0, the mixture of being an introduction, a guide on various Julia-specific programming techniques, a reference, a tutorial, and probably some other things was pretty much a necessity that was a consequence of Julia moving so fast. When things become obsolete pretty quickly, it is a good strategy to maintain a single resource in a consistent state.

While a lot of parts of Julia can be expected to remain quite stable for at least 1.*, it is my impression that large and important improvements keep happening in the core language with every release, so keeping everything in a single place may be a good strategy in the near future, and splitting should be considered when things slow down a bit.

Also, because Julia has a pretty specific performance model, I don’t think that it is easy to disentangle the “reference” parts from the “advanced tutorial”. A typical example is

https://docs.julialang.org/en/v1.4-dev/manual/methods/#Design-Patterns-with-Parametric-Methods-1

— while the “reference” could just describe key concepts, a student of Julia would have a hard time figuring these patterns out from first principles. Other chapters have a lot of similar examples.

I think that marking various parts with their intended purpose and audience level is the best solution (your option 4). Perhaps by (subsub)sections, or using colored boxes/backgrounds (eg marking a whole section with a different, non-obtrusive pastel background). It would allow readers to skip what they do not need, and if there is a need to split the manual later on, this would also make it easier.

FWIW, I think that currently the ideal target audience for the manual is someone with some programming experience (potentially in another language) who wants to learn Julia. Working through the “Manual” part more or less linearly from start to finish is still possible in a few days, and can be used as a refresher later on.

7 Likes

I agree with this. I also think that when you start by labelling sections, then it will be apparent what parts are missing the “introductory part”, and what parts are missing the more “advanced part”.

8 Likes