Relative Content

Tag Archive for data

Why is it called Data-Oriented Design?

I find the name data-oriented design very confusing – it sounds like data-driven development (letting hard data determine decisions in development) or data-driven programming (control flow determined by loaded data and not hard coded), except it’s something completely different: designing for current cache-dominated CPU architectures combined with an emphasis on making a few highly-reusable functions.

Design pattern for configuring objects

Context In a Cocoa application I am developing, I need to load a data model that is defined in plist files. So, I have something like: root (Array) —- item (Dictionary) ——– name : “objects” (string) ——– prefab : “object” (string) ——– children : (Array) … —- item (Dictionary) ——– name : “actions” (string) ——– […]

Design pattern for configuring objects

Context In a Cocoa application I am developing, I need to load a data model that is defined in plist files. So, I have something like: root (Array) —- item (Dictionary) ——– name : “objects” (string) ——– prefab : “object” (string) ——– children : (Array) … —- item (Dictionary) ——– name : “actions” (string) ——– […]

Algorithm that determines relevant attributes in ordered list

Suppose I have a list of objects sorted by a person based on that person’s subjective taste. Let’s assume that this person is being somewhat consistent in their sorting and that there are quantifiable attributes of these objects that I can identify. For example, a person might sort cheese based on how much they enjoy the taste, and people who disliked salt would rank salty cheese lower than cheeses that were low salt. One person might not care what the color of the cheese was or whether it came from cows, goats, or sheep, while another might rank sheep’s milk cheeses higher than goat’s milk cheeses.

Algorithm that determines relevant attributes in ordered list

Suppose I have a list of objects sorted by a person based on that person’s subjective taste. Let’s assume that this person is being somewhat consistent in their sorting and that there are quantifiable attributes of these objects that I can identify. For example, a person might sort cheese based on how much they enjoy the taste, and people who disliked salt would rank salty cheese lower than cheeses that were low salt. One person might not care what the color of the cheese was or whether it came from cows, goats, or sheep, while another might rank sheep’s milk cheeses higher than goat’s milk cheeses.

Algorithm that determines relevant attributes in ordered list

Suppose I have a list of objects sorted by a person based on that person’s subjective taste. Let’s assume that this person is being somewhat consistent in their sorting and that there are quantifiable attributes of these objects that I can identify. For example, a person might sort cheese based on how much they enjoy the taste, and people who disliked salt would rank salty cheese lower than cheeses that were low salt. One person might not care what the color of the cheese was or whether it came from cows, goats, or sheep, while another might rank sheep’s milk cheeses higher than goat’s milk cheeses.