185 karma · joined Nov 26, 2021 (4y ago) · 44 submissions
comment 1y ago · link · parent
Watching Tuomas' initial talk about Linear's realtime sync, one of the most appealing aspects of their design was the reactive object graph they developed. They've essentially made it possible for frontend development to be done as if it's just operating on local state, reading/writing objects in an almost Active Record style.
The reason this is appealing is that when prototyping a new system, you typically need to write an API route or rpc operation for every new interaction your UI performs. The flow often looks like: - Think of the API operation you want to call - Implement that handler/controller/whatever based on your architecture/framework - Design the request/response objects and share them between the backend/frontend code - Potentially, write the database migration that will unlock this new feature
Jazz has the same benefits of the sync + observable object graph. Write a schema in the client code, run the Jazz sync server or use Jazz Cloud, then just work with what feel like plane js objects.
4.
Linear sent me down a local-first rabbit hole(bytemash.net ↗)
467 points · by jcusch · 1y ago · 218 comments
7.
Show HN: Quotatious – A Wordle and hangman inspired game(quotatious.com ↗)
7 points · by jcusch · 1y ago · 5 comments
8.
The Servers Behind Serverless(nitric.io ↗)
5 points · by jcusch · 2y ago · discuss
comment 2y ago · link · parent
10.
Let's Build a Game Using Only TypeScript Types [video](youtube.com ↗)
1 points · by jcusch · 2y ago · discuss
comment 2y ago · link · parent
Saying they’re expensive and impractical because they’re not unique is obviously wrong. They’re valuable because they’re easy to use, safe, scalable, etc. while requiring almost no maintenance from the user. Storing data or sending messages, etc. aren’t uniquely valuable components worth spending time on for most applications. They’re basic building blocks, so why not minimize the effort and time to use them as much as possible?
There are unique and valuable services offered by cloud providers, those aren’t what nitric is focused on. I’d rather spend my time dealing with those unique, valuable tasks instead of wasting it on the basics.
comment 2y ago · link · parent
comment 2y ago · link · parent
If you want to change what "read" means you're free to do that in the provider without changing a single line of application code. But you also get the benefit on the Ops side of not needing to read the application code to try and figure out what permissions it needs to work, that part it generated so you can't miss anything.
If you want to output Terraform or config files or something else like you do today, to enable audits and keep it alongside the code, you can do that easily.
comment 2y ago · link · parent
The Ops side of nitric (the providers) can be written in any language, but the out of the box providers are all built with Go, interacting with Pulumi or CDK for Terraform. You can just as easily write the deployment part of nitric with Terraform HCL to avoid the nasty issues you mentioned.
comment 2y ago · link · parent
- Consuming AWS client libraries (or APIs) in your application code
- Avoiding writing cloud specific mocks/etc. for testing that same code
- Avoiding env vars with resource names/ARN/etc. to use with that code, that then need to duplicated in the Terraform/other IaC without typos etc.
- The code not knowing whether it has the permissions needed to make those calls, so it's can't be guaranteed to be correct before deploying and testing in a live environment
- No longer needing that topic in future, but it lingers in the IaC because the two are unaware of each other
To me those are all examples of the application code "getting involved in the infrastructure it's running on", which I agree it has no business doing.
Nitric deals with these things by separating that code into another module that's sole responsibility is dealing with the cloud, exposed by a common interface for any cloud/environment.
What other designs/tools do you recommend?
comment 2y ago · link · parent
For example, instead of AWS client libraries, environment variables for ARNs, etc. existing in the code you instead have 1 line defining a resource using the SDK. That other code is separated into the provider, enabling testing in isolation and separation.
comment 2y ago · link · parent
comment 2y ago · link · parent
The point of Nitric isn't to avoid knowing how your infrastucture works, it's just to speed up development and improve cohesion.
comment 2y ago · link · parent
28.
Is IaC Being Replaced?(nitric.io ↗)
2 points · by jcusch · 4y ago · discuss
comment 4y ago · link · parent