Better HN
topnewbestaskshowjobs
Log inSign up

code-is-code

136 karma · joined Sep 21, 2017 (9y ago) · 62 submissions

Submissions

comment 6y ago · link · parent

Forbes is so broken on mobile

comment 6y ago · link · parent

If you love hasura and want something like firebase, please check out the tutorial with hasura + RxDB. It is like having a firebase with better offline-first and more features and of course without vendor lock-in.

https://hasura.io/blog/building-an-offline-first-web-app-wit...

comment 6y ago · link · parent

If you like PouchDB, you should also check out RxDB. It is build on top of PouchDB and is optimised for realtime-applications where you can subscribe to queries and stuff.

https://github.com/pubkey/rxdb

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

For 100$ I will boot my computer.

comment 6y ago · link · parent

I do not think that is true. The winning chain will be the one where most people accept the coins from. Miner will only follow.

comment 6y ago · link · parent

Yes

comment 6y ago · link · parent

This is only correct in theorie.

comment 6y ago · link · parent

Broken website on mobile

comment 6y ago · link · parent

Impressive how many big structure were build during ww2

comment 6y ago · link · parent

mongoDB with default credentials

comment 7y ago · link · parent

Same for LinkedIn

comment 7y ago · link · parent

Shameless self promo:

https://github.com/pubkey/rxdb

comment 7y ago · link · parent

Same in germany

comment 7y ago · link · parent

A human using a keyboard is one of the worst RNAs out there

47.

Show HN: Realtime Replication Between GraphQL and the Client-Side Database(rxdb.info ↗)

17 points · by code-is-code · 7y ago · 1 comment

48.

Crosstab-events with a BroadcastChannel that works in old browsers and Node.js(github.com ↗)

2 points · by code-is-code · 7y ago · discuss

comment 7y ago · link · parent

I added GreenkeeperBot/renovate to my project so a PR is done whenever a dependency can be updated.

comment 8y ago · link · parent

A few month ago, I used a similar optimisation that does the same idle-awaiting but with server-requests instead of cpu-usage. So instead of submitting all ajax to the server directly, background tasks can be delayed until the important tasks have finished. This is useful especially when the 6 requests per origin limit gets hit often.

https://github.com/pubkey/custom-idle-queue

comment 9y ago · link · parent

Maybe an example schema on the readme would help

comment 9y ago · link · parent

I tested this with docker and could not observe a big performance-penalty on the cpu usage. Of corse you need more memory and the biggest thing is that you have to build your application in a way that you can do this later.

comment 9y ago · link · parent

Meteor has the op-log-driver which calculates query-result for changes instead of running the wohle query again. Same comes with rxdb where it's called query-change-detection.

comment 9y ago · link · parent

If you, a single person, owns all bitcoin, noone would buy a single satoshi from you.

comment 9y ago · link · parent

I worked in many teams and projects. Each time we had a "rockstar" in the team, he was worth more than 3 regular guys.

In the last project most echnical decisions where made/influenced by the rockstar and we saved so much time with playing arround or programming things that brake in the future.

As a recruiter I would never hire rockstars-only. But I would definitely make sure that I have a good ratio of them.

56.

Show HN: A Reactive Database for Progressive Web Apps(github.com ↗)

2 points · by code-is-code · 9y ago · discuss

comment 9y ago · link · parent

Not for me. Where are you located at?

comment 9y ago · link · parent

It would also be great to see a comparison to the couchDB-sync which I currently use via pouchdb/rxdb.

comment 9y ago · link · parent

That makes sense. An error-message would have been nice.
123