# Use Case for Session Storage: Fibonacci Series

47 views

### Charlie Veniot

Mar 12, 2022, 10:07:54 AM3/12/22
to TiddlyWiki

### Charlie Veniot

Mar 12, 2022, 6:49:42 PM3/12/22
to TiddlyWiki

### Charlie Veniot

Dec 10, 2022, 10:15:51 AM12/10/22
to TiddlyWiki
And the TiddlyWiki syntax (no javascript) version:

\define fibo(fnmax fni:1 fnm2:0 fnm1:1)
<$list filter="[[$fnm2$]match[0]]"> F,,$fnm2$,, =$fnm2$<br> F,,$fnm1$,, =$fnm1$<br> </$list>
<$vars fni={{{ [[$fni$]add[1]] }}} fn={{{ [[$fnm1$]add[$fnm2$]] }}}> F,,<<fni>>,, = <<fn>><br> <$list filter="[[$fnmax$]compare:integer:gt<fni>]"><$macrocall$name=fibo fni=<<fni>> fnmax=$fnmax$ fnm2=$fnm1$ fnm1=<<fn>>/></$list> </$vars>
\end

<<fibo 25>>



### Charlie Veniot

Dec 10, 2022, 10:43:19 AM12/10/22
to TiddlyWiki
I find the layout of the code above looks better when viewed in Google Groups.

### Jeremy Ruston

Dec 10, 2022, 10:58:49 AM12/10/22
to TiddlyWiki
Great stuff Charlie, really inspired. I hope you will enjoy the new possibilities coming in https://github.com/Jermolene/TiddlyWiki5/pull/6666

Best wishes

Jeremy

### Charlie Veniot

Dec 10, 2022, 11:30:33 AM12/10/22
to TiddlyWiki
G'day sir,

I've actually been doing parameterised transclusion for about a year now, with my own syntax:

{{ blah_blah_tiddler-tiddler-title:::param1:::param2 || tTemplate}}

The parameterised transclusions work is really interesting, I think it will be fantastic for everybody, but I don't think I'll ever use it.

Using the pipe as a separator for parameters is a serious turn-off for me.  When a symbol starts having too many different uses in too many contexts,  that symbol quickly stops providing me visual cues/anchors I need to quickly process what I'm looking at.  (Would we call that "symbol-overloading"?)

For every millisecond of cognitive-processing-brake-pumping going on, I quickly get frustrated and miserable.

Although kind of "wordy", the triple colons have been good for me, so far, because they stand out.  I immediately recognise what I'm seeing.  No sticks in the cognitive wheels, cognitive wheels not stuck in the mud.

Something like that ....

### Charlie Veniot

Dec 10, 2022, 11:38:19 AM12/10/22
to TiddlyWiki
Delayed reaction: thanks for the comment!

A lot of times, when I figure out in my head how to do something in TiddlyWiki, I don't follow through on doing it because the challenge is no longer there.  No challenge, no problem to solve, no interest.

This was one of those rare moments in which I had a desire to accompany my awesome first coffee of the day with a "prove it with code" scratch.

On Saturday, December 10, 2022 at 11:58:49 AM UTC-4 jeremy...@gmail.com wrote: