What is the best design pattern/s to use for always changing business logic in the service layer? Is it factory method? Other suggestions are welcome.

Just to give a background, I have been working for a team composed of 15 developers in the financial field where we have a lot of iterations on a single code base. (Unfortunately it is not a microservice) Each of the changes are reflected in multiple branches that we are having trouble tracking them since most of us send pull requests almost every day.

One thing I can think of is a rewrite of our code base where it will be a lot easier to decouple the business logic layer.

Any suggestions or if you can share ideal public repositories I can take a look at, that would be really helpful. Thank you.

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/eugenesergio
πŸ“…︎ May 17 2021
🚨︎ report
Factory Method Design Pattern

I started a series of videos to help us all understand better Design Patterns and learn how and when to properly implement them. It would be amazing to receive feedback about it.

My latest video is the Factory Method Design Pattern: https://youtu.be/ZOwkT2wWe-w

The whole playlist you can find here: https://youtube.com/playlist?list=PLlNZpkgIOuFVRsL2Gq05hCxgt1OyIFtTZ

πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/ProgrammingLifeIO
πŸ“…︎ Feb 28 2021
🚨︎ report
Creational Design Patterns for Dart and Flutter: Factory Method dart.academy/creational-d…
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/Darkglow666
πŸ“…︎ Aug 11 2020
🚨︎ report
Design patterns in C# – Factory Method and Abstract Factory blogs.endjin.com/2019/05/…
πŸ‘︎ 76
πŸ’¬︎
πŸ‘€︎ u/dr_dimaka
πŸ“…︎ May 19 2019
🚨︎ report
Factory pattern and static methods

Looking at https://phptherightway.com/pages/Design-Patterns.html the example shows a static method for the factories create method. This site is widely cited as a good starting point here. Any reason why the example uses static methods? Is this a standard part of this design pattern? It seems if your factory is a bit more complex and you want to create additional methods and maintain a state before returning the object that static is not the way to go.

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/systematical
πŸ“…︎ Aug 07 2019
🚨︎ report
Creational Design Patterns for Dart and Flutter: Factory Method dart.academy/creational-d…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Darkglow666
πŸ“…︎ Aug 11 2020
🚨︎ report
Factory Method Design Pattern with Java Examples youtube.com/watch?v=MdWHL…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/raskrana
πŸ“…︎ Mar 01 2020
🚨︎ report
Flutter Design Patterns: An overview of the Factory Method design pattern and its implementation in Dart and Flutter medium.com/@mkazlauskas/f…
πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/mkobuolys
πŸ“…︎ Dec 19 2019
🚨︎ report
Java Creational Design Patterns - Factory Method Pattern - Example with Source Code on GitHub

Factory Method Pattern is organized underΒ creational patternΒ as it deals with the creation of the object.

This design pattern is based on one of the OOPs concept ie. Encapsulation. Generally, we write object creation code on client side program but in factory pattern, we encapsulate object creation code inside factory method. So depending on the data provided to the factory, it can return an object of one of several possible classes listed in a program. You can consider using this pattern when:

  • Your subclasses need to instantiate objects of some classes based on criteria.
  • An application needs to have loose coupling between different classes.

Factory Method Pattern by Example

https://www.opencodez.com/java/factory-method-pattern.htm

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Shilpa_Opencodez
πŸ“…︎ Dec 11 2019
🚨︎ report
Factory method pattern for creating Token Vesting smart contracts

r/https://medium.com/hussy-io/factory-method-pattern-for-token-vesting-smart-contracts-cae2b0361aed

πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/realcam
πŸ“…︎ Aug 03 2018
🚨︎ report
Factory Method Design Pattern with Java Examples youtube.com/watch?v=MdWHL…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/raskrana
πŸ“…︎ Feb 25 2020
🚨︎ report
Too many new/Instantiate in your code? Learn Factory Method design pattern in Unity! brightreasongames.com/obj…
πŸ‘︎ 35
πŸ’¬︎
πŸ‘€︎ u/paskal007r
πŸ“…︎ Dec 27 2016
🚨︎ report
Factory pattern - Use a non-static method

Hi,

I'll try to make the question as general as possible so the language doesn't matter.

I came across a problem which I could solve with a factory, however the factory would need a dependency and need to access this.

So, my understanding thus far was that the method in a factory to create an instance has to be static. But when a method is static I can't use this of course, because it doesn't exist.

Now a co-worker told me to just not make the method static, but tbh, I only learned about the factories with static methods, so I'm a bit confused.

Is it normal/okay to use a factory pattern without static methods? Are those simply two separate design patterns? non-static vs. static?

