ZwerOxotnik / factorio-example-mod

Lightweight modular example mod with various features and compatibilities
http://mods.factorio.com/mod/example-mod
28 stars 4 forks source link

[QUESTION] Why "models"? #7

Open sparr opened 1 year ago

sparr commented 1 year ago

At least one fork of this repo renames models/ to modules/ which seems to make more sense.

ZwerOxotnik commented 1 year ago

Ah, well, it's bit of a quirk.

I use models because those files follow the same pattern for event handling etc. while modules is more broadly term for the case, but more obvious in general.

ZwerOxotnik commented 1 year ago

I got the idea from https://learn.microsoft.com/en-us/aspnet/mvc/overview/older-versions-1/overview/understanding-models-views-and-controllers-cs (however, probably, from another pattern)