Welcome Guest, Not a member yet? Register   Sign In
CI v2.1.2 to v3.1.5 Upgrade Problems
#1

I am trying to get a developer to upgrade our current CI application that was abandoned from v2.1.2 to v3.1.5. I am the front-end developer and owner of the application. The developer is not the original developer but has spent about a year in the application but has been away from it for several years. He is hesitant about upgrading it so, I am trying to get others initial thoughts (I know it's difficult to say for sure without seeing the code). Also to note, we were running php v5.4 but the server was updated to v5.6 and now the application does not work. Here are his reasons he is saying he would rather start from scratch rather than to try and do the upgrade, as most devs would but mind you there were years of development and a lot of money on dev time spent already:

1) The code written in current CI version of is not according to the standards followed by that framework. There could be many places which are difficult to identify which code is placed where. For eg. In some cases the code is written in CI libraries and if we upgrade CI version then that code will not work, and I am not sure why that code has been written.

2) The new version of CI will have a little different syntax than our version as it was written years back. Hence it will be difficult to identify and change syntaxes in this large code.

3) When we will upgrade the CI, we will surely need to upgrade the PHP version too, which means we need to change some PHP syntaxes too which has been deprecated by newer versions of PHP. I have already explained this to you by showing an example above where "&" sign before some kind of objects/variables are not needed now. If we keep it, then it creates an error.

4) The biggest problem is removing memcache from the libraries. The last time when I was working on it, I tried to disabled memcache from the controllers and models and it was somehow working for us. But removing memcache from the libraries' code is something I cant comment, as I have never done that before. This might create a problem when we upgrade to newer CI as all the libraries and CI internal files will change.

I don't want to be very negative about it and finding only mistakes in the code, but honestly speaking, currently I am really not sure what would be the ideal way to take this forward. Whether we should spend time and change the current code or we should start from scratch.

Although, I can tell you pros and cons of both

Pros of using same code :
1) If we can fix the current code, then there are many functionalities & logics which we can reuse and we don't have to develop them from scratch.
2) It would be one step forward towards our goal if we can do these fixes in lesser time.

Cons :
1) The code is not structured, so there could be performance issues.
2) To fix that code we need to spend a lot of time to first study the code and before that we need to upgrade it so that it can actually run and we can see where it is causing problems. But to do that I can't estimate how much time is required.

Pros of developing it new
1) We can do it in new, advanced & structured way.
2) We can release some lesser functionality but yet working MVP in fix time.
3) The performance would be surely better with this.

Cons
1) It could or could not cost you more than using the same code.
2) We need to develop all functionalities from scratch
Reply


Messages In This Thread
CI v2.1.2 to v3.1.5 Upgrade Problems - by SteveCo - 09-01-2017, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB