[Xerte-dev] Re: PHP compatibility

Pat @ Pgogy xerte at pgogywebstuff.com
Wed Oct 16 12:33:56 BST 2013


Well yes, but I don't recall a tonne of problems with the code post this
change (not taking it as a criticism, but was more an argument that it is
"sprintable")

There is always going to be a better way of doing things, but to me the
only solution to this is to abstract everything out. I based the
internationalisation on zencart, which seemed a nice way of doing it (and
easy for people to change who aren't technical)

So for example, we could redo the main page using jQuery or angular or
bootstrap or all of them, or change the back end to node.js, or do it in
python.

All I can think of is to completely separate the logic and display, and
then underpin it with abstraction layers with an API as well, so it is so
flexible it is almost liquid.

But you see, we've already moved on from talking about just the database....

*mua ha ha ha ha*




On Wed, Oct 16, 2013 at 12:10 PM, David Goodwin <david at palepurple.co.uk>wrote:

>
> On 16 Oct 2013, at 11:53, Pat @ Pgogy <xerte at pgogywebstuff.com> wrote:
>
> How long would it take to change the code over to abstraction - honestly -
> I'd say 2-3 days (I internationalised over a weekend)
>
>
> Yes, and then :
>
> a. There was refactoring and bug fixing by others for days/weeks afterwards
>
> b. If there had been a discussion beforehand, perhaps a different (and
> perhaps better) solution might have been chosen.
>
> I'm all for someone 'fixing' the mysql_ stuff - but there needs to be a
> short discussion beforehand. There are 101 different possible approaches -
> some are more equal than others etc.
>
>
> There's a big difference between replacing instances of 'mysql_query' and
> associated stuff with db_query* versus making some sort of library/api.
>
> The effort/changes required for a library/api would probably
> replace/rewrite/overwrite whatever may have been done changing things to
> use e.g. db_query*.
>
>
> David.
>
>
>
> But it just feels a bit odd to just do the database stuff
>
> I will do it for 9,999 pounds
>
>
> Pale Purple Ltd.  (Company No: 5580814)
> 'Web and Mobile Application Development for Business'
>
> http://www.palepurple.co.uk
> Office: 0845 0046746     Mobile: 07792380669
>
> Follow us on Twitter: @PalePurpleLtd
>
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20131016/0787622e/attachment.html>


More information about the Xerte-dev mailing list