HNHacker News
TopNewBestAskShowJobs

code-is-code

136 karma · joined September 21, 2017

submissionscomments
code-is-code··on Couchbase withdraws non-profit event sponshorship 4 days before
Why did you not ask for the payment first before printing the logo on everything?
code-is-code··on Nvidia predicts AI models 1,000,000X more powerful than ChatGPT within 10 years
Training in parallel on more then one GPU is pretty hard. Distributing the training over many random computers and adding at least some kind of validation, seems to kill the performance. So it would always be easier to rend cloud GPUs.
code-is-code··on Local-First Web Development
Not true. Most RxDB users use the dexie.js storage which is for free: https://rxdb.info/rx-storage-dexie.html Also you should compare it to the alternatives like firestore or AWS datastore which are not even open source partially and cannot even be used with a self-hosted server.
code-is-code··on Downsides of Offline First
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.
code-is-code··on Web Applications from the Future: A Database in the Browser
You should have a look at RxDB which does exactly what you have described. Also notice that neither firebase nor supabase is really offline-first.

https://github.com/pubkey/rxdb

code-is-code··on [dead]
You need help, likely not in canada and for sure not with suicide.
code-is-code··on Ask HN: How do you organize yourself ?
I made a whatsapp group where I am the sole participant. This makes it easy to work on my "todo-list" on all devices synchronized.
code-is-code··on JsonLogic
I also did this some year ago. A big learning was that you should define the allowed input types in the logic object.

https://github.com/pubkey/secure-json-logic#readme

code-is-code··on Ask HN: Do you regret choosing serverless (lambda) architecture?
Yes I did.
code-is-code··on Offline-First PWA for Plotly Visualization of CSV via SQLite
Progressive Web App
code-is-code··on Cinder: Instagram's performance-oriented fork of CPython
And how big was the risk to have the invested time wasted? How long did you block new feature developement?
code-is-code··on What Might Happen If Bitcoin Crashes (2017)
I had to close 5 popups just to read the first line of text.
code-is-code··on Is WebAssembly magic performance pixie dust?
He is right. Implying that Webassembly is strongly typed is garbage and tells much about the rest of the content.
code-is-code··on Create an anonymous link that will hide the HTTP Referer header
No, just dangerous for your users.
code-is-code··on Create an anonymous link that will hide the HTTP Referer header
This is so dangerous to use. There have been hundrets of these sites in the past. As soon as they have enough traffic they silently redirect or change affiliate ids etc. Do not use them, the rel=noreferer is good enough.
code-is-code··on Ask HN: Cross Platform Development
I think the time has come where a PWA does it for most kind of projects.
code-is-code··on Giant leak exposes data from almost all Brazilians
I was even able to dos my mail server with a bot that signed up newsletters.
code-is-code··on Ask HN: What companies are you excited about?
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.
code-is-code··on Attacking the DeFi ecosystem with flash loans for fun and profit (2020)
Do you really have to launder them? I mean, you do as the smart contract says, it might not even be illegal.
code-is-code··on Bitcoin's market cap is now higher than Tesla's
Also we can predict the short shift to altcoins again before the bubble explodes.
code-is-code··on We’re Google Workers, and We Are Forming a Union
No this is not a good thing. Binding workers right to political views is dangerous and other countries show that unions can work without any party propaganda.
code-is-code··on Ask HN: Why aren't one-time sign in links more popular for authentication?
This. Same happens with the sms verifcation in microsoft teams. On older devices switching to the sms app will restart the teams authentication process. So you have no chance in every typing the correct 2 factor sms key.
code-is-code··on Ask HN: I wish I knew before I launched my project
Have a data backup strategy before you save critical data.
code-is-code··on In study, acetaminophen makes risky moves seem less dangerous
They just want to protect you from yourself, do not take it personal.
code-is-code··on Ask HN: Self Promotion on Reddit
Just dump it on reddit like everyone does. Especially projects that do not sell something are mostly welcomed.
code-is-code··on A Spacetime Surprise: Time Isn’t Just Another Dimension
Forbes is so broken on mobile
code-is-code··on Hasura raises $9.9M to simplify GraphQL
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...

code-is-code··on CouchDB 3.0
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

code-is-code··on Ask HN: What were the things you did that made the biggest impact at your work?
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

code-is-code··on Replicache: Easy Offline-First for Existing Applications
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.

Page 1 of 2Next →