HNHacker News
TopNewBestAskShowJobs

benawad

281 karma · joined September 21, 2016

https://www.youtube.com/c/benawad97

https://twitter.com/benawad

submissionscomments
benawad··on TypeScript 4.1
I'll take 70% type safety over 0% any day
benawad··on What Working At Stripe Has Been Like
Does anyone know if Patrick has talked somewhere about why he decided to take a job at Stripe instead of continuing his consulting business or starting a new venture?

Patrick didn't strike me as someone interested in working at a "regular" job.

benawad··on Turn recipe websites into plain text
Yeah makes sense, I'll add this to my todo list
benawad··on Turn recipe websites into plain text
I never considered that use case, is that something you've run into?
benawad··on Turn recipe websites into plain text
I'm using Paddle for payments and it looks like something wrong on their end. I'll contact them and keep you posted. Thanks for the heads up!
benawad··on Turn recipe websites into plain text
Oops, what part of the flow isn't working?
benawad··on Turn recipe websites into plain text
It looks like you're using the recipe-scrapers library to scrape recipes which only supports a set number of websites.

If you want to expand that, I recommend parsing JSON+LD and Microformats. Given your parsers folder [2], it looks like you've tried it, but only for specific websites. I would make that generic and check whether the metadata is available on any website. I wrote a blog post on this if you're interested [3].

source: I've built a very similar tool for my cooking app: https://www.mysaffronapp.com/

[1] https://github.com/hhursev/recipe-scrapers

[2] https://github.com/poundifdef/plainoldrecipe/blob/master/par...

[3] https://www.benawad.com/scraping-recipe-websites/

benawad··on Scraping Recipe Websites
this is coming soon!
benawad··on Scraping Recipe Websites
I considered going down the ML route, but didn't know where to start. I'd love to hear how you would approach it.
benawad··on Scraping Recipe Websites
If you're interested in switching, http://www.mysaffronapp.com/ has a bulk import from Paprika and you'd be able to share an account with your partner.
benawad··on Show HN: Saffron – Manage Your Personal Recipe Collection
I built this for my mom after she wanted a better place to store all the recipes she liked to cook.

You can import recipes from websites and organize them into digital cookbooks.

Once you add some recipes to Saffron, you can generate grocery lists from them or create meal plans. With our app you can use the grocery list at the store or access your recipes on the go.

We also have a text importer which can work for PDF/Google Doc recipes but it can be hit or miss.

benawad··on The dark side of GraphQL: performance
I thought it could have been a memory problem too, but VPS didn't show any signs of anything spiking https://twitter.com/benawad/status/1212404379371917313

but I do think it's related to my nested object https://twitter.com/benawad/status/1212407236284338176

benawad··on Japanese hotel room costs $1 a night, but you have to livestream your stay
All it takes is one person doing something against YouTube's terms of service and his account will get banned.
benawad··on Google Announces .new Domain Availability
I'm sure Amazon's not happy they gave shop.new to eBay.
benawad··on Show HN: I had issues organizing my favorite recipes, so I built this
It's currently free and will stay free for those who signup now.

I'm working on adding a $5/month subscription.

benawad··on Show HN: I had issues organizing my favorite recipes, so I built this
I didn't find any good open source options
benawad··on Show HN: I had issues organizing my favorite recipes, so I built this
Cool project, I love that you can search by macros. A few points:

1. Clipping recipes from different websites can be quite challenging because of the varying html structures. I recently tackled this problem and I'm curious what method you used to find recipe content within an html page? I ended up checking to see if the website followed a Recipe schema [1] and if not use a mix of heuristics to try identifying if a line of text was an ingredient. I also was considering using machine learning in there, but couldn't figure out a good way to incorporate it.

2. Is there a reason you don't include the instructions of the recipe on your website?

Awesome to see some fresh sites in this space. I built Saffron [2] which is focused on organizing your recipes into digital cookbooks.

[1] https://schema.org/Recipe

[2] https://www.mysaffronapp.com/

benawad··on Echo Frames – Eyeglasses with Alexa
It would be cool to be able to attach it to different frames. The default one looks low quality.
benawad··on Apple Reports Declining Profits and Slowing Growth Again
I recently read the book "The 22 Immutable Laws of Marketing" and it talked about how when a company adds more lines of business that long term it can have negative effects (lack of focus). Do you think Apple has over diversified?
benawad··on Elegant Error Handling with the JavaScript “Either” Monad
KISS
benawad··on Firefox Send: Free encrypted file transfer service
> Key Business Question to Answer: Is the value proposition of a large encrypted file transfer service enough to drive Firefox Account relationships for non-Firefox users.

The metrics section is interesting https://github.com/mozilla/send/blob/master/docs/metrics.md

benawad··on Ask HN: What are some good YouTube channels for developers
If you interested in Typescript, GraphQL, or React.js you might like my channel https://www.youtube.com/c/benawad97
benawad··on Vim Is Saving Me Hours of Work When Writing Books and Courses
short term vim slows you down, long term vim speeds you up
benawad··on Ask HN: What is the current best-practice for authentication for Apollo/GraphQL?
1. Create a login mutation which creates a session and sends back a cookie.

2. Use resolver middleware to check whether the user is authenticated.

I like to use express-session (https://github.com/expressjs/session) for part 1 and graphql-middleware (https://github.com/prisma/graphql-middleware) for part 2.

benawad··on React Native at Airbnb
"Redux is notorious for its boilerplate and has a relatively difficult learning curve. We provided generators for some common templates but it was still one of the most challenging pieces and source of confusion while working with React Native."

Interesting to see even Airbnb struggles with Redux

benawad··on YouTube monetization analysis
I make programming videos too, and a similar thing happens to me. The first day I release a video it's demonetized, and even if I don't request a manual review the video will be remonetized a couple days later.
benawad··on Show HN: Nukool – Private message multiple Reddit users at once
Hey guys,

I don't know if this has already been made, but I couldn't find anything like it so I thought I would put it together. I limited it to 10 people for right now to make sure my backend could handle it (free Heroku server) and to avoid people spamming large groups of people.

Let me know if you think this is useful or if you have any ideas for more features (I am currently thinking of adding the ability to send a message in the future).

Here is the source code: frontend: https://github.com/benawad/nukool backend: https://github.com/benawad/nukool-server