« 良い設計と良いコード | メイン | フォーム認証でのログインとログアウト »

2005年05月13日

デバッグしやすさもシステムの品質のうち

私は他の人のプログラムを見る機会が多い。それらには、デバッグしやすいコードと、そうでないコードがある。
デバッグのしやすさはシステムの品質に大きく影響を与えている。デバッグしにくいコードで作られたシステムはバグが直らず、機能追加もできず、顧客の評価は非常に低い。業務システムは完成した瞬間からすでにバグや将来の仕様変更があるのが定めであり、デバッグ作業が必ず必要になるというのに、デバッグしやすくするということにあまり注目されていないのが残念でならない。

うまくないエンジニアが書いたコードがデバッグしにくいということはすぐに想像できるだろう。でも、高レベルのコーディング技術と、しっかりした設計のうえにコーディングをしたときですら、デバッグしにくいコードになることがあるようだ。高レベルのコーディング技術やしっかりした設計と、デバッグしやすいコードとの因果関係はあまりないということなのだろうか。

デバッグしやすいコードになるかどうかは、結局コーディング担当者の技量に依存していると思う。デバッグしやすいコードを書くためには開発ツールの習熟や、重複しにくい名前付け、適切な型付けなどがとても大事だからだ。うまくないエンジニアはこれができない。
コーディング規約によって経験の浅いエンジニアでもデバッグしやすいコードを書いてもらうということもよくやられているが、残念ながら多くの場合、コーディング規約はデバッグしやすさのために書かれているとは思えないことが多い。
たとえば、C言語系でコードブロックを構成するための中括弧「{}」をプロシジャ名やif文とは別の行に改行して記述する、としている規約が多いようだが、これは1画面に表示される情報量が少なくなるため、特に小さな画面しか与えられていない開発環境の場合は、非常にデバッグがしにくくなる様に思う。
他にも、むやみにFactoryを使うと型情報が欠損してVisual Studioのデバッグ機能のいくつかが使えなくなることがある、小さなスコープだからといって命名の手を抜く、名前とは違うことをするコードを書く、継承を多用しすぎる、プロシジャを分割しすぎてステップ実行がしにくいなどがある。

デバッグしやすいコードを書くのは簡単なことではないのかもしれない。だけど、私にとっては、デバッグしにくいコードのままデバッグしている方がよっぽど難しいことなのではないかと思う。デバッグをはじめてからデバッグしやすいコードにするのは難しい。だから、普段からデバッグしやすいコードを書くよう心がけることにしよう。

投稿者 tatsugoro : 2005年05月13日 03:08

トラックバック

このエントリーのトラックバックURL:
http://www.codeseek.net/cgi/mt/mt-tb.cgi/105

このリストは、次のエントリーを参照しています: デバッグしやすさもシステムの品質のうち:

» Rape from Rape
Rape [続きを読む]

トラックバック時刻: 2007年04月06日 22:05

» payday loans from payday loans
payday loans [続きを読む]

トラックバック時刻: 2007年04月07日 08:03

» Rape movies from Rape movies
Rape movies [続きを読む]

トラックバック時刻: 2007年04月09日 19:46

» Incest from Incest
Incest [続きを読む]

トラックバック時刻: 2007年04月15日 01:03

» Phentermine free shipping. from Phentermine free shipping.
Phentermine free shipping. [続きを読む]

トラックバック時刻: 2007年04月17日 09:45

» Faxless Payday Loan from Faxless Payday Loan
understanding company manufacturers reinforce blackhatseocom translation Copywri... [続きを読む]

トラックバック時刻: 2007年04月21日 05:35

» face sitting mistress destiny from face sitting mistress destiny
Eye of face sitting mistress destiny [続きを読む]

トラックバック時刻: 2007年04月22日 16:31

» twink blowjob from twink blowjob
twink blowjob [続きを読む]

トラックバック時刻: 2007年04月28日 20:15

» pregnant ebony from pregnant ebony
pregnant ebony [続きを読む]

トラックバック時刻: 2007年04月28日 20:38

