Tokyo Experience Report

Quite a few people have asked me about my trip to Tokyo recently and to see some pictures, so here’s a completely non-technical post about my experience there! Hopefully this will help your planning if you’re looking to visit Japan in the near future.

 

Airports

There are two international airports for Tokyo – Narita and Haneda. Narita is about 1hr 30mins from Tokyo city centre by train whilst Haneda is about 30 mins away.

We stayed in Shimbashi, which is one direct train journey away from both airports. It’s also very close to a number of notable attractions such as the Imperial Palace, Tokyo Tower and Tsukiji Fish Market.

There are also coaches that can take you directly to a number of hotels in Tokyo including Park Hotel Tokyo where we stayed.

image

We had a good view of the Tokyo Tower from our room and it’s quite a sight at night.

 

Wifi

There aren’t many public Wifi spots (though you can find them in Starbucks and other cafes), but you can rent a mobile wifi egg at both Narita and Haneda airport for about £7-£8 a day. You get really good speed with these and they work on the underground as well.

 

Tokyo F# user group

On the day I arrived I actually met up with the Tokyo F# user group and gave a talk on F# at Gamesys. Big thanks to Yukitos for setting it up and the guys for attending!

If any of you F# folks find a chance to visit Japan you should definitely hook up with these guys too, they showed off some interesting stuff they’ve been working on.

I was too jet-lagged and brain-dead that it didn’t even occur to me to get a snap with the group  I had just travelled back to London from Polyconf; journeyed across London from Luton to Heathrow; then took a 16hr flight to Tokyo with a 2hr stop in Germany; I was barely functioning by the time I got to the meetup.

In hindsight I should have met the guys maybe a day later so I’m in better shape and am able to join them for a beer or two afterwards.

 

Food

The food in Tokyo was not as expensive as we imagined, you can get a bowl of ramen for around 800 yen (about £4) although sushi tends to be relatively expensive.

While you’re here you should definitely try the ramen, be warned though, they are very rich in flavour and a wee bit salty for my taste, especially the miso flavoured ones.

Pretty much every restaurant we tried was good, many of them are tiny though, so there might only be standing room.

Don’t forget to ask for a non-smoking seat!

Not all restaurants have a non-smoking areas but it doesn’t hurt to ask. It’s not a pleasant experience to be sandwiched between two groups of chain-smoking Japanese men whilst you’re trying to enjoy your meal…

If you go in the summer, it’s also worth trying out the Buckwheat noodle which is usually served cold with a bowl of soup or soy sauce to eat it with. In 30 degrees heat, this is surprisingly refreshing!

image

And then there’s the bento/set meals that you tend to get at lunch time. Again, these are really affordable and generally good quality and just enough for one person.

image

We didn’t see any small food stands on the street (like in Seoul and Taiwan) but then again, you’re never more than a few mins walk from a restaurant, so finding a place to eat is never an issue in Tokyo.

 

Tsukiji Fish Market

If you go to Tsukiji fish market really early (say, 6am) then you can see the salmon auctions. It wasn’t our thing so we just explored the nearby restaurants for some fresh seafood for lunch and boy they didn’t disappoint! 

image

Many of the restaurants have similar dishes – mainly rice with sashimi/fish roe/etc., but prices can differ by up to 20~25%.

Some places claim to have no-tax, but what they really mean is that the prices on the menu do not include tax, but they still charge you ~7% tax on the final bill.

In the outer market, there are also lots of small food stands where you can buy grilled seafood/fresh oyster/etc., there was even a shop that sells king crab legs (though it’s one of the more expensive things you’ll find there).

Oh, and this place gets really really busy on weekends so avoid going there on Saturdays and Sundays if you can!

 

Ghibli Museum

We really wanted to visit the Ghibli museum just outside of Tokyo, having grown up with so many of its classic anime – My Neighbor Totoro, Porco Rosso, Nausicaa of the Valley of the Wind, Princess Mononoke and Spirited Away to name a few.

Much to our surprise, it was completely booked out for the month of July… Word of advice, book online before you travel if you wanna stand a chance of getting in.

