4 ms·
I like a mental model like a real world factory storage: If you have few kinds of objects you just go with random placement. If you end up looking for things yo
by hokus 8y ago
I like a mental model like a real world factory storage: If you have few kinds of objects you just go with random placement. If you end up looking for things you organize them alphabetically. When that gets to annoying you number the locations and keep a list of what is where. If the list gets confusing in turn you split it by type of component or product. Eventually you use search engine returning a building and coordinates.
Each of these is great until it isn't. The real magic is in anticipating what you will need and making the switch from one to the next structure.
Who knows, it might one day be possible to have the same code displayed as either:
give john a cookie
give jack a cookie
give sam a cookie
give tina a cookie
and
giveCookies(john, jack, sam, tina)
and
giveCookies(testSubjects.living)
Only visually depending on the number of living test subjects without the underlying code changing at all.
How we are to accomplish this I leave as an exercise for the reader.