Forbes Lindesay

Results 267 comments of Forbes Lindesay

The build of the component shouldn't be needed, since they can just reference it from component.io and have it automatically built. Given that we're just talking about a demo for...

OK, I've just never found IFrames work very well/very consistently, but maybe I've been using them wrong. We could support iFrames to arbitrary locations so people can self-host their demos...

I think it would have to key off something in `component.json` so say I had an example for ajax as a gh-page: component.json ``` javascript { ... "example": "http://forbeslindesay.github.com/ajax/live-example.html" ......

It's not quite that simple, GitHub delivers all files (except for gh-pages branch) with a content type of `text/plain` so all browsers refuse to render them. You can of course...

I really can't tell you how much I dislike having the search bar at the bottom of the screen. I spent about 15 seconds looking for it when I first...

Some power users still like to see their information more neatly formatted than a CLI can manage.

If you want to use the `ParsedValue` in a union you need to either: 1. Implement `test`. 2. Ensure that `serialize` returns `{success: false, value: ... }` when the value...

> In general, `rt.test(x)` should imply `rt.parse(x) === x` This may be nice, but it's not true at all. `rt.parse(x)` drops unexpected properties by default. This is intentional behaviour, and...

We generate objects with `null` as the prototype using `Object.create(null)` to prevent potential security vulnerabilities with prototype pollution. The lack of `.toString` is a side effect of this. I don'...

There is some existing discussion of approaches in https://github.com/pelotom/runtypes/pull/113 I think given how most programs treat `undefined`/optional properties, we could probably just add `.Optional()` as an alias for `.Or(Undefined)`