Subclassing errors, OOP, and practically checkable rules to prevent them
نویسنده
چکیده
This paper considers an example of Object-Oriented Programming (OOP) leading to subtle errors that break separation of interface and implementations. A comprehensive principle that guards against such errors is undecidable. The paper introduces a set of mechanically verifiable rules that prevent these insidious problems. Although the rules seem restrictive, they are powerful and expressive, as we show on several familiar examples. The rules contradict both the spirit and the letter of the OOP. The present examples as well as available theoretical and experimental results pose a question if OOP is conducive to software development at all.
منابع مشابه
گزارش خطای بیمارستانی توسط پرستاران
Errors occur commonly in hospitals and nurses are potential observers of these misconducts and they can prevent them by reporting. This research studies the types of errors, misconducts, and inappropriate situations in the nursing field, compares these errors in private and public hospitals and finally studies individuals' reactions to these errors (whistle-blowing and not whistle-blowing). Two...
متن کاملDeveloping Reliable yet Flexible Software through If-Then Model Transformation Rules
Developing reliable yet flexible software is a hard problem. Although modeling methods enjoy a lot of advantages, the exclusive use of just one of them, in many cases, may not guarantee the development of reliable and flexible software. Formal modeling methods ensure reliability because they use a rigorous approach to software development. However, lack of knowledge and high cost practically fo...
متن کاملDesign and Implementation of a Software System for Detecting Orthographical or Morphological Errors in Persian Words
This paper presents a new method for analyzing words in the Persian language context to find orthographical and structural errors regardless of the meaning. This technique tokenizes each word in a statement then tries to detect the kind of word, and analyses its correctness in terms of orthography and morphology by means of a lexicon. It should be noted that some words in the Persian language h...
متن کاملBiostatistics: how to detect, correct and prevent errors in the medical literature.
Approximately half the articles published in medical journals that use statistical methods use them incorrectly. These errors are so widespread that the present system of peer review has not been able to control them. This article presents a few rules of thumb to help readers identify questionable statistical analysis and estimate what the authors would have concluded had they used appropriate ...
متن کاملAssessment of Knowledge of Midwives about Rules and Regulations and Professional Ethical Codes in North Khorasan Hospital in 2018
Introduction: Midwives are always faced with ethical challenges in their day care, so they need to be aware of the legal and professional aspects of their care. The purpose of this study was to evaluate knowledge of midwives about rules and regulations and professional Ethical codes in North Khorasan hospital in 2018. Methods: This descriptive cross-sectional study was performed on midwives wor...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره cs.PL/0301032 شماره
صفحات -
تاریخ انتشار 2003