Yawar Amin

Yawar Amin @yawaramin

About: Programming languages enthusiast. Author of Learn Type Driven Development: https://www.packtpub.com/application-development/learn-type-driven-development

Joined:
Jun 11, 2017

Yawar Amin
articles - 44 total

Why hx-boost is actually the most important feature of htmx

A widely misunderstood htmx attribute holds the key to unlocking its hypermedia design philosophy

Learn More 4 0Jun 20

Easy parsing with reasonable error messages in OCaml's Angstrom

How to use 'labels' to provide helpful parse error messages

Learn More 3 0May 8

You're thinking about passkeys wrong

It's a godsend for ordinary people but hated by (some) tech folks

Learn More 24 14Jan 29

Powerful form validation with OCaml's Dream framework

Accessing the power of static typing for server-side form validation and error reporting

Learn More 6 0Dec 1 '24

Handling form errors in htmx

How to report all errors to the user

Learn More 9 3Oct 11 '24

A type theory mnemonic for boolean operator precedence

IN COMPUTER languages which support boolean operators like && (and) and || (or), &&...

Learn More 3 1Sep 16 '24

Constructing XML output with dream-html

How to have complete control over the XML output from your code

Learn More 1 1Jul 14 '24

Bare-bones unit testing in OCaml with dune

THERE are various techniques and tools to do unit testing in OCaml. A small selection: Alcotest -...

Learn More 12 0Jul 1 '24

Why I don't use a third-party assertion library in Go unit tests

TL;DR: I don't need it, and you probably don't either. I'll explain below. As we know of course, Go...

Learn More 25 17May 20 '24

Format strings in OCaml

OCAML doesn't have string interpolation, but it does have C-style format strings (but type-safe)....

Learn More 7 0Feb 25 '24

Bookmarklets, and why you should use them

Unlock your browser's full potential with this hidden technique

Learn More 15 0Jan 2 '24

Tagging OCaml packages

How to tag your opam packages for better searchability

Learn More 2 0Dec 31 '23

Vulnerability inflation in infosec

How infosec people will grab onto every bug

Learn More 0 0Aug 13 '23

Translations without the tears

Trying to simplify the complex world of i18n/l10n with SQLite

Learn More 1 8Mar 27 '23

Scala app configuration with environment variables

Ditching the fancy config files and creating strongly-typed configs directly in Scala

Learn More 2 0Dec 15 '22

Scala for-comprehensions for resource management

JAVA's 'try-with-resources' statement is its idiomatic answer to the question of safe resource...

Learn More 4 0Dec 10 '22

Practical OCaml, Multicore Edition

Updating the proof-of-concept server for Multicore OCaml

Learn More 15 9Oct 1 '22

How to print anything in OCaml

How to use the `Fmt` module to pretty-print OCaml values

Learn More 17 0Jun 4 '22

The human toll of log4j maintenance

How the pressure of fixing the vulnerability was dumped on a tiny team over a frantic weekend

Learn More 98 28Dec 14 '21

Quick-and-dirty pure command-line arguments in OCaml

Using only the standard library

Learn More 12 2Sep 12 '21

Practical OCaml

This is a guide to OCaml as a pragmatic, general-purpose language that can scale with your everyday...

Learn More 51 5May 18 '21

SQLite - a developer's best friend

Some surprising use cases for the most popular database engine in the world

Learn More 28 7Mar 21 '21

Use Google Drive as a local directory on Linux

Photo by Peggy Anke on Unsplash HAVE you ever wanted to use your Google Drive like a ... well, a...

Learn More 15 3Feb 18 '21

How does ReScript affect me?

A guide to what the ReScript project means to you

Learn More 28 4Feb 10 '21

How to set up a 20-minute computer break on Linux

IN A previous post, I showed how to set up a scheduled notification every twenty minutes of using the...

Learn More 10 2Oct 12 '20

Reducing system complexity by adding more components

A counter-intuitive approach to building full-stack systems (or, using the right tool for the job)

Learn More 14 0Oct 11 '20

Publish ReasonML API docs automatically

How to set up a fast build pipeline that publishes API docs on every git push

Learn More 34 2Jun 24 '20

Emulating TypeScript union types with ReasonML, part 2

IN a previous post, I showed a technique in Reason for automatically creating a 'union type' like the...

Learn More 10 2Jun 6 '20

OCaml for Business

Why an often-overlooked programming language can be a perfect fit for businesses

Learn More 52 3May 13 '20

ReasonReact JSX children–a subtle difference from JavaScript

RECENTLY, I realized that the way we concatenate strings as children elements inside ReasonReact JSX...

Learn More 13 0Apr 21 '20