https://solidus.io logo
Title
b

benmorganio

05/25/2023, 5:49 PM
Where does everyone place their API/third-party code?
lib
,
app/services
,
app/models
,
app/adapters
? My app that has a lot of third party service code and also parses a lot of xml documents and csv's. I've done lots of different conventions and right now it's all living in
app/models
. I want to refactor them to a defined pattern and looking to hear community input.
j

Jared Norman

05/25/2023, 5:50 PM
I just put everything under app/models
b

benmorganio

05/25/2023, 5:54 PM
Although that is how to represent/model data. Not how to fetch it.
j

Jared Norman

05/25/2023, 5:59 PM
I prefer simpler value objects that are constructed using factory methods than over that style of "decorator" for testing and performance reasons.
b

benmorganio

05/25/2023, 6:05 PM
Yeah, I do too.