Show HN: Expounder – A small JavaScript library for more engaging tutorials
skorokithakis.github.io
skorokithakis.github.io
For instance, if you convey a concept, and then show the derivation of the equation for that - the derivation mostly does not matter in the communication of the concept. Sure it's important to understand this, thus why we always have the derivation, but often it adds cognitive weight that distracts from the more germane understanding of the material (so keen authors will try and be elegant about the complicated things, skipping steps and keeping as much on one page).
It takes up cognitive load, and often a different type of load than the big picture. By collapsing the content, you get back to the more pure "short version" of the material and you can presume to understand or trust the more complicated bits that are hidden away.
Even if it's not that useful, it's what I expect to happen without thinking. Having no "undo" makes me wonder what happened and a vague fear that I've done something destructive. More personally, it just feels a bit weird with the way I jump back and forth in documents as everything moves. I can't quite explain it but it feels quite weird.
> By the time you've read the explanation, you've moved past it
The explanations/diagrams don't appear immediately after/over what I click. So I click for extra info, jump over some intermediate text and read the extra stuff then I want to go back to the normal flow. Look at 'atoms' and 'photons' in the example text: https://skorokithakis.github.io/expounder/
There are other examples of this too, in your original blog post about building the sensor. Look for examples where the extra explanatory text appears in a paragraph after what you click on.
I definitely know what you mean, but it's a problem with me being compulsive about having opened things stay open, not with the things themselves :P
> So I click for extra info, jump over some intermediate text and read the extra stuff then I want to go back to the normal flow.
I think that's the best argument so far. However, I think this is the "footnote" mindset (i.e. you go look up what the footnote is and come back). Expounder works under a more integrated mindset, i.e. "I don't know what this is, I click it and I will eventually read information about it". So you don't go read the expounded text and come back, you just read normally, and you reach the text at some point.
Then it's a matter of whether it's easier to change the user or the library, but that's how I meant it originally.
I disagree, it's not about leaving things open. It's that I skip back and forth while reading and this moves a bunch of text. Suddenly, some things I was moving back and forth between have either gone or moved and it's not obvious which.
> I think that's the best argument so far. However, I think this is the "footnote" mindset (i.e. you go look up what the footnote is and come back). Expounder works under a more integrated mindset, i.e. "I don't know what this is, I click it and I will eventually read information about it". So you don't go read the expounded text and come back, you just read normally, and you reach the text at some point.
Fair enough that it's built for a different use. I find it very hard to have an animation happen near where I'm looking but entirely ignore it, so I'll look over to see what's happened.
Not with dense material. Often, I'll read through a chapter quickly, then go through the derivation of something three or four times until I understand it deeply, then re-read the chapter again once or twice to fully grasp it (at which point the derivation is just taking up space and I want to understand the grander scheme). Granted, I'm applying my approach to upper-division to grad-level physics textbooks, but that's the extreme I'm personally hoping to make more approachable for people.
On the other hand, I could see the extra mechanic leading me to try to "curate" the article, which would distract from the actual content. There is definitely value in keeping it simple.
I think that the "no collapse" thing is the right way to go. It's simpler, and really no cognitive load... you can ignore any text in the article you want :-).
Also, when you go back to the page, it's all collapsed again anyway, so the next time you read it, you don't need the expounded bits, and it's all compact.
It's also just prettier to not have a bunch of lurking controls.
Also, the text is very very easy for the website owner to style, with just a single CSS rule.
EDIT: I've added some styling information to the page, thanks.
That's actually a smart idea for a CDN :)
Feedback for this library:
- It would be cool if you could set a few preset levels of expansion (TL;DR, expert, beginner, ELI5) and toggle them at the top of the page.
https://en.wikipedia.org/wiki/StretchText
Every so often someone hears about the old hypertext theory and implements a Javascript or CSS version, but this is honestly one of the nicest implementations I've ever seen. Good work!
https://www.stavros.io/posts/building-cheap-home-sensorcontr...
EDIT: I've added a "real-world examples" section to the page with the above included.
I've at times been called wordy. But I am fastidious when it comes to diction. If the word is there— it's there for a reason.
I'd love a way to fold.
I would love an automated version.
Here's an example that explains magnetic fields: http://www.telescopictext.org/text/pFjkqQY9bmfvQ
It's a new modality, but I think it has a lot of potential: I love explanations with "multiple levels" in general...