Why Nostr? What is Njump?
2023-12-29 15:03:01

James Lewis on Nostr: [learning Rust] Something I am realizing right now is that if I am to start using ...

[learning Rust]
Something I am realizing right now is that if I am to start using Rust for my web apps, I am going to have to be pretty careful about JSON ingest, specifically handling `NULL`s and other ambiguous typing that comes with many APIs.

When I get JSON data and parse it, I need the data to be very well organized, properly typed, and predictable.

Q: For those who are Rust devs (especially those of you who use Yew+Wasm), when you receive JSON into your application do you usually parse first into a JSON struct/enum first to sanitize then construct your target or do you parse directly into your target strct/enum?

#askNostr #Rust #webDev
Author Public Key
npub1nf9vm6uhs4j7yaysmjn9eqlf7et5t6hvrkdqgpd995vcc9yfjyas0pxa3x