factorio-example-mod icon indicating copy to clipboard operation
factorio-example-mod copied to clipboard

[QUESTION] Why "models"?

Open sparr opened this issue 2 years ago • 2 comments

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

sparr avatar Oct 30 '23 18:10 sparr

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 avatar Oct 30 '23 18:10 ZwerOxotnik

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)

ZwerOxotnik avatar Oct 31 '23 07:10 ZwerOxotnik