Hacker News

Love as a Service

Hacker News - Wed, 09/11/2024 - 5:33am

Article URL: https://love-aas.appspot.com/

Comments URL: https://news.ycombinator.com/item?id=41509684

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Are there any libraries that support dragging from browser to OS

Hacker News - Wed, 09/11/2024 - 5:32am

Are there any JS or Vue library that allow file dragging API to bind file to cursor while dragging outside the browser? Any reference to existing implementation might also help.

Comments URL: https://news.ycombinator.com/item?id=41509682

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Being Concrete in Tests

Hacker News - Wed, 09/11/2024 - 5:20am

I remember reading in a book that in tests, you generally want to be concrete, not abstract. For example, you'd like to do:

assert(response.status == 401) assert(error == "param 'foo' is invalid") instead of:

assert(response.status == Http.StatusUnauthorized) assert(error == HttpError.InvalidParameter("foo")) Can anyone point me to resources (books, posts, tweets, whatever) that better illustrate this and justify it?

Comments URL: https://news.ycombinator.com/item?id=41509611

Points: 1

# Comments: 0

Categories: Hacker News

SciAgents

Hacker News - Wed, 09/11/2024 - 5:01am
Categories: Hacker News

Pages