• 12 Posts
  • 195 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle
  • There also needs to be some way to indicate that a JSON construct is a Set, Map, plain object, or array. You’d want a date/time type as well.

    Without breaking existing JSON parsers, the way to do that is to add metadata like a _type field to an object, or to add a “sidecar” object like superjson does. Which works but is ugly IMO.

    Then there’s BSON, YAML, JSON Schema, and the one we don’t mention ₓₘₗ. To my knowledge all of those could be extended in a way to support new types, but require the producer and consumer to both understand and follow whatever convention you use. They lack the universal interchangeability of JSON.






















  • The Fisker Ocean has solar panels on its roof. It can add 4 or 5 miles a day if fully exposed to the sun.

    Not enough to matter. It’s a gimmick.

    If you don’t have an EV, you may think that EV owners are worried about range, and they’d welcome any increase. I have not found this to be true.

    It’s more like having a car that starts every day with a full tank. You’re never going to burn through that in a single day. Pretty soon you don’t care about range, efficiency, or pay much attention to the battery meter. It only matters if you’re on a road trip, which for me is a couple times a year.

    I would not want to give up a nice full-roof sunroof for a few extra miles a day.