You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
5.5 KiB
128 lines
5.5 KiB
11 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||
|
|
||
|
<!-- Enable responsiveness on mobile devices-->
|
||
|
<!-- viewport-fit=cover is to support iPhone X rounded corners and notch in landscape-->
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover">
|
||
|
|
||
|
<title>Julio Biason .Me 4.3</title>
|
||
|
|
||
|
<!-- CSS -->
|
||
|
<link rel="stylesheet" href="https://blog.juliobiason.me/print.css" media="print">
|
||
|
<link rel="stylesheet" href="https://blog.juliobiason.me/poole.css">
|
||
|
<link rel="stylesheet" href="https://blog.juliobiason.me/hyde.css">
|
||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body class=" ">
|
||
|
|
||
|
<div class="sidebar">
|
||
|
<div class="container sidebar-sticky">
|
||
|
<div class="sidebar-about">
|
||
|
|
||
|
<a href="https://blog.juliobiason.me"><h1>Julio Biason .Me 4.3</h1></a>
|
||
|
|
||
|
<p class="lead">Old school dev living in a 2.0 dev world</p>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<ul class="sidebar-nav">
|
||
|
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/">English</a></li>
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/pt">Português</a></li>
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/tags">Tags (EN)</a></li>
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/pt/tags">Tags (PT)</a></li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="content container">
|
||
|
|
||
|
<div class="post">
|
||
|
<h1 class="post-title">Mastering JavaScript Design Patterns - Essential Solutions for Effective JavaScript Web Design - Simon Timms</h1>
|
||
|
<span class="post-date">
|
||
|
2016-03-12
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/simon-timms/">#simon timms</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/reviews/">#reviews</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/javascript/">#javascript</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/design-patterns/">#design patterns</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/it/">#it</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/stars-2/">#stars:2</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/published-2014/">#published:2014</a>
|
||
|
|
||
|
</span>
|
||
|
<p><a href="https://www.goodreads.com/book/show/23847040-mastering-javascript-design-patterns---essential-solutions-for-effective">GoodReads Summary</a>:
|
||
|
Enhance your JavaScript code with this essential collection of design
|
||
|
patterns. Discover an extensive range of techniques and strategies to
|
||
|
successfully tackle complex JavaScript development problems and put them into
|
||
|
practice by following detailed examples that demonstrate each design pattern
|
||
|
at its most effective. Dive deeper into JavaScript and master these powerful
|
||
|
design patterns for an innovative and cutting-edge approach to JavaScript that
|
||
|
meets the demands of modern web development.</p>
|
||
|
<span id="continue-reading"></span><div>
|
||
|
★★☆☆☆
|
||
|
</div>
|
||
|
<p>With a book named "Master JavaScript Design Patterns", I was expecting
|
||
|
something about some JavaScript common patterns, like subscribing and
|
||
|
generating events, proper way of transversing structures and such.</p>
|
||
|
<p>But nope.</p>
|
||
|
<p>The book starts with the classical design patterns from the Gang of Four,
|
||
|
which doesn't seem so bad if the book was named "Learning Design Patterns with
|
||
|
JavaScript", in a way to make learning the design patterns more streamlined
|
||
|
for people who already know JavaScript. But, then again, things fall apart,
|
||
|
with the Observer pattern being designed with a list of callbacks in a
|
||
|
structured, instead of creating a real event -- something, again, really
|
||
|
common in JavaScript.</p>
|
||
|
<p>Not only that, but some stuff seems really off. Like explaining lazy
|
||
|
evaluation -- something only ES6 has -- with... lists. Yup, lazy evaluation,
|
||
|
for the book, means adding things in a list only when you need to remove
|
||
|
things from the list. It would make so much more sense if the author jumped
|
||
|
into the ES6 bandwagon for this and explained the "yield" command... but no,
|
||
|
he had to write some lazy text.</p>
|
||
|
<p>The fact that all examples are based on Game of Thrones -- with all being
|
||
|
based on things that happen in Westeros -- don't make it funny or interesting.
|
||
|
Worse, none of the examples are related, so the author just keeps jumping
|
||
|
between weird scenarios to explain the "patterns".</p>
|
||
|
<p>Even when you throw the JavaScript away and decide to read it to learn some
|
||
|
design patterns, you waste your time. Some designs, mostly the MV*, are
|
||
|
hastily described and just superficially analyzed. </p>
|
||
|
<p>It really starts a bit off -- again, if it was "Learning Design Patterns with
|
||
|
JavaScript", it would be almost perfect -- and then goes downhill by some lazy
|
||
|
writing and wrong assumptions.</p>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|