» Rape Porn from Rape Porn
Rape Porn [続きを読む]

トラックバック時刻: 2007年04月30日 06:10

» Rape from Rape
Rape [続きを読む]

トラックバック時刻: 2007年05月01日 01:01

» bread winner money maker from bread winner money maker
bread winner money maker [続きを読む]

トラックバック時刻: 2007年05月01日 14:13

» Incest movies from Incest movies
Incest movies [続きを読む]

トラックバック時刻: 2007年05月07日 11:44

» buffalo chevrolet from buffalo chevrolet
buffalo chevrolet [続きを読む]

トラックバック時刻: 2007年05月13日 05:20

» mixed drink from mixed drink
mixed drink [続きを読む]

トラックバック時刻: 2007年05月14日 01:39

» fuck mountain from fuck mountain
fuck mountain [続きを読む]

トラックバック時刻: 2007年06月05日 21:01

» international phonetic alphabet from international phonetic alphabet
shit-happens 4505898 Relevant international phonetic alphabet [続きを読む]

トラックバック時刻: 2007年06月15日 12:42

» bar cart from bar cart
shit-happens 4505898 Popular authors of bar cart articles [続きを読む]

トラックバック時刻: 2007年06月15日 17:54

» free download video clip from free download video clip
shit-happens 4505898 Good information source for free download video clip. [続きを読む]

トラックバック時刻: 2007年06月18日 02:39

» el chapo de sinaloa from el chapo de sinaloa
shit-happens 4505898 Master information for el chapo de sinaloa. [続きを読む]

トラックバック時刻: 2007年06月18日 07:54

» rayne tiffany from rayne tiffany
shit-happens 4505898 -->rayne tiffany [続きを読む]

トラックバック時刻: 2007年06月18日 13:03

» heartbreak quote from heartbreak quote
shit-happens 4505898 The heartbreak quote [続きを読む]

トラックバック時刻: 2007年06月18日 18:16

» slurpconfirm404 htm from slurpconfirm404 htm
shit-happens 4505898 Aggregator of slurpconfirm404 htm sites [続きを読む]

トラックバック時刻: 2007年06月18日 23:29

» free myspace background code from free myspace background code
shit-happens 4505898 Intresting information about free myspace background code. [続きを読む]

トラックバック時刻: 2007年06月21日 09:15

» 791xv viper from 791xv viper
shit-happens 4505898 Intresting information about 791xv viper. [続きを読む]

トラックバック時刻: 2007年06月21日 14:34

» black college girl from black college girl
shit-happens 4505898 Title of black college girl [続きを読む]

トラックバック時刻: 2007年06月21日 19:53

» msn xxx from msn xxx
shit-happens 4505898 Relevant information about msn xxx. [続きを読む]

トラックバック時刻: 2007年06月24日 06:44

» boat classifieds florida from boat classifieds florida
shit-happens 4505898 Actual articles about boat classifieds florida and more. [続きを読む]

トラックバック時刻: 2007年06月24日 17:24

» star ledger newspaper from star ledger newspaper
shit-happens 4505898 Research about star ledger newspaper. [続きを読む]

トラックバック時刻: 2007年06月27日 04:29

» sexy asian uniform girls from sexy asian uniform girls
sexy asian uniform girls [続きを読む]

トラックバック時刻: 2007年07月05日 05:54

» granny softcore fuck from granny softcore fuck
granny softcore fuck [続きを読む]

トラックバック時刻: 2007年07月09日 23:12

» cartoon pantyhose porn from cartoon pantyhose porn
cartoon pantyhose porn [続きを読む]

トラックバック時刻: 2007年07月10日 05:06

» teens nude from teens nude
teens nude [続きを読む]

トラックバック時刻: 2007年08月13日 10:46

» nude mothers from nude mothers
nude mothers [続きを読む]

トラックバック時刻: 2007年09月01日 03:35

» free young gay boys from free young gay boys
free young gay boys [続きを読む]

トラックバック時刻: 2007年10月09日 23:54

