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: FtawySummarized from the full answer at Ftawy · imported 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.

Summarized from the full answer at Ftawy · imported

Read the full answer on Ftawy
Where this answer came from
Source platform
Ftawy
Original fatwa ID
186042
Imported
Translation status
Source text, unreviewed
Read the full ruling
Read the full answer on Ftawy