-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·413 lines (352 loc) · 15.3 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>A world without Features | DrupalCamp LA, 2019</title>
<meta name="description" content="How to managage Drupal 7 sites long-term, without using the Features module.">
<meta name="author" content="Jen Lampton">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="reveal.js/css/columns.css">
<link rel="stylesheet" href="reveal.js/plugin/prism/prism.css">
<link rel="stylesheet" href="reveal.js/plugin/fontawesome/css/font-awesome.css">
<link rel="stylesheet" href="reveal.js/css/theme/backdrop.css" id="theme">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>A world without Features</h1>
<h3>How to save time<br>when managing your exportables</h3>
</section>
<section>
<h1>Hi!</h1>
<h3>I am Jen Lampton</h3>
<h4 class="fragment">You might recognize me from...</h4>
<ul>
<li class="fragment">Twig in Drupal 8 <small>(2011-2013)</small></li>
<li class="fragment">BADCamp <small>(2007-2017)</small></li>
<li class="fragment">Backdrop CMS <small>(2013+)</small></li>
</ul>
</section>
<section>
<h1>Old timer</h1>
<h3>I've been a Drupaler for ~12.5 years <i class="fa fa-heart" aria-hidden="true"></i></h3>
<ul>
<li class="fragment">small web shop <small>(2003-2008)</small></li>
<li class="fragment">larger Drupal shop <small>(2008-2012)</small></li>
<li class="fragment">independant contractor <small>(2012+ / 2003-)</small></li>
</ul>
</section>
<section>
<h1>Independant contractor</h1>
<ul>
<li class="fragment">small teams (1-4 people)</li>
<li class="fragment">projects with small budgets ($75k and under)</li>
<li class="fragment">small~ish sites (well, usually)</li>
</ul>
</section>
<section data-state="taller">
<h2>Example Site</h2>
<div class="column-wrapper">
<div style="width: 49%;">
<div class="screenshot">
<img src="images/mtc.png" width="450px">
</div>
</div>
<div class="align-left pad-left" style="width: 49%;">
<p><a href="https://mtc.ca.gov">Metropolitan Transportation Commission</a></p>
<ul>
<li class="fragment">2 active developers</li>
<li class="fragment">~10 active editors</li>
<li class="fragment">~125 contrib modules</li>
<li class="fragment">Built on Drupal 7</li>
<li class="fragment">Still on Drupal 7</li>
</ul>
</div>
</div>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000" data-background="#000000">
<h1>Drupal 7</h1>
</section>
<section>
<h1>Quick Poll</h1>
<ul>
<li class="fragment">How many of you are running or managing D7 sites?</li>
<li class="fragment">...Using the Features module on any of those D7 sites?</li>
<li class="fragment">...Had any troubles managing your Features lately?</li>
</ul>
<h2 class="fragment">This talk us for you!</h2>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h1>Features</h1>
<h6>https://drupal.org/project/features</h6>
</section>
<section>
<h1>2 Use-cases for Features</h1>
<ol class="larger">
<li class="fragment">Bundling functionality together</li>
<li class="fragment">Configuration management</li>
</ol>
</section>
<section class="bundling">
<h2>1. Bundling functionality together</h2>
<h2 class="fragment"><strong>A Photo Gallery</strong></h2>
<div class="column-wrapper">
<div>
<ul class="fragment">
<li>content type</li>
<li>fields</li>
<li>image styles</li>
</ul>
</div>
<div>
<ul class="fragment">
<li>panels</li>
<li>views</li>
<li>flexslider presets</li>
</ul>
</div>
<div>
<ul class="fragment">
<li>moderation states</li>
<li>user roles</li>
<li>more!</li>
</ul>
</div>
</div>
<h3 class="fragment">The use-case<br>for which the module was named.</h3>
</section>
<section>
<h2>2. Configuration management</h2>
<h3 class="fragment">Developer workflow</h3>
<div class="column-wrapper fragment pad-top pad-bottom">
<div style="width: 30%; margin: 0 1%;">
Make changes to how a Drupal site is configured.
</div>
<div style="width: 30%; margin: 0 1%;">
Package all these changes up together neatly.
</div>
<div style="width: 30%; margin: 0 1%">
Safely<small>(tm)</small> deploy the changes to dev/test/live site.
</div>
</div>
<h3 class="fragment">This is the more common use-case*</h4>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h1>Sounds great!</h1>
<h2 class="fragment">In theory...</h2>
</section>
<section>
<h2>1. Bundling functionality together</h2>
<p>I have only delivered the <strong>exact same</strong> photo gallery on more than one website only <strong>3 times</strong> in <strong>22 years</strong> of being a web developer.</p>
<p>... and 2 of those 3 times were on a multi-site installation.</p>
<h3 class="fragment">(so, let's set aside use-case 1)</h3>
</section>
<section>
<h2>2. Configuration management</h2>
<p>Every single site I've used features on has suffered from issues related to storing configuration as Fatures.</p>
<ul>
<li class="fragment">Site slows down</li>
<li class="fragment">Time Wasted</li>
<li class="fragment">Sanity Lost</li>
</ul>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h1>Don't blame Features</h1>
</section>
<section>
<h1>Features is the best tool we have</h1>
<h3>(in Drupal 7)</h3>
</section>
<section>
<h2>These kinds of problems<br>are harder<br>for people like me.</h2>
</section>
<section>
<h1>Performace</h1>
<h3 class="fragment">Smaller orgs may not benefit from fancy/expsnsive hosting w/ lots of cache layers</h3>
</section>
<section>
<h1>Developer Time</h1>
<h3 class="fragment">With smaller budgets,<br>overages hurt more.</h3>
</section>
<section>
<h1>Developer Sanity</h1>
<h3 class="fragment">...okay, you got me.</h3>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h1>Is there another way?</h1>
</section>
<section>
<h1>How does the Features module do it?</h1>
</section>
<section>
<h1>Drupal's API!</h1>
<p>The API provides ways to ingest things* from code.</p>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h2>(these are all the things that work <strong>reliably</strong> with Features)</h2>
</section>
<section>
<h1>I can do that!</h1>
<h3>Use the API in the way it was intended:</h3>
<h2>Write a custom module.</h2>
</section>
<section>
<h2>But, what about all the other things?</h2>
<p>Drupal expects some configuratons to be in the database and <strong>not in code</strong>.</p>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h2>(these are all the things that <strong>do not work reliably</strong> with Features)</h2>
</section>
<section>
<h2>Here's a crazy idea...</h2>
<p>Can we leave them in the database?</p>
</section>
<section>
<h2>Two ways to manage config in the database:</h2>
<ol>
<li class="fragment">Do things manually (if it's safe)</li>
<li class="fragment">Wtite an update hook (if it's not)</li>
</ol>
</section>
<section>
<h2>Way #1: Doin' it manually</h2>
<ol>
<li>Take good notes, then follow them.
<ul>
<li>document everything that needs to be repeated</li>
<li>then, repeat (suitable only for simple tasks)</li>
</ul>
</li>
<li class="fragment">Create <strong>new</strong> things directly on the live site.
<ul>
<li>With the necessary access controls in place, they won't be noticed. (not for the faint of heart)</li>
</ul>
</li>
</ol>
</section>
<section>
<h2>Way #2: Updain' it oldskool-like</h2>
<h3>Add an update hook to your custom module.</h3>
<p>If you need to modify something only at the time of deployment, this is your ticket.</p>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h2>OMG!</h2>
<h1>CUSTOM CODE!?!</h1>
</section>
<section>
<h1>Let's reveiw the goal:</h1>
<ul>
<li class="fragment">Don't harm site performace</li>
<li class="fragment">Save developer time (and client $)</li>
<li class="fragment">Retain everyone's sanity</li>
</ul>
</section>
<section>
<h2>I've been able to achieve all of these goals <strong>reliably</strong><br>using custom code.</h2>
<h3>(instead of using Features)</h3>
</section>
<section>
<h1>What's in the code?</h1>
<ul>
<li>A module for each type of configuration that can be cleanly exported: <strong>organized, individual files</strong> for each export.</li>
<li>And (if you want) a custom module specifically for updates at the time of deployment.</li>
</ul>
</section>
<section>
<h2>Many systems already have a way to define (or override) their defaults.</h2>
</section>
<section>
<h2>Custom code is not so scary when you have an example to work from.</h2>
</section>
<section>
<h1>An example:</h1>
<h2>For managing your views</h2>
<p><small><i class="fa fa-github" aria-hidden="true"></i> <a href="https://github.com/jenlampton/jenerate">https://github.com/jenlampton/jenerate</a></small></p>
</section>
<section>
<h1>An example:</h1>
<h2>For managing your panels</h2>
<p><small><i class="fa fa-github" aria-hidden="true"></i> <a href="https://github.com/jenlampton/jenerate">https://github.com/jenlampton/jenerate</a></small></p>
</section>
<section>
<h1>More examples:</h1>
<ul>
<li>For managing your image styles</li>
<li>...view modes</li>
<li>...date formats</li>
<li>...flexslider presets</li>
<li>...feeds importers</li>
<li>...more!</li>
</ul>
</section>
<section>
<h2>I've open-sourced my "stub" modules for each of these things:</h2>
<p><i class="fa fa-github" aria-hidden="true"></i> <a href="ttps://github.com/jenlampton/jenerate">https://github.com/jenlampton/jenerate</a></p>
</section>
<section>
<h2>One more thing, before questions:</h2>
</section>
<section>
<h1>Thank you</h1>
<p>...to DrupalCamp LA organizers</p>
<p>...to DrupalCamp LA speakers</p>
<p>...to DrupalCamp LA attendees</p>
<p>#DrupalCommunity</p>
</section>
<section data-background-transition="slide" class="dark" data-background="#000000">
<h2>Questions?</h2>
<p>Code<br>
<i class="fa fa-github" aria-hidden="true"></i> <a href="https://github.com/jenlampton/jenerate">https://github.com/jenlampton/jenerate</a></p>
<p>Twitter<br>
<i class="fa fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/jenlampton">https://twitter.com/jenlampton</a></p>
</section>
<section data-state="cover">
<h1>A world without Features</h1>
<h3>How to save time when managing your exportables</h3>
<p>by Jen Lampton</p>
</section>
<section data-background="images/seattle-cover.jpg" data-background-transition="slide">
<h1> </h1>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/prism/prism.js', async: true },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>