Comments (4)
That's cool, but my approach to this is that any new thing we force everybody to support becomes a hurdle for implementors and reduces the chances of the protocol to be successful.
Having two ways of doing the same thing goes very against what I think is right for a protocol. It's exponentially better to have a single way, even if that way is very bad.
from nostr.
Since JSON5 is a subset of JSON, valid JSON is valid JSON5. That means that supporting JSON5 on the relayโs side could be made optional, and that would allow users to write more human readable events.
from nostr.
I don't think it's possible to write events by hand since they require cryptographic hashes and signatures. Also at least in my mind no one should be writing these events by hand at all. Each event must have a different kind of content based on its kind, and besides "text_note" events they will all be weird and unreadable already, I imagine.
I sympathize with your desire to have human-readable stuff (for example, I like how HTTP is human-readable and HTTPS/HTTP2 are not), but I think just normal JSON is already fairly readable, specially if you format it in a pretty way. And there could be client-side tools that allow you to convert JSON5 or YAML or other stuff into standard JSON events, if you have a use case for that.
Also, from the standardization side, asking implementors to support JSON5, even if only JSON5, is worse than asking them to support JSON, because JSON is already built-in in all languages and standard libraries, JSON5 is not.
from nostr.
Fair.
from nostr.
Related Issues (20)
- Typos in URLs on nostr.com/contribute HOT 1
- Any IRC channels? HOT 1
- "Get started" guide is broken in many places HOT 2
- Missing License Information HOT 1
- Nostr Improvement Proposal: Relay-Hosted Personalized Dictionaries HOT 1
- Given the protection from bans this protocol enforces, can you reassure me that this is a suitable place for my hate speech HOT 4
- nostr is more than a twitter replacement?
- An idea to use nostr to publish torrents and encourage seeding
- Using the new passkey FIDO standard with nostr
- Associating images and notes in a relay to use nostr as diary HOT 1
- (resolved) Trying to implement NIP01, but ["NOTICE","could not parse command"] HOT 4
- Web3 TLD .nostr domain names are now available.
- adding wallet
- What is the verb for nostr when we reference a note ? HOT 3
- Add AGPL-3.0 license HOT 3
- Nostr
- Support for anonymizing networks HOT 5
- Standardizing p2p software development collaborative platform: HOT 4
- Invalid Event ID HOT 1
- Profile recovery idea if nsec is compromised HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nostr.