Thanks!

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/tzfrs
πŸ“…︎ May 23 2018
🚨︎ report
The factory method pattern in Go. matthewbrown.io/2016/01/2…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/mnbbrown
πŸ“…︎ Jan 23 2016
🚨︎ report
Can anyone identify how these are joined? It looks completely invisible and I have no clue how to do that. The pattern only says how to make the hexagons not how to join. Is this a join as you go method? There is no color bleed over into each hex πŸ€·πŸ»β€β™€οΈ
πŸ‘︎ 979
πŸ’¬︎
πŸ‘€︎ u/jcnlb
πŸ“…︎ Dec 27 2021
🚨︎ report
The factory method pattern in Go. matthewbrown.io/2016/01/2…
πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/mnbbrown
πŸ“…︎ Jan 23 2016
🚨︎ report
Understanding the Factory Method Design Pattern using Instagram Story

Hey everyone, looking forward to hear your suggestions and comments to improve my article on Factory Method!

https://medium.com/@sangeetagupta_20350/understanding-the-factory-method-design-pattern-using-instagram-story-50aa1b56f5b0

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/sangeetagupta2068
πŸ“…︎ Oct 30 2018
🚨︎ report
Using the static factory method pattern with WordPress carlalexander.ca/static-f…
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/carlalexander
πŸ“…︎ Jul 26 2017
🚨︎ report
Understanding the Factory Method Design Pattern phpmaster.com/understandi…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/Arrow2Knee
πŸ“…︎ Dec 18 2011
🚨︎ report
TheWizardAndTheWyrd/kotlin-reified-factory - use reified generics in Kotlin to implement a simply factory method pattern github.com/TheWizardAndTh…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/Lord_NShYH
πŸ“…︎ Nov 03 2017
🚨︎ report
11 year old son created a pattern on our Oculus and we can't get into it, is there anyway to get into it without using the pattern and avoiding a factory reset?

Our 11 year old son was playing the oculus and created some pattern on the headset that we need to input before we play it. He doesn't remember it and we can't seem to get around it. Even on the app I need it to pair with it. Is there anyway around it without a factory reset?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/HighlyBasic69
πŸ“…︎ Jan 10 2022
🚨︎ report
Factory method pattern [homework]

Hi!

I am wondering if this UML-diagram here: https://go.gliffy.com/go/share/sm4frpobsubifu6j6jv8 is explaining well or have everything needed in the Factory method design pattern? Or am I missing something, like methods needed or variables for this example?

I think I have everything, an interface, an concrete class ConcreteProduct, then the factory ConcreteCreator which generates the objects, and then the Creator as an example implementation.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Hexiiee
πŸ“…︎ Sep 28 2017
🚨︎ report
Waves will not hold curl pattern -- please help! I have been following CGM for about a year and a half and while my waves have gotten more defined whole wet, they will not hold for anything. I have tried almost every method and a million products. See Comments πŸ˜΅β€πŸ’«πŸ˜΅β€πŸ’« reddit.com/gallery/qznzxp
πŸ‘︎ 257
πŸ’¬︎
πŸ‘€︎ u/TrainerLass
πŸ“…︎ Nov 22 2021
🚨︎ report
Anyone have good methods to wear this length hair up? Having a hard time keeping buns stationary without pulling. It’s always been frizzy and somewhat unmanageable when it is not straightened on low heat due to my curl pattern. reddit.com/gallery/rcr57e
πŸ‘︎ 125
πŸ’¬︎
πŸ‘€︎ u/MycoMom33
πŸ“…︎ Dec 09 2021
🚨︎ report
InterprΓ©teur Brainfuck utilisant les patterns Interpreter, Composite et Factory method cromod.fr/2017/02/18/inte…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/ushiroguy
πŸ“…︎ Feb 19 2017
🚨︎ report
Thank you all for your help yesterday! ❀️I finally finished one hexagon. I did not like the final round of BPSC…made it cup & not lie flat. So I might change the BPDC round to BPHDC & join with the third loop method. But honestly I’m not sure I even like it as much as pattern picture 😭 Thoughts? reddit.com/gallery/rqjm9s
πŸ‘︎ 46
πŸ’¬︎
πŸ‘€︎ u/jcnlb
πŸ“…︎ Dec 28 2021
🚨︎ report
Floor pattern I designed, my first time working with terracotta blocks. I was inspired by both Grian (HCS7 mansion) and ImpulseSV (HCS8 Mega factory)
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/iaelmouna
πŸ“…︎ Oct 13 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.