» Buy fiorinal with codeine. from Codeine and buy codeine or codeine cough syrup.
Buy codeine. Buy 222 codeine. [続きを読む]

トラックバック時刻: 2007年10月11日 16:38

» black mouth curs from black mouth curs
black mouth curs [続きを読む]

トラックバック時刻: 2007年10月11日 17:45

» free porn mpegs clips from free porn mpegs clips
free porn mpegs clips [続きを読む]

トラックバック時刻: 2007年11月30日 19:14

» dj assault ass and titties from dj assault ass and titties
dj assault ass and titties [続きを読む]

トラックバック時刻: 2007年11月30日 21:55

» fotos de Pamela Anderson desnuda from fotos de Pamela Anderson desnuda
fotos de Pamela Anderson desnuda [続きを読む]

トラックバック時刻: 2007年12月01日 19:11

» florida camp grounds from florida camp grounds
florida camp grounds [続きを読む]

トラックバック時刻: 2007年12月06日 10:29

» shemale blowjob from shemale blowjob
shemale blowjob [続きを読む]

トラックバック時刻: 2007年12月25日 16:05

» sexy from sexy
sexy [続きを読む]

トラックバック時刻: 2007年12月25日 22:57

» system of a down fuck the system from system of a down fuck the system
system of a down fuck the system [続きを読む]

トラックバック時刻: 2007年12月26日 19:59

» lesbian asian from lesbian asian
lesbian asian [続きを読む]

トラックバック時刻: 2007年12月28日 10:49

» Buy carisoprodol online lowest price guarantee. from Buy carisoprodol online lowest price guarantee.
Buy carisoprodol online lowest price guarantee. Carisoprodol buy cheap carisopro... [続きを読む]

トラックバック時刻: 2008年01月17日 07:43

» Fast Defrag 2 Professional crack from Fast Defrag 2 Professional crack
Fast Defrag 2 Professional crack [続きを読む]

トラックバック時刻: 2008年01月22日 20:20

» KCam 4.0.3 crack from KCam 4.0.3 crack
KCam 4.0.3 crack [続きを読む]

トラックバック時刻: 2008年01月24日 13:53

» buy adult movies from buy adult movies
buy adult movies [続きを読む]

トラックバック時刻: 2008年02月27日 07:25

» blowjob mom from blowjob mom
blowjob mom [続きを読む]

トラックバック時刻: 2008年02月28日 11:15

» Buy fiorinal with codeine. from Buy codeine.
Buy codeine. Buy 222 codeine. Codeine and buy codeine or codeine cough syrup. Bu... [続きを読む]

トラックバック時刻: 2008年02月29日 23:10

» bust a nut from bust a nut
bust a nut [続きを読む]

トラックバック時刻: 2008年03月01日 00:47

» naruto gallery from naruto gallery
naruto gallery [続きを読む]

トラックバック時刻: 2008年03月03日 20:08

» g string model galleries from g string model galleries
g string model galleries [続きを読む]

トラックバック時刻: 2008年03月04日 02:21

» Buy codeine. from Canidian buy codeine on line.
Buy 222 codeine. Buy fiorinal with codeine. [続きを読む]

トラックバック時刻: 2008年03月11日 18:23

» Buy testosterone patch. from Buy testosterone cream for women in canada.
Buy testosterone cream for women in canada. Buy testosterone patch. Testosterone... [続きを読む]

トラックバック時刻: 2008年03月17日 04:47

» badaruniter 61 post from badaruniter blog
all about badaruniter and top news [続きを読む]

トラックバック時刻: 2008年03月26日 12:13

» link from link
link [続きを読む]

トラックバック時刻: 2008年04月22日 22:29

» link from link
link [続きを読む]

トラックバック時刻: 2008年04月23日 12:25

コメント

コメントしてください

サイン・インを確認しました、 さん。コメントしてください。 (サイン・アウト)

(いままで、ここでコメントしたとがないときは、コメントを表示する前にこのウェブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)


情報を登録する?


人気blogランキング