View Full Version : Fun at work with Ajax
ericgtr
04 Oct 2007, 20:25
I have inherited this project and though the actual page displayed looks cool, I have to add sections to it. They initially had a company write the code and they love them but as you can see the code behind it is an utter mess. They have completely housed the templating system in the javascript, let me tell you it just makes my day when I have to work with this crap. When I have time I am going to rewrite the entire thing but in the meantime here is a chunk of what I have to work with every time I make an update: :mad:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
KTBleeding
04 Oct 2007, 23:30
Aside from the obvious.. why is this in JS? I've got to say, "Holy unnecessary amount of divisions, batman."
ericgtr
04 Oct 2007, 23:48
My company (Intel) hired an outside company to do this for them before I got hired there and it's heavily integrated with the xml and javascript. Then they come to me and ask me to add things to it, problem is they didn't have any quality control and just liked the look of the end product. So now I am stuck with it until I can make the time to rewrite the entire system, which I plan on doing eventually.
EnIgMa1234
04 Oct 2007, 23:49
Wow :( that sucks for you :p
Code Monkey
05 Oct 2007, 00:45
Oh my, I have never seen such a thing. About as bad as inheriting something that has html in the PHP.
ericgtr
05 Oct 2007, 01:45
Oh my, I have never seen such a thing. About as bad as inheriting something that has html in the PHP.
That's what I thought too, at least in PHP it's escaped out though, here it's just a cluttered mess.
nexialys
05 Oct 2007, 12:09
remembers me of the old times...
ericgtr
05 Oct 2007, 17:07
Since this company is apparently writing more software for us I wrote them to ask about this and quality control over all. Unfortunately we don't have the money to put into checking all the code they are making, other than basic testing. But if that's their practice we need to look elsewhere.
Danny.VBT
05 Oct 2007, 17:34
Yikes!
Sad to think I company is being paid to waste YOUR time. Give them the axe.
*chop*
So uhmm.. what am I looking at?
Chris M
06 Oct 2007, 01:07
A headache...
Chris
ericgtr
06 Oct 2007, 01:11
After writing the company they have agreed to rewrite it for us, in fact they were very good about it. I've asked for stricter quality control on anything new they provide us and let them know I would be going through it from now on, or at least until my contract runs out lol.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.