News for hackers. Stuff that matters.
Re:Show HN: Randomize HTML content to test your defensive CSS by claviska on Saturday December 11, 2021 @07:02AM (#29520291)
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.

Re:Show HN: Randomize HTML content to test your defensive CSS by _puk on Saturday December 11, 2021 @05:00PM (#29524664)
It may be a shameless plug to your blog post, but that led me to your library shoelace[0], so thank you!

0: https://shoelace.style/

Re:Show HN: Randomize HTML content to test your defensive CSS by SCHiM on Saturday December 11, 2021 @12:53PM (#29522799)
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.
Re:Show HN: Randomize HTML content to test your defensive CSS by ratherlongname on Saturday December 11, 2021 @07:02AM (#29520289)
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!

Re:Show HN: Randomize HTML content to test your defensive CSS by twayDec1121 on Saturday December 11, 2021 @08:09AM (#29520616)
n=1 but I remember interviewing with them in 2014-15 and their founder (Archit) came across as really lacking humility.

He called people from big companies as lazy (I was coming from a BigCo). At one point, he laughed when I mentioned writing code in a language he felt was outdated.

And of course like any toxic startup they expected me to work 6 days a week.

Re:Show HN: Randomize HTML content to test your defensive CSS by keewee7 on Saturday December 11, 2021 @08:16AM (#29520651)
>And of course like any toxic startup they expected me to work 6 days a week.

Is that significantly different from other workplaces in India?

Re:Show HN: Randomize HTML content to test your defensive CSS by twayDec1121 on Saturday December 11, 2021 @08:25AM (#29520695)
it's definitely not the norm, though was still relatively common then.

But it was a huge red flag then, and is a bigger red flag today.

Cleartax was also among the "no equity for employees" club though they went back on it after a while if I remember correctly. But yeah, they were not an employee friendly company by any metric then.

Edit: I just searched Blind after writing this and looks like they have maintained the culture

Re:Show HN: Randomize HTML content to test your defensive CSS by indicate on Saturday December 11, 2021 @12:15PM (#29522477)
This is similar to Chaos Engineering[0]

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

Re:Show HN: Randomize HTML content to test your defensive CSS by klysm on Saturday December 11, 2021 @04:55PM (#29524625)
I like the idea of sampling the other side of your API in a stochastic manner. That concept seems widely applicable.
Re:Show HN: Randomize HTML content to test your defensive CSS by oriettaxx on Saturday December 11, 2021 @04:47PM (#29524567)
is this the first time randomization is applied to HTML?

cool!