Post details
Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.
This is a good tip for any language!
Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.
This is a good tip for any language!
another day, another tweet begging you guys to find another woke CEO to retweet whose ex-wife did not credibly accuse him of years of abuse including literally waterboarding her bloomberg.com/features/2015-…Chelsea Fagan (@Chelsea_Fagan)Tue, 15 Mar 2022 21:04 GMT
Is the idea after the first resolution it'll rely on OS caching? Still this seems inefficient and in cases of multiple domains resolving to the same IP, incorrect. What am I missing?
Automagically Auditing GitHub (Actions) Security using OpenSSF Scorecards (6 mins read).
How to use the OpenSSF Scorecards GitHub Action to audit your GitHub and GitHub Actions configuration, and a breakdown of some of the issues raised by it.
Introducing opengraph-mf2
a library, and service opengraph-mf2.tanna.dev
, for converting OpenGraph metadata to Microformats2 (3 mins read).
Announcing an NPM package and a hosted service for converting OpenGraph metadata to a Microformats2 object.
March 14th will always be FCA deadline day for me
After several years of almost doing the migration process, I'm finally shutting down a Scaleway instance (from November 2016!!) and migrating it over to Hetzner, which has already shown a very positive performance increase. I'm sure if I kept it in Scaleway, their new instances would be better, but I've got a few other things in Hetzner, and it makes managing easier, as well as a better price point, too!
🚨 Course alert: 'Intro to Web Dev' 🔹Completely free to attend 🔹Friendly, supportive instructors 🔹Bursary of £180 available on completion* 🔹Not a bootcamp; 100% stress-free learning #PFWave7 Sign-up now, RT for reach! 🐳 projectfunction.io/notes/we-are-b…ProjectFunction (@projectfunction)Sun, 13 Mar 2022 19:55 GMT
Week Notes 22#10 (5 mins read).
What happened in the week of 2022-03-07?
I will be attending
This week we’re joined by the “mad scientist” himself, Feross Aboukhadijeh…and we’re talking about the launch of Socket — the next big thing in the fight to secure and protect the open source supply chain. While working on the frontlines of open source, Feross and team have witnessed firsthand how supply chain attacks ...
How to fix Failed to load ApplicationContext
in Spring (Boot) applications (6 mins read).
Some common issues with Spring dependency injection and how to fix them.
There is nothing wrong with compliments. There is everything wrong with sexual harassment. How do you know the difference? If you wouldn’t say it to a woman when she’s stood next to her 7ft heavily built father who’d punch your face in. Then it’s the latter, don’t say it.Cathrin Machin Space ₳rt (@Cathrinmachin)Thu, 10 Mar 2022 07:41 GMT
I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it
I will be attending
I've been bitten by pinning to latest versions before and definitely agree that where possible we should make sure that things are pinned exactly.
Then we can use tools like Whitesource Renovate / Dependabot to manage updates automatically.
so I want everyone to notice how easily tech companies kick russian people off their platform but keep the nazis antivaxxers and transphobes.
Calvin Wong Tze Loon 黃子倫 🇲🇾 (@ithayla)Sun, 06 Mar 2022 16:56 GMT
Week Notes 22#09 (5 mins read).
What happened in the week of 2022-02-28?
Converting an x5c
from a JSON Web Key to a PEM with Node.JS (1 mins read).
How to convert a JWK's x5c
to a PEM-formatted certificate with Node.JS.
Extracting x5c
s from a JSON Web Key Set (JWKS) to PEM files with Node.js (1 mins read).
How to extract the full chain of certificates from a JWKS' x5c
parameter to files.
Generate a running mock server from an OpenAPI specification using Prism (3 mins read).
Using Stoplight's prism
tool to run a stubbed server from an OpenAPI specification, for better testing.
Gotcha: checked and unchecked exception handling from Spring WebFlux WebClient
(2 mins read).
How checked and unchecked exceptions may appear when testing your WebClient
code.
Accessing the response body with Spring WebFlux WebClient
with onStatus
(1 mins read).
How to access the body of an (error) response when using WebClient
's onStatus
method.
#IAmAntifa are you? 💕Bríd 🐝🐬🦊⚡🦅🇺🇸 (@DianeYoder12)Sun, 04 Jul 2021 03:29 +0000
Running a command on a visual selection in Vim (1 mins read).
How to pipe the text in a visual selection to a command, either to run it, or to replace the text in the seletion.
Updating the CA Certificate bundle in Chef Installations (3 mins read).
How to update/add new certificates to the Certificate Authority Certificate Bundle in a Chef Development Kit / Workstation installation.
Introducing a Go command-line tool for interacting with Micropub servers (1 mins read).
Announcing the initial release of micropub
, a CLI for interacting with Micropub servers.
Automagically formatting on save, with Neovim and Language Server Protocol (LSP) (1 mins read).
How to use Neovim's Language Server Protocol (LSP) support to autoformat code on a file's save.
Gotcha: Segfault when HTTP headers include newlines with Go (2 mins read).
Why you may be receiving a segfault when using http.Client
with HTTTP headers that include newlines.
Week Notes 22#08 (5 mins read).
What happened in the week of 2022-02-21?
Converting Spring Boot Property Variables to Environment Variables with Go (1 mins read).
A command-line script to convert a Spring Boot property to an environment variable.
Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Go (2 mins read).
How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Go.
I will be attending
Gotcha: Field casing is important when marshalling struct
s to JSON in Go (2 mins read).
Why you may be missing fields from your struct
s in your Go json.Marshal
calls.
Testing @Scheduled
annotations with Spring (Boot) (2 mins read).
How to test your Spring (Boot) scheduling without waiting for hours.
Creating a "Manual of Me" (1 mins read).
Creating a reference document about how to best collaborate together.
Everything on Twitter is a 🧵 these days and it’s annoying. Get a blog. #moarusingh.com (@MaybeThisIsRu)Wed, 23 Feb 2022 05:48 GMT
Pretty Printing JSON on the Command Line with Go (1 mins read).
Using Go's JSON module to pretty print JSON objects from the command line.