thomaswilson-sveltekit/.netlify/server/chunks/2020-08-14-thing-i-learned-05e37aa6.js

39 lines
3.1 KiB
JavaScript
Raw Normal View History

2022-04-16 10:50:44 +00:00
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stdin_exports = {};
__export(stdin_exports, {
default: () => _2020_08_14_thing_i_learned,
metadata: () => metadata
});
module.exports = __toCommonJS(stdin_exports);
var import_index_10ac95e2 = require("./index-10ac95e2.js");
const metadata = {
"title": "Things I learned this week #1",
"author": "Thomas Wilson",
"date": "2020-08-14T00:00:00.000Z",
"slug": "2020-08-14-things-i-learned-1",
"draft": false,
"tags": ["things-i-learned"]
};
const _2020_08_14_thing_i_learned = (0, import_index_10ac95e2.c)(($$result, $$props, $$bindings, slots) => {
return `<ul><li><strong>This tidbit about a literary villa</strong>: Over three days in June of 1816 at a villa in Geneva, Mary Shelley started writing <em>Frankenstein, or The Modern Prometheus</em> and John William Polidori started <em>The Vampyre</em> (which preceded the modern romantic image of vampires). The latter inspired Lord Byron (who was also at the villa, by the way) to write <em>A Fragment</em>. Imagine being 2am whiskey drunk at that, wow.</li>
<li><strong>This way to think about css/styling</strong>: The decisions we make about the naming, structure, and languages/frameworks for modern styling tools just <em>move complexity</em>, they don\u2019t solve it. If you use CSS, it doesn\u2019t matter too much how do you name it (BEM or utility classes?) or how do you build it (vanilla CSS, post-CSS, SASS?). Likewise, CSS-in-JS vs inline styles won\u2019t affect things. <em>Be consistent</em> and <em>know where the complexity in your codebase is</em> (<a href="${"https://shoptalkshow.com/425/"}" rel="${"nofollow"}">source</a>)</li>
<li><strong>This thing about viruses during a pandemic</strong>: It makes evolutionary sense for a virus to be less virulent (to cause less disease). Those viruses which can infect more people will, by definition, be more evolutionary successful. This is one reason (alongside massive economic, medical, and societal changes) that the global death toll from HIV is lower now than it was in the pandemic of the late 1980s. (<a href="${"https://www.nhs.uk/news/medical-practice/hiv-evolving-into-less-deadly-form/"}" rel="${"nofollow"}">source</a>)</li>
<li><strong>This puur-fectly fitting French word</strong>: The*<em>French word for the verb \u2018to purr\u2019 is </em>ronronner* - which sounds simply excellent with a French guttural accent.</li></ul>`;
});