Jump to content

(Best practices) Where to place a store-specific common code?


Recommended Posts

Hello everyone!

 

Not sure I placed topic into right thread, but it seems there are no better thread for questions about store development.. so, here it is :)

 

I develop a store with a lot of custom functionality.

And my question is Where I should place my store-specific code?

I'm not going to reuse this functionality or distribute it as a modules, so I need a good place for all little fragments of store-specific code.

 

Yes, I understand that in theory I should group code by the "what it does" and create a module for each group, but...

But usually each fragment is very simple and small and solves a separate task, so it would be a separate module for each 3 strings of code... I really dont think this is a best way :)

Now I just make an all-in-one module for backend, and another one for frontend, and hooks them to everyone I need... but when module became very large I began to suspect this is not a best way too :)

 

So the question is - what is the best way? How do you prefer to organize such code?

 

 

Thanks in advance!

Edited by Alexander.X (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...