Better HN
topnewbestaskshowjobs
Log inSign up

andremedeiros

1,394 karma · joined Aug 16, 2012 (14y ago) · 82 submissions

EM of SRE Tools & Technologies at TELUS. Wants to be the Ted Lasso of computing. Loves mechanical keyboards, retro computers, coffee, spreadsheets, and you.
Submissions

comment 1y ago · link · parent

Curious to hear about what prompts power this.

comment 2y ago · link · parent

I would 100% vote for you!

comment 2y ago · link · parent

That's totally fair feedback. Particularly optionality having been removed from proto2 to proto3 is confusing.

comment 2y ago · link · parent

The default transport (gRPC) certainly is, but HTTP RPC translation/gateways are easily generated.

comment 2y ago · link · parent

Gotcha. I think this might be where Protobuf falls short because you have to "source" the tooling for all its different outputs, but support for OpenAPI 3.0 spec generation has existed for over a year.

comment 2y ago · link · parent

What does this do that Protobuf doesn't?

comment 2y ago · link · parent

Amazon is great at a lot of things, but AI and Machine Learning aren't it. From what I saw when I worked there, they don't have the talent to produce their own models (which is, I think, what we all expected to see), but the surprising thing is that they haven't partnered yet.

comment 2y ago · link · parent

I lived in Ottawa at the time these protests were going on. These people weren’t there to protest. They were there to antagonize.

comment 3y ago · link · parent

There's an HN post that takes first place on my bookmarks bar, which is an Ask HN about the best paper people read in 2020 [^1]. Every once in a while I'll open it and browse through a ton of amazing papers and research and try to learn something new. Hasn't let me down yet.

[^1]: https://news.ycombinator.com/item?id=25346456

comment 3y ago · link · parent

Normal and acceptable are two very different things. Another post from earlier mentioned other shady practices from them, so I wanted to bring this up too.

comment 3y ago · link · parent

I got tired of getting pings from Netflix, so I finally opened the app and tried looking for the setting to disable them. Apparently they opt you in to these by default, and the only way to disable them, according to the help article, is through the OS’ settings directly.

12.

Netflix doesn’t give you an in-app option to disable promotional notifications(help.netflix.com ↗)

2 points · by andremedeiros · 3y ago · 3 comments

comment 3y ago · link · parent

Keep in mind that this isn’t rooted in any specific best practices. It just felt right.

comment 3y ago · link · parent

The Reddit API usage is as efficient as it can be, server wise, although I’d like to be proven wrong by them.

As far as the app goes, an average of ~330 reqs/user/day is pretty good, considering they built the platform budgeting for 86,400.

comment 3y ago · link · parent

HN is a whole other beast. A notification server would have to keep track of any replies to any of your comments / submissions in order to determine what to notify you about, purely because they don’t have a notification model.

comment 3y ago · link · parent

All the comments in this thread are right. This specific scenario was about providing a consistent experience. All the work that this backend does could be done using iOS’ background updates, but:

1. Those aren’t consistently scheduled 2. They have an extremely tight deadline (and sometimes Reddit can be a bit slow)

Making it server side means we controlled that experience better.

comment 3y ago · link · parent

I would demolish a couple hot dogs right about now…

comment 3y ago · link · parent

Theoretically it could do it all from the app, but it would have to resort to background updates, which are scheduled at iOS’ discretion. Christian was aiming for consistency, which is why this exists.

comment 3y ago · link · parent

This is bang on.

comment 3y ago · link · parent

I promise you this is very much what’s running in production.

comment 3y ago · link · parent

This is an amazing way to look at it. Thank you for your perspective <3

comment 3y ago · link · parent

I’ll be happy to once I sit down in front of my computer.

comment 3y ago · link · parent

That’s how it worked, yes, but we went to great lengths to ensure that call had minimal impact on their end.

The TLDR here is that we only ever requested new notifications (give me anything that came after this thing I know about), which funnily enough then broke for some users, because if a reply you got notified about gets deleted and you use it for reference, Reddit will never return anything new to you, so I had to go and write a 2nd service that runs much more infrequently but does some checks on each account to make sure this isn’t the case.

comment 3y ago · link · parent

I’m never proud of my code haha. This could always be better. No specific design patterns either.

The one fun thing I learned was about databases. Given enough records, a query planner might decide to start doing things very differently and you will get woken up at 3am with a CPU usage alert. That was a fun one to debug for sure…

comment 3y ago · link · parent

Honestly, Lemmy would probably not need half this code. We wrote this to work with an entity that exists in a “come and get it” model. Lemmy being open source means we could build the features right in the server and slash this code to a bare minimum (mostly the watcher stuff at this point.)

comment 3y ago · link · parent

That’s great feedback. Any particular areas I can walk you through?

comment 3y ago · link · parent

Got it, thanks!

comment 3y ago · link · parent

I’ll check in with Christian and see what he wants to do. Got any particular recommendations?

comment 3y ago · link · parent

This right here is why I did it. To see a friend succeed, and to help make a community happier <3

comment 3y ago · link · parent

Hi all! I wrote this code, and for educational purposes, I’d be more than happy to answer any questions.

A gentle reminder that the whole history is here for show. This is very vulnerable — you can see the times I was in a rush, or when I took my time. You’ll find my mistakes. Either way, all I ask is please be kind. I know there are 50 things I could have done better, but this is a product of the reality at the time — a balance between something that works and something that was cost effective for Christian.

123