<commit_before><?$Content?>

<h1>Learnig by Example</h1>

<p>At the end of each chapter, I will dip you into varietty of examples. Some examples are short and easy to understand.
Throughout this book I will be helping you to build a "DVD Rental" application and many examples and excercises will be
related to that application.</p>

<h2>Putting Agile into Toolkit</h2>

<p>Agile Toolkit is inspired by the flexibility and power of desktop UI frameworks, but it is also specifically designed
to be lightweight enough for high performance on the web. For many years the PHP community hasn't seen frameworks using the
full potential of object oriented design, primarily due to restrictions of older PHP versions, compatibility with legacy
systems, as well as the general development mindset of the community.</p>
<p>Using the following example we will demonstrate some of the UI capabilities which apply to absolutely ALL objects in the Agile
Toolkit. It will also demonstrate a typical work-flow and how being "Agile" can save a great deal of time for you.</p>

<h2>The Job: a "Slot Machine"</h2>
<p>Imagine a client, who shows up and wants to put your skills to the test by asking you to develop a
simple "slot machine". The client is not yet sure of what he needs, but he says he'll figure it out once he gets his
hands on a first prototype. His requirements is to make a web page display 3 random digits to the visitor.</p>

<p><i>"Simple enough"</i>, you say, and write some HTML for this curious task - putting it into
templates/default/view/slotmachine.html</p>
<div class="atk_doc example">
<code><pre>
 &lt;div id="&lt;?$_name?>" style="border: 2px solid black; padding: 10px; width: 100px; margin: 10px;">
   &lt;p&gt;Slot Machine&lt;/p&gt;
   &lt;div style="padding: 4px; border: 1px solid red">&lt;?$slot1?>&lt;/div>
   &lt;div style="padding: 4px; border: 1px solid red">&lt;?$slot2?>&lt;/div><commit_msg>Spelling mistake in title<commit_after><?$Content?>

<h1>Learning by Example</h1>

<p>At the end of each chapter, I will dip you into varietty of examples. Some examples are short and easy to understand.
Throughout this book I will be helping you to build a "DVD Rental" application and many examples and excercises will be
related to that application.</p>

<h2>Putting Agile into Toolkit</h2>

<p>Agile Toolkit is inspired by the flexibility and power of desktop UI frameworks, but it is also specifically designed
to be lightweight enough for high performance on the web. For many years the PHP community hasn't seen frameworks using the
full potential of object oriented design, primarily due to restrictions of older PHP versions, compatibility with legacy
systems, as well as the general development mindset of the community.</p>
<p>Using the following example we will demonstrate some of the UI capabilities which apply to absolutely ALL objects in the Agile
Toolkit. It will also demonstrate a typical work-flow and how being "Agile" can save a great deal of time for you.</p>

<h2>The Job: a "Slot Machine"</h2>
<p>Imagine a client, who shows up and wants to put your skills to the test by asking you to develop a
simple "slot machine". The client is not yet sure of what he needs, but he says he'll figure it out once he gets his
hands on a first prototype. His requirements is to make a web page display 3 random digits to the visitor.</p>

<p><i>"Simple enough"</i>, you say, and write some HTML for this curious task - putting it into
templates/default/view/slotmachine.html</p>
<div class="atk_doc example">
<code><pre>
 &lt;div id="&lt;?$_name?>" style="border: 2px solid black; padding: 10px; width: 100px; margin: 10px;">
   &lt;p&gt;Slot Machine&lt;/p&gt;
   &lt;div style="padding: 4px; border: 1px solid red">&lt;?$slot1?>&lt;/div>
   &lt;div style="padding: 4px; border: 1px solid red">&lt;?$slot2?>&lt;/div>
{'fraction_non_alphanumeric': 0.08847254748894093, 'fraction_numerical': 0.01092896174863388, 'mean_word_length': 4.8419452887537995, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1212636', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1068, 'n_words': 568}