Browse Source

New chapter: Bad code defense

master
Julio Biason 5 years ago
parent
commit
b5b20d67ef
  1. 1
      content/books/things-i-learnt/_index.md
  2. 29
      content/books/things-i-learnt/bad-code-defense/index.md
  3. 2
      content/books/things-i-learnt/own-your-shit/index.md

1
content/books/things-i-learnt/_index.md

@ -98,3 +98,4 @@ template = "section-contentless.html"
* [Keep A List of Things I Don't Know](things-i-dont-know)
* [You Always Have The Time](time)
* [Own Your Shit](own-your-shit)
* [Don't Defend Bad Code](bad-code-defense)

29
content/books/things-i-learnt/bad-code-defense/index.md

@ -0,0 +1,29 @@
+++
title = "Things I Learnt The Hard Way - Don't Defend Bad Code"
date = 2019-07-31
[taxonomies]
tags = ["en-au", "books", "things i learnt", "personal", "bad code", "defend"]
+++
Bad code exists everywhere. You shouldn't defend it, even if it is your own
code.
<!-- more -->
Bad code isn't bad on purpose. It sadly happens. But because it is bad, you
shouldn't defend it.
For example, an application does whatever you need. But it crashes from time
to time. Software shouldn't crash and you shouldn't defend it just because it
does whatever you need.
Your internal application works on a single browser. That's bad. "But maybe
the other devs thought it wouldn't be worth working on all browsers". No. It
is _bad_. You shouldn't defend the other devs because they decided to focus on
a single browser due whatever problems they were facing. Sure it wasn't nice
that they had to do this trade-off, but it is still _bad_ software.
If we keep defending this kind of software, we will still get bad software.
{{ chapters(prev_chapter_link="/books/things-i-learnt/own-your-shit", prev_chapter_title="Own Your Shit") }}

2
content/books/things-i-learnt/own-your-shit/index.md

@ -43,4 +43,4 @@ can't simply move my mistake to some other personality; who was wrong was
_me_. And unless I own my shit up, I'd never get the understanding I'd need to
see my mistake about Scala in the first place.
{{ chapters(prev_chapter_link="/books/things-i-learnt/time", prev_chapter_title="You Always Have The Time") }}
{{ chapters(prev_chapter_link="/books/things-i-learnt/time", prev_chapter_title="You Always Have The Time", next_chapter_link="/books/things-i-learnt/bad-code-defense", next_chapter_title="Don't Defend Bad Code") }}

Loading…
Cancel
Save