grokking hard

code smarter, not harder

Recent posts

2014-May-26
Prepare to Getting RealI’m bored tonight. So I go to my bookmark bar to see whether there is something I can read. Bingo! I came across the @freebook folder and click on Getting Real. This is a free version of 37signal’s book, Getting Real where it talk about how to quickly and efficiently start up a new software product which solve the problem from the begining. Start small, focus and efficient. I will continue to read it tomorrow.…
2013-Dec-10
Agile toolkitsMy current company is using Scrum to develop softwares. To me, it is a set of practices and tools which enhances communication, collaboration, trusts, etc between members of a team. What people are still debating is that, which one, Scrum or Lean is better. I said, why not both? To me, the term Agile has been broaderned to bear many meanings. It points to a lot of processes. But under the hood.…
2013-Dec-09
Why there is no SoftHashMap?The above question bumped into me when I was developing a simple cache using java.util.Map. In the search for the answer, I came across a thread on JavaRanch that had the same question as mine. And there was an answer which had widen my knowledge in soft/weark references in Java. I quoted the answer here in case the link is inaccessible. In the few cases, where I used weak references (or soft references), I used the classes, (and queues) directly.…
2013-Sep-22
My father is a ...I found this on an anwer on Quora: http://www.quora.com/Writing/What-should-everyone-know-about-writing. My father is a writer. A good one. His name is Marc Norman. He wrote Shakespeare In Love and a hundred other scripts and novels and has two oscars on his mantle. He told me this about writing… It’s a full time job. To be successful you must be disciplined. You do it from nine to five, five days a week. Focus on your work for forty hours and put it away at night and on the weekends.…
2013-Sep-07
SQL isn't dead. JooQ is a new fresh thingAfter working with 3 layers, DAO, JPA and Hibernate and stuff, I think writing native SQL code is going to disappear. However, til today, I just found a new framework that support you to write SQL command by Java code. Their fluent API is so good that it seems identical with real SQL command. Check out JOOQ - Java Object Oriented Querying; http://www.jooq.org/ P.s: Guess what! It’s type-safe.…
2013-Jun-19
Little things matterToday, I’ve read a entry in Quora that actually Made Me Thing (MMT). It was a survey “What is the nicest thing anyone has ever done to you?” and there was a man writing that some woman had helped him back when he was travelling in Swizertland and making his way to his home in Rome. The woman had spent over 2 hours to sit with him, hopping trains in order to make sure he made it way home safe.…
2013-Jun-16
bookmarking + mind mappingRecently, I’ve been using an interesting and useful free online service, GetPocket which helps me to bookmark articles, papers, webpages, etc to read it later. The service even extracts the content and displays it in elegant format. It even allows me to tag, search, add favorite, etc. In short, it’s cool. I’ve been bookmarking a lot of good articles and links that I’m interested and plan to read them on my free time.…
2013-May-31
Bugs lie in uncertain codeToday after having lunch, I went around articles queue in order to read one or two.While reading the Architecture-Breaking Bugs, a lot of articles I had read before came back to my mind. The content of article was about flaws in the architecture which the engineers often overlooked then later on they turned out disasters. There was a link to another article which told the story of Airline 5 and how it crashed because only 1 bug at 1 line of code.…
2013-May-12
The Humble Dialog Box and Ivy Rich DialogsToday I’ve read The Humble Dialog Box of Micheal Feather and it is very interesting. The idea of the article, in Model-View-Controller (MVC) pattern, is to develop in test-first manner the Model in the beginning. All actions, all interactions should be developed and tested against the mockable interface of the View. By doing this, all the logic are encapsulted in the Model (smart object) and the View provides methods for the Model to update.…
2013-Apr-06
Greatness!Today, when I was riding around the city with my girlfriend as usual, I suddenly realized an important thing and then I asked her: Kiddie, do you remember a genius who was very poor when he was a child? He had to gather fireflies to make a lamp in order to read books [1]? And another musical genius who had volunteered to serve for free in a theater in order to practice his skills?…