Pages

April 19, 2021

If You Have The Faith

i wanted you to have the faith

only then would you understand

if you have the faith

even if I betray you

even if the people you love disowns you

if you have the faith

you'll never be alone

there'll always be people sent to help you

if you have the faith

August 29, 2020

bersangka

baik atau buruk,
layakkah hamba bersangka apa sekalipun kepada tuhannya ?

December 08, 2019

act

sometimes we act to get something.
sometimes we act to get away from something.
sometimes we act to get through something.

November 28, 2019

need

I don't need thank you(s).

I don't know what is it that I need.

September 13, 2019

Will

Having no will is scary.
Letting it go is scarier.
Losing it is the scariest.

September 03, 2019

So i've chosen

and so i've chosen a difficult path.

i'll go down this road, until i find a new one.

June 06, 2015

Java Keywords and Objects Explained - Newbie Version (Part 2)

If you missed the previous one, click here for Part 1.


class
an object, the basic for Java
a Java program can have an infinite number of classes, and each class can communicate with each other, achieving whatever it is you intend to.


static
a keyword to denote something is to be compiled/created first, before anything else
this keyword can be applied to a class, a method, and a variable. Static objects doesn't need to be instantiated, and can be called immediately.


interface
a template for a Java class
why did I call it a template? A Java interface contains only method signatures and variables. It can be implemented by a Java class, and the class must contain the functions' actual code/implementation.


abstract
a keyword to denote something special
according to Java official tutorials, an abstract class cannot be instantiated, and may or may not have abstract methods. An abstract method is declared without an implementation, again according to Java official tutorial.


final
a keyword to make something a constant
anything declared as final becomes a constant, which means it may not be changed anytime, anywhere. This is useful when specifying hours in a day, days in a week, or anything you don't want to accidentally change later.


Do correct me if anything is incorrect or imprecise.

Thank you and stay tuned for the next part.

May 12, 2015

Java Keywords and Objects Explained - Newbie Version (Part 1)

Hello there.

Today I'll take a stab at explaining Java programming language keywords to you all.
As the title suggests, this explanation is aimed towards total newbies to Java, and probably also suitable for those having trouble understanding Java objects, especially to non-English speakers.

What made me start this series is simply because I had the same problem when i started programming, and I happen to start with Java, and not Python or C or other traditionally introductory language. At the time, there were a lot of explanations online, but because of my limited vocabulary of the English language, it took me longer to understand simple stuff.

I hope this series will help some understand Java faster.


variable
a name given to an object
As a non-native speaker, this was really confusing to me. It is actually very easy. Variables are like giving names to your cats. They all are cats, but with different names.


namespace
a name or path to specify location/collection of items
Yes, I realize namespace is not Java-exclusive, but anyone who wishes to start programming should know what a namespace is. A simple way to think of a namespace is it is sort of the drive letter in your computer. If you have C drive and D drive, you could also say you have C namespace and D namespace.


package
specifies what location/collection the current file is in
If I put package com.asrihashim.main
it means that the file is in folder com/asrihashim/main where com is a folder at my project's root


import
takes the specified file in a different folder to be used in current file
Since every .java file/class can call methods/functions in other .java file/class, import makes sure it knows where the Java file is located.
It also makes sure which class in Java SDK the file needs.


public
specifies the object to be accessible by anyone
When something is specified as public, it can be called by any Java class, no matter where it is called from


protected
specifies the object to be accessible by its subclass(es) only
Protected objects are only accessible by itself, and any subclass(es) extending the class it is in


private
specifies the object to be accessible by itself only
private objects are only accessible or can be called by itself, or simply in the class where it sits in only


Continue reading Part 2 here.

April 11, 2015

An attempt

It has been so long since I last posted.
I know I should come up with something good to make up for all the lost time, but this is the best I can do for now.
Too many things are happening right now, and I can't really discuss it here.

But, here is my stab at another Android app.
I designed it with hopes of it going viral, and looking at how the end product is,
it must go extremely viral, or it will just flop.

It is a very simple app. You click start, and continue answering questions until you get it wrong.
There is a lot like it, so this post would be the kind of promotion it heavily relies on.

So go check it out via the link below, and I'll come back later, hopefully with something better to say.

3-Second Maths Quiz

November 19, 2012

Sandwiched

what would you do?
conform to society or rebel?

what kills society?
a. individuality
b. ignorance
c. self-centered -ness
d. mentality
e. all of the above
f. none of the above

July 09, 2012

Bukan

