by Vikram Ramakrishnan
The Securities and Exchange Commission or SEC, is a US Government agency that enforces securities laws (particularly around…
We recently implemented an SFTP client for interacting with a payment processor. Erlang provides :ssh and :ssh_sftp modules, and instead of mocking out an entire SFTP server for testing purposes, we simply mock calls on those…
By Vikram Ramakrishnan
We often need to validate fields that are passed through a struct in EctoChangesets. Custom validations are very straightforward to write and can becomposed with one another easily. By using…
Changesets allow filtering, casting, validation and definition of constraints when manipulating structs.