grokking hard

code smarter, not harder

Recent posts

2020-Feb-15
grokhard.com and othersSo this year, 2020, I decided to retire the domain “genzerhawker.me”. I hardly used it through the years and I didn’t write a lot on the blog. But it was not the end. I bought the domain grokhard.com from GoDaddy and map it with my Wordpress.com blog. An investment in building my brand. The domain costs me $19 for 2 years. I also had to subscribe to Wordpress Personal plan at the cost of $48/year.…
2018-Jan-31
Sending Messages to Yourself on SkypeI always like a simple feature in Slack that you can chat with yourself to store notes, links, files or your own reminders. Despite that fact that I use it most of the time, this feature doesn’t exist in Skype, and I really hate it. Turns out there is a simple trick to do it that I happened to discover yesterday: On Skype, create a new group chat with only you in there.…
2017-May-25
Today I Found: Bill Gates's message for college grads if they want to change the world.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 starting out today and looking for the same kind of opportunity to make a big impact in the world, I would consider three fields.…
2017-May-17
Today I Found: Soft-Coding & #1 Deadly Sin of ProgrammersA question on StackOverflow, What is Soft-Coding (anti-pattern), introduced me to the term soft coding (a pun to hard coding). Below is a quoted code snippet of the accepted answer: 1 2 3 4 5 6 7 SpecialFileClass file = new SpecialFileClass(200); // hard coded SpecialFileClass file = new SpecialFileClass(DBConfig .Start() .GetConnection() .LookupValue("MaxBufferSizeOfSpecialFile") .GetValue()); Too much of anything is not good. The above is not an exception. Too much of flexibility leads to over-engineering.…
2017-Apr-30
Friends are like genes?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 one. If, for example, the parents are siblings or close relatives (just for the sake of demonstration), and their children also continue to mate and give births, their children are very likely to have high risk of gene disorders.…
2016-Sep-28
Interesting Reads in Morning 28.9A few links that I found after reading around on the Internet on a 28-Sept morning…
2016-May-26
How to iterate over a Collection in Java?Several ways to iterate over a Java Collection in Java 8…
2015-Nov-05
PassionMy girlfriend shared me an interesting video tonight. It recorded a situation happened in a hospital in which the nurse and the doctor were trying to save a new born baby. The little one seemed to stop breathing. What moved me was how persistent the nurse and the doctor were to save the baby. The nurse, an old lady, tried to warm up the baby’s body by putting on oil, then slapped him in order to make him cry.…
2014-Jun-15
Big Data and its application?I & my girlfriend was coming back to our hometown, Bien Hoa city. As usual, every time I was in motion, I always have some really deep thought. When she & I was discussing about how we could invest money by buying gold and then selling again to make some profit, a thought came to me that we can develop a algorithm that can analyze the up & down of gold market and predict when should buy and when we should sell gold to make the best profit.…
2014-May-30
Knowing Your Code's StructureI haven’t paid much attention to how the classes in my projects communicate with each other. Looking at the package structure, they all look good and well-organized. Then one day, I came across the article Your Code Structure and it made me to seriously think about re-validate my source code. In the article, Edmund Kirwan used his tool, named Spoiklin Soice, to analyze the modules of JUnit from the early version to the latest one.…