In his letter, Bill Gates wrote that he was lucky because he started his venture at the right time, when the digital revolution was just underway, and the young people at that time had had a great opportunity to shape it. Today, college graduates have also the same chance with these fields: If I were … Continue reading Today I Found: Bill Gates’s message for college grads if they want to change the world.
A question on StackOverflow, What is Soft-Coding (anti-pattern), introduced me to the term soft-coding (a pun to hard coding). To explains simply the term, I quoted the code snippet of the accepted answer: Too much of anything is not good. The above is not an exception. Too much of flexibility led to over-engineering. This is … Continue reading Today I Found: Soft-Coding & #1 Deadly Sin of Programmers
When I read the book "The Magic of Thinking BIG", chapter 7 "Manage your environment: Go First Class", a thought emerged into my head: friends are like genes. When a baby was born, it is a product of genetic combinations of both the parents'. The differences between the parents' genes will produce a brand new … Continue reading Friends are like genes?
Tweeted an article written by Digg Engineers about how they migrated one of their modules from Node.js to Golang. Their result was a success. The article gave a very detailed analysis why Node.js did not meet their needs anymore. It also mentioned that the performance of the module was increased a lot. However, they stated … Continue reading Morning 28.9
Traditional way Pros: - an iconic way - can access to both index and value at the same time Cons: - too much code Use: - when you need to know the index of the element in a loop. The Iterator way In Java, Array and Collection all implement Iterable which returns an Iterator. If … Continue reading How to iterate over a Collection in Java?