Last active
May 18, 2022 05:24
-
-
Save rudzainy/82dbc4502d923a166126e1e0fc35fc69 to your computer and use it in GitHub Desktop.
A simple Ruby program to illustrate current state of Malaysia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# state_of_malaysia.rb | |
# A simple Ruby program to illustrate current state of Malaysia | |
# This class represents a generalisation of leaders in Malaysia | |
class MalaysianLeaders | |
def boleh_harap? | |
return false | |
end | |
def are_not_fighting_for_power? | |
return false | |
end | |
end | |
# Currently, this loop will run forever... | |
loop do | |
# Usually after elections or hostile takeovers | |
country_leaders = MalaysianLeaders.new | |
# TODO: Need to find a way to update return value of | |
# MalaysianLeaders.boleh_harap? to TRUE. Later lah... | |
# This is hillariously true | |
if country_leaders.boleh_harap? | |
# TODO: Alamak, now need to find a way to update return value | |
# of MalaysianLeaders.are_not_fighting_for_power? to TRUE | |
# pulak dah. Later lah... | |
if country_leaders.are_not_fighting_for_power? | |
# The statement below is nice to read. However, until we | |
# finish above TODOs, we'll never reach this part of the | |
# code... | |
puts "Malaysia Cemerlang, Gemilang, Terbilang 🇲🇾" | |
break # Literally breaking us out of our misery | |
end | |
end | |
puts "Rakyat struggles and still hoping for the best." | |
end | |
# This "end" word here marks the end of the program, not the end | |
# of the rakyat's struggles... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment