NVH’s Blog

October 18, 2005

Do I Have to Test My Code?

Filed under: hoc tap

Print
Email Add to Project
Trackbacks
Blog this

Bookmark with del.icio.us

Aw, Gee, Mom, Do I Have to Test My Code?
by Steven Feuerstein
06/01/2000
Introduction
Resources

• Documentation
• Software
• Register

I love to create new things, and that is one of the reasons I so enjoy writing software. I love to take an interesting idea or challenge, and then come up with a way using the PL/SQL language (since at this point in my life it is the only computer language I know) to meet that challenge.

I have to admit, though, that I don’t really like to have to take the time to test my software (nor do I like to write documentation for it). I do it, but I don’t ever really do enough of it. And I have this funny feeling that I am not alone. The overwhelming reality is that developers generally perform an inadequate number of inadequate tests and figure that if the users don’t find a bug, there is no bug. Why does this happen? Let me count the ways…

The psychology of success and failure. We are so focused on getting our code to work correctly, that we generally shy away from bad news, from even wanting to take the chance of getting bad news. Better to do some cursory testing, confirm that it seems to be working OK, and then wait for others to find bugs, if there are any (as if there were any doubt).
Deadline pressures. Hey, it’s Internet time! Time to market determines all. We need everything yesterday, so let’s be just like Microsoft and Netscape: release pre-beta software as production and let our users test/suffer through our applications.
Management’s lack of understanding. IT management is notorious for not really understanding the software development process. If we are not given the time and authority to write (in the broadest sense, including testing, documentation, refinement, etc.) our own code properly, we will always end up with buggy junk that no one wants to admit ownership of.
Overhead of setting up and running tests. If it’s a big deal to write and run tests, they won’t get done. I don’t have time, there is always something else to work on. One consequence of this point is that more and more of the testing is handed over to the QA department, if there is one. That transfer of responsibility is, on the one hand, positive. Professional quality assurance professionals can have a tremendous impact on application quality. Yet developers must take and exercise responsibility for unit testing of their own code, otherwise the testing/QA process is much more frustrating and extended.
The bottom line is that our code almost universally needs more testing. I have recently spent a fair amount of time thinking about how to improve my testing procedures. I have also studied test “frameworks” developed by other programmers, who work primarily with object oriented languages. An obsessive coder, I then proceeded to construct my own framework for unit testing PL/SQL programs. I call it utPLSQL. I have teamed up with O’Reilly & Associates and PLNet, a brand-new PL/SQL open source repository, to make this framework (set of packages and procedures for using them) available to all PL/SQL developers.

You will find in the remainder of this article a look at the all-too-typical way we test our code. You will find on this site all the information you need to learn how to leverage utPLSQL in your environment.

Outside The Box Business

Filed under: giai tri

Today, thinking “Outside the Box” is not enough. Companies have to live “Outside the Box” in order to create meaningful business change. For example, instead of holding a strategic planning meeting at the home office or in a local hotel, take the entire team to an inspirational and unusual location, Bora-Bora for example. Why? Because your team will think much differently in Bora-Bora than they will in the same familiar surroundings. When ones entire being is immersed in a different culture, people cant help but think more creatively and with greater passion.

If planning meetings are continually held in the office, the company will likely get the same thoughts and ideas they have always received. Companies that seek innovation and creativity from their people first set the scene. They hold important meetings, such as strategic planning, team building and problem-solving meetings in a destination and manner that inspires the participants. The result is a shift in perspective, which often produces solutions that were previously not considered. Thats part of living “Outside the Box.

Inventiveness and change are the by-products of seeing things differently. When this happens, possibilities begin to flow. Suddenly new ideas of what companies (or people) want and how to get there reveal themselves. A shift in business perspective can open many doors. Once the door is open, the hard work has been done. Then the risk of stepping through it doesnt seem quite as scary.

The Facilitator

To maximize contributions and creativity, its important for the CEO or top management executives to participate in, but not dominate, the meeting. Why? If the CEO is the facilitator, participants tend to echo the leaders ideas, and the CEO may unconsciously push his or her own ideas. That format doesnt encourage living “Outside the Box”. In addition, facilitation is a skill that most leaders dont possess. The facilitator needs to be able to push the meeting forward and free up the CEO to add creativity, not leadership. Whats the alternative? Hire a pro to run your meeting. Trained facilitators or change management experts help people open their minds to new ideas and new methods that may feel uneasy at first, but are necessary to birth change. In other words, they help meeting participants see things differently and create new and better ideas/goals.

Overcoming Limitations

“The Box” is really a comfort zone. It is where people feel at ease, where they feel safe. There is nothing wrong with feeling comfortable and safe. However, if you look at the accomplishments of great thinkers, business leaders, performers, athletes and artists, you will see they reach the pinnacle of success in their respective fields because they choose to move beyond what was comfortable, what is known. They begin to think differently, which leads them to see things differently and, in turn, to DO things differently. They all have taken risks and stepped out of their comfort zone in order to achieve their goals.

For example, Edison never slept. Instead he took naps, with a rock in his hand! He did this because when he fell from the dream state, where he got his ideas, into deep sleep, the rock would fall and wake him up. He was then able to remember his dreams, and that is how he got the ideas for his many inventions.

Innovation requires high-risk challenges to business. Successful entrepreneurs take risks, and step out of their comfort zones. Whatever the greatest fear, they face it and find ways to walk through it. Consulting with a mentor or a high-level executive coach can help jump that hurtle. Most importantly remember that while there is risk in trying something new, no matter what the outcome, there is no failure. And dont expect to do it all or right the first time. Even for the most successful, risk taking and tolerance are learned skills. Great leaders dont prepare to fail, but accept not achieving all their dreams at once, and they never give up. Winston Churchill said, “Success is going from failure to failure without loss of enthusiasm.”

When people are the first to do something new in life, whether its a first job, or creating a new product, it usually takes a long time. That also applies to any new venture, whether it is opening a business, selling a company or retiring. New territory is definitely outside the comfort zone even if its a lifelong dream. Once navigated, the terrain of a new process becomes familiar and doing it again will become much easier.

Repetition can ease the anxiety of a difficult task. For example, after growing and selling a first business, there is much less anxiety starting and growing the second. The same principle holds true when beginning to think differently. Most successful executives find whatever challenge they accept, they may feel awful and awkward the first time. Yet, the second time they do it, they have more command of the situation. Theres no question that it is uncomfortable venturing into unknown waters. Yet, it is crucial in order to reach new levels in ones professional and personal life. Remember, the only people who are wrong are those who say, “It cant be done”.

The Idea Zone

In todays marketplace, a willingness to stretch and to grow is essential. The world is changing rapidly, and a new approach to business and management is necessary to meet the demands of these changing times. Accept the challenge. Go beyond the fray. Step out of your comfort zone, and see the limitless possibilities that exist.

By conquering the very things that terrify people the most, the boundaries literally melt away. Obstacles that have held people back all their lives become steppingstones to a new vision. As people develop new, shared visions, others will follow because of the convictions proponents have. Thats when people experience the exhilaration, freedom and power of the zone outside the box. They are living in the IDEA ZONE. This is where joy, success, creativity and personal power reside.

Protected: Quan ly cong viec hang ngay

Filed under: giai tri

This post is password protected. To view it please enter your password below:






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham