the personal site of aidan l. coyne.

learn rust macros to make testing easier

Posted: 2018-12-21

if you're working in Rust, I recommend that you learn how to work with macro_rules. specifically, I recommend this because you can use macros to build custom assertions that can remove a lot of boilerplate from your test functions.

for example, if you have an iterator that produces some complicated enum or struct, you could write a macro that will:

  • advance the iterator, failing if it doesn't have anything remaining
  • match the structure of the contents, failing if it isn't the right variation for the position
  • extract value for further assertions

in fact, I can show you that very scenario.

raptros.com relaunched!

Posted: 2018-12-19

Announcing the overhaul of the infrastructure for raptros.com!

I've managed to replace a cumbersome and not-well-planned setup based on github pages and hakyll with a new setup based on Zola, Gitlab, and S3.

This new setup has automatic deployment as well as a preview-site setup, which means it should be much easier for me to add new content.

You can see the source code for the new site in my raptros.com gitlab repository.

albums for august 2015

Posted: 2015-08-31

albums for july 2015

Posted: 2015-07-31

albums

albums for june 2015

Posted: 2015-06-04