<div dir="ltr">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")<div><br></div><div>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)</div>
<div><br></div><div>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.</div><div><br></div><div>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.</div>
<div><br></div><div>But you see, we've already moved on from talking about just the database....</div><div><br></div><div>*mua ha ha ha ha* </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Oct 16, 2013 at 12:10 PM, David Goodwin <span dir="ltr"><<a href="mailto:david@palepurple.co.uk" target="_blank">david@palepurple.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><br><div><div class="im"><div>On 16 Oct 2013, at 11:53, Pat @ Pgogy <<a href="mailto:xerte@pgogywebstuff.com" target="_blank">xerte@pgogywebstuff.com</a>> wrote:</div><br><blockquote type="cite">
<div dir="ltr">How long would it take to change the code over to abstraction - honestly - I'd say 2-3 days (I internationalised over a weekend)</div></blockquote><div><br></div></div>Yes, and then :</div><div><br></div>
<div>a. There was refactoring and bug fixing by others for days/weeks afterwards</div><div><br></div><div>b. If there had been a discussion beforehand, perhaps a different (and perhaps better) solution might have been chosen.</div>
<div><br></div><div>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.</div>
<div><br></div><div><br></div><div>There's a big difference between replacing instances of 'mysql_query' and associated stuff with db_query* versus making some sort of library/api.</div><div><br></div><div>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*.</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>David.</div></font></span><div class="im"><div><br></div><div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>But it just feels a bit odd to just do the database stuff</div>

<div><br></div><div>I will do it for 9,999 pounds</div></div></blockquote></div><br></div><div class="im"><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-spacing:0px;text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>Pale Purple Ltd.  (Company No: 5580814)</div><div>'Web and Mobile Application Development for Business'</div><div><br></div><div><a href="http://www.palepurple.co.uk" target="_blank">http://www.palepurple.co.uk</a>   </div>
<div>Office: 0845 0046746     Mobile: 07792380669 </div><div><br></div><div>Follow us on Twitter: @PalePurpleLtd</div></div></span></div></span></div></span></div></span></div>
</div>
<br>
<br><p>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.</p>
<p>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.</p>

<br></div></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br></blockquote></div><br></div>