Challenge found here (see README).
- Simplest possible implementation that works for arbitrary matrix size and match length.
- We don't do an initial pass to collect all possible 4-tuples.
- All checks are done in place.
- We always return early as soon as possible.
- Not currently parallelized, as I didn't want to make it too fancy or Golang-specific, but would be trivial to run the 4 directional passes at the same time.
- Go http server running on ECS.
- Currently hosted at:
http://mutant.emivespa.com/statshttp://mutant.emivespa.com/mutant
- Currently hosted at:
- We should return 200/403 regardless of whether the mutant candidate is already in the DB.
The Makefile contains convenience recipes for building and running the container with all the right flags, so you can run:
make buildand thenmake run
There are also convenience recipes for hitting container endpoints:
make 200for a mutantmake 403for a non-mutantmake randomfor random 6x6 dnamake healthcheckfor/make stats
Won't work without a running DB.
- Using Planetscale because setting up RDS would be a distraction.
- should have gone with Gorm as opposed to Prisma
- <80% test coverage.
No DB mocking means we can test the http response but code coverage tools will panic.- (solved)