The Catcher in The Rye

From my previous post, I promised you to write about The Catcher in The Rye, right after I finished the book. I’m not an expert on English literature, but I’ll share my opinions about this phenomenal book.

The Catcher in the Rye is a novel written by J.D. Salinger, first published at 1951. The novel was so famous, even has become a common part of curriculum in English literature. One of the causes that make this book so famous might be its correlations with John Lennon case. About this, Lennon-Chapman.com ilustrated the horrific situation as follows:

Mark Chapman had just shot five bullets into John Lennon. He sat down on the sidewalk, took out a book from his overcoat pocket….and read several pages while waiting for the police.

The book was J D Salinger’s “The Catcher In The Rye”

Continue reading

Just Another Function

Howdy,

People are good at learning by examples. It’s just like when one of my friend asked for my help. Her clients want to make an interface for data entry using Access (you can contact me if you need one ^^). They will use it to store survey data. They gave her an example from the last survey, hoping that she will make the new one based on that example. In fact, the new interface must exactly like the previous (or the example given).

So, we created the visual interface first. After it done, we must add some functions that prevent accidently alter to data entered. I must admit that this is my first experience writing code in VB. Have no choice, I dug deep into the example code. Not so long after I found this code:

Public Sub closeRecord(txt1 As Boolean, txt2 As Boolean, txt3 As Boolean, txt4 As Boolean, txt5 As Boolean, txt6 As Boolean, txt7 As Boolean, txt8 As Boolean, txt9 As Boolean)

idResponden.Locked = txt1
noPlot.Locked = txt2
Luas.Locked = txt3
JenisTanaman.Locked = txt4
Umur.Locked = txt5
Kecamatan.Locked = txt6
Desa.Locked = txt7
Dusun.Locked = txt8
Catatan.Locked = txt9

End Sub

This code used to set the appropriate text field’s status so that the entered data can’t be altered. Not until the user click an edit button. If the user click the edit button, the locked status will be set to False and the data can be altered.

This closeRecord function has nine parameters (really long for a function right?). Every single parameter set status for one text field. So if the interface has twelve text fields, the function will catch twelve parameters. See another function that called the function from before:

Public Sub RecordOff()

closeRecord False, True, True, True, True, True, True, True, True

End Sub

How many True parameters are there? It’s not my place to judge this is a bad code or not. I was just thinking about another variations from the function.

The first variation that came to my head was setter-like function in OOP. Assuming that a text field is an object, we can split the function into nine function. Every function sets their own text field. It will looks like this:

Public Sub closeIdResponden(status as Boolean)

idResponden.Locked = status

End Sub

And all the other eight function for all of the text fields. It offers more flexibility. Just in case if we want to set just one of the text fields and not all of them. But, it’ll be less effective if we don’t want to set just one text field in the whole program. For this case, the function above will be called like this:

Public Sub RecordOff()

closeIdResponden False
closeNoPlot True
'and all the other seven

End Sub

Then, I came up with another idea. According to the function uses toward the whole program, all of the text field except the first was set to the same status. So, why we don’t just set the other eight text fields. Here is the code looks like:

Public Sub closeRecord(status As Boolean)

idResponden.Locked = False
noPlot.Locked = status
Luas.Locked = status
JenisTanaman.Locked =status
Umur.Locked = status
Kecamatan.Locked = status
Desa.Locked = status
Dusun.Locked = status
Catatan.Locked = status

End Sub

So it will just set the other text field well. The flexibility of the code will decreased, but it is okay for the whole program.

The point here is if you could decreased the flexibility as long as it will make the code more effective and didn’t violate the whole code. Just like the old saying, the right man for the right job. It’s just another function to me, what about you?

Anxious..

I’ll straight to the point.

Today I got an email from my thesis supervisor. Right now, he’s in Japan, chasing his Doctoral degree. In his email, he let me know that Monbusho scholarship is opened again. He also said that he’ll give me subject for the thesis research. He’ll talk with his supervisor there to give me chance. I know that I should be grateful about that. And I am, but somehow I feel anxious right now.

First, I’ve sent an application letter to UGM. My application letter will be selected on this May. And, if and only if, I make it, I’ll into the class in August. I’ve prepared my mind and determination for this.

Second, It has been six months since I got this hydropneumothorax. If I’ll go abroad, I think I should consults with the internist first. I dunno if my body can make it there. This is the biggest obstacle of all.

