“If you think you understand quantum mechanics, you don’t understand quantum mechanics.” — Richard Feynman (1918–1988)
“If you think you understand quantum mechanics, you don’t understand quantum mechanics.” — Richard Feynman (1918–1988)
“If you think you understand quantum mechanics,
you don’t understand quantum mechanics.” — Richard Feynman (1918–1988)

As Richard Feynman said, no one really understands quantum mechanics. I have done a lot of research work for writing this article, and I hope it could give you a head start to explore the amazing quantum world. But if you find it hard to understand, well, that is normal. I also found quantum theory weird and hard to believe.

What makes quantum computers different from classical computers?

You may have heard that quantum computers are fast. Yes, they are fast. Months ago, Google’s quantum computer has proven that it can solve certain types of problems 1.5 billion times faster than the top supercomputer on Earth. But the…


At first, Oracle Cloud Free Tier seems to be slightly better than other competitors. They let you use 2 VMs of 1/8th of OCPU, 1 GB memory and 50 GB HDD each. This is VM.Standard.E2.1.Micro instance and is supposed to be free forever.

So I created a trial account, input my credit card information, and went straight to create a new VM.

Out of host capacity

This was what I got when I clicked the “Create” button. I tried again for a hundred times, same result.

The next thing I tried was to ask for support from Oracle. My Oracle…


I will not write any more bad code
I will not write any more bad code
I will not write any more bad code

Every programming language has one or more coding style guidelines. All developers know that but some of them don’t care. They practice bad programming habits for years without realizing the importance of the issues they caused.

As one of the hiring managers at Zuhlke Hong Kong, I’ve seen a lot of code smells during coding interviews. Here are the top 16 bad coding practices organized into 6 categories: coding style, dirty code, testing, error handling, code complexity, and optimization.

The first 8 code smells are covered in Part 1 and the rest in Part 2.

Error handling

Murphy’s law states that,

Anything…


I will not write any more bad code
I will not write any more bad code
I will not write any more bad code

Every programming language has one or more coding style guidelines. All developers know that but some of them don’t care. They practice bad programming habits for years without realizing the importance of the issues they caused.

As one of the hiring managers at Zuhlke Hong Kong, I’ve seen a lot of code smells during coding interviews. Here are the top 16 bad coding practices organized into 6 categories: coding style, dirty code, testing, error handling, code complexity, and optimization.

The first 8 code smells are covered in Part 1 and the rest in Part 2.

Coding styles

Ignoring the importance of coding…


Didn’t TDD promise to make developers happier?

Like everything that comes under the name of Agile, Test Driven Development (TDD) is something that sounds great in theory. In practice, it is unclear how to do it right. You are often told that if you don’t like it, you are doing it wrong. It comes as no surprise that most developers I’ve met could explain the benefits of using TDD while none of them used it in their work. Not a single one.

Lately, there have been voices against TDD, blaming it not worth the effort and not keeping many of its promises. Some even claim that TDD…


There is a lot of princes, if only you could find them

If hiring software engineers is no easy task, hiring great ones is nearly impossible. I’d rather kiss all the frogs in a pond to find the prince, if only it were that simple to hire!

An average of 2% of applicants gets hired by my company, Zuhlke Hong Kong. That means there are only 2 princes in a pond living with other 98 frogs. Apparently, we don’t have time and energy to interview all of them, so we have designed a well-defined screening and interview process that I’m going to share with you.

Stage 0: Job openings

Instead of kissing all the frogs, we…


An open-source macOS screen saver that shows a random developer excuse over a beautiful photo background. Check it out if you want to impress your colleagues!

Features

  • Periodically refresh the background image from Unsplash
  • Periodically refresh the quote from Developer Excuses
  • Animate the background image with Ken Burns effect
  • Automatically start recording video using the built-in FaceTime HD camera for security reasons

Configurations


It happened to all of us. Your app needs to display 3rd party generated images within a strictly defined UI layout. The easiest way to handle this is to center-fit the image, and crop the sides that are out of bound. Sometimes it looks good, sometimes not.

Ugly thumbnails

The result of center-cropping images are ugly thumbnails. The below is the official screenshot of Google News app taken from Google Play Store. Note how the heads are cut midway.


Problem with CircleCI 1.0

For Android developers, the one major issue with CircleCI 1.0 is speed. Don’t get me wrong. I enjoyed the free services offered by CircleCI. And from my experience, it is not slower than its competitors. But it is definitely slower than my personal computer.

I have tried to speed up my Android builds with the help of the official tips. No luck. For every build, we have to download the latest Android tools and dependencies. This process is slow in the most of the time, and sometimes the network connection of your container randomly drops, breaking your builds. …

Alan Tai

Continuously innovates and creates extraordinary impacts on digital businesses through technology excellence | https://www.linkedin.com/in/ayltai/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store