Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:10:29+00:00 2026-06-18T08:10:29+00:00

BACKGROUND / IDEA I am currently working on a small framework just to improve

  • 0

BACKGROUND / IDEA
I am currently working on a small framework just to improve my php-knowledge. This framework should be very simple (minimizing overhead) and flexible in terms of later expansion.

DIFFERENT MEANINGS
As a result of reading more advanced tutorials, notes of serious php-developers, different class structures (singletons, Singletons, dependency injection, JIT, …), oop, mvc, routing, caching… and a lot more I find it very difficult to filter “the proper way” (if there is one) as it seems to me that everyone says something different.

Many people praise there opinon as “the best” and say that everything appart from that is evil. In my oppinion there is not a right or false. There are just several ways to achieve one’s goal.

WHAT I DID SO FAR

  • index: ini settings, define constants, call bootstrap (not oop)
  • booting: autoloader class, namespaces (include files on demand)
  • static classes: htmlManager, fileHandler, databaseManager, …
  • singletons: none
  • non-static classes: controller, models, views, routes, …

I know that this is very basic and I did not that much so far but I want to create a solid platform first.

QUESTIONS
Before I want to go any further in my project I’d love to hear your opinion on the things listed below.

  • How do you organise/structure small or even bigger projects?
  • What are your experiences concerning simplicity, logic, performance, readability, expandability and reusability of code?
  • Is there really a “proper way” of coding or it this just interpretation?
  • Is there anything one should not use because it is already obsolete?

WHAT I DON’T WANT TO HEAR

  • Forget about a framework or php
  • Don’t do this, don’t do that without naming the reason why

Many thanks in prior for every response I get.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:10:30+00:00Added an answer on June 18, 2026 at 8:10 am

    I am currently working on a small framework just to improve my php-knowledge. This framework should be very simple (minimizing overhead) and flexible in terms of later expansion.

    Go for it.

    As a result of reading more advanced tutorials, notes of serious php-developers, different class structures (singletons, Singletons, dependency injection, JIT, …), oop, mvc, routing, caching… and a lot more I find it very difficult to filter “the proper way” (if there is one) as it seems to me that everyone says something different.

    That’s because some people don’t have an understanding why something should be solved in a certain way or why something is terrible practice, but they see something on some framework and they think it’s the best thing since sliced bread.

    Although opinions may differ, you cannot argue with clean code and proper OOP if that is what you are after. In proper OOP singletons and statics have no place. Also what most people call MVC is actually some wrong view on the pattern (mostly because again they have seen some framework do it some way). Which is not always bad, but it is not MVC.

    Many people praise there opinon as “the best” and say that everything appart from that is evil. In my oppinion there is not a right or false. There are just several ways to achieve one’s goal.

    Not everything that isn’t the best is terrible in my opinion. But some stuff is just bad practice. And some pattern are defined in a way to make your applications easier to maintain, debug and test. If you are going to implement some other pattern that’s all fine with me, but you will loose the benefits of some other pattern.

    Generally speaking the first rule of thumb I use when doing OOP programming is following the SOLID principles.

    static classes: htmlManager, fileHandler, databaseManager, …

    These have no place in proper OOP. Amongst others because the will tightly coupling the classes. Which make maintainability, readability and testability a pain.

    singletons: none

    Good, because they are just a fancy global.

    How do you organise/structure small or even bigger projects?

    Separation of concerns in both code as structure. One of the pattern can help you with that: MVC, MVP, [MVVM](Model View ViewModel). For me personally I like the MVC pattern the most because it has some nice benefits against other patterns.

    What are your experiences concerning simplicity, logic, performance, readability, expandability and reusability of code?

    Readability and testablity are the most important.
    Right after that SOLID (which is also handled by the first point (overlap))

    1. Is there really a “proper way” of coding or it this just interpretation?
    2. Is there anything one should not use because it is already obsolete?
    3. Performance

    Forget about a framework or php
    Don’t do this, don’t do that without naming the reason why

    As I stated before: Just go for it. Do it and screw it up! Best way to learn is actually doing it and making terrible mistakes. I think the framework I made 1 year ago (although imho still better than 90% of what is out there) is a proper piece of crap ™.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started working with a new company in a very small IT
I want set Listbox background to transparent but not working Is there any idea?
I am currently working on a project, let me explain the global idea :
http://www.juriseodesign.com/clock/Sydney.php My clock count javascript shows errors. I have my background changes working, but
this is page i'm currently working on: http://devel.spoorle.com/poc/ At the bottom there is a
I'm not sure if its the best idea to create a background job that
Background I am working with a monad built of a stack of transformers one
I'm currently working on setting up a new project of mine and was wondering
In the software products I'm currently working on, we have several 3D View controls.
I'm attempting at changing the background color of the td's on click. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.