Better HN
topnewbestaskshowjobs
Log inSign up

sarahdayan

47 karma · joined Feb 3, 2018 (8y ago) · 12 submissions

I'm a front-end developer with a taste for design and typography. I like to share what I know on HTML, CSS and JavaScript.
Submissions

1.

No, Utility Classes Aren't the Same as Inline Styles(frontstuff.io ↗)

3 points · by sarahdayan · 5y ago · discuss

comment 6y ago · link · parent

Hi there! I work at Algolia and I may have a solution for you: you can filter on ranges to offer that kind of experience.

For instance, if you decide to accept a +/- $20 margin, instead of filtering on exact price, you'd create a filter like `price < 180 AND price > 220` (replacing the numbers with your formula to calculate the range).

This gives you full power on what is the "error margin" you accept. Hope this helps!

3.

Tech Startup Dilemmas: Resilient Deployment vs. Exhaustive Tests(blog.algolia.com ↗)

8 points · by sarahdayan · 7y ago · discuss

4.

Build a Shopping Cart with Vue and Dinero.js(frontstuff.io ↗)

1 points · by sarahdayan · 8y ago · discuss

comment 8y ago · link · parent

Simple typo, fixed :)

comment 8y ago · link · parent

Good call, will fix.

comment 8y ago · link · parent

The amounts must be specified in cents, as floats can’t be relied upon to perform calculations. That was my #1 reason to design the library using solely integers. I wrote all about it here: https://frontstuff.io/how-to-handle-monetary-values-in-javas...

comment 8y ago · link · parent

Good call, I’ll fix that

comment 8y ago · link · parent

Hey! You need to use the allocate method for this. It will redistribute fractional cents and return an array of Dinero objects.

10.

How to Handle Monetary Values in JavaScript(frontstuff.io ↗)

1 points · by sarahdayan · 8y ago · discuss

11.

Dinero.js an immutable library for working with monetary values in JavaScript(github.com ↗)

11 points · by sarahdayan · 8y ago · 1 comment

12.

In Defense of Utility-First CSS(frontstuff.io ↗)

1 points · by sarahdayan · 8y ago · discuss