It’s a minor consolation that there’s a big wall clock near our hotel that’s modelled after Howl’s Moving Castle and it “comes alive” at several specific times a day.

 

Tokyo Tower

This is Japan’s answer to the Eiffel Tower, and I’m sorry to say that it’s a fairly weak answer at that – the view is just not comparable to the Eiffel Tower unfortunately. image

 

Meijin Shrine

A short walk from Yoyogi station is the Meijin Shrine, which is situated right next to the National Park. The whole area is covered with these great big trees and extremely well preserved.

image

image

Once inside, you can buy charms as well as a wooden board to write down your wishes.

image

The souvenir shop also sells quite a few variety of locally produced tea in different forms – tea leaves, tea bags as well as powder. I’ve never tried making tea from powder before but it’s really convenient and you can also make cold/ice tea from them too. Now that I’ve had a taste, I wish I had bought a few more bags of them at the time.

If you find green tea’s flavour a little too strong, you might wanna try the roasted brown rice tea which has a milder flavour but still has that nice aroma that green tea has – yeah, I love my tea! 

 

Sanjo Shrine

Compared to the Meijin Shrine, the Sanjo Shrine feels much more touristy – a long stretch of road leading to the shrine is lined with endless souvenir shops and food stands.

I didn’t enjoy it very much (but I still couldn’t help myself and bought some snacks and souvenirs along the way, oh the shame…), as it was crowded and feels very commercialized.

image

image

 

Nekorobi

Cat cafes are a big thing all over Asia, and we had to visit them whilst we’re here. We went to two cat cafes near Ikebukuro station, and Nekorobi is the oldest and most famous one in Tokyo (or so the hotel staff tells us).

Nekorobi costs 1000 yen (roughly £5) for the first hour (drinks are included) and is basically the size of an apartment.

We got there early (around lunch time when it opens) and managed to enjoy some quality time with the cats before other people started to show up.

image

image

image

The cats, as they do, spend most of their time sleeping and ignoring us.  They’re very approachable though and didn’t mind us petting them at all. However, they didn’t fancy playing, except for this little cutie whom took a real liking to us!

 

Nekono iru kyukeisho Nikukyu (299)

This place is big, and with lots of cats sleeping and wondering around. There are lots of manga and books on the shelves (all in Japanese unfortunately) and most people there are just chilling out, drinking free coffee and reading.

image

image

image

image

image

It’s slightly more expensive compared to Nekorobi – 200 yen (£1) per 10 mins + extra if you want drinks as well. If you pay another 500 yen (around £3) you can also have the honour of feeding the cats treats and watch them swamp all around you!

 

Overall Impression

We really enjoyed our time there, Tokyo is a lovely city, everything is very clean and tidy. The trains are always on time, clean and well air-conditioned (I hadn’t realise how dirty the London underground trains are until I got back and noticed the stark contrast).

Language can be a barrier, many people in the shops didn’t speak English but we managed to get by with Chinese (it was the same when we were in Seoul as well, a side-effect of the growing middle-class in China I suppose)

 

And as if to welcome me back to my familiar surroundings, on the journey back home we saw this in the tube station. Yup, I’m definitely home!

image

InfoQ interview at BuildStuff 14

The video and interactive transcript is also available on InfoQ’s page here.

Slides for my Craft-Conf meetup talk on DSLs and F#

Don’t learn a syntax, learn to change the way you think

“A language that doesn’t affect the way you think about programming, is not worth knowing.”

– Alan Perlis

