@mattiloh

21 Followers
109 Following
31 Posts
Co-founder and CTO at picter.com. Leading talented people to build great digital products. Loves making things, dancing Lindy Hop and listening to podcasts. Dad of 2 daughters.
Pronounshe/him
Websitehttps://mattiloh.de

> npm ruin dev

#freudian_slip or regular typo? 🤔

1/ #JavaScript: Neat Intl.Collator option: `numeric`. It compares numbers (anywhere!) numerically, not lexicographically:

> const collator = new Intl.Collator('en-us', {numeric: true});

> ['b', 'c', 'a', '1', '10', '2'].sort(collator.compare)
['1', '2', '10', 'a', 'b', 'c']

> ['1 day', '10 days', '2 days'].sort(collator.compare)
[ '1 day', '2 days', '10 days' ]

> ['in 1 day', 'in 10 days', 'in 2 days'].sort(collator.compare)
[ 'in 1 day', 'in 2 days', 'in 10 days' ]

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator#numeric

Intl.Collator() constructor - JavaScript | MDN

The Intl.Collator() constructor creates Intl.Collator objects.

MDN Web Docs
Zoe Longmuss und Volker Wierz arbeiten auf einer Berliner Krankenhausstation, wo viele HIV-Patienten betreut werden. Ein Gespräch über das Virus. 👉 https://taz.de/Krankenpflegende-ueber-HIV-Behandlung/!5960906/
Kran­ken­pfle­ge­nde über HIV-Behandlung: „Wir müssen das Stigma abbauen“

Zoe Longmuss und Volker Wierz arbeiten auf einer Berliner Krankenhausstation, wo viele HIV-Patienten betreut werden. Ein Gespräch über das Virus.

Tracking your sleep during the newborn phase can be rather disheartening 😵‍💫
TIL: #AWS #CloudFront Functions are a very light weight alternative to Lambda@Edge. So light, they don't even support the const keyword in their JS environment 😅
But very useful for URL rewrites/redirects, header manipulations, etc.

Hey folks, I have left Netlify and am beginning to look at what's next for me. Things I enjoy doing:
• building prototypes
• teaching
• writing, especially technical writing
• architectural synthesis (what should the system look like)
• organizational problem-solving (what should the org look like)
• analysis (what does the data say we should do)

I'm especially interested in companies doing interesting things with LLMs. If you think there's an opportunity I should hear about, let me know.

Mastodon's Mastodon'ts.

There are a few fundamentally broken things about how Mastodon posts work that are terrible vectors for abuse, as well as being bad for basic usability. Maybe they are fixable, I don't know. To be clear: I am a fan of Mastodon....
https://jwz.org/b/ykC_

Mastodon's Mastodon'ts

There are a few fundamentally broken things about how Mastodon posts work that are terrible vectors for abuse, as well as being bad for basic usability. Maybe they are fixable, I don't know. To be clear: I am a fan of Mastodon. I have been enjoying my time there much more than I ever enjoyed Twitter or Facebook or Instagram. And I am 100% in the "I won't touch anything Jack Dorsey has ...

These tsconfig bases by @orta are gold!🥇 They're my goto for every new project: https://github.com/tsconfig/bases
GitHub - tsconfig/bases: Hosts TSConfigs to extend in a TypeScript app, tuned to a particular runtime environment

Hosts TSConfigs to extend in a TypeScript app, tuned to a particular runtime environment - tsconfig/bases

GitHub
I like #CircleCI's #Slack orb. So useful if you need fine-tuned alarms for specific jobs only. The classic CircleCI app in Slack is too noisy for critical jobs IMO.
https://circleci.com/blog/continuous-integration-slack-twilio/
Configuring notifications for your CI builds with Slack and Twilio

Learn how to add notifications for CircleCI builds using Slack and Twilio.

CircleCI
Just found a neat tool by @stevegrunwell to keep node_modules and other dependency directories out of my #macos #timemachine backups: https://github.com/stevegrunwell/asimov
GitHub - stevegrunwell/asimov: Automatically exclude development dependencies from Apple Time Machine backups

Automatically exclude development dependencies from Apple Time Machine backups - stevegrunwell/asimov

GitHub