Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694305e8-d7f8-800e-a8d8-fbf410be6545
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 短く言うと YES。 === 短く言うと YES。 '''仕様変更があっても「昔のCOBOLは基本触らない」'''のが現場の常識。 ただし「何もしない」ではなく、やり方を変える。 ==== : ==== 理由は前に話した通り: * 挙動=仕様 * テスト不能 * 修正=リスク ==== ### ==== <syntaxhighlight>[入力加工] → [昔のCOBOL] → [出力加工] </syntaxhighlight> * 旧ロジックは無改変 * 追加仕様は外側で処理 例: * 入力値の補正 * 出力結果の変換 * 条件分岐の追加 ===== <syntaxhighlight lang="text">NEW-COBOL ===== CALL OLD-COBOL </syntaxhighlight> * 新しい仕様は NEW 側 * OLD はブラックボックス ===== <syntaxhighlight lang="cobol">IF NEW-FLAG ===== CALL NEW-LOGIC ELSE CALL OLD-LOGIC END-IF </syntaxhighlight> * 既存経路は完全保持 ===== - ソースを 複製 ===== * 新規版として修正 * 元は永久凍結 👉 保守コスト倍増なので最後。 ==== 触ることもあるが、条件が厳しい: ==== | | | | --- | --- | | | | | | | | | | それでも: * 最小差分 * 行数削減禁止 * 数値ロジック非変更 ==== - ❌ リファクタ ==== * ❌ 書き直し * ❌ 標準化 * ❌ 「読みやすくする」 👉 事故率が跳ね上がる ==== - 「1行直しただけ」で決算不一致 ==== * 直した本人も原因不明 * 結局ロールバック ==== : ==== 仕様変更は 外で対応が基本。 次いくなら * それでも直さざるを得なかった地獄例 * 安全に直す時のチェックリスト * 新旧共存アーキテクチャ例 どれいく?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)