3 added
1 removed
Original
2026-01-01
Modified
2026-02-21
1
-
<p>pages.courses.lessons.theory_unit.sign_up_block_title</p>
1
+
<p>Full access to materials</p>
2
+
<p>Sign up and get access to this and dozens of other courses</p>
3
+
<p><a>Sign up</a></p>
2
<p>Another interesting trick is<strong>dispatching by file name</strong>.</p>
4
<p>Another interesting trick is<strong>dispatching by file name</strong>.</p>
3
<p>In some systems, it's common to have different files belonging to separate environments for configuration rather than one file. For example:</p>
5
<p>In some systems, it's common to have different files belonging to separate environments for configuration rather than one file. For example:</p>
4
<p>configs/ database.development.json database.production.json database.test.json</p>
6
<p>configs/ database.development.json database.production.json database.test.json</p>
5
<p>Somewhere in the source code must be a code block that selects which file to load. The code below uses dispatching by key:</p>
7
<p>Somewhere in the source code must be a code block that selects which file to load. The code below uses dispatching by key:</p>
6
<p>It is not difficult to see that using a startup environment name. So we can create a suitable file name. Let us do that:</p>
8
<p>It is not difficult to see that using a startup environment name. So we can create a suitable file name. Let us do that:</p>
7
<p>The code is much shorter and no longer needs to be changed when expanding.</p>
9
<p>The code is much shorter and no longer needs to be changed when expanding.</p>
8
<h2>Recommended programs</h2>
10
<h2>Recommended programs</h2>