This Week I Learned: 2022W28
Wed Jul 13 2022
- Thanks to
I learned that Postgres (and major other SQL DBs) treat
null values as distinct when adding a Unique constraint.
- Postgres doesn’t support ULID natively yet. There are
some experimental extensions
to do so, but not official ones. More details
- If you don’t manage to do what you want when generating a PDF with puppeteer or wkhtmltopdf, and don’t want to buy a super expensive license of
, you can try to generate it through the SASS service
. The tests (with a big watermark) are free unlimited, but a free acount gives you 5 documents generated for free without watemark. Great service and customer service, and the premium version is not so expensive if you don’t need to generate documents on a daily basis.
- This PHP library,
wraps native PHP regex functions in a nice API, close to what you could get with Python. Interesting.
- In CSS, utility classes are really not the same as inline styles. I read this very interesting
defending utility classes (tools like
). Tailwind always sounded super weird and counter-intuitive to me (without even trying). This makes me want to try it.
React / Markdown
- You can use Markdown in your JSX files through