SmartBear
Cart
Login
Welcome back to SmartBear Software
Click the links below to login to your favorite tool or into your client services portal
SmartBear Forum
Register
Log in
Development
DevComplete
ALMComplete
AQtime Pro
Automated Build Studio
Testing & QA
TestComplete
TestExecute
TestRecorder
QAComplete
LoadCOmplete
Web Monitoring
AlertSite
Free Tools
QAPlanner
DevPlanner
Looking for a Free Trial?
Products
Products
For Development
Collaborator
Code Review & Document Review
ALMComplete
Lifecycle Management
AQtime Pro
Performance Profiling
Automated Build Studio
Software Release Management
SoapUI Pro
API Testing - SoapUI Pro
All Development
For Testing & QA
TestComplete
Automated Testing
QAComplete
Test Management
WebLoadUI Pro
Load Testing
AQtime Pro
Performance Profiling
LoadUI Pro
API Load Testing
All Testing & QA
For Web Monitoring
AlertSite
Website Monitoring
AlertSite API Monitoring
Free API Monitoring
AlertSite Insite
Internal Website Monitoring
Free Tools
AlertSite for API Monitoring
CodeReviewer
WebLoadUI
DéjàClick
AlertSite for Magento
Open Source Tools
SoapUI
LoadUI
Get the Free Tools
For Your Needs
Agile Testing
API Testing
Automated Testing
Code Review
Load Testing Tools
Test Management
Web Monitoring
Resources
Resources Overview
eBooks
Templates & Worksheets
Videos
Whitepapers
Support
Support when you need it
SmartBear technical representatives are always ready to help with your product needs.
Browse our support portal
Know what you're looking for?
Downloads
User Guides
How To Tutorials
Technical Articles
Screencasts/Videos
General support
Forums
Troubleshooter
FAQs
Product Versions
Community
About Us
Contact Us
Our Partners
Our Team
Our Customers
Careers
Awards
Our Speakers
Request a Speaker
News & Events
News Releases
Events
In the News
Webinars On-demand
Prior Events
Blog
Share
Home
›
Learning
Learning
SPEAKER 1: So another story I want to tell, see, it's not data, but to me it sort of tells us what we should be doing here with this whole process. So this is a screen shot of our tool. And when we first got our tool going, of course we have to use our tool against every line of code we write. Right? We have to eat our own dog food, or else one of you would ask us that, and then it would be embarrassing, so we do. So we first got the tool going and we were starting to dog food it, and I was the reviewer. I was the reviewer of this code, and I saw this line and I thought it looked a little funny to call a function on a constant. But this is actually a neat way to write it. You could write s on the left and integrate on the right, right? You could, but this ways better, because why? SPEAKER 2: S is null. SPEAKER 1: Right. Because if S in null, this returns false instead of throwing an exception, right? This is one of these little tricks that, as you become experienced Java developer, you just know this trick and you automatically do this because it removes a certain class of bug. Well, I shouldn't say nothing that won't crash the spacecraft, because sometimes when things freeze up, it is stuff like that. But to me, this is the kind of thing that makes a good developer. Like, a million of these things, that's part of what it means to become a better developer. And I should have known better too, because I have a background in C, and in C we know to put the constant on the left in an expression like this because-- SPEAKER 3: [INAUDIBLE]. SPEAKER 1: Right, because if I forget an equal sign, it will still fail because I can't assign zero, right? So, yay. This is it. There's a lot of architecture and cool stuff, but unfortunately or fortunately, this is a lot of what we do. And the interesting thing about this story is, you think of code review as the reviewer tells the author what to do and how stupid he is, and all this stuff he's got to do, right? I was the reviewer, and I was the one who learned something because we're just talking about code. So, very quickly, when you put in a code review process, you'll notice that these kinds of things just fly around the office, because it's natural, because you're looking at code. And it's fun to talk about this stuff and get better at it.