10:09 PM

PROG202: Advanced Programming

I am in the mood to put my daily routine into a program (literally). Sorry to those yang takde experience in programming because it could be a bit difficult to understand the logic but no harm trying. I am just a typical programmer in the IT world...

Program Ramadhan_Weekday_Daily_Routine.

CONSTANT:
Mum = Syawa
Ayah = Fahmi
Kid_1 = Aydin
Kid_2 = Arif

Begin of Function Sahur

wake up at 4.00 a.m
knock on Kid_1 room to wake Ayah
go downstairs and sterlize bottles for pumping

while knock = fail
go upstairs and knock again
endwhile

if makan sahur = Kid_2 cries then
run upstairs to feed Kid_2 until he falls back asleep
endif

express breastmilk
wash up and sterilize bottles
transfer Kid_2 milk from freezer to refrigerator
go back to bed

end of Function Sahur.

Begin of Function Morning

Wake up and get ready

If lucky then
Solat Subuh
else
terlajak tido.
end if.

Get ready to go to work.
Prepare gadgets for pumping at work

If sempat then
Prepare Kid_1 Brekkie
endif.

Prepare Kid_2 morning feed dalam warm water
Spend few minutes with Kid_2
Off to work

End of Function Morning.

Begin of Function Evening

If evening_meeting = TRUE then
balik awal sikit
else
balik macam biasa
endif.

Sampai rumah, spend time with the Kid_1 AND Kid_2
Cook dinner

Case:
1 Kid_1 food = NULL then
cook food for Kid_1
2 Kid_2 food = NULL then
cook food for Kid_2
endcase

if Maghrib = TRUE then
buka puasa
endif.

Feed Kid_2 dinner
Solat Maghrib

if food for kid_1 AND Kid_2 = tak siap lagi
finish up food prep for Kid_1 and Kid_2
endif.
while kid_2 != bedtime
Spend sometime with Kid_1 and Kid_2
endwhile.

if evening_meeting = TRUE then
join evening_meeting
endif.

breastfeed kid_2 until asleep

if NOT sleepy
surf the net
else
read novel
sleep
endif.

end of Function Evening.

Begin of Function Kerja

if mailbox = issue
solve issue
elseif mailbox = important_mails
act on mails
else
lepak with colleagues
endif.


end of Function Kerja.


Begin Main()

Call Function Sahur.
Call Function Morning.
Sampai office, check mailbox
Call Function Kerja.

go to mother_room, express milk.

if hours = lunch then
check plan
if plan = NULL then
stay in office
else
project
endif
endif.

Call Function Kerja.

Solat Zohor
go to mother_room, express milk.
Call Function Kerja.

if HOURS = after_office then
leave the office
Call Function Evening.
endif.

End of Main.


This is really a poor programing logic. I am typing in the dark and someof the keys are gone (blame it on Aydin). I put up all the important points i can think of at the moment but basically this is my daily routine in Ramadhan. Not that impressive eh? Saja trying to release some stress.

1 comments:

el said...

what a geeky way to destress. tsktsk. ;p