tag:blogger.com,1999:blog-34454975.post861090095856112703..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: JsonTV - JsonML concept to create TreeView componentsAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-34454975.post-11647136127030691092008-06-10T18:32:00.000+02:002008-06-10T18:32:00.000+02:00Marc, I am not offended at all, and sorry if my co...Marc, I am not offended at all, and sorry if my comment let you think about them.<BR/><BR/>Anyway, Yahoo team created YUI Compressor that has a JSlint compatible mode.<BR/><BR/>That is because, as they say, JSlint algo is truly simple, and that is why I always say that JSlint is a "developer mood" but not the perfect way to know if your code is good.<BR/><BR/>For the same reason, I wrote a minifier by myself, and that is part of MyMin project, inside packed.it website :)<BR/><BR/>P.S. I use curly brackets when I need curly brackets :PAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-21007616298537178092008-06-10T18:25:00.000+02:002008-06-10T18:25:00.000+02:00Hi Andrea,That was a stupid comment a made and I c...Hi Andrea,<BR/><BR/>That was a stupid comment a made and I can't understand why I wrote it. I have not tried packed.it but I think I really should...<BR/><BR/>Perhaps it's just not my style to forget the curly brackets when possible. <BR/><BR/>Hope you are not offended...<BR/><BR/>Regards,<BR/>MarcAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-47296942689291342872008-06-08T23:46:00.000+02:002008-06-08T23:46:00.000+02:00Hi Marc,my code is "perfect" while JSLint, as I sa...Hi Marc,<BR/>my code is "perfect" while JSLint, as I said different times, is not perfect :)<BR/><BR/>You can write my script in a single line and without a single problem.<BR/><BR/>Indeed, with <A HREF="http://packed.it/" REL="nofollow">packed.it</A> you have no problems (try replacing \n with " " and it works perfectly) ;)<BR/><BR/>If you have a prticular point that is not clear fr you or jslint, please tell me and I'll try to understand why you say that you cannot minify my code (I could miss the brackets problem you are talking about)<BR/><BR/>Kind RegardsAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-5465395526825818652008-06-08T22:14:00.000+02:002008-06-08T22:14:00.000+02:00Hi Andrea,Very interesting to see your approach to...Hi Andrea,<BR/><BR/>Very interesting to see your approach to the tree building of json, I'm currently finishing up on my json editor so it's refreshing to see how you tackled the 'problem'.<BR/><BR/>One thing that stood out in your code however is the missing curly brackets on for instance if statements where there's just one line following. This makes minifying your code 'impossible'. You might want to jslint (jslint.com) your code and see what I mean.<BR/><BR/>Nevertheless, I'm looking forward to the next samples! :)<BR/><BR/>Regards,<BR/>MarcAnonymousnoreply@blogger.com