Lurker News
What are you working on? Any new ideas that you're thinking about?

Comments (996) 601 threads

Earlier comments
jansommer#
I'm thinking about how to properly test AWS Step Functions. The problem is that I can either mock the entire response for every state in JSON only, or call out to a lambda. What I want is to type check the evaluated JSONPath payload and the mocked JSON response, to ensure that my tests always adheres to global contracts/types written in JSON Schema.

I think it's doable by dynamically creating lambdas based on test cases I define in one way or another, perhaps like mocked integration services, that does nothing but validate if the event from SFN matches a schema, and that the mocked response also matches a schema.
My concern is that I can't find prior projects doing this. My use case is mostly (exclusively at the moment) calling out to lambdas, so perhaps I can get away with this kind of type checking. But it's just weird that something like this doesn't already exist! Past experiences have taught me that if no one have tried it before, my idea is usually not that good.
Let me know what you think!
(Would have liked to use durable execution which totally solves the typing issue, but can't in this case)

monokai_nl#
Working on the Monokai Pro website for my color theme for code editors, and the Monokai Pro plugin for JetBrains, which has just been released. Working out some optimizations, which will be pushed in the next update.

Monokai Pro has been running for more than 5 years now for VSCode and Sublime Text, and the original Monokai almost 20 years.
https://monokai.pro

carlos-menezes#
I've been working on a library for Node (using TypeScript) that encrypts environment variables and generates typings for accessing said environment variables.

e.g. you init a project (`obelisq init`) and use `obelisq set -k -v ` (e.g. `obelisq set -k SERVICE_KEY -v ABCDEF`) to set your environment variables:

  OBELISQ_PUBLIC_KEY=0344ecbf96c3e01262402247b97231a22c0197d17121dd9c7d1b999faed1d54ac4
  SERVICE_KEY=047ca044c1a59114246d5c5122ad1bdecfafa3c999fae5629181df54[...]
  MY_SECRET=049072d4ffc233ed77f8d682d9fe3a75114987d496b06d44269600e8be[...]
When you run `obelisq generate`, code will be generated that allows you to do this:

  // `get` is type-safe, `mySecret` is number
  // decryption of the value occurs when `get` is called
  const mySecret= obelisq.get('MY_SECRET')
Partially inspired by my own article: https://www.carlos-menezes.com/post/type-first-config
HachiWari8#
Working on adding features to my app. I wrote BVCalc because I wanted a calculator that would show not only the numerical result value but also show the corresponding algebraic expression that I entered so that I could check for entry mistakes and more easily keep track of calculations. I also wanted this feature to work even when the calculator is in RPN mode. That is, I wanted to be able to use RPN entry, and have the calculator show both the result value and the corresponding algebraic expression (displayed using infix notation, not RPN) for each item on the stack.

I was surprised that such a feature was not available on any existing calculators and so I wrote my own. Runs on macOS, iPhone, and iPad.
BVCalc Lite (free version, no ads): https://apps.apple.com/app/bvcalc-lite/id6544784034
BVCalc (paid version): https://apps.apple.com/app/bvcalc/id6560108221

Load more comments