Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

Blog: A blog is a website consisting of discrete, often informal diary-style text entries, typically displayed in reverse chronlogical order. A single entry is called a blog post. You can subscribe to an RSS feed of this list.

Nov 2018

Oct 2018

  • Change and Risk and Governments

    Systemic change is difficult. I’m talking about software projects/systems, but there are a lot of parallels with societal systems too, like governments or states. I’ve been in large projects with hundreds of thousands of LOC where a lot of the code was painful to read and full of code smells and so on. It happens over time as projects get maintained by different developers and teams or different enhancements or changes are made.

    read more (552 words)

  • Anxiety

    Webcomic PVP Online recently did a short series on the character Cole suffering anxiety. (Click to view full-size) 30 Oct 2018 5:03amClose I generally consider myself to be a well-adjusted and functioning adult (more or less), but I did grow up as a socially anxious introvert, so I still find myself suffering mild anxiety from time to time. The most common scenario is when someone messages you like “Hey, can we talk later?

    read more (253 words)

    Posted by under post at
    Also on: tumblr twitter / 0 / 253 words
  • Watching Lately: October 2018

    Some things I’ve been watching lately, aside from the usual TV shows I follow: Tom Clancy’s Jack Ryan (on Amazon Prime) – surprisingly good, even if I’m not too familiar with the Jack Ryan stuff. I only know John Krasinski from The Office, Spoilers for Tom Clancy’s Jack Ryan: (Spoilers) The story starts with Ryan tracking down Suleiman’s network via financials, but they never follow-up on who was financing his group I’m not sure what was the point of the whole drone pilot side story (including the weird trip to the casino and the night with the couple), although it was admittedly kind of entertaining Daredevil season 3 (on Netflix) – I enjoyed the season a lot.

    read more (305 words)

  • Django Blog Application

    Ten years ago this month, I started studying Django by trying to build my own blog application. I found the code lying around while I was going through some backups lately. It’s way out of date, it uses an early version of django. I thought of bringing it up to speed, but that didn’t seem practical. Instead, for archival purposes, I cleaned it up a bit and uploaded the code to a github repo.

    read more (176 words)

  • Superhero shows being political

    Comic books and superheroes have always tended to skew towards liberal philosophies, given how writers and artists tend to support ideals like individualism and free expression. So it’s not surprising that the derivative shows tend to lean the same way. Not only do many of the shows promote diversity, but many are becoming overtly political as well. Some recent examples. (Spoilers for current seasons of Supergirl, Legends of Tomorrow and Daredevil follow)

    read more (298 words)

  • Michael Scott

    I’ve been re-watching The Office (US) lately (it’s a good show to leave running in the background while you’re doing other stuff), and I just find the character of Michael Scott fascinating. He’s funny and well-written and basically just a big bag of human flaws that somehow bumbles his way into managing an office. He’s self-centered, attention-hungry, easily distracted, and refuses to acknowledge any bad news, yet despite all of that he loves his workmates like a family.

    read more (260 words)

    Posted by under post at #tv #Pop Culture
    Also on: tumblr twitter / 0 / 260 words
  • Gladwell and Risk Management

    Malcolm Gladwell, in an article from 1996 discussing the Challenger disaster, tells us: This kind of disaster is what the Yale University sociologist Charles Perrow has famously called a “normal accident.” By “normal” Perrow does not mean that it is frequent; he means that it is the kind of accident one can expect in the normal functioning of a technologically complex operation. Modern systems, Perrow argues, are made up of thousands of parts, all of which interrelate in ways that are impossible to anticipate.

    read more (523 words)

  • I have no plans of running for elective office (though it is a running joke among some of my circles), but if I were, one of the problems I would focus on would be education. As such, I have a list of suggested additions to the High School curriculum here in the Philippines. (The first version of this list was in an FB post I wrote during the 2016 campaign period, in response to people clamoring for better Martial Law education.

    read more (399 words)

    Posted by under post at #Opinions #Philippines
    Also on: tumblr twitter / 0 / 399 words
  • Capitalism

    In fourth year HS, we had an Economics subject, and back then I was fascinated with the idea of free market capitalism – the free market, the invisible hand, the law of supply and demand, and the idea that through competition we are forced to adapt and become better and more efficient in order to survive. Capitalism mirrored the law of nature: the strong will survive. These days, I am much less enamored with the idea of capitalism.

    read more (569 words)

    Posted by under post at #philosophy #Opinions
    Also on: tumblr twitter / 0 / 569 words
  • Reminders: You don’t have to be on all the time. You don’t have to optimize everything all the time You don’t have to be at maximum productivity all the time You don’t have to be the best at everything you do all the time You don’t have to be the smartest person in the room all the time You don’t have to worry about everything all the time You don’t have to be strong enough for everyone all the time You don’t have to solve everyone’s problems all the time There had been some suggestion that people with the above traits (hypercompetitive, always wanting to optimize everything, manage their time, be productive etc) have a higher tendency for heart disease or cardiovascular problems, although that theory is in question.

    read more (149 words)

    Posted by under post at
    Also on: tumblr twitter / 0 / 149 words
  • The QC Memorial Circle

    (Click to view full-size) 21 Oct 2018 1:00amView postClose I took a quick walk around the QC memorial circle the other day. There was some kind of event going on in the main plaza for the Department of Agriculture; Secretary Pinol was there giving a speech. I walked a couple of rounds around the park so I could meet my daily steps target.

    read more (443 words)

    Posted by under post at #Philippines
    Also on: tumblr twitter / 0 / 443 words
  • For the past few weeks or so, many in the country were consumed by a sort of lotto fever. The PCSO 6/58 Ultra Lotto had gotten up to a record high jackpot prize of more than 1 billion PHP (roughly 20M USD – I know some lotteries in the US have prizes way higher than that, but hey, we’re not the US.) Many people who normally don’t play the Lotto were participating due to the sheer size of the pot.

    read more (584 words)

    Posted by under post at #Philippines
    Also on: tumblr twitter / 0 / 584 words
  • Working hours and overtime

    Rockstar was in the gaming news recently because they mentioned that some of them had worked 100-hour weeks on their massive sequel to Red Dead Redemption coming out soon (no idea if I’ll play this). The idea of 100 hour weeks seemed insane to me, and it got me thinking: I’ve done some serious overtime before, have I ever gotten close to that amount of work in a week? Luckily, I didn’t have to speculate too much, because I had data (I love data).

    read more (294 words)

    Posted by under post at #Gaming #Software Development
    Also on: tumblr twitter / 0 / 294 words
  • I’ve noticed that when I dream I live in a different house. In the dreams, “home” is not the home that I live in now. Instead it’s the “home” I grew up in. It’s my grandparents’ house, where we lived until the right after the turn of the millenium. (Click to view full-size) 18 Oct 2018 1:00amClose That house is no longer there; I’ve mentioned it before.

    read more (168 words)

    Posted by under post at #Nostalgia
    Also on: tumblr twitter / 0 / 168 words
  • On Dreams and Ambition

    I found an old document I had written around 2012, six years ago, I’ll quote it in full here: I remember when I was in high school, I made a bet with a classmate that I would be able to become president of the country before he could. Our wager was worth one cubic meter of solid gold. A few years back, I made a wager with an officemate who was about to leave my company to go independent; I bet that I would become famous before he would.

    read more (919 words)

    Posted by under post at
    Also on: tumblr twitter / 0 / 919 words
  • This is a story from the early days of the internet. Circa 2001-2004ish. A time of Geocities and AIM and and ICQ and from before Gmail even launched. At that time, I was a big Final Fantasy fan (okay, I still am, more or less). My first real experience with online fan communities was a Yahoo Groups mailing list called the “Final Fantasy Forum”. It was a fun, tight-knit group that loved to discuss the FF series and other JRPGs of that era.

    read more (895 words)

    Posted by under post at #Nostalgia #Tech Life
    Also on: tumblr twitter / 0 / 895 words
  • Mentoring is one of those tasks that’s to be expected of anyone in a senior software development role. This usually involves reviewing other people’s code, helping them with tough technical issues, and even giving career advice. I’m not sure how good I am when it comes to mentoring other software developers. When I first became technical lead on projects, I got some evaluations from junior developers saying I can be “intimidating”.

    read more (576 words)

    Posted by under post at #Software Development
    Also on: tumblr twitter / 0 / 576 words
  • I’ve had a copy of this book for quite a while now, but for some reason only got around to starting on it three days ago. It’s not a particularly long book, but I pretty much devoured it in twenty four hours. Mandatory screenshot of old-school Doom (Click to view full-size) Mandatory screenshot of old-school Doom 14 Oct 2018 1:00amClose The book traces the paths of the lives of John Romero and John Carmack – two legends of the software development world that changed PC gaming forever.

    read more (721 words)

    Posted by under post at #Books #Review #Pop Culture #Gaming
    Also on: tumblr twitter / 0 / 721 words
  • (“Late Game Review” because I’m trying to play through games on my ridiculously old backlog, so these games are pretty old) I got my digital PS3 copy of Ni No Kuni during some kind of PSN sale a while back for like $10 and seeing as how the sequel came out recently, I figured I’d better finish the first game before my rarely-used PS3 decides to die on me. Anyway, the game was great and I enjoyed it enough to go for the platinum (post-game was a bit grindy though):

    read more (560 words)

  • This started as one of those silly Facebook memes where you post one thing every day and didn’t have to explain and you tagged other people and they continued with the meme. I was very bad at following the meme instructions, but I did find the exercise interesting. I found it difficult to identify 10 specific movies, and since I didn’t explain during the FB posts, I thought I’d make a blog post about them instead.

    read more (1122 words)

    Posted by under post at #Movies #Review #Pop Culture
    Also on: tumblr twitter / 0 / 1122 words
  • The perils of hyperpartisanship

    A few days ago I read this great Reddit comment about how increasing hyperpartisanship makes it easier to influence the entire population. Quoting the relevant part: Once you've done that, you have a population that's easier to manipulate. You have, say, 30% that's 100% sure on both ends, and probably another 15% on both ends that are 80% sure, and a remaining 10% that could go both ways. The more you do this, the more the 15% will be set in stone.

    read more (486 words)

    Posted by under post at #Politics #Opinions #Philippines
    Also on: tumblr twitter / 0 / 486 words
  • I realise it’s a bit weird for me to be reviewing a marketing book, given my self-proclaimed aversion to marketing and sales. A while back I wrote a review for Tim Ferris’ book Tribe of Mentors on this blog, and for some reason someone decided to contact me citing this review and asked if I would review this other book and they would give me a complimentary copy. This was something new to me, so I thought I’d try it out!

    read more (342 words)

    Posted by under post at #Books #Review #Pop Culture
    Also on: tumblr twitter / 0 / 342 words
  • Why I'm Not An Entrepreneur

    For years now, I’ve had numerous discussions with friends and family about the possibility of setting up my own business, no matter how small. Prospects have ranged from my own software consulting firm to a food stall in an MRT station. None of these ideas never push through. Aside from general risk-aversion and not being confident in the ideas, there’s a few factors that in my mind are significant obstacles towards starting a new business for me.

    read more (475 words)

    Posted by under post at
    Also on: tumblr twitter / 0 / 475 words
  • Let Go or Be Dragged

    "Let go or be dragged" Zen proverb A few days back I read something on a Hacker News thread that kind of resonated with me: (Click to view full-size) 8 Oct 2018 1:00amClose I’m not going to claim to be the most workaholic person ever – I’ve certainly known a lot of people who work far harder than me. But I do recognize that I have this problem of emotional attachment to a project, especially if I’m the main person responsible for it.

    read more (684 words)

    Posted by under post at #Self-Improvement
    Also on: tumblr twitter / 0 / 684 words
  • What is education for?

    I recently watched this TedX talk by Seth Godin about the purpose of school/education: One of the best points I agree with from the talk is that majority of our educational system is geared towards generating graduates who are obedient. We teach students from a young age to follow rules and answer roll calls. We teach them standard prescribed solutions. We teach them how to take exams and how to find the right answers.

    read more (407 words)

    Posted by under post at #Opinions #Philippines
    Also on: tumblr twitter / 0 / 407 words

Aug 2018

  • (Somehow I now have a series of posts about blogging in 2018. Here’s the first one. Two is a series, right?) Great comment the other day on reddit (found via r/bestof), in response to Twitter’s inaction vs Alex Jones. Quoting part of the comment: How can the OG generation of web users possibly hope to maintain the Internet as a free and decentralized medium when a growing majority of the current userbase accept centralization of content and audience, as not only the status quo but as the way things should be?

    read more (1042 words)

    Posted by under post at #blogging #Tech Life #Writing
    Also on: tumblr twitter / 0 / 1042 words
  • Forty

    "Life begins at forty" -- Walter B. Pitkin It’s supposed to be a milestone of some kind, isn’t it? Like any other birthday though, I don’t feel much different. I still feel like a kid (hence the “kid-at-heart” in this blog’s header), no more an adult than I was twenty years ago. More or less still the same person. I still enjoy the same pursuits, prefer the same foods, have the same hobbies, appreciate the same things.

    read more (433 words)

    Posted by under post at #birthday
    Also on: tumblr twitter / 0 / 433 words

Jul 2018

  • It has been a while since I had a bit of free time (work is busy busy busy). I thought I would post about something here. And I’ve decided (just now), that I need to post more frivolous things, a bit of dumb blogging as some might say. Today I will talk about what games I’ve been playing in the whatever little spare time I’ve been able to scrounge up. I find that if I don’t distract myself with some gaming, my brain tends to overthink about silly things like problems and deadlines that I can’t do anything about anyway.

    read more (1130 words)

    Posted by under post at #Gaming gaming
    Also on: tumblr twitter / 0 / 1130 words

Jun 2018

May 2018

  • A couple of days ago I was rummaging through some old files and found a folder of some personal files I had copied from work computer at my old long-time place of work. One thing I was hoping to find there was this TODO text file that I kept throughout the years I worked there, even as I moved from one computer to another. It was a very long, append-only file, accumulated over some number of years.

    read more (891 words)

    Posted by under post at #Tech Life
    Also on: tumblr twitter / 0 / 891 words
  • Barangay Elections

    Ever since I came of age, I’ve exercised my right (and duty) to vote in every election that comes around. Except for Barangay/SK elections. I’ve never voted in Barangay elections. I understand that voting is a civic duty, and I have no real justification for shirking it. But the fact is that my level of awareness re: barangay-level government is very low. I have no idea what their responsibilities or jurisdiction is supposed to be.

    read more (626 words)

    Posted by under post at #Philippines
    Also on: tumblr twitter / 0 / 626 words
  • Google recently had a demo of their new AI assistant Duplex at Google IO 2018: It’s an amazing demo to watch, from an engineering perspective. Basically a combination of natural language processing + text-to-speech that can emulate human speaking patterns. It’s not that much of a breakthrough (more like putting several different things together), but it’s impressive and is a good indicator of where we are with regards to true conversant AI.

    read more (598 words)

    Posted by under post at #Tech Life
    Also on: tumblr twitter / 0 / 598 words
  • Spoiler Alert!

    When Game of Thrones entered its sixth season in 2016, it was true spoiler territory for those of us who had read the GRRM books before HBO’s TV adaptation turned the property into a worldwide phenomenon. Due to the author’s glacial writing pace, at this point the TV series went past the point that the novels had reached. Thus nobody – book readers or tv viewers – knew what events would unfold in the story.

    read more (786 words)

    Posted by under post at #Movies #tv #Pop Culture #Tech Life
    Also on: tumblr twitter / 0 / 786 words

Apr 2018

  • StackOverflow

    As a programmer, I’ve always been a big fan of StackOverflow. I asked my first question there and also wrote my first answer in September 2008, which was the month the site launched, so I was pretty much there from the beginning. The site was a huge boon to programmers when it first came out, because the internet as a venue for asking questions and answers back then was a horrible fragmented landscape of small forums and mailing lists and sites like Experts Exchange, all of which were terribly designed.

    read more (968 words)

    Posted by under post at #Software Development
    Also on: tumblr twitter / 0 / 968 words

Mar 2018

  • Posted by under post at #books
    Also on: goodreads / 0 / 209 words
  • Rethinking Facebook

    There’s been a recent brouhaha lately over Facebook’s data privacy issues after the Cambridge Analytica scandal came out. For a while, a #DeleteFacebook hashtag even made the rounds. I will admit that I had been considering reducing my own Facebook usage for a while, but not because of any data privacy issues. While I understand that Facebook probably mishandled private data and that this is a serious concern for a lot of people and even for society at large.

    read more (1283 words)

    Posted by under post at #Tech Life
    Also on: tumblr twitter / 0 / 1283 words
  • The Setup 2018 Edition

    While browsing through my old blog posts, I found one about my setup from 2010. I figured it was a good time to do an update. I like doing posts like these because it provides an easy reference for me to look back and see what I was working with at a certain point in time. What Hardware Do I Use? Desktop. I bought a new desktop rig back in late 2015, here are the specs:

    read more (1527 words)

    Posted by under post at #Gaming #Tech Life
    Also on: tumblr twitter / 2 / 1527 words
  • Let's Encrypt!

    (Image credit: r/ProgrammerHumor) I’ve been meaning to add SSL to this blog ever since I first heard of Let’s Encrypt last year. Unfortunately, support on my otherwise awesome webhost was not yet first-class and seemed complicated at the time, so I kept putting it off. But recently I was testing something unrelated and found out that I needed to have SSL on my server in order for OAuth2 to work, so I grudgingly got to it.

    read more (121 words)

Feb 2018

Jan 2018

  • I’m not super big on New Year’s Resolutions anymore. (I seldom even do the 1920×1440 joke these days.) I mean, I’m all about productivity and improvement and changing for the better, but I’ve found that very specific resolutions don’t often work for me. Mostly because I have very little focus (obviously something that an be improved). On 31 Dec 2015 5:24pm I wrote: New Year’s resolutions: Read, write, watch, play, create, destroy, win, learn, improve, chill, move forward

    read more (577 words)

    Posted by under post at #Self-Improvement
    Also on: tumblr twitter / 0 / 577 words
  • My 2017 in numbers

    Happy new year! Last year I posted some year-end statistics. That seems like a good way to recap the year, so let’s do it again. Random statistics from 2017: 45 blog posts (including this one; total of 818 currently on this site according to wp-admin, though that number doesn’t add up to last year’s stats; down 34 posts from last year, an indicator of increased busyness) 0 words written for Nanowrimo (hopefully I can have another go next year) 59 sketches submitted to r/sketchdaily (a far cry from last year’s 321, yet another indicator of busyness) Duolingo streak: 0 days.

    read more (588 words)

    Posted by under post at #yearnotes
    Also on: tumblr twitter / 5 / 588 words

Dec 2017

  • My Coding Approach

    I was thinking about my typical approach to coding. When writing a new feature, I tend to implement in the direction of where the data flows, starting from the user interface then to the backend and back to the frontend and wherever else that goes. I will build incrementally, using debugging tools or console printouts to ensure that each step is working correctly. As an example, here’s how I did a recent web-based function:

    read more (916 words)

    Posted by under post at #Software Development
    Also on: tumblr twitter / 0 / 916 words
  • I had booked the Singapore trip earlier in the year, since I almost always attend Grand Prixs in Singapore as its an easy trip and gives a good opportunity to visit friends. Unfortunately, I ended up not having time to prepare for the tournament itself. Fortunately, it was a limited event rather than constructed, so I figured maybe I could wing it and still do well. (Spoiler: I could not.)

    read more (994 words)

  • Singapore 2017

    I took a 5-day trip to Singapore last weekend, mostly to play in the Grand Prix, but the opportunity to get away from the country for a while was appreciated. These are some notes and anecdotes from the trip. (Not about the GP itself, that’s a separate post on its own.) By my count this would be my 5th visit to Singapore. That means Singapore now ties Hong Kong for my most visited foreign destination.

    read more (1864 words)

    Posted by under post at #Travels
    Also on: tumblr twitter / 0 / 1864 words

Aug 2017