Yeah, I want to start out with something that solves a very specific problem.
This will likely be the part of the release that's actually most useful to me, but I suspect I might be a minority, but they've got at least one fan.
Say you've got a web application where you're shipping some JSON back and forth that describes an object.
When the user changes something, a new bundle of JSON gets sent to the server.
There are several ways of doing this, but REST is probably the most popular.
When you call PUT, you send along all of the data that describes the object in the browser to the server.
So if you were on, say, a change address form or shipping form, whatever, you'd send all of the parts of the address, the address lines, the city, the zip code, all that kind of good stuff in one JSON bundle over, including not only the part that changed, but everything.
But if you're dealing with a large set of objects, it's overkill to send the entire object state if only one field has changed.
So on the server side, you typically run the data through a validator because you never trust the browser because the browser and people are evil.
So you might use a tool like Pydantic and a Pydantic object has all of the fields that the client side does.
But when you're only editing one field using a patch, it sets the ones that didn't get touched to none.
So your code then loops through the attributes on the object and changes the server side data based on what attributes are set and ignoring anything that's set to none.
But what if it's an integer? You could send the default value, but sometimes you want to distinguish between default and actually empty.
The way to do this in JSON is to set the field to null, which is JavaScript's equivalent of none.
Yeah, I want to start out with something that solves a very specific problem.
This will likely be the part of the release that's actually most useful to me, but I suspect I might be a minority, but they've got at least one fan.
Say you've got a web application where you're shipping some JSON back and forth that describes an object.
When the user changes something, a new bundle of JSON gets sent to the server.
There are several ways of doing this, but REST is probably the most popular.
When you call PUT, you send along all of the data that describes the object in the browser to the server.
So if you were on, say, a change address form or shipping form, whatever, you'd send all of the parts of the address, the address lines, the city, the zip code, all that kind of good stuff in one JSON bundle over, including not only the part that changed, but everything.
But if you're dealing with a large set of objects, it's overkill to send the entire object state if only one field has changed.
So on the server side, you typically run the data through a validator because you never trust the browser because the browser and people are evil.
So you might use a tool like Pydantic and a Pydantic object has all of the fields that the client side does.
But when you're only editing one field using a patch, it sets the ones that didn't get touched to none.
So your code then loops through the attributes on the object and changes the server side data based on what attributes are set and ignoring anything that's set to none.
But what if it's an integer? You could send the default value, but sometimes you want to distinguish between default and actually empty.
The way to do this in JSON is to set the field to null, which is JavaScript's equivalent of none.
The rest of this transcript — segmented and speaker-labeled, so you land on the exact moment something was said
Search every transcript — by keyword, by phrase, or by meaning, across every show Radar indexes
Trends — what is surging across podcasts, measured against its own baseline
Alerts — when a name you follow appears in a newly indexed episode
No account is needed to search Radar.