<Catch Errors in ActionScript 3.0/>
Posted by Gaurav Jassal | on 09/26 at 09:53 AM | Actionscript 3.0 • Daily Digest • Flash 8 • Flex 3 •
Errors
One thing you may notice about ActionScript 3 how error prone it is or, rather, how error prone it perceives you to be. You’ll see a lot more errors, not only during compile, but also runtime. ActionScript 3 is much less lenient in letting you get away with mistakes or code conflicts. Whereas ActionScript 1 and 2 may silently fail or ignore many errors, ActionScript 3 will be sure to let you know something went wrong.
Synchronous Errors
Normal errors in code which occur as a code block is being executed are synchronous errors. When the Flash player encounters one of these errors in code, an error, or exception, is thrown. At that point the Flash player will suspend all code in the current block and prevent it from continuing unless the exception is taken care of or caught. To catch exceptions in ActionScript, you use a try..catch..finally statement.
The try..catch..finally statement lets you try a block of code possible of throwing an error and react accordingly if an error occurs. It consists of 2 or more blocks of code: an initial try block, consisting of the code that could throw an error, 1 or more catch blocks that catch errors of different types and run if that type of error is thrown, and an optional finally block which is run after the try and any catches whether or not an error occurs. Its format is as follows:
<read complete article/><What Makes a Great Developer?/>
Posted by Gaurav Jassal | on 09/26 at 09:18 AM | Daily Digest • PHP • Personal • PostgresSQL • Regular Expression •
What makes a truly great developer? Some might say a positive attitude. Some might say a high-sugar, high-caffeine, high-bacon diet. Some might say an absence of sunlight and as many monitors as a desk can support.
Certainly, everyone has anecdotes about developers they’ve worked with who they thought were brilliant. Unfortunately, most of the time that judgement is made not based on code quality, or hitting of deadlines, but on less relevant criteria, like whether or not the developer knew the names of their colleagues, how many lines of code they output or how confident they sounded when talking about their work.
Unfortunately, the best developers don’t always come across positively. While this list may not be applicable to every development environment, here are a few of the traits to look out for to spot a great developer.
<read complete article/><Who invented “CTRL + ALT + DEL”?/>
Posted by Gaurav Jassal | on 09/23 at 09:58 AM | Daily Digest •
Have you ever thought of the person who invented “CTRL + ALT + DEL ” key combination? “David Bradley” — He is the One who spent 1 minute and 23 seconds in writing the source code that rescues the world’s PC users for decades.
This extraordinary IBM employee is retiring on Friday after a prolong service of 29 years. His formula forces obstinate computers to restart when they no longer follow other commands. By 1980, Bradley was one of 12 people working to create the debut. The engineers knew they had to design a simple way to restart the computer when it fails to respond the user — Bradley wrote the code to make it work.
<read complete article/>










