From: dark_gf on
Hi all,

I have a problem: in my job we creating ria based on extjs, and
divided code by components, all works great but its difficult to trace
errors in components, because they executed via eval() functions, does
any have any ideas how to get max information about error that happed
in code?
From: Thomas 'PointedEars' Lahn on
dark_gf wrote:

> I have a problem: in my job we creating ria based on extjs,

Bad idea.

> and divided code by components, all works great

No, it does not. Last I checked, ExtJS was a 277K+ blob that used browser
sniffing to generate a UI that was not accessible; needlessly, I should add.

> but its difficult to trace
> errors in components, because they executed via eval() functions,

Don't do that, then.

> does any have any ideas how to get max information about error that happed
> in code?

Why not avoid the eval() problem in the first place by employing approaches
natural to competent programming?

You should get a real name if you want to have a chance to be taken
seriously here.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
From: dark_gf on
Extjs is not perfect but in our project we need him and don't want to
write own framework.
How dynamically load code, execute him and trace errors?

On Jul 27, 5:51 pm, Thomas 'PointedEars' Lahn <PointedE...(a)web.de>
wrote:
> dark_gf wrote:
> > I have a problem: in my job we creating ria based on extjs,
>
> Bad idea.
>
> > and divided code by components, all works great
>
> No, it does not.  Last I checked, ExtJS was a 277K+ blob that used browser
> sniffing to generate a UI that was not accessible; needlessly, I should add.
>
> > but its difficult to trace
> > errors in components, because they executed via eval() functions,
>
> Don't do that, then.
>
> > does any have any ideas how to get max information about error that happed
> > in code?
>
> Why not avoid the eval() problem in the first place by employing approaches
> natural to competent programming?
>
> You should get a real name if you want to have a chance to be taken
> seriously here.
>
> PointedEars
> --
> var bugRiddenCrashPronePieceOfJunk = (
>     navigator.userAgent.indexOf('MSIE 5') != -1
>     && navigator.userAgent.indexOf('Mac') != -1
> )  // Plone, register_function.js:16

From: David Mark on
On Jul 27, 10:51 am, Thomas 'PointedEars' Lahn <PointedE...(a)web.de>
wrote:
> dark_gf wrote:
> > I have a problem: in my job we creating ria based on extjs,
>
> Bad idea.
>
> > and divided code by components, all works great
>
> No, it does not.  Last I checked, ExtJS was a 277K+ blob that used browser
> sniffing to generate a UI that was not accessible; needlessly, I should add.

Look again. It's 700K+. Or perhaps you are referring to the size
after GZIP?
From: David Mark on
On Jul 27, 11:06 am, dark_gf <dark...(a)gmail.com> wrote:
> Extjs is not perfect but in our project we need him and don't want to
> write own framework.

What make you think that the only two options are using Ext JS and
writing your own framework?

> How dynamically load code, execute him and trace errors?

Too general. You'll never get an answer like that.