HNHacker News
TopNewBestAskShowJobs

MapleWalnut

136 karma · joined June 4, 2018

submissionscomments
MapleWalnut··on Stripe Lays Off 300 Employees
Interesting that they did a major layoff on a US holiday (MLK Day).
MapleWalnut··on Amazon Aurora DSQL
Spanner provides serializability. It seems like DSQL only guarantees "repeatable read".

https://docs.aws.amazon.com/aurora-dsql/latest/userguide/wor...

MapleWalnut··on The problem with OpenTelemetry
Sentry provides a great hosted service. You can self host if you like, but it’s nicer to let them do it
MapleWalnut··on The problem with OpenTelemetry
The Sentry SDK is open source and easy to contribute to in my experience.
MapleWalnut··on Pydantic Logfire
It'll be hard to position this against Sentry. Sentry's a joy to use and their performance product is so helpful in debugging performance issues
MapleWalnut··on What I wish I knew about ESPP and RSUs sooner
That’s true, but with ESPPs, you get a discount on the stock price, effectively guaranteeing a decent return that would be hard to beat.
MapleWalnut··on How Figma's databases team lived to tell the scale
Yes, but that wasn't available when they did this migration
MapleWalnut··on GitHub now officially supports polar.sh as a funding platform
I like that polar supports funding specific issues or pull requests. Seems like a nice way to help fund a project while also helping prioritize issues you care about.
MapleWalnut··on Fixing Penn Station
There is a lounge with seating, you just need a ticket
MapleWalnut··on Kafka is dead, long live Kafka
It'd be great if there was an rss feed for your blog
MapleWalnut··on Svelte switches to JavaScript and JSDoc, deem TypeScript “Not worth it”
Not the most accurate title. They’re still using Typescript for type checking, they’re just using JSDoc type annotations instead of Typescript syntax
MapleWalnut··on Ask HN: Is there a Ruff for Python static type checking?
Mypy is the most correct and flexible type checker I’ve found. Pyright is great for auto complete in VSCode though, so I use both.

The Google and Facebook options aren’t well supported.

MapleWalnut··on Google Reader shut down announced ten years ago today
I pay for Feedly even though I had access to a very generous free plan. Their product is reliable and I use it every day, so it only seems fair to pay.
MapleWalnut··on The technology behind GitHub’s new code search
With the new GitHub code search, the first result is the DeleteView class: https://github.com/django/django/blob/bd366ca2aeffa869b7dbc0...
MapleWalnut··on Retool launches Workflows to go beyond the front end
One of the engineering leaders at my company was big on Retool and it was pushed out as a way for backend developers to write frontend code.

Now 6 months later that leader is gone, developers realized applications in Retool are harder to maintain because it’s just spaghetti code with no type safety or proper code review and teams are moving back to internal React applications.

You could build a much nicer user experience with react and make a maintainable codebase.

I think the promise of no-code making it easier for users to contribute is not reality.

MapleWalnut··on Push-based outbox pattern with Postgres logical replication
WAL is reliable, but Publish/Notify isn't. You'll lose messages with Publish/Notify if you aren't listening for them.
MapleWalnut··on Typeguard
Your Python example has unnecessary type annotations. Python type checkers like mypy and Pylance can infer the type of `words` automatically.

    def main() -> None:
        words = ["Hello", "World"]
        for word in words:
            print(word)

    if __name__ == '__main__':
        main()
MapleWalnut··on Logging in Python like a pro
TIL that ContextVars can work in place of thread locals too. Thanks for pointing that out!

I had mistakenly assumed ContextVars only worked for async code.

MapleWalnut··on Speeding up Prettier locally and on your CI with dprint
Yeah, precommit isn’t my favorite thing out of personal preference. So it’s a shame prettier doesn’t have built in caching like other tools in the space.
MapleWalnut··on Speeding up Prettier locally and on your CI with dprint
Prettier itself would feel much faster if it supported caching like other code formatters (Python's Black, Rust's rust-fmt)
MapleWalnut··on Inside the longest Atlassian outage
Dropbox support can rollback your Dropbox account to a previous point in time too.
MapleWalnut··on Lua: Good, Bad, and Ugly Parts (2012)
What about https://github.com/Roblox/luau? It gives Typescript-like annotations.
MapleWalnut··on Tell HN: GitHub is experiencing an undeclared outage
I'm encountering issues with the GitHub API too.
MapleWalnut··on Tqdm (Python)
I wish there was something this good for Golang.
MapleWalnut··on PlanetScale is now generally available
PlanetScale branching only copies the schema, not the data.

from their docs:

> Note: Data from the main database is not copied to development branches.

https://docs.planetscale.com/concepts/branching

MapleWalnut··on Etsy’s Journey to TypeScript
They're pretty similar. The auto complete alone is worth adding type annotations.

Both have type stubs for third party packages that can make it easier to get coverage for your project.

My organization gradually migrated a ~300k line Python project to have full type annotations and it's so much nicer to work on.

MapleWalnut··on Twelve Years of Go
Mypy provides a server to help with this called dmypy: https://mypy.readthedocs.io/en/stable/mypy_daemon.html
MapleWalnut··on Building PlanetScale with PlanetScale
From what I understand, they only branch the schema. They don't copy the data.
MapleWalnut··on Official Elasticsearch Python library no longer works with open-source forks
Scoring results in Postgres requires scanning all matches, which is slow if you have a lot of results.

Elastic search and other search solutions don’t have this problem.

MapleWalnut··on Next-generation Deploy Previews, plus Netlify acquires FeaturePeek (YC S19)
I ran into this issue when setting up UI previews for a GitHub OAuth app.

My solution is to have a single callback server that looks in the OAuth state to determine where to redirect. This isn't secure, so when building the UI, I sign the UI's preview URL with a secret and send that in the OAuth state. The callback server checks the signature and redirects that way.

It's hacky and I wouldn't trust it for a production app, but for a test environment it seems okay.

Page 1 of 3Next →