Ingabe ukukhiya okuhlolwe kabili kuphephile?
Context:E-software engineering, ukukhiya okuhlolwe kabili (okwaziwa nangokuthi "ukuhlolwa kokukhiya okuhlolwe kabili") iphethini yokuklama yesoftware esetshenziselwa ukunciphisa ngaphezulu kokuthola ilokhi ngokuhlola indlela yokukhiya (i- "lock hint") ngaphambi kokuthola ilokhi. Ukuvalwa kwenzeka kuphela uma ukuhlolwa kwesimo sokuvalwa kukhombisa ukuthi ukuvalwa kuyadingeka.  Iphethini, uma isetshenziswe kwezinye izinhlanganisela zolimi / zehadiwe, ingase ingabi ephephile. Ngezinye izikhathi, kungabhekwa njengokuphambene nesimiso.  Ngokuvamile isetshenziselwa ukunciphisa ukukhiya ngaphezulu lapho kuqaliswa "ukuqala okuvilaphayo" endaweni enezingqimba eziningi, ikakhulukazi njengengxenye ye-Singleton pattern. Ukuqalisa okuvilaphayo kugwema ukuqala inani kuze kube yilapho lifinyelelwa okokuqala.
Ukuvalwa okuhlolwe kabili kungaba okungaphephile kwezinye izimo futhi kwesinye isikhathi kubhekwa njenge-anti-pattern. Nokho, ingasetshenziswa ngendlela ephephile.