forked from anabastos/Functional-Programming-In-Javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path05-declarative.html
584 lines (313 loc) · 26.8 KB
/
05-declarative.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Programação Declarativa · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.2">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="../06-higher-order-functions/06-higher-order-functions.html" />
<link rel="prev" href="../04-immutability/04-immutability.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="header">Functional Programming in Javascript</li>
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
Sumário
</a>
</li>
<li class="chapter " data-level="1.2" data-path="../00-introduction/00-introduction.html">
<a href="../00-introduction/00-introduction.html">
Introdução
</a>
</li>
<li class="chapter " data-level="1.3" data-path="../01-λ-calculus/01-λ-calculus.html">
<a href="../01-λ-calculus/01-λ-calculus.html">
Lambda Calculus
</a>
</li>
<li class="chapter " data-level="1.4" data-path="../02-pure-functions/02-pure-functions.html">
<a href="../02-pure-functions/02-pure-functions.html">
Funções puras
</a>
</li>
<li class="chapter " data-level="1.5" data-path="../03-currying-vs-partial-application/03-currying-vs-partial-application.html">
<a href="../03-currying-vs-partial-application/03-currying-vs-partial-application.html">
Currying & Parcial Application
</a>
</li>
<li class="chapter " data-level="1.6" data-path="../04-immutability/04-immutability.html">
<a href="../04-immutability/04-immutability.html">
Imutabilidade
</a>
</li>
<li class="chapter active" data-level="1.7" data-path="05-declarative.html">
<a href="05-declarative.html">
Programação Declarativa
</a>
</li>
<li class="chapter " data-level="1.8" data-path="../06-higher-order-functions/06-higher-order-functions.html">
<a href="../06-higher-order-functions/06-higher-order-functions.html">
Funções de Primeira Classe
</a>
</li>
<li class="chapter " data-level="1.9" data-path="../07-recursion/07-recursion.html">
<a href="../07-recursion/07-recursion.html">
Recursão
</a>
</li>
<li class="chapter " data-level="1.10" data-path="../08-composition-and-pipelines/08-composition-and-pipelines.html">
<a href="../08-composition-and-pipelines/08-composition-and-pipelines.html">
Composição de pipeline
</a>
</li>
<li class="chapter " data-level="1.11" data-path="../09-modules-and-async/09-modules-and-async.html">
<a href="../09-modules-and-async/09-modules-and-async.html">
Modulos, Async, contratos, error handling
</a>
</li>
<li class="chapter " data-level="1.12" data-path="../10-classes/10-classes.html">
<a href="../10-classes/10-classes.html">
Não usando classes
</a>
</li>
<li class="chapter " data-level="1.13" data-path="../11-tacit/11-tacit.html">
<a href="../11-tacit/11-tacit.html">
Programação tacita
</a>
</li>
<li class="chapter " data-level="1.14" data-path="../12-combinators/12-combinators.html">
<a href="../12-combinators/12-combinators.html">
Combinators
</a>
</li>
<li class="chapter " data-level="1.15" data-path="../13-category-theory/13-category-theory.html">
<a href="../13-category-theory/13-category-theory.html">
Teoria das categorias
</a>
</li>
<li class="chapter " data-level="1.16" data-path="../14-architecture/14-architecture.html">
<a href="../14-architecture/14-architecture.html">
Arquitetura Funcional
</a>
</li>
<li class="chapter " data-level="1.17" data-path="../15-langs/15-langs.html">
<a href="../15-langs/15-langs.html">
Linguagens que copilam para JS
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >Programação Declarativa</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="programação-declarativa">Programação Declarativa</h1>
<p>TODO:</p>
<ul>
<li>[ ] Imperativo vs Declarativo</li>
<li>[ ] Nomear variaveis e funções de forma declarativa</li>
<li>[ ] Nomes de funções declarativos</li>
<li>[ ] Evitar imperatividade no código(switch code, too much ifs).</li>
</ul>
<h4 id="demonstação">Demonstação</h4>
<p>Talvez seja uma rápida demonstração a melhor maneira de iniciarmos com o paradigma funcional. Realizaremos uma só tarefa de duas maneiras, na primeira utilizaremos os métodos já existentes no 'Core' e noutra o paradigma funcional. Em seguida, compararemos os dois métodos.</p>
<h4 id="a-aplicação-–-an-e-commerce-website">A aplicação – an e-commerce website</h4>
<p>Digamos que estamos a construir uma aplicação do mundo real, um comércio eletrônico para uma empresa de feijão e café que tem como objetivo aceitar pedidos por conrrespondência. Eles vendem café de qualidade e quantidade distintas, acarretando mudanças de preço.</p>
<h3 id="metodos-imperativos">Metodos imperativos</h3>
<p>Primeiramente, vamos conferir o estilo imperativo. Para melhor demonstração, temos de criar objetos que mantenham os dados. Neles podemos buscar valores como se estivéssemos operando no banco de dados; e posteriormente, talvez possamos operá-los por lá. Mas, no momento, assumiremos que são definidos de forma estática.</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// create some objects to store the data</span>
<span class="hljs-keyword">var</span> columbian = {
name: <span class="hljs-string">'columbian'</span>,
basePrice: <span class="hljs-number">5</span>
};
<span class="hljs-keyword">var</span> frenchRoast = {
name: <span class="hljs-string">'french roast'</span>,
basePrice: <span class="hljs-number">8</span>
};
<span class="hljs-keyword">var</span> decaf = {
name: <span class="hljs-string">'decaf'</span>,
basePrice: <span class="hljs-number">6</span>
};
<span class="hljs-comment">// we'll use a helper function to calculate the cost</span>
<span class="hljs-comment">// according to the size and print it to an HTML list</span>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">printPrice</span>(<span class="hljs-params"> coffee, size </span>) </span>{
<span class="hljs-keyword">if</span>( size == <span class="hljs-string">'small'</span> ) {
<span class="hljs-keyword">var</span> price = coffee.basePrice + <span class="hljs-number">2</span>;
}
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>( size == <span class="hljs-string">'medium'</span> ) {
<span class="hljs-keyword">var</span> price = coffee.basePrice + <span class="hljs-number">4</span>;
}
<span class="hljs-keyword">else</span> {
<span class="hljs-keyword">var</span> price = coffee.basePrice + <span class="hljs-number">6</span>
}
<span class="hljs-comment">// create the new html list item</span>
<span class="hljs-keyword">var</span> node = <span class="hljs-built_in">document</span>.createElement( <span class="hljs-string">'li'</span> );
<span class="hljs-keyword">var</span> label = coffee.name + <span class="hljs-string">' '</span> + size;
<span class="hljs-keyword">var</span> textnode = <span class="hljs-built_in">document</span>.createTextNode( label + <span class="hljs-string">' price: $'</span>+price );
node.appendChild( textnode );
<span class="hljs-built_in">document</span>.getElementById( <span class="hljs-string">'products1'</span> ).appendChild( node );
}
<span class="hljs-comment">// now all we need to do is call the printPrice function</span>
<span class="hljs-comment">// for every sigle combination of coffee type and size</span>
printPrice( columbian, <span class="hljs-string">'small'</span> );
printPrice( columbian, <span class="hljs-string">'medium'</span> );
printPrice( decaf, <span class="hljs-string">'medium'</span> );
</code></pre>
<p>Notemos a simplicidade do código. E se houvessem mais sabores além dos três? quem sabe 20, ou talvez 40? Imaginemos então que se além do tamanho, existisse as opções orgânico e não orgânico. Haja código!</p>
<p>Usando este método, estamos dizendo à máquina o que imprimir para cada sabor e tamanho. Isso é o que há de pior em código imperativo - repetição.</p>
<p>Functional programming
Enquanto no paradigma imperativo dizemos para a máquina como ela deve agir para resolver o problema - passo a passo -, no funcional o descrevemos matematicamente para que a máquina aja sob ele.</p>
<p>Tomando o princípio funcional, teremos o mesmo aplicativo com o seguinte código:</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// separate the data and logic from the interface</span>
<span class="hljs-keyword">var</span> printPrice = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> price, label </span>) </span>{
<span class="hljs-keyword">var</span> node = <span class="hljs-built_in">document</span>.createElement( <span class="hljs-string">'li'</span> );
<span class="hljs-keyword">var</span> textnode = <span class="hljs-built_in">document</span>.createTextNode( label + <span class="hljs-string">' price: $'</span> + price );
node.appendChild( textnode );
<span class="hljs-built_in">document</span>.getElementById( <span class="hljs-string">'products2'</span> ).appendChild( node );
};
<span class="hljs-comment">// create function objects for each type of coffee</span>
<span class="hljs-keyword">var</span> columbian = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">this</span>.name = <span class="hljs-string">'columbian'</span>;
<span class="hljs-keyword">this</span>.basePrice = <span class="hljs-number">5</span>;
};
<span class="hljs-keyword">var</span> frenchRoast = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">this</span>.name = <span class="hljs-string">'french roast'</span>;
<span class="hljs-keyword">this</span>.basePrice = <span class="hljs-number">8</span>;
};
<span class="hljs-keyword">var</span> decaf = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">this</span>.name = <span class="hljs-string">'decaf'</span>;
<span class="hljs-keyword">this</span>.basePrice = <span class="hljs-number">6</span>;
};
<span class="hljs-comment">//create object literals for te different sizes</span>
<span class="hljs-keyword">var</span> small = {
getPrice : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.basePrice + <span class="hljs-number">2</span> },
getLabel : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.name + <span class="hljs-string">' small'</span> }
};
<span class="hljs-keyword">var</span> medium = {
getPrice : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.basePrice + <span class="hljs-number">4</span> },
getLabel : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.name + <span class="hljs-string">' medium'</span> }
};
<span class="hljs-keyword">var</span> large = {
getPrice : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.basePrice + <span class="hljs-number">6</span> },
getLabel : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.name + <span class="hljs-string">' large'</span> }
};
<span class="hljs-comment">// put all the coffee types and sizes into arrays</span>
<span class="hljs-keyword">var</span> coffeeFlavors = [ columbian, frenchRoast, decaf ];
<span class="hljs-keyword">var</span> coffeeSizes = [ small, medium, large ];
<span class="hljs-comment">// build new objects that are combinations of the above</span>
<span class="hljs-comment">// and put them into a new array</span>
<span class="hljs-keyword">var</span> coffees = coffeeFlavors.reduce( <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> previous, current </span>) </span>{
<span class="hljs-keyword">var</span> newCoffee = coffeeSizes.map( <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> mixin </span>) </span>{
<span class="hljs-comment">// `plusmix` function for functional mixins, see Ch.7</span>
<span class="hljs-keyword">var</span> newCoffeeObj = plusMixin( current, mixin );
<span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> newCoffeeObj();
});
<span class="hljs-keyword">return</span> previous.concat( newCoffee );
}, [] )
<span class="hljs-comment">// we've now defined how to get the price and label for each</span>
<span class="hljs-comment">// coffee flavor and size combination, now we can just print them</span>
coffees.forEach( <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> coffee </span>) </span>{
printPrice( coffee.getPrice(), coffee.getLabel() );
})
</code></pre>
<p>Nos é evidente que este é enormemente maior em termos de modularidade. Torna-se agora tarefa simples adicionarmos novos tamanhos e sabores, segue-se abaixo um exemplo:</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> arabica = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">this</span>.name = <span class="hljs-string">'arabica'</span>,
<span class="hljs-keyword">this</span>.basePrice = <span class="hljs-number">11</span>;
};
<span class="hljs-keyword">var</span> extraLarge = {
getPrice : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.basePrice + <span class="hljs-number">10</span> },
getLabel : <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.name + <span class="hljs-string">' extra large'</span> }
};
coffeeFlavors.push( arabica );
coffeeSizes.push( extraLarge );
</code></pre>
<p>Os arrays de objetos coffee são "misturados" com os de objetos size - com o auxílio da função plusMixin (consulte o Cap. 7, Programação funcional e orientada a objetos em javascript). As classes de tipo coffee é quem armazena em variáveis o nome do sabor e o preço padrão, as de tipo size contêm métodos para operarmos com os nomes e preços. A "mistura" acontece dentro de uma operação map(), que aplica uma função pura em cada elemento do array e retorna uma nova função dentro da operação reduce() - outra higher order function similar a função map(), exceto pelo fato dele "reduzir" todos os elementos de um Array num só elemento. E por conseguinte, o novo array contendo todas as combinações de tipos e tamanhos é iterado com o método forEach(); o forEach() é outra higher order function que aplica um callback em cada objeto do array. Neste exemplo, fornecemos uma função anônima que instancia os objetos e chama a função printPrice() passando os métodos getPrice() e getLabel() como argumentos.</p>
<p>Poderíamos ainda, deixar nosso exemplo mais funcional removendo a variável coffees e fazendo um encadeamento de funções - este é um poder secreto da programação funcional.</p>
<pre><code class="lang-javascript">coffeeFlavors.reduce( <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> previous, current </span>) </span>{
<span class="hljs-keyword">var</span> newCoffee = coffeeSizes.map( <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> mixin </span>) </span>{
<span class="hljs-comment">// `plusMixin` function for functional mixins, see Ch. 7</span>
<span class="hljs-keyword">var</span> newCoffeeObj = plusMixin( current, mixin );
<span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> newCoffeeObj();
});
<span class="hljs-keyword">return</span> previous.concat( newCoffee );
}, []).forEach(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"> coffee </span>) </span>{
printPrice( coffee.getPrice(), coffee.getLabel() );
})
</code></pre>
<p>Além disso, o fluxo de controle não é "uma sentada de cima pra baixo" como aconteceu em nosso código imperativo. Na programação funcional, as higher-order functions tomam o lugar dos laços for e while, e, em consequência quase ou nenhuma importância é dada quanto a ordem de execução. Iniciantes tedem a tremer quando "batem o olho" em código quem tem como princípio o paradigma funcional, no começo pode até dar medo, confesso, mas basta um pouco de prática para pegarmos o jeito - não é doloroso -, e logo verá o quão bom é código funcional.</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="../04-immutability/04-immutability.html" class="navigation navigation-prev " aria-label="Previous page: Imutabilidade">
<i class="fa fa-angle-left"></i>
</a>
<a href="../06-higher-order-functions/06-higher-order-functions.html" class="navigation navigation-next " aria-label="Next page: Funções de Primeira Classe">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Programação Declarativa","level":"1.7","depth":1,"next":{"title":"Funções de Primeira Classe","level":"1.8","depth":1,"path":"06-higher-order-functions/06-higher-order-functions.md","ref":"06-higher-order-functions/06-higher-order-functions.md","articles":[]},"previous":{"title":"Imutabilidade","level":"1.6","depth":1,"path":"04-immutability/04-immutability.md","ref":"04-immutability/04-immutability.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"05-declarative/05-declarative.md","mtime":"2019-03-01T01:31:36.150Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-03-12T15:25:11.574Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>