Someone post about this in slashdot.org.
The issue is about leaving/creating 'dirty coding' just to fulfill deadline. Basically this is about programming ethics.
More at http://www.gamasutra.com/view/feature/4111/dirty_coding_tricks.php
Hmm... what do you think?
Selamat datang. Blog ini mengandungi penulisan dan bahan rujukan berkaitan pengaturcaraan dan penyelidikan yang ingin saya kongsi dengan anda. Semoga bermanfaat. (Nota: Selain teks rumi, blog ini turut mengandungi teks jawi bahasa Melayu)
Thursday, August 27, 2009
Tuesday, July 07, 2009
Duff's Device
It looks like an invalid code, but it is valid! This code portion is known as Duff's device.
switch (count % 8) {
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
case 5: *to = *from++;
case 4: *to = *from++;
case 3: *to = *from++;
case 2: *to = *from++;
case 1: *to = *from++;
} while ((count -= 8) > 0);
}More http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
Monday, June 01, 2009
Subscribe to:
Posts (Atom)
-
Istilah cermat boleh diertikan sebagai sikap seseorang yang teliti atau berhati-hati dalam melakukan sesuatu perkara. Manakala istilah cem...
-
Sumber : PRPM DBP - Kamus Dewan Edisi Empat Muat turun - (Komp) tindakan memindahkan fail dr stesen komputer utama ke stesen komputer pe...