Better HN
topnewbestaskshowjobs
Log inSign up

ekseda

55 karma · joined Mar 4, 2020 (6y ago) · 10 submissions

Submissions

comment 5y ago · link · parent

Json schema validation is cpu expensive in nodejs, so you do not want it in production for every request. We made a proxy [1] that only allows requests that are conform to the swagger json which is easy to hook between frontend and backend in dev-mode

[1] https://github.com/EXXETA/openapi-cop

comment 6y ago · link · parent

Can supabase be used with the offline-first approach like horizon, RxDB etc. or does it require an ongoing connection to the server?

comment 6y ago · link · parent

I wrote a master thesis where I compared several realtime database products. I promise you amplify is no where "getting there". It is a crippled version of firebase and there is no fix in sight. For example you cannot even do sort-queries with datastore or Amplify is not working with angular because they have broken typings since 9 months with no fix. And the list goes on..

comment 6y ago · link · parent

I do not understand this post.

comment 6y ago · link · parent

No this is not readable. You can write readable old school javascript, but just try to tell me what this line does: https://github.com/amark/gun/blob/master/src/type.js#L111

comment 6y ago · link · parent

Yes sorry for not doing this. In the source code folder, please open any random file and try to understand what the code does.

I once tried to fix a bug that I found in GUN but I gave up after just trying to figure out what the code is supposed to do.

comment 6y ago · link · parent

Another one is that the source code of OrbitDB is not completely obfuscated.

comment 6y ago · link · parent

Check out the readme. There are many erros that can only be catched by validation and not by parsing.

9.

An OpenAPI proxy that only allows data that matches your swagger.json(github.com ↗)

67 points · by ekseda · 6y ago · 14 comments