In my last post, I outlined the techniques to learning that I picked up from Josh Kaufman’s TEDx talk. I briefly mentioned that one should learn a new paradigm rather than a language with a slightly different syntax (e.g. C# <=> Java, ActionScript <=> Haxe) but didn’t stress nearly enough the importance of doing so.

As the mathematician Richard Hamming once said, that it’s possible for there to be thoughts that we cannot have:

“Just as there are odours that dogs can smell and we cannot, as well as sounds that dogs can hear and we cannot, so too there are wavelengths of light we cannot see and flavours we cannot taste. Why then, given our brains wired the way they are, does the remark “Perhaps there are thoughts we cannot think,” surprise you? Evolution, so far, may possibly have blocked us from being able to think in some directions; there could be unthinkable thoughts.”

– Richard Hamming

but what does this have to do with programming languages, or any languages for that matter?

What we cannot express, we cannot think

BBC went to a remote, unconnected tribe called the Himba, whose colour vocabulary is very different from us in that they only have 5 words for colour.

Image

What they found was intriguing.

The Himba is able to easily identify the square with a different shade of green in this picture:

Image

because they have different words for the two shades of green. For us, this feat is difficult because to us, they’re all green.

On the other hand, because we have two words for blue and green, it is easy for us to spot the blue square from the rest:

Image

For the Himba, who has only one word that describes both blue and green, they struggle to identify the square with a different colour.

The implication is profound, that not only do languages shape our thinking, they might prohibit it.

“The limits of my language mean the limits of my world.”

– Ludwig Wittgenstein

What if the same is true for programming languages?

“Programming languages have a devious influence: they shape our thinking habits.”

– Dijkstra

What if our creative powers are limited by the ideas that can be expressed by the programming language we use?

What if some solutions are out of our reach because they cannot be clearly expressed in those languages? How would we ever discover these unknown unknowns?

Without being aware of the outside possibilities, would we ever become aware of our unconscious incompetence?

I don’t know of any research into the impact programming paradigms have on creativity. From personal experience, my most creative solutions have come from my ventures into non-mainstream programming and database paradigms. These ventures have opened doors in my mind and allowed me to see solutions I couldn’t before.

By contrast, my other learning efforts such as Dart and Haxe has taught me a slightly different syntax for expressing the same ideas that I’m already familiar with. Whilst they can prove to be useful tools for specific tasks, they failed to have the same mind-expanding effect that is far more valuable to my long term career.

On Diversity

We can diversify our ways of thinking and approaches to problem solving by learning new programming paradigms, but that’s not the only way. In fact, some of the most notable people in the field of computer science has come from other disciplines.

For example, Alan Kay was a biologist, and it was the study of biology that inspired him to coin the term objects.

“I thought of objects being like biological cells and/or individual computers on a network, only able to communicate with messages.”

– Alan Kay

(the fact that we have come to teach and think about OOP in a very different sense to what Alan Kay envisioned is another matter..)

Similarly, Joe Armstrong started out as a physicist.

And Adam Tornhill, a speaker whose work I thoroughly enjoy, has learnt much about programming from his studies in psychology.

 

We also need diversity in our communities.

There’s a famous Chinese proverb that goes like this,

“three humble shoemakers brainstorming make a great statesman.”

However, this only holds true if each of the shoemakers is able to offer a different perspective and ideas.

image

In reality, given that the shoemakers have the same profession and gender they probably have a much greater overlap in mindscape.

image

The result? The shoemakers’ numerical advantage amounts to little when it comes to finding creative solutions. Which is why, in a creative industry like ours,  we need to guard against monoculture.

Conclusion

To summarise, learning a new language within the same paradigm gives you implementation options and trade-offs for the set of approaches that is best afforded by the paradigm.

Learning a new paradigm gives you entire new approaches that you didn’t have access to before, and has a far longer-lasting benefit. Which is why, given the choice, you should learn a new paradigm rather than a new language.

dont-learn-lang-do-learn-paradigm

 

 

Links

Learn to Learn

Being a responsible speaker, I have started preparing my talk – A tour of the language landscape – for NDC Oslo months ahead of time! When I first came up with the idea for this talk, I asked on Twitter if anyone else thought it was a good idea. Phil made a great point about including some information on how I go about learning a new language.

phil_reply

I came across this TEDx talk by Josh Kaufman a while back and found it useful in helping me formulate a learning strategy that works for me.

Truth about the 10,000 hours rule

In the talk, Josh debunked the often misquoted 10,000 hours rule. When the study was first published, the finding was that it takes 10,000 hours of deliberate practice to reach the top of an ultra-competitive field. But through a collective Chinese whisper the message was warped into ‘it takes 10,000 hours of deliberate practice to be good at something’.

Instead, Josh found that researches suggest 20 hours is all it takes for you to be reasonably good at something so long you make those hours count.

learning_curve

This is important, because for us busy programmers – who, by the way, have a tendency to work long hours – the time to learn new skills is both limited and necessary given how fast our industry moves.

4 steps to learn

Josh proposed these 4 steps to learning anything.

4-steps-to-learn-anything

Deconstruct the skill

Most things we consider as skills are actually bundles of skills. The more we are able to break them up into smaller skills the better we can decide which of them actually helps us achieve what we want out of our learning. We can then prioritise the skills that are most useful to us and improve our ability in the least time possible.

For learning a programming language, you can deconstruct most languages into smaller chunks:

  • variable assignment
  • common data types
  • control flows (if-else, loops, recursions, etc.)
  • working with collection types
  • working with strings
  • error handling
  • concurrency

Most introductory books and tutorials follow this structure already.

Learn enough to self-correct

You should first focus on getting to the point where you can self-correct and self-edit as you learn. For learning a programming language, I interpret this point as:

  • know how to compile and run your code
  • able to put simple programs together, and tweak it to start getting a ‘feel’ of it

Again, most introductory books and tutorials follow this pattern already and have you build a Hello World example very early on.

Remove practice barriers

Remove distractions – TV, internet, twitter, etc. – so that you can focus on learning. This can be hard when distractions are all around us and so readily available!

I once heard a story about John Carmack that, before a new project, he’d check in to a hotel with a bunch of good books and literally cut himself off from the outside world for days so he can soak up the ideas and inspirations before starting any work on the project.

I’m not saying that you should do the same, obviously different approaches work for different people. Personally I’m most effective between the hours of 10PM and 2AM because my wife goes to bed early and I’m able to just zone out.

I’m not a heavy Twitter user, or any other social network for that matter, so they’re not a problem for me.

On the other hand, comic-based TV shows is my poison – The Flash, Gotham, Arrow, Agents of SHIELD, etc. To limit the amount of disruption these bring, I binge watch them in one night so I can have the rest of the nights that week for more constructive uses.

Practice at least 20 hours

Josh raised a good point that, for most things you learn, there is a frustration barrier – the moment when we become consciously incompetent and realise how little we know and how much more we need to learn.

Conscious_Incompetence

It’s not a great feeling as no one likes to feel stupid, and this is often the point where we lose our momentum and derail our hard-earned progress.

Which is why it’s important that we pre-commit at least 20 hours of our time, so that if and when we hit this frustration point we have a good reason to push on since we already budgeted 20 hours anyway.

Set your goal

Before you start investing a minimum of 20 hours into learning a new language, it helps if you could decide what you want to get out of the process. Depending on your situation and needs this could be quite different, e.g.

  • are you looking to move to a different language stack and trying to make yourself employable?
  • are you trying to understand the hype around a new language and see what it’s all about?

Personally, most of my learning is aimed at expanding my horizon and allowing me to see beyond the possibilities and options I have at my disposal with the stack that I work with day-to-day.

Other times I might have specific goals of what I want to be able to do in that new language, for instance:

  • I learnt Dart as a replacement to JavaScript for my web development needs
  • I learnt Elm to be better acquainted with functional-reactive programming (FRP) and with the aim of being able to make games using FRP

Prioritise learning a new paradigm

One mistake that I see many people make is to choose to learn a new language over a new paradigm. For example, making the jump from C# to Java is a relative easy one, but at the end of day you have learnt a new syntax without necessarily taught yourself a new way to solve problems.

Learning a new paradigm on the other hand, fundamentally change the way you see programming and allow you to see new ways to solve problems. From personal experience, each time I ventured into a new paradigm – Functional Programming, Aspect-Oriented Programming, Functional Reactive Programming, etc. – has allowed me to see programming in a new light.

If you’re interested in exploring some less travelled roads, check out these three paradigms recommended by John Croisant.

These two books by Bruce Tate are also a great source for exploratory learning:

7-langs-7-weeks  7-more-langs-7-weeks

And finally, I leave you with a great quote from none other than Alan Perlis.

A language that doesn’t affect the way you think about programming, is not worth knowing.

– Alan Perlis

Happy learning!

Links