Are you a PL/SQL developer? Do you think your IDE should promote better coding practices, and guide you to build more robust and reliable programs? If so, then Toad v11 might be just the IDE you are looking for.
Toad version 11 introduces a new feature in the Professional and higher editions – Code Analysis.
As you develop your PL/SQL code, Toad will highlight any code that violates its set of best practice rules.
Click here to read more about new features in Toad for Oracle v11.
A Very Simple Example
If you create a new program, or open an existing one, Toad will flag any grammar violations with the familiar MS Office-esque ‘squiggle.’
Why Does Toad Think a String Declaration is a Problem?
Toad’s editor has a very intelligent parser. For years we have used this parser to power our very flexible code formatter. We can also use that same parsing technology to recognize that the string variable you just created is never referenced anywhere in the program. Code reviews are expensive, wouldn’t it be nice if the IDE reviewed your code for you? Developers new to PLSQL don’t know what they don’t know. Seasoned developers may be unaware of newer technologies or some of the idiosyncricities of Oracle.
When you place your mouse over the affected text, you get Toad’s advice.
A More Practical Example – DECODE vs CASE
I gag a little bit every time I have to read and figure out what someone is trying to do in a decode statement. Case is so much easier to read! Developers learn a technology, and use it forever. Did you know that CASE came out in Oracle 8? Are your developers still using Oracle 7 syntax in your 11g databases?
Toad Shows Where Your Code Needs Attended To And WHY
You can right-click into any rule violation to see why Toad is not happy with your SQL or PL/SQL.
This Rules Doesn’t Make Sense To Me, or It Needs Tweaked!
Toad doesn’t want to get in your way, especially as you are coding. The developer who needs to slow down to let his IDE catch up is not going to be a very happy or productive resource. Toad allows the developer to:
- Disable or ignore a rule
- Customize the rule for your environment
- Disable the grammar check (Code Analysis)
We have put together a list of the ‘Top 20′ rules that most developers will want to adhere to. There are a total of 81 rules today with more in the pipeline. In a future release, development teams will be able to create their own rules.
Bonus Features!
Toad will also automatically generate CRUD Matrices and statistical information about your code.
- Number of comments
- Executable lines of code
- Halstead Volume
- McCabe’s Cyclomatic
- Maintainability Index







Twitter
RSS
GooglePlus
Facebook
May 09, 2011 @ 17:47:57
Excellent stuff Mr. Smith! This will be a big boost for the Toad community.
May 09, 2011 @ 19:14:02
Thanks KJ. I think there’s a big opportunity here. But there’s a fine line between helping the developer and annoying the developer with all the fancy ‘pop up’ syntax helpers and widgets. I agree with you on this one, I think this one is a keeper.
Toad 11 Sneak Peek Part Deux
Jun 03, 2011 @ 10:53:43
[...] I have some time to beta test this morning, and I thought I would share some of the new tweeks and features that will be available in version 11.0 of Toad for Oracle. I spent some time previously showing off a new feature for you PL/SQL geeks out there, Code Analysis. [...]
Manage All of Your Jobs Using Toad
Jul 30, 2011 @ 07:29:59
[...] New Feature: Code Analysis [...]
Toad 11 , 3 apuntes | EDISA blog
Oct 28, 2011 @ 03:40:58
[...] http://www.thatjeffsmith.com/archive/2011/05/toad-for-oracle-v11-sneak-peek-plsql-grammar-checking/ [...]
May 16, 2012 @ 10:17:15
Thanks for the tip. As a seasoned developer I initially found those squiggly grey lines an irritation making code hard to read. Now, I find it is quite useful.
May 16, 2012 @ 11:36:50
Ya know Brad, I think you probably fall into the majority there. IDE grammar checking is very awkward at first. And I’m sure many people turn it off. But it can convey quite a bit of information.
We of course also have this feature in SQL Developer and you can even configure the squiggle line style and coloring to your liking!
Thanks for stopping by and sharing your experience!