Command/Control + Click in Vanilla JavaScript and React - Code with Hugo - Sep 17th 2019
Hot off the press
Detect ctrl/CMD/alt/shift + Click in Vanilla JavaScript and React: Detecting control-click, command-click, alt-click and shift-click in JavaScript without listening to keydown events is straightforward.
In fun fails, I configured a healthcheck for an app to fetch the RSS feed of Code with Hugo every minute... leading to a bunch of uncached traffic.
To subscribe to the RSS feed it's at https://codewithhugo.com/index.xml
https://twitter.com/hugo__df/status/1171080030929260545?s=20
If you're someone new to React and you're feeling overwhelmed, check out react-minimal-starter-parcel if you want a "A minimal starter project (2-files, 1 JS file) for React with Parcel and xo for linting."
If you missed it
How to run Jest tests sequentially: By default Jest runs tests in parallel with a “a worker pool of child processes that run tests” (Jest CLI docs).
Record analytics events with a Zeit "micro" + SQLite3 Node.js application: In order to finally switch off Google Analytics, I need to replace my goal conversion tracking somehow.
Detect if the current file/module is the entrypoint or import/require-d in Node.js: How does one identify whether a JavaScript file is being run directly (node file.js) or it’s being import/require-d (require('./file') in another JS file).
Yarn Workspaces: monorepo management without Lerna for applications and coding examples: How to use Yarn Workspaces to manage applications/coding examples.
From the web
Watch "Go Microservices = Go Kit [I] - Peter Bourgon, Go Kit" on YouTube: Go + Microservices = Go Kit [I] - Peter Bourgon, Go KitGo is emerging as the default programming language for cloud-native tooling and infrastructure. But it's also a perfect language for implementing your business logic—with a little bit of help! This talk introduces and deep-dives into Go kit, a
DEF CON and Stack Overflow: What Our Traffic Says About Cybersecurity Techn by Julia Silge: Today is the first day of DEF CON 27, arguably the world’s best known hacker convention. Each year, thousands of people interested in security (and/or the hacking thereof) travel to Las Vegas to learn and gather with like-minded community.
Why Clojure? by Robert C. Martin: I’ve programmed systems in many different languages; from assembler to Java. I’ve written programs in binary machine language. I’ve written applications in Fortran, COBOL, PL/1, C, Pascal, C++, Java, Lua, Smalltalk, Logo, and dozens of other languages.
Recap of the funding
experiment » Feross.org by Feross Aboukhadijeh: I’m ending the funding experiment I introduced a few days ago. The idea was this: whenever users install open source software, the funding package would display a message from a company that supports open source. The sponsorship would pay directly for maintainer time.