Risham rasa macam dah pernah taip pasal benda ni.
Tak apa. Risham nak taip jugak.

Internet dan tulisan internet tak cukup perasaan.
Ia tak boleh luhurkan perasaan sebaik menulis surat.
Sebab menaip di internet itu terlampau senang.
Senang dibuat, senang dibuat-buat, senang dihantar, senang dikongsi.

Pada risham, risham tak nampak keikhlasan dalam hasil kerja internet.

Tapi bukan semua nampak tak ikhlas.
Ada juga yang ikhlas.
Macam ucapan setahun sekali. Tapi ucapan yang ditujukan kepada orang lain.
Perbuatan memberi ucapan itu sendiri menunjukkan ingatan kepada yang dituju.
Lain daripada tu, nampak dibuat-buat.

p/s : kalau ucapan bertanya khabar, hari lahir, hari raya, segala macam tahniah, itu semua risham yakin ikhlas. yang lain, risham tak yakin.

July 06, 2012

Dunia yang berubah

Dunia yang ada sekarang bukan lagi dunia yang risham kenal satu masa dahulu.
Apakah dunia yang berubah atau risham sendiri yang sudah berubah?
Benar semua orang tidak boleh lari dari berubah. Dari remaja ke dewasa itu pasti berubah. Tiada siapa yang boleh menghalangnya.
Mungkin ada yang akan berkata bahawa perubahan itu bagus. Untuk kebaikan katanya.
Tapi tak semua membawa kepada kebaikan.
Bukan risham tak nak berubah, tapi ada sesetengah perkara yang risham fikir tak perlu diubah sampai bila-bila.
Apakah terlampau aneh orang yang tak mahu berubah?

June 16, 2012

Choice

a choice is a choice.

i made a choice for today. tomorrow might be different.

choices determine who we are.

make your choice.

p/s : sinetron

June 12, 2012

Bold New Breed of Laptops


i found a pile of this magazine laying around in a faculty building a few months ago.
no copyright infringement intended.
all copyright and trademarks reserved to respective owners.

laptops 13 years ago.

May 30, 2012

Goals

psychologists say,
a member of a community has only 2 possible ultimate goal.
to blend in or stand out.

but everyone knows there's a third goal.
to not achieve either one of the earlier two.

p/s : do you blend in or stand out?

March 31, 2011

Box-Office

Berjuta-juta orang tengok tak bermakna bagus. Entah-entah orang buat gelak ke. Tengok tak bermakna minda terbuka. Bodoh.

Lepas ni ramai lah nak try buat cerita lebih kurang. Lepas tu ramai terikut-ikut. Lama-lama budak-budak pun ikut. Pastu salahkan sekolah. Bodoh.

Memang lah tak sokong atau bantah, tapi menunjukkan benda-benda macam ni dah boleh masuk media yang lebih terbuka. Kalau internet takde poster. Ni dah masuk wayang, banyaklah poster kat shopping complex. Silap-silap lepas ni semua berani keluar.

Apa yang salah sangat jadi konservatif? Orang tak konservatif pun bantah isu-isu tertentu pasal internet. Apa sebab diorang tak bantah benda ni pulak? Lagi satu, yang pegi bagi lesen, luluskan filem ni buat apa? Bodoh.

Merujuk filem Dalam Botol.

p/s : jangan kata dalam botol, brokeback mountain pun aku tak hingin nak tengok.

March 28, 2011

New Experience

Had fun watching a preacher earlier today. A religion preacher. He said that he is telling everyone that God has saved him from his sins and wanted everyone to follow his footsteps.

The most interesting part of it is hearing the arguments he had with the audience.

One young man asked the preacher, why did God does not want to be held accountable for what He did? The young man argues why did God created man if He knew man are going to be extinct one day? Why create sin? Why bring plague? This young man WAS a believer.

A woman, a war veteran; said that why did God bring death to innocent people? Why let war happen? Why bring plague? She said she lost faith after the war.

A man from Sudan said that preachers came to Sudan and preach stuff and the people of Sudan believe whatever they said. The man said all of the preaches are bullshit.

The preacher called the young man a blasphemy. His desire to be God is his biggest sin. He will be sent to hell for what he said today.

The preacher asked the woman why did she go to war? She could have chosen not to. She could have chosen not to join the military.

The preacher said people like the man from Sudan does not even want to try to understand.

Interesting day indeed.

P/S : Why would you want God to be held accountable for His creations? You already believe that God exists, that God created everything. Why would you want God to have attributes of lesser beings/ His own creations? Are you greater than God then?