It's time to de-Google

July 29, 2022

I screwed up. I really, really did. I took my privacy for granted and now I'm feeling legitimately creeped out that a single monopolistic, advertisement conglomerate knows basically everything about me. Where I go, what I read, what I buy and basically most of the significant events in my life. Now don't get me wrong. I have nothing to hide, but I also don't have anything to share (without my express consent of course). Up until last year I had an Android phone in my pocket, browsed the web using Google Chrome, sent all my emails using Gmail, noted my events in Google calendar, had Google Analytics on all my personal sites, uploaded all my pics and videos to Google Photos and stored some personal files in Google Drive. Notice how many times Google comes up there? It's absolutely insane! Google services are just far too convenient and most importantly free, which make them very attractive to use for many people, me included.
I am aware that the world is going through a privacy crisis where the 14 eyes have made closed door agreements to record every moment of our lives in the name of "fighting terror" or for "national security", but the reality is it's all about amassing power. I don't need to write too much about this as Edward Snowden put it all out there for the world to see, but most still aren't listening. While I do think that if many entities and/or corporations knew bits and pieces of a person's life, that would not be so scary. It becomes very scary when all the data about an individual gets aggregated together given that all western countries have virtually no privacy laws (or at least none that get enforced) and the state is above all.
I am now fighting to take my privacy back by:
  • Only using Firefox as my personal browser. In Firefox I have enabled enhanced fingerprint prevention (hidden feature meant for Tor users), enhanced tracking prevention, total cookie protection, HTTPs everywhere and I use uBlock Origin in "easy mode" (to block third party scripts and frames by default).
  • Using an iPhone and never Android. Maybe in the future I will get an Android device and flash a more privacy-focused OS onto it.
  • Absolute no Facebook services or any kind of social media. However, for the time being, I am making an exception for Strava which is social media adjacent.
  • Switching over to Protonmail for my email, calendar and file storage.
  • Removing Google-analytics from all my personal sites.
  • Switching to use startpage.com for searching instead of using Google directly.
I encourage the reader to think about their privacy and how comfortable they are allowing mega-corporation and the state knowing and recording all aspects of their lives. And always remember, if a service is free then you are the product!

Home automation is cool

June 27, 2022

It's been some time since my last blog post as I was busy moving and settling into my new home. It's given me the opportunity to discover the magic of home automation and right now the name of the game is Home Assistant. Through Home Assistant, one may run a local server (I run it on a Raspberry Pi 4) that may connect to smart devices and unify them all in a single UI. The greatest benefit of this is that now these devices may be automated together and they may now be controlled remotely even when away from home. Another amazing thing about Home Assistant is that it allows the community to extend its functionality through the Home Assistant Community Store (HACS). HACS essentially allows the user to download custom device integrations and UI customizations from GitHub. Sounds cool? Because it is! My current automations are as follows:
  • Turn off all the lights, change the alarm system to "Away" and start the Roomba when all home occupants have left
  • Re-dock the Roomba when one of the home occupants comes back
  • Change the alarm system to "Night" after 10pm
  • Change the alarm system to "Home" after 7am unless no one is home, or when someone comes back home from 7am to 10pm
  • Send an alert to all home owners when any of the wetness detection sensors turn from "Dry" to "Wet"
  • Flash all lights red when when the router disconnects from WAN for over 3 seconds
  • Turn the lights on to 40% in the living room when a home owner comes home after sunset
Now that the summer's here, I'll be looking to automate my A/C using an IR blaster and to automate the positioning of my window blinds. More about my dive into home automation in part 2!

Ashes to ashes, Android to iOS

Oct. 18, 2021

My faithful Pixel 3 endured 3 years of heavy use, but it's finally come time to put it to rest and so came the time to pick out a new daily driver. In my opinion, phones should be compact and I am absolutely not a fan of the fact that all the modern Android flagships are at least 6.2" in screen size. Year over year there is a very real push to create faster, higher spec phones and the simplest way to do that is to simply create larger phones so that they can hold higher performing components. As such, this time I chose to go with my very first iPhone. Mind you, this is not my first Apple device. In particular, I'm a big fan of AirPods and I actually rocked the very first iTouch back in the day. This time I went with a (product)red iPhone mini and it's been fun getting used to a new phone operating system. I consider myself an advanced user and I've now spent a ton of time tinkering and playing around with my new phone. Here is my comparison of the pros and cons of Android vs iOS.
iOS Pros:
  • Beautiful screen and a powerful haptic engine
  • The UI generally looks better
  • Significantly less bloatware and most apps that come pre-installed can be uninstalled
  • AirPods work much better with their intended OS. iOS works much better with the Apple ecosystem devices
  • Widgets for the stock apps look great
  • Iconic phone design and sounds
iOS Cons:
  • It really hurts to lose Pixel's call screening
  • No system-wide back gesture results in an inconsistent experience between apps
  • Terrible UX without an iWatch due to the new 6 digit passcode, lack of touch id and severe limitations of face ID for this COVID season
  • No USB-C :(
  • Live wallpapers are implemented in the worst way (why do I have to press down on the screen to animate the wallpaper? why???)
  • Much harder to block system-wide ads
  • severe custom app restrictions (I ended up paying $30 a year for a appdb PRO subscription which allowed installation of "non-app store" apps)
  • The stock keyboard is horrendous and does not allow much customization (custom keyboards come with restrictions which make them not ideal)
There are definitely a fair bit of shortcomings of iOS over my previous Pixel phone and it was not easy to get used to at first. Since then I have built up my muscle memory for re-entering the passcode and it's starting to feel better now. I've decided I'll be be sticking with my new iPhone mini for the foreseeable future.

Spilling the beans

Mar. 12, 2021

It's now 2021, which means that I have been a professional software engineer for over 10 years. Having also spent thousands of hours outside of work reading, practicing, and and tinkering, I now consider myself a master of the craft. As such, I consider it my duty to try to put into words what I have learned so far in my tech career. It's time to spill the beans. I will attempt to describe exactly what I think it takes to create a masterful technical implementation.
  1. Tooling

    I think it's safe to say that software has become immensely complicated. For any given technology, there is a wide array of best practices, standards and idiomatic ways of doing things. Once you learn one, another pattern comes along and you might have to reevaluate the way you were doing things previously. To help us mortals stay on course it is highly advisable to rely on tools to nudge us in the right direction. The web community is great for tooling and below is my current, go-to toolkit:
    • vscode - hands down the best (and free) code editor.
    • Git/GitHub/Git Bash - Git is currently the most popular version control system, GitHub is the best place to host your git-controlled projects and Git Bash is my favorite command line terminal for windows (comes with git).
    • smartgit - a UI client for git as to me, it's much easiest to work with it through a UI rather than the command line.
    • Lighthouse - a great website auditing tool and it's already built into the Chrome browser.
    • TypeScript - I don't write any JavaScript code nowadays and have switched completely to TypeScript, which I believe helps me write better code and provides a better development experience. I also highly recommend using TypeScript in strict mode.
    • Prettier - a fantastic code formatter.
    • ESLint/Stylelint - static code analysis is fantastic for enforcing code standards. ESLint can analyse your code while Stylelint will analyse your CSS.
    • npm-check-updates - I'm obsessed with staying on the latest release for my app's dependencies and this tells me if I'm not.
  2. Community

    For my work, I largely rely on the work of other developers as the building blocks for my applications. Even this seemingly simple site has a dozen dependencies and a couple dozen dev dependencies. This way I save myself an enormous amount of work trying to recreate the wheel.
    My process for selecting technologies to work with is embarrassingly simple and it really comes down to 3 simple questions:
    • How many stars does it have on GitHub?
    • How many weekly (usually npm) downloads does it have?
    • Does it have any obvious disqualifying factors in its repository like an ancient "last commit" date or a depreciation notice in its README.md?
    For the truly big decisions I also try to understand the public sentiment towards the technology and read about other developer's experiences. At this point I will turn to some good old Googling. Hacker News and Reddit searches are usually worthwhile and they can be easily searched from Google by appending site:reddit.com to your search query for Reddit-only results. Websites like stateofjs.com also offer great insightful into technical trends.
  3. Productivity

    The formula to define one's productivity is: productivity = focus intensity x focus time The steps one must take to maximize their productivity depend on the individual. For me it helps to be in a comfortable position that I can spend hours in, ideally free from distractions. Soundproof headphones and repetitive music work also wonders for me.
    Beside any technical recommendations, it's imperative to always take good care of oneself. This is where good sleep and exercise come into play. Taking care of these will help maintain a focused mind. Lastly, I've found it hard for myself to stay highly focused that I'm uninterested in. If possible, try to make your work interesting - be it through finding it yourself or asking for it from your lead.
  4. Development

    When it comes down to getting down and dirty with the implementation details I like to keep things as simple as I can. Front-to-back-to-mobile should all preferably be implemented with a single technology. My preference at this time is Next.js for frontend and backend development with react-native for mobile. This presents a highly efficient combination allowing one to re-use some code between different code bases (since they're both built with React), especially if using a common UI library like react-native-web.
  5. Deployment

    As with development, it's good to keep it simple. Docker, micro-services, kubernetes, etc... are all best left to enterprise development. I've had great success with serverless deployments.
    After attempting to create my own deployment library for AWS, I think it's much more straight-forward to use a more established platform like Vercel. Much of the vital web things are already baked in like analytics, CDN hosting and automatic deployment from commits. There is zero configuration required if you're already developing with their framework, Next.js.
  6. Maintenance

    When thinking about maintenance of your software you should first consider if it's even worth maintaining. Have you found a product market fit already and have some degree of confidence that your product will be around for years to come? If not, you would very likely be wasting time writing tests and worrying about long-term maintenance. Time that could be better spent on improving the product.

The rise of the long tailed beast

Mar. 9, 2021

Some time ago I watched a pretty cool video about "long tail websites". A long tail website aims to attract visitors through its sheer number of pages and visitors can be monetized through ads. Of course, and as always, marketing and SEO are key. An example of a successful long tail site could be a thesaurus website listing hundreds of thousands of pages for different words. Much of the site content could consist of data scrapped (ex. sample sentences from children's books), which is exactly what the video creator claims to have done. In essence, this is a way to monetize data. The main challenge here is figuring out how to collect, analyze and present big data in an interesting way.
Having just moved on from Tomati that had hundreds of thousands of restaurant inspection data I got this idea 🤔... and that's how https://score.restaurant/ was born. Will it succeed? Will it get visitors? I don't know, but I want to give it one more shot. At the very least it was a worthwhile experience to get a blueprint to quickly (and freely) create and deploy sophisticated web applications. In my next blog post I'll detail exactly how I did it.

Good night, sweet Tomati

Jan. 3, 2021

Four years ago, my team and I started a in-house project called Tomati with a goal to aggregate the health inspection data and use it to rate restaurants across Canada and US. Today we officially calling it quits.
While it started out as a passion project to try to expose naughty restaurants, I've come to realize that maintaining over a dozen scrappers for crappy government sites was not a good use of our team's time and resources. Getting exposure through Reddit and getting interviewed by the news was cool, but getting harassed by restaurant owners for minimal gain is just not worth it. In the end, we failed to find a way to keep users to coming back and also, don't want to be in the business of selling negativity.
Lessons Learned:
  • Never cheap out on server auto-scaling in case you accidentally blow up. Getting hugged to death when it's time to shine and getting angry emails and 1 reviews is a very feelsbadman moment.
  • Reddit is fantastic for marketing and getting feedback. Just need to find the appropriate subreddits and be prepared to engage with its inhabitants.
  • Figure out how the business will be monetized right away. How will you keep the users coming back? This is where the network effect is most powerful.
On to the next one.

Huegasm is now free and a look into the future...

Feb. 2, 2021

About 5 years ago I moved to a new apartment and wanted to synchronize my music to the smart light bulbs in my living room. And so Huegasm was born. Originally developed solely as a web app for synchronizing music to Philips Hue lights, its best iteration came in the form of a Chrome browser extension that, as of today, I am offering for free!
Why the sudden generosity? The Chrome browser team announced that they'll be removing the billing API. The $ that the extension brings in monthly is not worth the trouble of trying to migrate users to a new payment system, especially given that Chrome will not allow exporting of its licensing data. The other big benefit for the user is that they'll now be able to load Huegasm from any other browser that supports extension. Chromium-based browsers like Brave should now start working with Huegasm which is awesome.
Huegasm was my first real software engineering project outside of my usual client projects and it it has been a fantastic learning experience. It has shown me the importance of a need for a more thought-out business model which would encourage me to provide more updates and support for the future. A one time fee, which was the case with Huegasm, is just not a worthwhile time investment. Of course, all mistakes can be forgiven in the world of business with a stellar marketing execution.
As I continue to move forward, I want to explore the benefits of creating "long tail" web sites. I must minimize the time spent working on platforms (ex. iOS, Android, Hue) which tend to end up restricting, monetizing and controlling me.