tag:blogger.com,1999:blog-5350157389434430698.post8255232185133826591..comments2024-02-27T21:23:44.159-08:00Comments on A Three-Pound Monkey Brain: Comments on the Flex Best Coding PracticesMike Keeseyhttp://www.blogger.com/profile/00147156174467903264noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5350157389434430698.post-72679876437229664272008-05-27T08:10:00.000-07:002008-05-27T08:10:00.000-07:00If you place open brackets on a new line so they l...If you place open brackets on a new line so they line up with the closing bracket, there's nothing to stop you writing code on the same line. That way you get the benefit of brackets visibly lining up and code block visibility without losing so many lines.<BR/><BR/>E.g:<BR/>function foo():void<BR/>{ if (test())<BR/> { doSomething();<BR/> doSomethingElse();<BR/> }<BR/> else<BR/> { doAnotherThing();<BR/> }<BR/>}Gruffhttps://www.blogger.com/profile/06344305436560001753noreply@blogger.com