Back to search
The question

What is the ruling on using the "God object" design pattern and the "ghosts" programming command in programming, both of which are considered "code smells," and what is the ruling on teaching them to demonstrate their harms?

Share this answer

Source: FtawySummary from Ftawy's records · added here Sep 2, 20261 min readAlso available in العربية
The answer

Using the "god object" programming command is not forbidden (), nor is teaching such code to demonstrate its disadvantages. The refraining of non-Muslims from using it is not related to its name, but rather because it is a "code smell" indicating a design flaw that hinders application development.

Summary from Ftawy's records · added here

Reviewed by El Fatwa's sharia committee.

Read the full answer on Ftawy
Where this answer came from
Source platform
Ftawy
Original fatwa ID
186042
Added here
. This is when the answer was added to El Fatwa, not the fatwa's date.
Text
Summary from Ftawy's records, reviewed by El Fatwa's sharia committee.
Read the full ruling
Read the full answer on Ftawy