Posting this because it has some thing worth considering (if you're a software engineer). https://youtu.be/QM1iUe6IofM
-
-
Vastauksena käyttäjälle @tloch14
Special note to his comment at 33:30 regarding methods being really connected to the data. I think it's a fairly common thing, actually.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @tloch14
More often than not, the methods are there to restrict access to the object's data, because there is some amount of bookkeeping to be done.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @tloch14
Esp true of ADTs, but also true of many other structs. A 3D transform, for instance, will sometimes have some bookkeeping for optimization.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @tloch14
the matrix is often calc'd as needed from position orientation and scale, but an internal mutable flag is used to prevent excessive calcs.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @tloch14
If anybody could willy nilly set that flag, it'd ruin the whole optimization.
1 vastaus 0 uudelleentwiittausta 1 tykkäys
There's more to be said, but tweets are a bit exhausting for this subject. Maybe I'll write a blog post.
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.