Show HN: Randomize HTML content to test your defensive CSS

  • This reminds me of Dan Cederholm’s Bulletproof Web Design, which coincidentally inspired me to adapt the paradigm to component development earlier this week.

    https://www.abeautifulsite.net/posts/bulletproof-components/

    Randomizing content is a great technique to test for this.

  • Had you run this on old IE versions, you'd have made a decent fuzzer! If this program ever tries to put a table inside a button it'd have found a couple of crashes for sure.

  • Love cleartax, maybe I'm a bit biased because it was founded by one of my alumnus (from IITG).

    Always love seeing projects that indicate focus on code quality and better practices, esp. from Indian companies.

    It shows that despite the general culture of doing more in less, frugality, etc; still someone was able to focus on doing something right and making it open source too!

  • This is similar to Chaos Engineering[0]

    [0] https://en.wikipedia.org/wiki/Chaos_engineering

  • I like the idea of sampling the other side of your API in a stochastic manner. That concept seems widely applicable.

  • is this the first time randomization is applied to HTML?

    cool!