lambdaway
::
prime_pattern
5
|
list
|
login
|
load
|
|
{center prime_pattern | [[prime_pattern2]] | [[prime_pattern3]] | [[prime_pattern4]] | [[prime_pattern5]]} ;; {img {@ src="https://www.cineclubdecaen.com/cinepho/realisat/scott/bladerunner/bla121.jpg" style="width:100%; height:150px; object-fit:cover;"}} _img https://www.cineclubdecaen.com/cinepho/realisat/scott/bladerunner/bla121.jpg {div {@ style="box-shadow:0 0 8px #000; transform:rotate(-2deg); padding:10px; background:#ffe; border-radius:10px;"} {center Rewritten from Thompson Morrison's [[Prime Pattern|https://dev2.wiki.innovateoregon.org/view/prime-pattern]] page.} _h1 Prime Pattern ;; note the altenate form to write a title _p A {b Prime Pattern} is a pattern that has been simplified down to three parts, what could be called a [[Trivium|https://dev2.wiki.innovateoregon.org/view/prime-pattern/view/trivium]]. _p In software development, the process of simplification is call [[Refactoring|https://en.wikipedia.org/wiki/Code_refactoring]] . When you refactor code, you having the code do the same tasks, but simplifying how it does them. In this process, the code becomes more "elegant". _p There is a similar process possible with complex ideas. If the ideas remain their complex form, it is very difficult to share them with others. As a result, their impact, within a larger community, is limited. But if those concepts can be distilled down to a simple form - a pattern - they can be more easily shared. _p A great example is the [[Theory of Relativity|https://en.wikipedia.org/wiki/Theory_of_relativity]] an immensely complex concept. By Einstein's "refactoring" this concept to {code E=mc{sup 2}} his concept became well known to an audience far beyond his scientific community. _p A [[Trivium|https://dev2.wiki.innovateoregon.org/view/prime-pattern/view/trivium]] can be called the simplest and most elegant pattern, what we could call a prime pattern. A prime pattern, as a "three-legged stool", is dynamically balanced and becomes a powerful container of meaning. _p [[Core Values|https://dev2.wiki.innovateoregon.org/view/prime-pattern/view/core-values]] can be Prime Patterns ;; this is a first attempt to "mimic" your navigation widget. Some work to do ... {{flow_chart 300} {node prime-pattern Prime Pattern} |-> {node trivium Trivium} |-> {node core-values Core Values} {node core-values Core Values} |-> {node prime-pattern Prime Pattern} |-> {node trivium Trivium} |-> Audacious Aspiration {node trivium Trivium} |-> Design Thinking |-> Process Thinking |-> Systems Thinking } } _h2 introduction {prewrap Hi Thompson, welcome to '{lambda talk}. This page is your [[Prime Pattern|https://dev2.wiki.innovateoregon.org/view/prime-pattern]] page rewritten in '{lambda talk} syntax. In this page the [[fed_style]] is intentionally not used in order to keep things simple, just a title, a few paragraphs, some links and a picture. Click on the pages's grey title "prime_pattern" to open the page editor, analyze the code and edit it. The syntax is systematic: '{function ... any expression ...}. For instance: - writing '{b words} boldifies words - writing '{h1 words} makes words a title of level one - writing '{p words} makes words a paragraph - writing '{a {@ href="URL"}NAME} creates a link to "URL" displayed as "NAME" - writing '{img {@ src="URL" width="100%"}} displays a picture at URL HTML tags - b, h1, p, a, img, ... - are well documented on the web, learning lambdatalk is learning HTML/CSS in a comfortable armchair. And if lambdatalk doesn't fit your needs you will have learnt some useful parts of HTML/CSS, you won't have loose your time. As it can be seen in this page, in order to make things easier, curly braces can be forgotten for a small set of tags - titles, paragraphs, pictures and links - and replaced by easier alternate forms. More later. And if Ward Cunningham instals '{lambda talk} in your fed-wiki you'll be able to test it more comfortably. Done in [[ustawi.wiki|http://alain.lambda.ustawi.wiki/]]. } _p Meanwhile please read more in the following pages: _ul [[prime_pattern2]]: when a simple text editor becomes a programming language _ul [[prime_pattern3]]: the power of lambdas _ul [[prime_pattern4]]: a few steps on html and colors _ul [[prime_pattern5]]: loops with iteration and recursion _ul See also these page in [[http://alain.lambda.ustawi.wiki/|http://alain.lambda.ustawi.wiki/]] _p {i Alain Marty 2019/11/11 update 2021/11/26} ;; don't care about the following code, explanations will be given later... {{hide} {def flow_chart {lambda {:w} pre {@ style="position:relative; left:50%; margin-left:-{/ {+ :w 60} 2}px; width::wpx; padding:10px 30px; background:#fff; box-shadow:0 0 8px #000; border-radius:30px;"}}} {def node {lambda {:url :name} {a {@ href="https://dev2.wiki.innovateoregon.org/view/prime-pattern/view/:url" style="background:#444; color:#fff; border-radius:20px; padding:0 8px;"}:name}}} }
lambdaway v.20211111