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

  • SEARCH
  • Home
  • 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 8990891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:36:13+00:00 2026-06-15T22:36:13+00:00

I taken over site from another developer, he was putting everything in functions inside

  • 0

I taken over site from another developer, he was putting everything in functions inside class files.

e.g. page lists system users our_users.php

$users = $object_user -> get_users_list();

and function get_users_list() is NOT used anywhere else on website.

Does that make sny sense to to do it this way?

I’d personally would not even create function and just put code from inside function get_users_list() in our_users.php since its only used once anyway.

  • 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-15T22:36:14+00:00Added an answer on June 15, 2026 at 10:36 pm

    One of the guiding principles of OOP currently is the concept of “separation of concerns”. This means that you pull out small units of work into their own methods and classes. The idea of having one method that does a hundred things directly is the antithesis of this.

    Splitting the functionality out makes your code easier to read, maintain and test.

    There are a number of blog posts on the web about OOP best practices – SOLID being the driving one at the moment. If you look them up I’m sure any number of them can do a better job of describing them than I could.

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

Sidebar

Related Questions

I've taken over maintaining this site from a previous developer. The content of each
I've recently taken over a project from another consulting firm. I'm assuming this can
I have taken over some code from a previous developer and have come across
Here is the issue. On a site I've recently taken over it tracks miles
I have taken over a project that was build from suggestions in this Dan
I have taken three textboxes over aspx page. A JavaScript function is associated with
I am trying to syphon data over from one table to another. The problem
I've completely taken over my company's site and the old developers used PHP5 file
i have taken over an asp project from a friend and he was basically
The above are the points taken from this site http://blog.ibeesolutions.com/web-services-implementation-considerations.html Serialization is an important

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.