Follow

This article on parsing incoming strings into structured data is interesting in its own right. lexi-lambda.github.io/blog/201

Even though the article is written with examples, also makes me *really* want to play around with the parser-combinator library in (github.com/Geal/nom) which seems like it would make this sort of thing really easy/clear

@codesections I ended up rewriting a tiny sliver of Nom for my own use, and just from the Haskell syntax Parser Combinators are very convenient!

@codesections

> In other words, write functions on the data representation you wish you had, not the data representation you are given. The design process then becomes an exercise in bridging the gap, often by working from both ends until they meet somewhere in the middle. Don’t be afraid to iteratively adjust parts of the design as you go, since you may learn something new during the refactoring process!

Yes! This is true for so much of programming.
Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.