BLOG

standard

Hidden flea market in Istanbul, Turkey

20.07.2014 Posted in Knowledges No Comments

Love flea market? Love antiques? And you are in Istanbul, you should try out this place if you like antique stuff and what to kill a couple hours on a Sunday in Istanbul. The market opens every Sunday. I don’t know what time but I was there from 12pm – 3pm. I don’t really know how to get there by public transportation, but you can get a taxi to there from Şişli Metro station. It’s only a couple minutes away by taxi.


View Istanbul Flea Market in a larger map

standard

It’s alright to charge your phone on ‘Shavers only’ outlet.

7.07.2014 Posted in Knowledges No Comments

Problem

Shavers only outlet

I believe everyone has the same problem once in a while or often that you forget your phone charger. Or even you didn’t forget your phone charger if you travel between UK and Europe you might forget the converter or adapter. If you stay in a hotel you must have seen one of those Shaver-only outlets. You would think that it’s clearly said that it’s for shaver only. So, I cannot use it for anything else. One day, I travel from Europe to the UK and the socket is different. Europe has one of those two-prong socket, and in the UK they use the big three-leg socket.

Then what can you do? I did some research on some myths. I have also tried it myself. It’s ok to charge your phone with those sockets.

Solution

Modern adapter if you flip it up and have a look you will see this sign or similar to this. “Travel adapter 110V – 240V” What this means is that this adapter will transform the current range from 110 – 220V to be usable for your appliance. There’s a reference here. However, those outlets are not suitable for charging your big electronic equipments such as laptop or blow dryer. Once in a while it should be ok to use the outlet to charge your phone. Especially, if you travel from Europe you must have the two-prong socket adapter which is suitable for the outlet.

standard

Naming test classes.

25.06.2014 Posted in Knowledges No Comments

Normally, you would name your test class like this.

1
2
3
public Product {
   //some awesome code here!
}
1
2
3
public ProductTest{
   //some awesome test code here!
}

There’s two reasons why I would do this. First, to let IntelliJ find the test class easily and it’s easy to spot the test class when you scroll through.

However, lately inspired by @JeroenSoeters my colleague which I don’t know where he got this from. I started naming test class like this.

1
2
3
public Product {
   //some awesome code here!
}
1
2
3
public When_building_a_product {
   //some awesome test code here!
}
1
2
3
public When_building_a_product_with_some_more_data {
   //some awesome test code here!
}

There’s one reason to do this I can think of. You can clearly see the purpose of this class and you can have multiple test classes or Product instead of having all the tests in one class and everything is cluttered so you have to scroll up and down

Not everybody likes this convention. I hate it at first but I’m starting to use it more often and I like it. What do you guys think?