Jeremiah Flaga My thoughts and experiences on programming, life, atbp.

How to reset/reformat HP Laptop (with Windows 10) without deleting user-created partitions


First of all be careful before you reset your HP laptop because the HP Help page for this has this warning:

If the size of the OS partition (usually C:) was reduced below a minimum size requirement, other user-created partitions will be removed and stored data will be destroyed.

You should backup your important files before doing the reset.

Code review: the solution to the problem of "WTFs/minute"


I recently wrote about me being a hypocritical Christian because I sometimes cuss (only in my mind, most of the times, of course; but my attitude has greatly improved since writing that blog post :smile:).

Christians are not supposed to cuss, right? That’s what I was taught. Christians are supposed to possess the virtue of self-control. And, I think, cussing is a manifestation of a lack of self-control – lack of love at the very root, of course, because “love is patient and kind, bears all things, endures all things…”.

… in programming

In the programming world, there is this joke that says, “The only valid measurement of code quality is WTFs/minute”.

Am I a hypocrite?



The text of the sermon was Ephesians 4: 1-4 (and Philippians 2:3ff).

One Christian trait that was presented was “lowliness of mind” – not to think of ourselves as being higher than others.

I am guilty of that, I think. Many times, I think of myself as better than others. This is often revealed in my job as a programmer.

Another "one" principle -- The Most Important Design Guideline of Scott Meyers


We programmers tend to be lazy. We don’t want to know or remember all those many design principles or guidelines our masters are trying to teach us.

  • SOLID.
  • Favor composition over inheritance.
  • Separate those things that change from those that don’t.
  • All those design patterns (I only know a few :smile: I’m so lazy!).
  • etc.

On the 48 Laws of Power


A friend told me about these 48 Laws of Power many months ago.

I tried to google for it a few days after I heard about it.

(I already knew about the “friend being envious” part.)

But after reading Law #2, “Never put too Much Trust in Friends, Learn how to use Enemies, I said to myself, “Learn to use enemies? Create enemies if you don’t have one? :open_mouth: Wut!? I don’t want to create enemies! And if someone wants me to become their enemy, I want to distance myself from them! This is nonsense!”

Crab Mentality might not be a Filipino-only problem


A few days ago, browsing through my LinkedIn feeds brought me to this article: “That Crab Mentality”

“It was a year or so when I first moved here that I heard people talk about Crab Mentality. I assumed it was a food dish, but as it happens it is something that is in the Philippines genes, and it is not that pleasant.

“I suppose it comes down to JEALOUSY!” - John Grant

It reminded me, again, about this important thing I learned from “How to Win Friends and Influence People” about ten years ago:

Proverbs 9:17 "Stolen water is sweet. Stolen bread tastes good."


[supposed to be posted last March 16, 2017 :smile:]

“Stolen water is sweet. Stolen bread tastes good.”

Yes! That phrase is from the Bible – Proverbs 9:17 of the Easy-to-Read Version.

If you do not believe me, read it in your Bible for yourself! Or google for it!

Why am I transcribing Uncle Bob Martin's talks?


Why am I transcribing (some of) some of Uncle Bob Martin’s talks? (And some of the other masters’ talks?)

I will not able to read everything Uncle Bob has read and I will not be able to experience everything Uncle Bob has experienced (Also, I don’t want to experience some of his bad experiences. :smile:)

Expecting Professionalism by Uncle Bob Martin


Last Saturday, May 6, while travelling back to Kidapawan from Davao, I was listening to Uncle Bob’s talk on “Expecting Professionalism”.

Here are my notes.

Programming by wishful thinking and why we need to read


Having been influenced by the idea of TDD (even though I have never done it before) and the idea of “respecting levels of abstraction”, (and the Clean Code book of course), in my recent tasks at work, because we do not have tests, I just make myself imagine that the UI layer (the Presenters, Controllers, etc.) contains the tests.

The SOLID Principles (and Chris Klug's take on it)



  • S – Single Responsibility Principle (SRP)
  • O – Open/Closed Principle (OCP)
  • L – Liskov Substitution Principle (LSP)
  • I – Interface Segregation Principle (ISP)
  • D – Dependency Inversion Principle (DIP)

Only last year did I become aware of the importance of the SOLID (or SDOLI) Principles. I heard about these principles many years ago when I was just beginning my career as a software developer but I did not give much time understanding them. I concentrated instead on learning about frameworks and technologies which Uncle Bob calls “the details” instead of the center of our application.

My third physical book on programming: Growing Object-Oriented Software Guided By Tests


Dr. Jason Lisle's facebook post on induction


Dr. Jason Lisle is the author of the book “The Ultimate Proof of Creation”.

The Ultimate Proof of Creation - Book

A few days ago, he posted something on facebook about induction. There are two people who asked questions about it and Dr. Lisle answered them.

I’m interested about discussions like that so I’m going to put that discussion here in my blog so that it will not be lost on facebook. We seldom see discussions like this so I believe it is very important for them not to be lost.

Also, I’m not claiming that I understand everything in that discussion but I’m putting them here so that I/you can easily refer to it someday when I/we are already well equipped to understand them. :smile:

The future of programming by Uncle Bob Martin


Like I said before, I really like listening to Uncle Bob Martin’s talks.

Last Friday, while riding home from Davao, I listened to his talk on “The Future of Programming”.

Argue to learn, not to win.


From the book “How to Win Friends and Influence People” I learned that the best way to win an argument is to avaoid it

OOP 2015 Keynote - Robert C. Martin ("Uncle Bob"): Agility and Architecture


Robert Martin is talking about some important history of software development here; why we are where we are today.

Very interesting!

I disagree with his conclusion in the introduction part – the years the first man and the first woman appeared – because I have a different bias than Uncle Bob Martin when it comes to the history of the human race (take note that all of us have some biases that influence the conclusions that we make)…

…but I really like listening to Bob Martin’s talks on software development :smile:

Some problems I encountered with my Jekyll powered blog -- and their solutions


This post wil be one of those “evolving publications” as called by Martin Fowler.

But I will call this “evolving notes”.

This post contains some of the problems I encountered while adding more functionality or fixing some errors to my Jekyll-powered blog.

Is the word 'Trinity' in the Bible?


Next time, if someone is going to ask me that question, or a similar question, in a sarcastic way, I will say this as my answer:

As the tests become more specific, the production code becomes more generic


I only knew that Uncle Bob Martin has a blog just last year, 2016, (I think it was April) after a colleague posted a link of the blog post The Programmer’s Oath in out chat group at work.

I learned of the name Robert Martin from his book “Clean Code” which one of my co-workers made us read a few years ago. (I also read about his name and his books in John Sonmez’s blog and Scott Hanselman’s blog)

“Clean Code” was a very good book. I learned a lot from it.

Possible refutation of the flat earth idea (when you don't know science like me)


At the office yesterday, my officemates were trying to play as “flat-earthers” pretending to refute spherical-earth proofs that are thrown at them.