Wednesday, November 03, 2010

debugging for dummy

i'm not a fan of programming. often my program didn't work just because silly-stupid-yet-frustrating mistakes. came up with the idea of this post, after hours of debugging and turned out i just forgot to type a slash. GOD. *rolleyes*

before i make myself more stupid because of these mistakes, i should remember:
1. check related application
sometimes it needs other applications to implement a program. checking of these application should be the first time to do before really work with the program, e.g. is the server running? is the database up?

2. consistency
mistyped the name functions or variables easily happened if many functions/variables are implemented. and if it has a path related variable, should check it too. if we collaborate with other programmer or import an exported project, path inconsistency could be the suspect of error.

3. syntax
obviously. many editor tools can help with the highlight if it wrong typed. but sometimes, the syntax error checking doesn't apply with the context of the program. so, a complete understanding of the program still the main role. other important thing, case sensitivity.

4. using debugging tool

how i love this tool. hail the inventor! usually, if i use an IDE, it comes together with the debugging tool. put a break point and i can trace my program easily.

5. variable tracking

if there's no debugging tool, then variable tracking could be the alternative. put a variable in the part of program that suspected causing error, then see how it goes. echo the variable on the web, write the value, alert, or whatever.

i think that's all from my not-so-much-experience with programming. feel free to add more, geeks! :D

Tuesday, November 02, 2010

kangen

disclaimer: setiap kata buku yang disebutkan di postingan ini, bukan termasuk buku pelajaran/kuliah!

saya engga tau sejak kapan saya suka baca buku. yang jelas, saya baru menyadari kalo saya hobi baca buku ketika bapak menuliskan hobi saya: 'membaca', di 'buku pesawat'.

ergh.
apa pula buku pesawat.
abis ga tau namanya apa.

'buku pesawat' itu buku yang dikasih sama maskapai penerbangan kalo ada anak kecil yang ikut naik pesawat, buat kenang-kenangan. entah kapan itu ya terjadi...

sejak saat itu, saya selalu menuliskan hobi saya baca buku. saat saya bad mood atau ngambek, kadang ibu bawa saya ke toko buku dan membiarkan saya memilih buku yang disuka. biasanya keluar toko langsung sumringah atau pura-pura masih ngambek, padahal dalam hati udah joget-joget :))

di saat engga tau harus ngapain dan pergi kemana, datang ke toko buku, liat-liat, pegang-pegang, buka-buka *kok ini kalimatnya...* buku sudah cukup menyenangkan.

saat saya pergi dari rumah, rasanya lebih dari 10 buku masih terbungkus plastik. belum terjamah.

dan saat ini saya sedang kangen baca buku. bukan ebook, bukan pdf yang dibaca dari hape. buku beneran. dengan sampul dan lembaran-lembaran didalamnya.

melihat orang-orang baca buku di kelas, di halte, di subway, di bus, bikin mupeeeng T_T
mau beli disini, harganya lumayan, harus nyari dalam inggris pula. mikir nanti kalo pindah, kalo kalap belinya kebanyakan, ngeberatin bawaan aja.

huhuhu.