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.
369 lines
16 KiB
369 lines
16 KiB
<!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="posts"> |
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/magical-number-seven/"> |
|
Things I Learnt The Hard Way - The Magical Number Seven, Plus Or Minus Two |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-26 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/complexity/">#complexity</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>"<a href="https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two">The magical number</a>" |
|
is a psychology article about the number of things one can keep in their mind |
|
at the same time.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/magical-number-seven/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/cargo-cult/"> |
|
Things I Learnt The Hard Way - Understand And Stay Away From Cargo Cult |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-25 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/cargo-cult/">#cargo cult</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>"<a href="https://en.wikipedia.org/wiki/Cargo_cult">Cargo cult</a>" is a type of cult |
|
which appeared in the Melanesia, in which the natives would build their copy |
|
of an airplane (no motor, 'cause they didn't have the knowledge to build one |
|
-- or even knew what went inside the airplane) in the hopes they would get the |
|
same results as a real airplane.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/cargo-cult/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/outside-project/"> |
|
Things I Learnt The Hard Way - Don't Mess With Things Outside Your Project |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-25 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/frameworks/">#frameworks</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>Simple rule: Is the code yours or from your team? Good, you can make any |
|
changes you want. Does it come from outside? DON'T. TOUCH. IT.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/outside-project/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/patterns-not-solutions/"> |
|
Things I Learnt The Hard Way - Design Patters Are Used to Name Solution, Not Find Them |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-25 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/design-patterns/">#design patterns</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>Most of the times I saw design patterns being applied, they were applied as a |
|
way to find a solution, so you end up twisting a solution -- and, sometimes, |
|
the problem it self -- to fit the pattern.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/patterns-not-solutions/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/right-tool-agenda/"> |
|
Things I Learnt The Hard Way - "Right Tool For The Job" Is Just To Push An Agenda |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-25 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/right-tool/">#right tool</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/agenda/">#agenda</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>A lot of times I heard "We should use the right tool for the job!" Most of |
|
those times it was just a way to push an agenda.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/right-tool-agenda/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/right-tool-obvious/"> |
|
Things I Learnt The Hard Way - The Right Tool Is More Obvious Than You Think |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-25 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/right-tool/">#right tool</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>Maybe you're in a project that needs to process some text. Maybe you're |
|
tempted to say "Let's use Perl" 'cause you know that Perl is very strong in |
|
processing text.</p> |
|
<p>But that may still be not the right tool.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/right-tool-obvious/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/use-structures/"> |
|
Things I Learnt The Hard Way - If Your Data Has a Schema, Use a Structure |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-25 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/data-classes/">#data classes</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/structs/">#structs</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>You may be tempted to use a list (or tuple, if your language allows) to keep |
|
your data if it has, say, only 2 fields. Don't.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/use-structures/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/crash-it/"> |
|
Things I Learnt The Hard Way - It's Better To Let The Application Crash Than Do Nothing |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-24 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/exceptions/">#exceptions</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/error-handling/">#error handling</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>Although that sounds weird, it's better to not add any error handling than |
|
silently capturing errors and doing nothing.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/crash-it/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/data-types/"> |
|
Things I Learnt The Hard Way - Types Say What You Data Is |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-24 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/types/">#types</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>Memory is just a sequence of bytes; bytes are just numbers from 0 to 255; what |
|
those numbers mean is described on the language type system.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/data-types/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
<div class="post"> |
|
<h1 class="post-title"> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/handle-it/"> |
|
Things I Learnt The Hard Way - If You Know How To Handle It, Handle It |
|
</a> |
|
</h1> |
|
|
|
<div class="post-meta"> |
|
<span class="post-date"> |
|
2019-06-24 |
|
|
|
<a href="https://blog.juliobiason.me/tags/books/">#books</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/exceptions/">#exceptions</a> |
|
|
|
<a href="https://blog.juliobiason.me/tags/error-handling/">#error handling</a> |
|
|
|
</span> |
|
</div> |
|
<div class="post-summary"> |
|
<p>If you know an error can occur, then you should handle it properly, instead of |
|
ignoring it.</p> |
|
|
|
</div> |
|
<a href="https://blog.juliobiason.me/books/things-i-learnt/handle-it/"> |
|
Read more... |
|
</a> |
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
</html>
|
|
|