İngilizce

It can be difficult to determine the purpose of the number.
If the magic number is used in multiple places in the program, it can take a lot of effort to change the number in each location, should the need arise.
You take the risk of making a mistake each time you type the magic number in the program’s code.
For example, suppose you intend to type 0.000, but you accidentally type .0000. This mistake will cause mathematical errors that can be difficult to find.

Türkçe

Sayının amacını belirlemek zor olabilir.
Sihirli sayı programda birden fazla yerde kullanılırsa, ihtiyaç duyulması halinde her konumdaki sayıyı değiştirmek çok fazla çaba gerektirebilir.
Programın koduna sihirli sayıyı her yazdığınızda bir hata yapma riskiyle karşı karşıya kalırsınız.
Örneğin, 0.000 yazmayı planladığınızı, ancak yanlışlıkla .0000 yazdığınızı varsayalım. Bu hata, bulunması zor matematiksel hatalara neden olacaktır.

(5000 karakter kaldı)
İngilizce
Türkçe

İçindekiler

Son çeviriler

devamını göster›
ADS - REKLAMLAR