Bulan: April 2016

I Hate Japanese Keyboard, and also Mac Keyboard

I covered that Japanese space is quite dangerous for programming in the previous post. But more than that, I hate the layout of the Japanese keyboard itself. The placement of symbols in Japanese keyboard are illogical! Especially the quotation mark. It’s all over the place. Who the heck design it. The ◌’ and ◌” is logically placed on the top of another in the international layout. I used these two characters anytime I get involved with String type variable, which mean a lot of time. In the Japanese layout,  single quotation mark ◌’ is above the 7 key, and double quotation mark ◌” is above 2? Incidentally, there is an accent mark  ◌` key–which is almost never used–and double accent or tenten ◌〃key–which is un-pressable–misleadingly near the good old location. Why Japanese peopleee?? Colon and semicolon now have their own room. Slash and backslash is quite separated in international layout. But, good luck finding them in the Japanese layout. Especially for Mac. By the way, I hate the Mac keyboard layout too. There are two too many switch keys in Mac …

A Space That Creates Hard-to-track Bug

Programming with Japanese keyboard is quite dangerous. To understand what I am talking about, please see the following two characters: “ ” versus “ ”. See the difference? Now, imagine it was typed in Notepad++, in programming context. To illustrate this, I make this easy example. Please guess which one is which. Give up? Well, let me give you clearer picture with a clue. So is this any problem? Yeah. It will give compile error. Now that I know the problem, it is easy to track. We can look for strange looking characters in the error log. However, the first time I encountered it, it took me hours. Imagine if this ominous space character is accidentally typed among sea of Japanese text (between String or Japanese comment for example). May god always protect us. Now, please mind your space.