HN user

code-is-code

136 karma
Posts5
Comments53
View on HN

Firebase works until you want a different conflict resolution then last-write-wins. It is also only offline first if the user is authenticated. Otherwise you need a connection to the servers before using the local state.

[dead] 5 years ago

You need help, likely not in canada and for sure not with suicide.

I am waiting for the time when every "normal" website is so censored and shitty that the average joe is using tor. Then we can create a truly free internet and the cycle starts again. Seems like I have to wait just a few more years.

Doing API-first.

Start with defining the swagger.json Then generate:

- frontend-typings

- frontend request services

- backend routes and DTOs

- database fields

- use angular-jsonform for forms

- use the swagger for frontend validation

- use the swagger for backend validation

- use the swagger to discuss api changes with the client

This saves half of developing time and prevents 90% of your bugs

RxDB maker here.

You can do conflict-resolution by subscribing to the changeFeed and when multiple versions with the same revision-height exist, you create a new version with a 'merged' document. Depending on your dataset this can be tricky and painful.

RxDB can only be used with javascript and will likely ever be.