Categories
Travelling

Rainforest Adventure Golf – Dandrum, Dublin


Went to play mini golf for the first time today. The place I went is called Rainforest Adventure Golf. I really enjoyed it.

Categories
Travelling

Iveagh Gardens, Dublin


Went to Iveagh Gardens in Dublin. There wasn’t much to see in the cold time.

Categories
Travelling

National Museum of Ireland – Natural History Museum, Dublin

Stuffed and mounted animals are displayed in their 19th-century grandeur in this throwback museum. – Google

Categories
Travelling

Howth Cliff Walk, Dublin

Today I did went to Howth and did the cliff walk with an Italian friend. Didn’t do the full cliff but did quite a long walk nevertheless. ūüôā

Here are some photos from the walk…
2017-01-15 - Howth

Categories
Travelling

Cliff of Moher, Galway

Today I visited Cliff of Moher in Galway, Ireland.
It was truly breathtaking…..


Categories
Travelling

Glendalough, Wicklow

I visited Glendalough in Wicklow county today with the housemates. It was a lucky day as we had Sunshine most of the time.

Here are some pics from Glendalough

A photo posted by Sinaru Gunawardena (@sinaru.g) on

A photo posted by Sinaru Gunawardena (@sinaru.g) on

A photo posted by Sinaru Gunawardena (@sinaru.g) on


2016-10-16 - Glendalough, Wicklow

Categories
Blog Programming

Use different conditions to test methods

Let’s say that you have a function that takes an HTML <ul> structure and check items.

For simplicity, our method would check if each item in the list has a link pointing to type of resource (A).

So here can write a test that takes a list with items containing resource A links. Here we expect the function to return true.

But this does not guarantee that the function is working as there is another outcome from the function which false.  So we have to test this by using a list having no item pointing to resource A.

Then we have to think about the situation where we find both type of links that contains non-resource A and resource A links and expect the function to return false.

The importance of this that you test different scenarios. This increases the code reliability and your understanding of the code.

Categories
Travelling

Dublin Zoo, Phoenix Park

Today I visited Dublin zoo with a friend.  Not a zoo fan but thought to visit anyway as this place is one of the recommended places in Dublin to see.  Have to tell it is quite a large area.

 

It was a nice day

A photo posted by Sinaru Gunawardena (@sinaru.g) on

A photo posted by Sinaru Gunawardena (@sinaru.g) on

First time seeing a Snow Leopard.

A photo posted by Sinaru Gunawardena (@sinaru.g) on

Categories
Personal

My first mechanical keyboard

After reading reviewing about mechanical keyboards, I wanted to try them as I have never used one before. So I thought to buy Das Keyboard 4 Professional for Mac with Cherry MX Blue keys.  The color codes represent different attributes of the keys. As per my understanding Cherry MX blue and brown are the most popular. The major different between blue and brown is that blue has a clicky responsive noise and browse does not.

I tried the keyboard at the office and the sound seems a bit too loud. So I might try the brown one at the office and use the blue at my home.

Apart from that, the experience is totally great. It feels so great when pressing the keys and the reliability of mechanical keys ensure that the keyboard can take a beating but would still work.

 

Categories
Personal

My first 4K Monitor: LG 27ud88

I brought this monitor LG 27ud88 after reading online reviews.