A story of custom binary serialisation for a game made with Unity3D

Image for post
Image for post

This year I helped a customer develop and ship a word puzzle game for iOS and Android. …

You probably know what binary search is but WTF is Eytzinger order?

Image for post
Image for post

DTOs (Data Transfer Objects) are classes which people use to represent and store data before they serialise and send the data over the wire. So the primarily purpose of a DTO is to be able to turn an object graph into a buffer (array of bytes).

[Application state] --> [DTOs] --> [Buffer]

And turn a buffer into an object graph.

[Buffer] --> [DTOs] --> [Application state]

Some people (my self including) don’t see the point of separating between Application state and DTOs some times. Specifically if the mapping between the Application state classes and DTO classes is 1:1. The mapping seems to be redundant and they are ok with integrating the DTO as part of their application state and logic. …


Maxim Zaks

Tells computers how to waste electricity. Hopefully in efficient, or at least useful way.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store