Friday survey question: How many developers here ...
# suitescript
d
Friday survey question: How many developers here code in an Object-Oriented way?
s
does hybrid OO-FP count? I do use NFT which enables both strong OO and FP styles.
👍 1
e
Perhaps a definition of "Object-Oriented way" is in order. I do not ever make use of the
class
keyword, for instance. I do, however, endeavor to break features down into small "single-purpose" modules and functions (i.e. the
S
from
SOLID
), and I do make use of `typdef`s (largely just for code completion and documentation purposes). I would say my "style" some bastardization of Functional, Object-Oriented, Functional Core/Imperative Shell
s
the only place I use 'class' is for NS record types, since they fit the model very well (with NFT, it's the ActiveRecord pattern). I don't tend to use classes for anything else in SuiteScript. Other than that, I find functions to be sufficient like Eric. Often my functions are pure in that the accept and return values - often instances of the record classes mentioned above.