Hi all, These few days, I dig also in the "debug" sources of Flex 1.5.... It's really what we can call very very bad code!
Each lack of control of the MMC compiler is used. Damned! I never saw such bad programming style! Just an exemple from the Button code: ----------------------------- function getBtnOffset():Number { if(getState()) { var n = btnOffset; } else { if(phase == "down") { var n = btnOffset; } else { var n = 0; } } return n; } ------------------------------- --> untype variables --> bad variables scopes The first guy coding this way in my team is fired! Hope Flex 2 will be more professional..... Alban. PS: Enjoy the weird world of Flex 1.5 :-) ... -----Original Message----- From: Stanislav Zayarsky [mailto:[EMAIL PROTECTED] Sent: jeudi, 6. avril 2006 11:38 To: flexcoders@yahoogroups.com Subject: [flexcoders] Question to Adobe about Flex Framework 1.5 Code Quality Hello FlexCoders, Recently I have discovered very weird bug in ViewStack, I haven't been able to reproduce it yet, will do that later, so in the meantime I started to explore Flex source files, and look what interesting code I see there(see attachment) This is just excerpt from one file, I haven't touched others. I'm not a programmer Guru, but I know few things like Duplication is bad! So how Adobe can create such code??? Are you sleep well after this? Or this is new Design Pattern called "Copy/Paste"? And it is no wonder why there is so much bugs after this! Shame on you! Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/