53418

What is the basic principle of a core on framework?

Question:

right now, i have to create a framework. and need to understand more about the concept behind it. so, is there any documentation about how to build core of a framework ?

or at least, what is your approach when you have to create one ?

btw, what i mean with core, is, the skeleton. the part of framework that works as controller who control the controllers.

for example, my personal question : 1. How we create easy to maintain and customize configs ? 2. How we load a class that have dependency with another class ? 3. How we treat our models ? 4. etc ?

@edited : the framework is would be a framework for wordpress theme.

i'm sorry if the question is too broad. but any reference will be great.

Answer1:

K, I usually tend to champion the <a href="http://en.wikipedia.org/wiki/Not_Invented_Here" rel="nofollow">Not Invented Here</a> mentality, <a href="https://stackoverflow.com/questions/2948323/how-to-increase-my-advanced-knowledge-of-php-further-quickly/3000160#3000160" rel="nofollow">encouraging people to re-invent the wheel as a learning exercise</a>... but the way you've asked this question suggests to me that you've decided to build a framework <em>before deciding why you want or need that framework</em>.

What do you <em>want</em> this framework to do? Equally, what do you <em>not</em> want it to do?

Once you've made that decision, read up on some <a href="http://martinfowler.com/books.html#eaa" rel="nofollow">WebEA design patterns</a> and decide what combination of patterns best suits your goals.

Asking "How do you write the core of a framework?" is like asking "How do you structure literature?" in that there's no real answer without knowing if you're talking about a novel or a play or a poem.

Recommend

  • Using Oozie ssh action with private key
  • Zend Framework: only index view renders 404 error when trying to access other views via /controller/
  • Automapper says Missing map from System.String to System.Char? But I see no Char property
  • GAE Cloud Endpoints API Explorer stopped working
  • Quote original message in a reply using mailkit
  • htaccess will not rewrite subdomains
  • Customize google placepicker colors for android
  • Visual Studio 2017 ASP.Net Publish Self-Contained Dot Net Core App
  • Resizing ToolStripButtons to fit complete BackGround image
  • Wordpress and Drupal SSO/Single Sign On
  • wordpress query - next two events by metadata date
  • Aspect advising other aspects
  • Can't get LogCat (Alcatel OneTouch Evolve)
  • Defining variable by logical subseting on time interval in data.table
  • IIS 7.5 404 Error for .PDF files
  • Spring MVC redirect with custom http headers
  • Crafting a LINQ based solution to determine if a set of predicates are satisfied for a pair of colle
  • Creating an Order Column for encrypted data
  • How to force Composer to download a local package?
  • Partial specialization of a class template in derived class affects base class
  • How do you create a Fuseki SPARQL server using the Apache Jena Java API?
  • Android changing fragment order inside FragmentPagerAdapter
  • Jquery popup on mouse over of calendar control
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • Silverlight DependencyProperty.SetCurrentValue Equivalent
  • Loading .coffee files via a view in Rails
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • Create DicomImage from scratch using Dcmtk
  • htaccess add www if not subdomain, if subdomain remove www
  • How do I get HTML corresponding to current DOM tree?
  • JSON response opens as a file, but I can't access it with JavaScript
  • Functions in global context
  • How to create a file in java without a extension
  • Control modification in presentation layer
  • Accessing IRQ description array within a module and displaying action names
  • Java static initializers and reflection
  • unknown Exception android
  • Observable and ngFor in Angular 2
  • Unable to use reactive element in my shiny app
  • How to load view controller without button in storyboard?