-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
417 lines (246 loc) · 10 KB
/
index.html
File metadata and controls
417 lines (246 loc) · 10 KB
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
<!DOCTYPE html>
<html class="no-js">
<head lang="en-us">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<title>DDD concepts with Ruby</title>
<meta name="generator" content="Hugo 0.18.1" />
<meta name="description" content="Information how to apply DDD concepts to Ruby applications">
<link rel="canonical" href="https://ddd-ruby.github.io/">
<meta name="author" content="DDD Ruby">
<meta property="og:url" content="https://ddd-ruby.github.io/">
<meta property="og:title" content="DDD concepts with Ruby">
<meta property="og:image" content="https://ddd-ruby.github.io/images/logo.png">
<meta name="apple-mobile-web-app-title" content="DDD concepts with Ruby">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" type="image/x-icon" href="https://ddd-ruby.github.io/images/favicon.ico">
<link rel="icon" type="image/x-icon" href="https://ddd-ruby.github.io/images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
src: url('https://ddd-ruby.github.io/fonts/icon.eot');
src: url('https://ddd-ruby.github.io/fonts/icon.eot')
format('embedded-opentype'),
url('https://ddd-ruby.github.io/fonts/icon.woff')
format('woff'),
url('https://ddd-ruby.github.io/fonts/icon.ttf')
format('truetype'),
url('https://ddd-ruby.github.io/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
<link rel="stylesheet" href="https://ddd-ruby.github.io/stylesheets/application.css">
<link rel="stylesheet" href="https://ddd-ruby.github.io/stylesheets/temporary.css">
<link rel="stylesheet" href="https://ddd-ruby.github.io/stylesheets/palettes.css">
<link rel="stylesheet" href="https://ddd-ruby.github.io/stylesheets/highlight/highlight.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,700|Ubuntu+Mono">
<style>
body, input {
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
}
pre, code {
font-family: 'Ubuntu Mono', 'Courier New', 'Courier', monospace;
}
</style>
<script src="https://ddd-ruby.github.io/javascripts/modernizr.js"></script>
<link href="https://ddd-ruby.github.io/index.xml" rel="alternate" type="application/rss+xml" title="DDD concepts with Ruby" />
<link href="https://ddd-ruby.github.io/index.xml" rel="feed" type="application/rss+xml" title="DDD concepts with Ruby" />
</head>
<body class="palette-primary-red palette-accent-teal">
<div class="backdrop">
<div class="backdrop-paper"></div>
</div>
<input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header">
<nav aria-label="Header">
<div class="bar default">
<div class="button button-menu" role="button" aria-label="Menu">
<label class="toggle-button icon icon-menu" for="toggle-drawer">
<span></span>
</label>
</div>
<div class="stretch">
<div class="title">
DDD concepts with Ruby
</div>
</div>
<div class="button button-github" role="button" aria-label="GitHub">
<a href="https://github.com/ddd-ruby" title="@ddd-ruby on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
</div>
</div>
<div class="bar search">
<div class="button button-close" role="button" aria-label="Close">
<label class="toggle-button icon icon-back" for="toggle-search"></label>
</div>
<div class="stretch">
<div class="field">
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
</div>
</div>
<div class="button button-reset" role="button" aria-label="Search">
<button class="toggle-button icon icon-close" id="reset-search"></button>
</div>
</div>
</nav>
</header>
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
<a href="https://github.com/ddd-ruby/ddd-ruby.github.io" class="project">
<div class="banner">
<div class="logo">
<img src="https://ddd-ruby.github.io/images/logo.png">
</div>
<div class="name">
<strong>DDD concepts with Ruby <span class="version">0.1.0</span></strong>
</div>
</div>
</a>
<div class="scrollable">
<div class="wrapper">
<div class="toc">
<ul>
<li>
<a class="current" title="Overview" href="https://ddd-ruby.github.io/">
Overview
</a>
<ul id="scrollspy">
</ul>
</li>
<li>
<a title="Getting started" href="https://ddd-ruby.github.io/getting-started/">
Getting started
</a>
</li>
<li>
<a title="Ruby Libraries" href="https://ddd-ruby.github.io/libraries/">
Ruby Libraries
</a>
</li>
<li>
<a title="Quest for Quality" href="https://ddd-ruby.github.io/quality/">
Quest for Quality
</a>
</li>
<li>
<a title="Additional Information" href="https://ddd-ruby.github.io/additional-information/">
Additional Information
</a>
</li>
</ul>
<hr>
<span class="section">The author</span>
<ul>
<li>
<a href="https://github.com/ddd-ruby" target="_blank" title="@ddd-ruby on GitHub">
@ddd-ruby on GitHub
</a>
</li>
<li>
<a href="mailto:hello@droidlabs.com" title="Email of hello@droidlabs.com">
Contact via email
</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
</div>
<article class="article">
<div class="wrapper">
<h1>DDD in Ruby </h1>
<h2 id="beautiful-highly-adaptable-and-maintainable-ruby-applications-only-a-dream">Beautiful, highly adaptable and maintainable Ruby applications - only a dream?</h2>
<p>At some point of your career you have probably heard about DDD (Domain Driven Design) and dismissed it quickly as overly complex and too <code>enterprisy</code>. After all, MVC and CRUD seem so much simpler and why would you go through the trouble of introducing new layers of complexity to your Ruby / Rails application? It just works and is really easy do maintain for many years to come, right?</p>
<p>Well… If you have ever worked on a successful Rails application, you probably experienced firsthand the problems that grow, when you apply MVC / CRUD to more complex requirements. You might start to introduce some extra layers, like <code>services</code>, <code>interactors</code> and such. While doing this, you have to invent new patterns, that are not quite popular in the Ruby community and there is little guidence, where this path will lead you.</p>
<p>We developers / builders / business-owners want similar things:</p>
<ul>
<li>maintainable applications</li>
<li>correct software</li>
<li>good developer experience</li>
<li>this thing should run in production without major problems</li>
</ul>
<p>…</p>
<aside class="copyright" role="note">
© 2017 Released under the MIT license
</aside>
<footer class="footer">
<nav class="pagination" aria-label="Footer">
<div class="previous">
</div>
<div class="next">
<a href="https://ddd-ruby.github.io/getting-started/" title="Getting-starteds">
<span class="direction">
Next
</span>
<div class="page">
<div class="stretch">
<div class="title">
Getting-starteds
</div>
</div>
<div class="button button-next" role="button" aria-label="Next">
<i class="icon icon-forward"></i>
</div>
</div>
</a>
</div>
</nav>
</footer>
</div>
</article>
<div class="results" role="status" aria-live="polite">
<div class="scrollable">
<div class="wrapper">
<div class="meta"></div>
<div class="list"></div>
</div>
</div>
</div>
</main>
<script>
var base_url = '';
var repo_id = '';
</script>
<script src="https://ddd-ruby.github.io/javascripts/application.js"></script>
<script>
/* Add headers to scrollspy */
var headers = document.getElementsByTagName("h2");
var scrollspy = document.getElementById('scrollspy');
if(scrollspy) {
if(headers.length > 0) {
for(var i = 0; i < headers.length; i++) {
var li = document.createElement("li");
li.setAttribute("class", "anchor");
var a = document.createElement("a");
a.setAttribute("href", "#" + headers[i].id);
a.setAttribute("title", headers[i].innerHTML);
a.innerHTML = headers[i].innerHTML;
li.appendChild(a)
scrollspy.appendChild(li);
}
} else {
scrollspy.parentElement.removeChild(scrollspy)
}
/* Add permanent link next to the headers */
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
for(var i = 0; i < headers.length; i++) {
var a = document.createElement("a");
a.setAttribute("class", "headerlink");
a.setAttribute("href", "#" + headers[i].id);
a.setAttribute("title", "Permanent link")
a.innerHTML = "#";
headers[i].appendChild(a);
}
}
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>