🔥 If you're experimenting with functions and can't be bothered to install a test framework you can use Golang-style table-driven testing.

Useful and easy to convert to real test code if needed.

Example in TypeScript. 👇

Do you need a degree in computer science to be a good programmer?

Boost via @coding_unicorn@instagram.com

How I'd wish for flags like `--help` and `--version` to be standard in all Unix tools everywhere.

tmux, you are a disappointment, but only in this area.

Just realized the Windows Terminal now has an experimental flag for turning a nice CRT-style scanline effect on. I might keep it on!

`"experimental.retroTerminalEffect": true`

The latest volume of ThoughtWorks Technolody Radar (vol. 21) is 🔥

WSL 2 arrived on Microsoft Insider's Slow Ring which means I can now add a new shell snippet to my collection.

This will open the given (or current) folder for exploring.

Lighthouse audits for web pages are not very challenging for JAMstack web pages and Serverless. 🤔

Dusted my Wii U to play a bit of The Legend of Zelda: Wind Waker HD. Can't help but praise the diamonds this series produced from Ocarina of Time to Twilight Princess.

Then they released Breath of the Wild which by design included most of the bad aspects of open-world gameplay (keep your stupid crumbling weapons and constant inventory management). Sadly, the game was popular enough to have a sequel coming.

Oh well, at least we always have the legacy games.

Writing things down either in editor or on pen and paper is an undervalued skill. I've often had trouble with reducing or folding a list of values so I wrote it down. Here's how you compute a sum of an integer list.

This is also useful when learning any mathematical formulae. Write it down on your own terms and test the result.

An interesting message that almost got me worried. Except that I've never touched Clash of Clans, and by quick peek turned out that links in the message were directing to arbitrary Disqus and Google URLs. I guess the aim is to have user click on the cancelling links.

Sending fake receipts is a well-known and widely used phishing trick. Don't be fooled by this shit.

In Python, builtin functions any() and all() are a great way to validate a list containing arbitrary data. Similar to Array.every() and Array.some() in JavaScript.

Throw away your for-loops and embrace these next time.

If I haven't been that active in tooting lately it's because I've got a new friend.

Link's Awakening is 5/5. Childhood restored.

Recently I made the jump from Hyper terminal to the new Windows Terminal. It's very usable for almost every terminal task including some JS coding in Neovim (SpaceVim configuraton in the picture). Crashes only very rarely.

While Hyper 3 running in Electron was fast enough for terminal it naturally couldn't compare to the native app performance, which is a nice bonus.

A little brainteasing with classic rot13. Hadn't done this before, and it was quite fun.

I decided to cut back on cross-posting spam on Mastodon. Might delete later but we'll see how it goes.

Show more
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!