Gatsby is a static site generator that uses GraphQL heavily to fetch data.
It has some really neat reflective features built on top. Wondering which pages are generated? You can query the GraphQL interface!
Shower thought: if you have a code formatter, you don't need to ever insert newlines yourself.
You could repurpose the enter key for something else entirely!
What would you use this large key for? My first idea is go-to-definition.
I knew that Haskell has an unconventional meaning for return, but today I learnt that return in Scala means something else too!
https://tpolecat.github.io/2014/05/09/return.html
It's a non-local return, so it returns from the *caller*! Wild.
Seems handy for Ruby/Smalltalk style blocks though.
I get significantly more conversations on Mastodon than Twitter, and they tend be more interesting too.
That's in spite of the smaller number of people that see my microblogs/posts here.
It's nice: there's a distinct community here, and they're worth connecting with 😊
I've realised that I have a much better understanding of the semantics of languages that are value oriented. You avoid murky questions like this:
try:
raise Exception('')
except:
return 1
finally:
return 2
There's no 'right' answer here when choosing how a PL should work.
I'm playing with GatsbyJS today. It's a really interesting design approach: it's a static site generator, but it uses a GraphQL server during development so you can pull data from lots of different sources.