Skip to Content
Making Software ―エビデンスが変えるソフトウェア開発
book

Making Software ―エビデンスが変えるソフトウェア開発

by Andy Oram, Greg Wilson, 久野 禎子, 久野 靖
September 2011
Intermediate to advanced
612 pages
15h 48m
Japanese
O'Reilly Japan, Inc.
Content preview from Making Software ―エビデンスが変えるソフトウェア開発
499
ソフトウェア中のコピーされたコードを検出する
とすということです。不器用で冗長な設計には、不純物が積み重なっていき、最初のコードの意図を不
明瞭にして行くと思えますよね?
コードベースの一箇所に共通部分を分離し、パラメタ化を行う方が
良くはないでしょうか?
あるいはオブジェクト指向言語であれば、もっとエレガントな設計を達成す
るために、インヘリタンスやジェネリッククラスをうまく組み合わせて作った方が良くないでしょう
か?
先の例では、もっと詳細にコードベース全体を理解するまでは、何が「正しい」設計かを確かめるの
は難しいことです。確かに現状は少し不恰好に見えますが、パラメタ化した方がマシになるでしょうか?
抽象化のしすぎは理解しにくいコードにつながり、ひいては保守の問題につながるということはないで
しょうか?
これらはより良い質問だと言えます。
ソフトウェア中のコピーされたコードを検出する
クローン(コピーされたコード)の検出は、技術的に興味深い問題の
1
つです。既存のコード断片が
コピーされてから新しい目的に合わせて変更された場合、どうやれば自動ツールでそれを認識できるで
しょうか?
すべてのクローンが後から変更されないで全く元のままなら(実際そういう場合もありはす
るのですが)、クローン検出はかなり簡単です。しかし、通常はクローンは新しい用途に合わせて調整
されます。元あった行が変更されたり削除されたり、新しいコードが追加されることもあります。です
から、ここで立ち止まって、次のように質問してみるのが良いでしょう。ソフトウェアのクローンとは、 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

マイクロフロントエンド ―マイクロサービスアーキテクチャの概念をフロントエンドに拡張し、信頼性、自律性の高いシステムを構築する

マイクロフロントエンド ―マイクロサービスアーキテクチャの概念をフロントエンドに拡張し、信頼性、自律性の高いシステムを構築する

Luca Mezzalira, 嶋田 健志
推薦システム実践入門 ―仕事で使える導入ガイド

推薦システム実践入門 ―仕事で使える導入ガイド

風間 正弘, 飯塚 洸二郎, 松村 優也

Publisher Resources

ISBN: 9784873115115Other