#serialization

[ follow ]
fromDjangocentral
1 week ago

DRF Serializer: Handling OrderedDict and Converting It to a Dictionary or JSON

The use of an OrderedDict ensures that the order of fields in the serialized representation matches the order of fields defined in the serializer class.
Java
fromInfoWorld
1 week ago

Basic and advanced Java serialization

Order in custom serialization must match exactly to avoid data corruption or deserialization failure.
Books
fromOregon ArtsWatch * Arts & Culture News
2 months ago

PuzzleWatch: What the Dickens * Oregon ArtsWatch

Charles Dickens achieved lasting literary celebrity through prolific serialized novels, vivid characters, public lectures, and enduring popularity that keeps his works continuously in print.
fromMedium
3 months ago

Type Classes: How Scala Achieves Polymorphism Without Inheritance

Imagine you're working with a third-party library that provides a User class. You need to add JSON serialization to it, but you can't modify the source code. Of course you can create a wrapper class or extend it, but that feels clunky and breaks existing code that expects the original type. This is where type classes shine. They're one of Scala's most powerful patterns, and they're the secret ingredient in popular libraries like Cats, Scalaz, and Circe.
Scala
Artificial intelligence
fromLogRocket Blog
3 months ago

How to use TOON to reduce your token usage by 60% - LogRocket Blog

TOON is a compact, token-efficient serialization format for LLM prompts that reduces tokens for large, uniform arrays by declaring fields once and using indentation.
Web frameworks
fromdjangocentral.com
4 months ago

How to Use @action Decorator in Django Rest Framework

Django Rest Framework serializer.data may return OrderedDicts by design; use Q(~) for NOT queries and support site sustainability by disabling adblockers.
JavaScript
fromApp Developer Magazine
1 year ago

Introducing capn web a new javascript rpc protocol

Cap'n Web is a lightweight, schema-free TypeScript RPC protocol optimized for modern web runtimes, enabling human-readable JSON serialization and multiple transports.
fromVulture
10 months ago

The Studio Recap: High Stakes

"The studio is the most important thing in your life, and that's good!" This is a reflection of Matt's dedication, as his job consumes him more than personal relationships.
Beer
[ Load more ]