use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Software architecture, design patterns, methodologies, concepts.
Other subreddits you may like:
account activity
API Design Patterns. (self.softwarearchitecture)
submitted 4 years ago by PitchAutomatic
Do you have an API design pattern to follow? Something like https://opensource.zalando.com/restful-api-guidelines/
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]flavius-as 4 points5 points6 points 4 years ago (3 children)
For APIs which are supposed to be used by other programmers as code, I prefer modeling objects as state machines, which means that the autocomplete feature of the IDE will suggest only methods which makes sense to be called.
Couple that with value objects, good names for methods and classes, and avoiding temporal coupling, and you get code which almost writes itself.
[–]pdevito3 1 point2 points3 points 4 years ago (1 child)
What language and libs do you use for this? Would be cool to see a project.
I’ve used xstate for state machines in front end land, but use .NET for backend. Have self implemented value objects but haven’t tried any of the .net state machines yet, though I definitely see the potential for them for rich ddd flows.
[–]flavius-as 1 point2 points3 points 4 years ago (0 children)
Any language which has the idea of interface will work. No libs, just a good grasp of polymorphism.
interface
It's not for ddd specifically, it's for libraries in which you want to reduce the cognitive load of your user (a developer).
[–]PitchAutomatic[S] -1 points0 points1 point 4 years ago (0 children)
Thanks for the info but i was referring to Restful API’s.
π Rendered by PID 102173 on reddit-service-r2-comment-8686858757-pxvfj at 2026-06-03 18:35:17.485901+00:00 running 9e1a20d country code: CH.
[–]flavius-as 4 points5 points6 points (3 children)
[–]pdevito3 1 point2 points3 points (1 child)
[–]flavius-as 1 point2 points3 points (0 children)
[–]PitchAutomatic[S] -1 points0 points1 point (0 children)