Jump to content

ro8in

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ro8in's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hehehe well the customer offcourse does not exactly say I want the same change on page 1 as on page 2. He just says now I want on page 1 this and this, which by coincidence are the same changes as i did long ago on page 2 but neither me or the customer realise it because its such a huge project. But I will try to create child classes from now on for situations like this. Maybe it will not get as worse as I fear. I now mostly do Nightslyr fix butI sometimes end up with functions with over 5 of these vars.
  2. Thanks for all the great answers. My problem with this, specially in large projects is. Lets say ok I create an inheriting class for the changes on page2. But offcourse the customer now wants a change on page3 different for the one on page2. So I create another inheriting class.. Then suddenly 1 year later the customer asks me for the same change on page1 as on page2, but because i was so busy with page3 before that I forgot about the class i made for page2 and I start making another inheriting class for the changes on page1. Like this after a while I end up with loads of classes even unnesecary ones. How do you guys keep this all in order?
  3. Maybe add some extra example suppose class BOX has a function getboxcontents() But page2 requires not to get just the contents but the contents for a particular user. I need to change the function to getboxcontents($user) Which will cause the function to error on page1 and page2 as they are still calling the function without a var.. Basically I need to know how to handle such changes in huge projects.
  4. Hey everyone, My first post here Im always wondering how do you guys keep stuff organized. Let me explain for example I have a class BOX Class Box is used on page1.php and page2.php and page3.php. But now page2.php requires some new functionality which requires me to update a function inside class BOX.. But when I do this I might break page 1 and 3 because I forgot they use that function also. What is the best way to manage this? Should I write a new class which extends BOX for page2 or ????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.