And the last things, I should prepare my documents and letters immediately. The deadline is on May 22nd. I should prepare my transcript and graduation letter (all in English), taking TOEFL (anybody know where I can take the test?), and studying new language.

So that’s my story for today. I wrote it down just to redeem my worries. I think I should pray more. Would you mind giving me your suggestions?

Memories of Sengked Valley

My short trip to Bogor this time sure brings back memories. It’s not less than 3 months since my last time here. Within this trip, I revisited my old a-place-i-called-almost-home. This place is Sengked Valley.

Sengked Valley?

For you who didn’t know, Sengked Valley is located in Darmaga, Bogor. The more exact location is near the male dorms of IPB. The name Sengked Valley has its own history too. The real name actually is Sengked. A year ago, they provided wireless internet access facility to their inhabitant. When I subscribed to their service, the SSID for the wireless network was Sengked Valley. So then we, all of the inhabitants, called our place Sengked Valley. So, actually it’s not even close to Silicon Valley.

The Inhabitants

There’re never many people live in Sengked Valley main dorms. From my major, there were only four long terms inhabitants and some short term inhabitants. And here they are:

adidm, a.k.a bang syadid. Born leader, hard worker type person. He entered Sengked Valley in mid 2005, one of the first long term inhabitant. At that time, he lived in Gerung building in the 1st floor. Among us, all of the inhabitants, he was the first who finished his thesis. That’s make us high-spirited to get our thesis finished asap. Now, he lives and works in Jakarta.

ndoet, a.k.a pandu. Very nice and friendly. Among all of us, maybe he’s the one who spent more time with his computer. If he’s doing his works in front of his computer, even dinner can’t distract him. He was the room mate of adidm. Now, he also lives and works at Jakarta.

fe, a.k.a ferdi. Smart and strong minded person. He’s the one and only, who had Cum Laude amongs us. He has the respect of the others. He’s my room mate at our first semester, but then I moved on my private room on the next semester. Like the two I mentioned before, he lives and works at Jakarta now.

denymaoeth, a.k.a deny. A man with strong principles. After he decided something, he will never back down. A man that you can relied on. Officially he’s not registered as inhabitants. But sometimes, usually when exam comes, he asked my permission to study at my room. So he became my temporary room mate. Thanks to him, I have study partner. Because his family live in Jakarta, he also works there now.

khadi-kun. You can mock him, but he’ll never angry. He’s a kind person. He has determination and never feel shame to learn. Up until I write this, he hasn’t graduated yet. But I hope he will soon. He only live in Sengked Valley for 3 or 4 semesters before he decided to come and back from Jakarta.

curisu, a.k.a kikis. He was my room mate from the last year before I graduated. He’s nice and caring person. He always give me some useful suggestions for me. Until I write this, he still live at Sengked Valley and hasn’t graduated yet. I hope he’ll soon. Good luck bro!

That’s just the inhabitants. Wanna know what we’re doing there ? Stay tuned..

Just a Little Bit..

Before I got back to Bogor, I got the feeling that something will happen. I still got works to do from the previous day, added with a new work that comes up. But at least, that day, I still believe that my graduation administration stuffs have been completed. But it not..

Not far from five days ago, I got a no-name call. That time, I was still working on my new (well, you could say) job. It was local phone. Not long after that the call followed by another call. This time from a cellphone number. Unfortunately, I couldn’t picked up all these call because (I don’t know why) I didn’t notice it at all. The story didn’t end here.

The next day, when I was paying my boarding room’s bill, the clerk told me that I got a phone call from my academic division of my faculty. I felt little shocked there, but I couldn’t went there because it already dark outside. My mind kept thinking, “what’s wrong??”

So on the last day before weekend, afternoon, I went there. Just asking why they called me. They said that there was mistake in my graduation letter. I shouldn’t got the CL because I got one C in my basic course. I had to gave the graduation letter back to them and they will replace it with the new one. Hardly to said, my graduation letter (the real one) has been submitted into the academic division of campus. And I think all of my friends around the campus did the same way. How could they possibly didn’t know about the procedure?? So then, they said that they would try to fix it for me, and asked me to back on the first day after weekend. It’s all because the one who took the responsibility for it has already going home.

It wasn’t because the downgrade from CL that bothers me. It’s about how will I get the copies of my graduation letter back?? I already used it for my dad (he said he need it to stop the subsidy that government gave to us) and the bank (to close my account). I just can remember these two, what about the others?? I hope this will solve clean and peacefully.

Thanks for reading anyway,, have a nice day…