Plurrrr

Tue 15 Dec 2020

Minimal safe Bash script template

Bash scripts. Almost anyone needs to write one sooner or later. Almost no one says “yeah, I love writing them”. And that’s why almost everyone is putting low attention while writing them.

I won’t try to make you a Bash expert (since I’m not a one either), but I will show you a minimal template that will make your scripts safer. You don’t need to thank me, your future self will thank you.

Source: Minimal safe Bash script template, an article by Maciej Radzikowski.

Also of interest is the resulting Hacker News discussion.

Exhaustiveness Checking with Mypy

Mypy is an optional static type checker for Python. It's been around since 2012 and is gaining traction even since. One of the main benefits of using a type checker is getting errors at "compile time" rather than at run time.

Exhaustiveness checking is a common feature of type checkers, and a very useful one! In this article I'm going to show you how you can get mypy to perform exhaustiveness checking!

Source: Exhaustiveness Checking with Mypy, an article by Haki Benita.

ProRAW on iPhone 12 Pro

Today Apple officially released their new image format for creative professionals, Apple ProRAW. It marks a monumental leap forward in digital imaging on iPhone and I can’t wait to share a bit more about it.

I’ll cover why ProRAW matters, how to shoot ProRAW, and some of the best tools and apps for your iPhone ProRAW workflow.

If you follow my work, you know I’m a travel photographer and I’m usually testing my camera gear in extreme environments, so I designed a few tests for ProRAW in this same vein and that’s where I saw this image format really shine.

Source: ProRAW Is Here!, an article by Austin Mann.

Web crawling with Python

Web crawling is a powerful technique to collect data from the web by finding all the URLs for one or multiple domains. Python has several popular web crawling libraries and frameworks.

In this article, we will first introduce different crawling strategies and use cases. Then we will build a simple web crawler from scratch in Python using two libraries: requests and Beautiful Soup. Next, we will see why it’s better to use a web crawling framework like Scrapy. Finally, we will build an example crawler with Scrapy to collect film metadata from IMDb and see how Scrapy scales to websites with several million pages.

Source: Web crawling with Python, an article by Ari Bajo.