<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Louis Tsai on Medium]]></title>
        <description><![CDATA[Stories by Louis Tsai on Medium]]></description>
        <link>https://medium.com/@louis993546?source=rss-945d0493a934------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bHk7IU94cmZ0ibAm-2Q0_Q.jpeg</url>
            <title>Stories by Louis Tsai on Medium</title>
            <link>https://medium.com/@louis993546?source=rss-945d0493a934------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:47:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@louis993546/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Obligatory blog post to explain why I moved from SSG GitHub Pages to Ghost]]></title>
            <link>https://louis993546.medium.com/obligatory-blog-post-to-explain-why-i-moved-from-ssg-github-pages-to-ghost-7c8e84a8a574?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c8e84a8a574</guid>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[ghosts]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sun, 01 Aug 2021 09:30:28 GMT</pubDate>
            <atom:updated>2021-08-01T09:32:26.664Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Screenshot of https://louis993546.com" src="https://cdn-images-1.medium.com/max/960/1*pKEyvtTDOxgNHxFhNSMX7w.png" /></figure><blockquote><a href="https://www.louis993546.com/website-v4/">This is a copy from my website https://louis993546.com</a>. I won’t be posting anything to medium anymore. If you are interested, you can follow me there (RSS or mailing list). You can also follow me on <a href="http://twitter.com/louis993546">Twitter @louis993546</a>, which I often tweet whenever I upload a new good blog post.</blockquote><p>Like I said, I think you are legally required to write a blog post about it, and if not, you can be punish up to 2 weeks of house arrest, oh wait I am doing that anyway 🤣</p><h3>V1: Some template + GitHub Pages + Medium</h3><p>Back in maybe 2015, I created my first personal side, using a template from call <a href="https://www.styleshout.com/free-templates/kards/">KARDS from StyleShout</a>. While technically I may have some GeoCity/Wix website back when I was a teen, I never have anything remotely meaningful to put on it. I think I was doing some company page for some friends at the time, and got to learn some basic HTML &amp; CSS. Plus I was starting to look for a job, and having something to put my resume up is pretty useful.</p><figure><img alt="A screenshot of my website back in about 2018. It writes “Developer — Louis Tsai; Android, Kotlin, Java, Sketch, Go”, followed by 9 icons to different contacts such as LinkedIn, GitHub, Facabook, etc." src="https://cdn-images-1.medium.com/max/1024/0*yFqVwIU4bdeUn7Jm.png" /><figcaption>My website circa. 2018 maybe? And WTF am I putting so many icons!?</figcaption></figure><p>And in the meantime, I started to write tech (and rant) blogs on Medium, cause it’s easy, free, and that seems like what everyone was using at the time. And for a very long time, that is my setup for quite a while.</p><h3>V2: Gatsby + GitHub Pages + Medium (+ Dev.to)</h3><p>And then A few years passed, and things starts to change: on one hand Medium start pushing really hard for the paywall, and to a point it is starting to become annoying; on the other hand I started to find my website is prety damn slow, due to a combination of</p><ol><li>It’s a onepage site that loads EVERYTHING</li><li>I didn’t do any compression for all the photo I used, and those are photos I took with a DSLR in Berlin and Amsterdam iirc</li></ol><p>And at about the same time, I run into the <a href="https://github.com/mathieudutour/gatsby-starter-low-tech-blog">Gatsby’s low tech blog starter</a> from <a href="https://twitter.com/mathieudutour">Mathieu Dutour</a> somewhere on Twitter, and that just pushed me over the edge to just say “screw it” and migrated to hosting nothing but my blog posts.</p><figure><img alt="Screenshot of “Louis Tsai blog”, which only has a series of blog post title and headline. The whole page is super plain." src="https://cdn-images-1.medium.com/max/1024/0*gDx0nbNrL4orB1Zk.png" /><figcaption>My website circa. early 2021.</figcaption></figure><p>Now that I look back at it, I think I may have over compensated for all the issue I have with the v1 of my website. It’s also in a time where I was trying to learn more web dev (<a href="https://www.louis993546.com/hoverboard/">I think that is right after I finished using hoverboard for the DevFest Berlin 2019 website</a>), and so my focus at the time is probably more on trying to build something, instead of figuring out what I need the most at the time.</p><figure><img alt="A web comic that makes fun of SSG devs, who spends more time writing their setup, instead of writing actual blog posts." src="https://cdn-images-1.medium.com/max/1024/0*heQUk0-_gj924WVG.jpg" /><figcaption>I saw this on Twitter and it’s kinda a wake up call. But now that I am writing yet another blog setup, so I guess I never learned? (source: <a href="https://rakhim.org/honestly-undefined/)">https://rakhim.org/honestly-undefined/)</a></figcaption></figure><p>And unfortunately, it does not take long before I run into issue with this whole setup, and it just bothers me more and more everytime I try to write someting.</p><h4>Posting new blog post on up to 3 different places</h4><ol><li><strong>My website</strong>: First of all, all blog posts must go to my site, because it’s LITERALLY the one thing that it can do; and then for most blog posts,</li><li><a href="https://louis993546.medium.com/"><strong>Medium</strong></a>: I also publish them to Medium, because it is what I have been using for the longest time, and somehow I have 95 followers (probably mostly comes from my weirdly popular post: <a href="https://www.louis993546.com/return-remarkable-1/"><em>Why am I returning my reMarkable tablet</em></a>).</li><li><a href="https://dev.to/"><strong>Dev.to</strong></a>: And for a short period of time, I also tried to post tech blog posts to dev.to, especially after seeing a few people who swear they will never use Medium ever again.</li></ol><p>The first one requires a PR to GitHub; the second one requires logging into their website, and the third one I usually attempt to use it’s “Extract from Medium RSS” feature, but it is limited by what Medium put in the RSS, and how often that gets updated, which is usually 5+ minutes of waiting.</p><h4>Keeping all of them in sync is annoying AF</h4><p>Another major issue is that since they all use different system, there are so many thing that are often not working as intended. Links are often broken, and every typo I fixed also have to be fixed in up to 3 places. And each platform has it’s own quarks that makes the content not rendering in the same way, and the time it takes for GitHub Action to build the whole Gatsby site is just annoying to say the least, and that is coming from an Android Dev who takes 5 minutes build time as normal 😅</p><h4>My website: how to make sure pictures are not blurry?</h4><p>For the longest time, I can’t seems to figure out how to make sure pictures looks nice. I can tell that there is some plugin that shrinks the images (which generally is a good thing), but for some reason it adds artifacts to a point that some of them are not really usable.</p><figure><img alt="Side-by-side screenshot of images: left hand side is after it went through processing from Gatsby’s plugin, and it shows significant noise around all the text." src="https://cdn-images-1.medium.com/max/1024/0*uFavX0pUSDGVG1XZ.png" /><figcaption>I know the original (RHS) not high-res to begin with, but still 😒</figcaption></figure><h4>My website: how to put anything other than blog post?</h4><p>Another thing I didn’t thought through is that I might want to put other content on the website, because I sometimes I would like to pin my contact info, resume when I am looking for jobs, or something fun because that’s what website should be. And with this setup, it’s requires me to actually understand what I have been using for the last 9+ months. Not the end of the world, but just enough of an excuse to make me never do it 🤷</p><h3>V3: Trying yet another SSG and failed</h3><p>It’s clear that this is not working, and so first I have to figure out what I actually want to do with all of these, right? WRONG I just jump straight into trying out another SSG template, this time <a href="https://novela.narative.co/">Novela by Narrative</a>. Thankfully after maybe a week (read <em>3 hours of setting it up, and 7 days of dreading how to move all the markdown because all the meta data needs to to changed</em>), I decided to write down the what I actually want instead:</p><ol><li><strong>The main goal is to write blog post</strong>, don’t waste too much time on engineering it. And if I want to learn to build website, build something else. I know <a href="https://www.11ty.dev/">11ty</a> and S̵a̵p̵p̵e̵r̵ <a href="https://svelte.dev/blog/whats-the-deal-with-sveltekit">SvelteKit</a> seems cool, just keep it out of my portfolio for now.</li><li>It should be possible to <strong>add non-blog pages</strong> without having to learn another whole framework/language/architecture 🏗</li><li>It doesn’t need to score all 100 on Lighthouse or something, but just clicking through it <strong>should not feel slow</strong>.</li><li><strong>Minimal or no tracking</strong>. I have slowly grown to dislike all data tracking, both because I don’t think it’s benefit is worth it for users, plus now you also give user a ways to choose, which just makes the website uglier than it has to be. And from my personal experience, another problem I have is that I will write what is popular, instead of what I actually want to share, even if I have nothing to add to the topic. And if there is a number, I will get obsessed with it. Just ask Unsplash how many times I open it just to check the stats 😐</li><li>Even though <strong>dev.to</strong> seems nice, it’s probably time to <strong>drop it</strong>, because I often find myself writing non-programming-content nowadays.</li><li>And <strong>if possible, drop Medium</strong> as well. There is no big deal breakers, but between <a href="https://twitter.com/wkalic/status/1155102288039616513">it’s often confusing &amp; changing UI that makes people accidentally hide their post between paid wall</a>, <a href="https://www.theverge.com/2021/3/24/22349175/medium-layoffs-union-evan-williams-blogger-twitter-subscription">their inconsistent business practices that makes me scare of losing all the data</a>, and them constantly changing their icons (like serious WTF are you completely changing icon <a href="https://github.com/simple-icons/simple-icons/pulls?q=is%3Apr+is%3Amerged+medium">every 2–3 years</a>?).</li></ol><p>While Novela definitely looks very nice, it violates the 1st criteria for just the time it takes to migrate it. So I keep looking into other options, and finally……</p><h3>V4: Just Ghost</h3><figure><img alt="Screenshot of the home page of https://louis993546.com" src="https://cdn-images-1.medium.com/max/1024/0*xgPdCwe1NEKTFhCs.png" /><figcaption>My website circa. 2021, powered by Ghost.</figcaption></figure><p>I first heard of Ghost when it just came out, back when I was still in secondary school (i.e. high school in US term I suppose). And I have also looked into it a few years ago, but the USD$30/month is just a bit too much for me, who is not really intending to make any money of of this blog. And I am also not interesting in hosting it myself, because it just sounds boring AF (no offense to sysadmin).</p><p>Thankfully they recently added the USD$9/month plan, and with a few days of trial, it seems like it mostly matches my criteria:</p><ul><li>There is <a href="https://github.com/ageitgey/medium_to_ghost">at least one open source util to import blog posts from Medium</a></li><li>It’s online editor is pretty nice</li><li>It can add non-blog pages (dah)</li><li>It has no tracking by default, and</li><li>It’s still pretty fast</li></ul><p>Is it perfect? Hell no, but it’s good enough that I just spend almost 2 hours writing this, so I’d say it has a good start so far 👍</p><p>There are also a few bonus benefits of using Ghost, such as</p><ul><li>Supporting OSS project</li><li>A few theme I can choose from and (relatively) easily jump between</li><li>And if at some point I want to go the self-host route, it should be possible.</li></ul><p>At the end, it’s enough to sway me to pay for it for a year. Let’s hope it will be the last blog post about my blog post setup for a while 🤞🤞🤞</p><h3>Appendix: List of wishes for Ghost</h3><ul><li>Official tool to migrate from Medium to Ghost for $9 plan users</li><li>APEX domain support for more domain registrar?? I can do that with my old GitHub Pages setup, so I assume it’s not the issue with my domain registrar 🤔</li><li>Open up more simple plugins for $9 users. Like iA writer is literally just calling an API to upload a Markdown, right? Having to spend $30/month seems a bit too insane for that 🤷‍♀️</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c8e84a8a574" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Used Jira & Confluence to Manage My Life for 3 Months. Here’s My Review]]></title>
            <link>https://louis993546.medium.com/i-used-jira-confluence-to-manage-my-life-for-3-months-heres-my-review-3e86744f8129?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e86744f8129</guid>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Wed, 03 Mar 2021 22:05:16 GMT</pubDate>
            <atom:updated>2021-03-05T16:54:35.034Z</atom:updated>
            <content:encoded><![CDATA[<p>Back in early December 2020, I wrote an article on how I was testing out Jira &amp; Confluence as my management tool. And it’s about time for me to write down what I have learned.</p><h3><strong>What was the plan?</strong></h3><p>For all the reasons and context of why I do this, you can read it from <a href="https://louis993546.com/productivity/">the last article</a>. The gist is that:</p><ul><li>Use Jira to manage the tasks I have</li><li>Use Confluence to document the thing I want to remember in the long run</li><li>Use Google Calendar to manage time by filling it up with rough time blocks</li></ul><h3><strong>So what works?</strong></h3><h4><strong>Writing on Confluence is great 👍</strong></h4><p>One of the key problem that I was trying to solve is to avoid having more and more unstructured documentation, and so far I am very impressed with what Confluence. I can actually use it to get into a flow, and start writing down things, and most importantly, this actually helps/forces me to clear my brain, and see all the random thoughts I have as a bigger picture.</p><p>And that’s what I am want from any documentation tool. It has the right set of tools, plus a good enough user experience to help me solve real world problems. It’s definitely not the fastest/smoothest/prettiest website, and it does have a fair share of quirks. But overall it’s pros definitely beats it’s cons 👍</p><h4><strong>Epics forces me to pick and choose 🎯</strong></h4><p>One of the takeaways I have from this experience is that I always “tries” to do too many things at one. Learn 3 different programming language all at once? Sure why not!? Should I spend time to learn how to cook better, how to write better, or how to get fit? Why not all!?</p><p>And when I starts to write my tasks down in Jira, the little “Add an epic” hint text nudges me to categorize all the tasks I am doing, and with the help of the timeline view, it actually helps me better understand that “No, you probably shouldn’t do all of that at the same time”. Like it’s fine to be “Jack of all trades, master of none”, but you know, you at least have to be a “Jack”, i.e. “good enough” for each of those things. And having the timeline view visualize all of it, and pushes me to say “no”, or at the very least “not now”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YcCBcQa2QT4c0BeiLvMVhg.jpeg" /></figure><h4><strong>Google Calendar mostly works 📅</strong></h4><p>So far the best part of this experiment is definitely the use time blocks on Google Calendar. It’s not the best because it works perfectly. It’s the best because I learn the most from it. Here’s what happens</p><p><strong>In month 1 (i.e. December)</strong>: Since I took vacation for almost the entire month, I can very easily fit tasks onto it, and follow what I have planned. No problem so far.</p><p><strong>In month 2 (i.e. January)</strong>: Now that I am back to work, now I have to figure out how to balance between work, the German course that I’m taking, and all the other tasks that I want to do. And pretty much for the entire month, I failed to actually stick to the schedule. Either by not having the energy/mood to finish my tasks after work, working extra hours, or combination of both.</p><p><strong>In month 3 (i.e. February)</strong>: After all the setback and further experiments, by mid-February, I have made enough changes to mostly stick to the schedule again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWDWDv0JH-K7G3zEg07Q3Q.jpeg" /><figcaption>Scheduling tasks like this does not work for me at all</figcaption></figure><p>So what happened? Back in month 1, since I have pretty much the entire day to play with, I often make each time block bigger than it has to be, so that even if I start doing random things (e.g. replying to messages in the 1 hour reading block), there is probably still enough time to get back to flow.</p><p>And when month 2 and work starts, What I did was just to squeeze all of those into smaller blocks, but still with the same frequencies. That means I always have like 10 events on the calendar, each one is 30 minutes or less, and that means way too much jumping between tasks, and it just got extremely tiring and frustrating really quick.</p><p>So I started to make changes, moving things around, delete a task or two, but turns out it’s not enough. I ended up deleting all the future time blocks, and start fresh to figure out what I actually want to do, and where do they fit on the schedule. I know I have German course in the morning, and work in the afternoon. I know I will have lunch in between, and dinner after work. And just keep doing that, and slowly figure out how much “free” time I actually have for each day, and start scheduling bigger blocks. And there are a few more adjustments before I got back to the point of “mostly sticking to schedule”.</p><p>One thing I want to clarify is that this is what works for <strong>me</strong>. Maybe your brain likes having different tasks to keep it fresh. The key takeaway is that <strong>by forcing myself to plan what I want to do, it forces me to understand what I actually want to do</strong>, and adjust my plan accordingly.</p><h3><strong>And what doesn’t work?</strong></h3><h4><strong>Jira is not for managing small tasks 😡</strong></h4><p>It all broke down the first time I try to use Jira to manage my grocery list. It is just not design for simple “check-and-forget” type of task management. And to be fair that’s not they are trying to be anyway, so that is perfectly fine. All I have to do it to replace it with something much simpler, and for now I am using the build-in Reminder app on my iPhone. It is good enough to keep track of grocery list, as the integration with Siri is kinda useful.</p><h4><strong>Next-gen project is master of none</strong></h4><p>So in the original article, I cite the existence of the next-gen project as one of the main reason I want to give it a shot. And after 3 months, I have come to the conclusion that it is not good (yet). In Cantonese there is a idiom “兩頭唔到岸”, which literally translates to “both sides not touching the shore”, figuratively translates to “you try 2 different options but neither of them work (probably because you try both at the same time)”. And to me that feels like the state the next-gen project is in right not.</p><p>On one hand, it sit somewhere in the middle of configurability; on the other hand, it is not flexible enough to get it to work exactly the way I want it, while on the other hand, it also try give people some choices by putting way too many feature toggles. I understand that why Jira is taking this approach to build the future of their product, but at this point in time, it’s not that fun to actually use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MozduImOr13CJxQjZTyBYg.jpeg" /></figure><p><strong>### It’s not mobile-friendly</strong></p><p>First what I want to clarify is that the app itself is pretty damn good. The iOS app is snappy, and it’s UI strike a good balance between Atlassin and Apple. However, because of the structure of how Jira works, it’s just gonna be hard to make it easy to use on small screen devices. From having to pan in both directions to see all your tasks on the board, to having no shortcut to move a ticket from one lane to the other one.</p><p><strong>## So are you going to stick with it?</strong></p><p>The results are in, and they are:</p><ul><li>Jira: ❌ Moving away from it</li><li>Confluence: 🤔 Looking for replacement</li><li>Google Calendar: ✅ Keep using it</li></ul><h4><strong>❌ Jira</strong></h4><p>When I look back, it’s very obvious that Jira is not actually helping me to actually get things done. However, it is very good at making me feel productive when I am playing with it, which IMO is exactly the worst part of Jira. Even with next-gen project, Jira is still a very complex product, and that’s why we ended up spending so much time and effort just to use it. For me, task management is just a means to an end. I don’t need to feel productive using Jira, I need to feel productive working on things I listed on Jira.</p><p>And for the time being, I have move all the tasks to another task manager. Once I got more ideas of what exactly I am looking for, I might write another follow-up for that 🤷‍♀️</p><h4><strong>🤔 Confluence</strong></h4><p>On one hand, the experience of using Confluence is good enough that I am actually using it to clear my head. On the other hand, without Jira, it loses the biggest reason why I picked it in the first place: easy of connection with Jira.</p><p>For the time being, I am keeping most of the documents there. Some types of document with specific purposes (e.g. journal/blog post) is being moved to other places. I can slowly start looking for some documentation workflow that fits what I have, hopefully I will find something by the time everything falls apart 🤞</p><h4><strong>✅ Google Calendar</strong></h4><p>Given it’s one of the high-light of this experiment, of course I am going to keep it. As I mentioned above, this is a lot less about the tools itself, but more about having a workflow that works for me. So I will just keep an eye to make sure I adhere to my time block schedule 👍</p><h3><strong>So what’s the plan?</strong></h3><p>Apart from those 3, there are also other things that I am trying out to improve my productivity.</p><ul><li>Keep track of how much time I spent (wasted) using Toggl Track</li><li>Note taking and reading with reMarkable 2</li><li>How to use Pomodoro in moderation to keep free-flow focus time running smoothly</li><li>How does the physical environment (i.e. my apartment) affects my motivation</li><li>How does the equipment (e.g. my computer) affects my focus and efficiency</li></ul><p>If any of them start getting interesting, I will just write another post. But at this point it’s still too early to tell 🧐</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e86744f8129" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My plan to become more productive in a month]]></title>
            <link>https://louis993546.medium.com/my-plan-to-become-more-productive-in-a-month-bd71487ec069?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd71487ec069</guid>
            <category><![CDATA[task-management]]></category>
            <category><![CDATA[eisenhower-matrix]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[time-management]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sun, 06 Dec 2020 21:42:08 GMT</pubDate>
            <atom:updated>2020-12-06T21:42:08.119Z</atom:updated>
            <content:encoded><![CDATA[<p>2020 is almost over, and I just so happen to have almost an entire month off to do whatever I want. One of the things I have learn about myself this year is that my productivity often relies on supervision &amp; “too afraid to say no so now I have to get it done in the next 4 hours”. So one of my goal in the next month 25 days is to figure out something that can keep me productive (and hopefully subsequently fulfilled and happy).</p><h3>What’s the status quo</h3><p>Currently, I have 2(-ish) system going on: 1 for my work stuff, and 1 for my personal stuff</p><h3>Work: 2D version of Einsenhower Matrix using Asana</h3><p>For some reason, I remember very distinctly how I got introduce to the Eisenhower Matrix: it was when I was like 16, during a tutorial session (Hong Kong style, i.e. watching a pre-recorded video from one of the “famous” tutors), in which there was just me and 1 other student. Anyway, ever since then, I have this concept in mind for a lot of the things I do, but for like 10 years, I have not been able to translate to something that works. I either worry too much about things that I should not be (e.g. “What if I need to work remotely”, which never happen until COVID-19), or I just don’t really need/care about a comprehensive system. That chances a few months ago:</p><p>Back in August, I got a chance to become a temporary team lead, which means my role changes from “dealing with Jira tickets” to “making sure others have Jira tickets to deal with”, which means a shit ton of meetings, a shit ton of messages and emails, and a shit ton of documents to write. It doesn’t take long before I realize how fucked I am if I don’t come up with some system that works, and that combine with moving to a bigger place for myself, I ended up dedicating a wall to build a physical Einsenhower Matrix</p><figure><img alt="An image of my wall with 5 post-it notes creating a grid, 2 for x-axis, 2 for y-axis, and 1 in the middle" src="https://cdn-images-1.medium.com/max/1024/1*6_ElaEqs4_dnaogF9leDiA.jpeg" /></figure><p>And it actually works pretty well! It forces me to be honest to myself what is urgent/important, and stop working on things that’s interesting but can be dealt with later. And that’s what I have been using for about 2.5 months. And then November comes, and I started to take some lessons before going to work in the office, which means now I need some ways to make it portable. And right now in our team, there seems to be a trend to use more of Asana to organize tasks, and since the company is already paying for it, I might as well give it a shot.</p><p>It does not take long before I start missing the Eisenhower Matrix. While “urgent or not” can easily be reproduce by due date, there does not seems to be a build-in way to indicate importance. Thankfully after a quick Google, I found an extension call <a href="https://chrome.google.com/webstore/detail/asana2go/meaajmlecpkbjcofehfpjngpnpfpjlkd">Asana2Go</a>, which has a feature to build an Eisenhower Matrix by adding a custom field to specify which quadrant does a task falls into. Actually, after like 2 days, I just use the custom field and forgot about the extension completely. I just rely on sorting to display the tasks by due date first, then pick the next task to work on according to its quadrant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*tji2w95tksQarKNcbFyQPw.jpeg" /></figure><p>And it has been about 2 weeks since I started using this Asana + custom field to mimic Eisenhower Matrix, and so far I really like this approach. As long as I can figure out a way to Asana visible (i.e. a vertical monitor), I am able make sure I work on the next most urgent and/or important task 👍</p><p>(And of course we use Jira for all the tickets 😭)</p><h3>Personal: “Whatever is closest to me” is a system, right?</h3><p>For my personal tasks, I have not been paying much attentions to it for a very long time. I switch between different to-do-list-app constantly, and even more ways to keep track of my notes. Here are some of the things I have tried</p><ul><li>Evernote + Google Tasks</li><li>OneNote + Google Tasks</li><li>Google Drive + Wunderlist (RIP)</li><li>Google Drive + Todoist</li><li>GitHub + (every to-do-list-app)</li><li>Calendar + Google Tasks (the new one)</li><li>Google Keep + Apple Reminder</li><li>Apple Notes + Apple Reminder</li><li>Microsoft To Do + reMarkable + Post-it notes on the wall + Apple Notes + Google Keep</li></ul><p>As you can see, it’s really a mess.</p><h3>What’s working</h3><h3>Separating work &amp; person tasks is mostly good</h3><p>Except for 1 or 2 edge cases, I have extremely separate personal and work life (that’s just how I always deal with things). And so far the only “issue” I really have is that there is no way to check work tasks if I don’t have work machines with me. For 95% of the time, that’s not a bad thing anyway.</p><h3>Due date + Eisenhower sorting is actually not bad</h3><p>Like I said above, so far I am really enjoying the 2D version of Eisenhower matrix using Asana. It forces me to give each task an end date, it’s easy enough to figure out how those tasks are gonna fit into the schedule, and it’s super easy and satisfying to update and finish a task 👍</p><h3>What’s not working?</h3><p>The entirety of my personal system is not working. It’s not just the fact that I didn’t get things done on time, the fact that I constant switch systems also translates to a lot of long term tasks and goals getting lost. While so far it has not cause any major trouble, it definitely needs to be fix up ASAP, hence this article.</p><h3>What are the options</h3><h3>Notion</h3><p>It sponsored so many YouTube channels to a point that it’s kinda hard to escape it. I have created an account to play with it a little bit to see what it’s all about, and while it definitely looks nice, I am not sure Notion is the right approach.</p><p>(Note: this is <strong>not</strong> a review of Notion at all)</p><ul><li>It feels too flexible</li><li>It often feels like a bad compromise between “a full fledge tasks management system” and “a full fledge note taking system”</li><li>It’s not satisfying to use, esp. from my phone</li></ul><h3>Google Calendar everything, LITERALLY</h3><p>I think I very briefly tried it in the past, but life is just way too chaotic to try to schedule every little tasks. It took me maybe 2 days before I realize how stupid I was.</p><h3>Other apps/system/method that I have heard of/tried before</h3><ul><li><a href="https://apps.apple.com/gb/app/hour-blocks-day-planner/id1456275153">Hour Blocks</a>: not a bad idea, but the fact that it relies on my phone (i.e. source of distraction) means I can’t use it. However, I do like the idea a lot 😍, which you will see in a minute.</li><li>Pomodoro: In a world where I have a bunch of meetings, Pomodoro just doesn’t fit well into the system. I need something that’s more flexible &amp; more predictable at the same time, and “let just start a 25 minutes timer at any time of the day” it just not gonna work on itself.</li><li>Asana: I don’t wanna pay for my personal account🤑. Also I don’t think all the project/milestone/roadmap are useful to organize my personal tasks anyway.</li></ul><h3>Build my own app</h3><p>Because I don’t have enough dead side projects already 😂</p><p>And the winner is…</p><h3>Jira!? 🤨</h3><p>I know this does sound like the stupidest idea. Isn’t it already tragic enough that I have to use Jira on a daily basis at work, why am I doing this to my personal life as well? Well, let me explain a bit of what I have learned in the last 3 months of dealing with Jira…</p><h4>PROS 1: CONFIGURABLE</h4><p>On one hand of the spectrum, you have tools like Microsoft To Do, in which there is pretty much nothing you can configure. And then you get tools like Asana, which (if you pay) you have access to custom fields, some decent filtering, but you are still very much in the bubble of how Asana thinks you should work. And then there is Jira, in which most things are configurable, but it still feels very “type-safe” and somewhat complicated to change, but at least it’s possible. And if you keep driving along the spectrum, you will get to tools like Notion and AirTable, which basically is a free canvas/spreadsheet/database/all-of-the-above with extra steps.</p><h4>PROS 2: JQL</h4><p>As a programmer, the fact that there is a query language to find tasks has proven to be a godsend. Imagine if you got dozens of new tickets a day (that’s not kidding, it seriously happen for like 2 months straight), there is no reasonable way to keep them sorted and filter correctly without something advance, and JQL has proven itself to be very useful. I hope it won’t come to that day for my personal tasks, but you’ll never know.</p><h4>PROS 3: NEXT-GEN PROJECT</h4><p>Another thing that makes my personal Jira better than the work Jira is the fact that I am using the next-gen project. It is actually a lot closer to Trello (which is now another Atlassian product anyway) than the traditional Jira. And since it’s just me and myself in the “project”, something lighter and simpler is just what I need</p><h4>PROS 4: REASONABLE APP</h4><p>There are so many software that never figured out how make their mental model works well in mobile client, and for that I really have to applaud the Jira apps. It’s actually pretty useable. A lot of other apps either can’t figure out how to make all the info fit on screen (e.g. Asana, in which the list does not display any fields), not a very good app (e.g. Microsoft To Do, in which I very often swipe away a task when I was just trying to go back), or combination of both (e.g. Notion, which is just trying to cramp the entire webpage to a small screen. Please stop).</p><h4>PROS 5: CONFLUENCE (🤞)</h4><p>If you take another look in my person system above, you can see that I often have a tasks list + a note taking app. And so far, they are always 2 separate entities, and some information are always separated. And right now I am hoping the fact that Jira &amp; confluence can cross-reference each other can turn itself into something a lot more powerful. I have seen how it makes my life a lot easier when I build our team’s documentation at work, and I am hoping to transfer that to my own Jira + Confluence setup.</p><h4>PROS 6: I AM ALREADY USING IT AT WORK ANYWAY</h4><p>I have spend the last 3 months managing tickets on Jira, and documents on Confluence, I am already quite familiar with how it works, even though we are still using the ugly classic version of Atlassian apps. And at the end of the day, I am trying to get shit done, and spending way too much time to figure out how to setup a new system is not particular practical.</p><h3>Actually, it’s Jira + Google Calendar</h3><p>So Jira should explain all the part about task management &amp; documentation. And for time management, I think we are all stuck with Google Calendar anyway (if you have any reasonable alternative please let me know 🙏). However, I took the idea of Hour Blocks, and only put big generic blocks of tasks, instead of trying to make detail and accurate schedule.</p><figure><img alt="An obfuscated image of how I am using Google Calendar. Each event have at least 15 minutes gap between them, and they almost" src="https://cdn-images-1.medium.com/max/1024/1*lN6mnnZilmd8Zlx6wSdaGQ.png" /></figure><p>For example: currently I am reading the “Atomic Habits” by James Clear, and I am trying to have a committed time and place to actually build my habits. So about 80% of the blocks you see are actually events to build my habit. And the fact that I can easily make sure they are not interfering with my other events and meetings is extremely useful.</p><p>So far the only major thing that’s missing for me is the lack of a easy (and free) way to see both Jira and Google Calendar together, and so far it has not been a big issue.</p><h3>Conclusion</h3><p>So this is what I am trying out for the next 25 days. Let’s see if this system is enough to drive me back to a productive and healthy lifestyle. And if you don’t see a follow-up of this article in January 2021, there are only 3 possibilities</p><ul><li>Shit hits the fan and I got busy AF</li><li>The system does not work</li><li>I am dead</li></ul><p>🤞🤞🤞🤞🤞</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd71487ec069" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s see if Flipper can make me a 1.1x engineer ]]></title>
            <link>https://louis993546.medium.com/lets-see-if-flipper-can-make-me-a-1-1x-engineer-9f4c8b5f4e4e?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f4c8b5f4e4e</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flipper]]></category>
            <category><![CDATA[devtools]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sun, 16 Aug 2020 07:36:39 GMT</pubDate>
            <atom:updated>2020-08-16T07:36:39.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Website of Flipper" src="https://cdn-images-1.medium.com/max/1024/1*zcH7d_sJTAgIvdgWwUhH-g.png" /></figure><p><a href="https://fbflipper.com/">Flipper</a> is a debugging tool build by facebook, which in a sense is a spiritual successor to <a href="https://facebook.github.io/stetho/">Stetho</a>. For those who don’t know, Stetho is also a debugging tool, which allows Android apps to redirect a bunch of debugging data to chrome://inspect, most notably networking requests. I have used Stetho quite extensively in one of my last companies, because how easy it is to setup and use, so I do have some fond memory of it. However, slowly and gradually, it stops being maintain, and then I found out the existence of Flipper. So obviously the next logical step is to give it a shot, and see how useful it is 👀👀</p><h3>Setup</h3><p>The process is actually quite straight forward, thanks to the pretty extensive-yet-not-too-verbose <a href="https://fbflipper.com/docs/getting-started/indexhttps://fbflipper.com/docs/getting-started/index">documentation site</a>. The only hurdle I ran into is when setting up the <a href="https://fbflipper.com/docs/setup/network-plugin">networking plugin</a>, you have to make sure you have the same instance of the plugin use by both the interceptor, and the setup step. I messed up some setup in Dagger, and it took me like a solid 30 minutes before I really how stupid I was 🤦‍♀</p><h3>Custom Plugin</h3><p>So the biggest selling point of Flipper is probably it’s plugin API. <strong>It opens the door to build project-specific and user-friendly GUI dev tools.</strong></p><p>In a lot of projects, probably at some point someone will think “hmm, what if I just wrote a script to make it easier to debug this?”, and then they hack the script together in record breaking time (because it’s usually the fun part), and tell the entire team “now your problem is solved”. But when team grow/change, suddenly everyone is relying on that script with little to no test, often convoluted code, and even more confusing and cryptic inputs/outputs (and stacktrace if something went terribly wrong).</p><p>So these are the problems that I hope Flipper can solve/mitigate:</p><ul><li><strong>Confusing to use</strong>: By having a GUI, I can at least try to layout all the buttons and text in a way that is less confusing. And the fact that it uses React should also help make it easier to build the UI.</li><li><strong>Too many dev tools</strong>: By having just 1 debugging application, this can consolidate most of the random dev tools into just 1 windows, which should make it easier to deal with.</li><li><strong>“Sketchy” dev tools</strong>: It’s not that you cannot write script that testes those script, it’s just that by having a “normal” project setup, hopefully it can encourage me to not only write dev tools, but also write test to make sure those dev tools works in the long run</li></ul><p>So with these goal in mind, here’s what I have learned:</p><ul><li>The <strong>documentation of building your own native (i.e. apps) plugin is also very good</strong>: on the <a href="https://fbflipper.com/docs/tutorial/android/">client side,</a> it took me maybe 15 minutes to have a basic network plugin that filters out only the traffic that I care</li><li>And for <strong>building desktop plugin, it’s less good but still not terrible</strong>: While <a href="https://fbflipper.com/docs/tutorial/js-setup">the documentation</a> itself is still pretty good, there are quite a few issue that I ran into and with not a lot of useful debugging. The biggest problem I have is “how to get Flipper Desktop to see my plugin”, and according to the documentation, it is to add the path to the plugin to the config.json Flipper created in your machine. But it looks like if Flipper thinks the path you added is “wrong”, it will just remove it when Flipper Desktop closes. So it ended up taking me another hour of trial and error, and looking through the entire site to found <a href="https://fbflipper.com/docs/extending/js-setup#dynamically-loading-plugins">another page</a> that explains what is the exact path that I should have used, and the fact that I should have run yarn watch to build the tar ball for Flipper to detect the plugin correctly.</li><li>Depends on what you want to build, you can put the logic on the client plugin or desktop plugin. Putting logic on client side means writing those logic in Kotlin, which would have been a lot easier; but at the end <strong>I’d recommend putting those logic on the desktop side</strong>, in the hope that A) it might be share if the iOS all also adopts it, and B) my TypeScript knowledge is good enough, or worst case scenario, it’s not that hard to Google the solution.</li><li><strong>Building a user-friendly desktop plugin is not as simple as it seems</strong>, mostly because the level of abstraction that comes with Flipper is either too high, or too low. If you just want to show “a list of something”, createTablePlugin makes things very simple. But since I want to do some data processing before it shows on table, I ended up copying that entire file, make like 10 line changes in there to expose a lambda for me to sanitize the data, before showing it in the table.</li></ul><p>Currently it is entirely still an experiment, and also I have not asked my boss if I can even share it. I hope in a month or 2, I will be able to share if Flipper turns out to be a good idea or not.</p><h3>1.1x Engineer</h3><p>And to end this blog post, I just want to do a quick shout-out to the <a href="https://dev.to/tlakomy/become-a-10-engineer-g78"><strong>1.1x/+10% engineer concept</strong></a>. What I have started to realized that I like to do is to “help other people do what they are good at, but even better”, and I think more people should give it a shot. Imagine if every month, 1 of the engineers build/do something that makes everyone works 10% more efficient/more productive/happier, in 2 years, 1.1²⁴ = 9.85, i.e. the team will be almost <strong>10 times better than 2 years ago</strong>! And I am 1000% sure you cannot simulate these kind of growth just by hiring more people/“10x” engineers.</p><p>At the end of the day, I hope Flipper will allow me to make our team 10% more efficient, and so far it looks promising, and I recommend you to give it a shot!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f4c8b5f4e4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Compose Project #1: Compose95]]></title>
            <link>https://louis993546.medium.com/random-compose-project-1-compose95-6a9b803230fa?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a9b803230fa</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[windows-95]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sat, 25 Jul 2020 14:10:17 GMT</pubDate>
            <atom:updated>2020-07-25T14:10:46.381Z</atom:updated>
            <content:encoded><![CDATA[<p>Jetpack Compose is getting closer and closer to becoming “stable enough”, and for the next few weeks/months, I will be working on a bunch of completely random projects, and document what I have learned along the way.</p><p><strong>TL;DR: This is not tutorial/how-to of Jetpack Compose at all. This is just blog post of my experience of using it.</strong></p><h3>What is Compose95</h3><p>As it’s name suggest, it’s trying to build Jetpack Compose that looks like it’s 1995, more specifically, Windows 95. It is inspired by Miguel Beltran’s work on <a href="https://github.com/miquelbeltran/flutter95">Flutter95</a>, which is inspired by Artur Bień’s <a href="https://github.com/arturbien/React95">React95</a></p><figure><img alt="Screenshot of Flutter95 on GitHub" src="https://cdn-images-1.medium.com/max/1024/1*jt7pi5ngR2aNOLD5QsM81g.png" /><figcaption>miquelbeltran/flutter95</figcaption></figure><figure><img alt="Screenshot of home page of React95 on GitHub" src="https://cdn-images-1.medium.com/max/1024/1*nkfvrtln7TS2C4KWywN7fw.png" /><figcaption>arturbien/React95</figcaption></figure><h3>What am I building, exactly?</h3><p>For this post, I am documenting what I went through when buildling</p><ul><li>Window (most of it)</li><li>Button</li></ul><p>It’s all open-source, click <a href="https://github.com/louis993546/Compose95">here</a> to judge how bad the code is 😂</p><h3>Window</h3><p>Window is the relatively straight forward component to build. It is basically just a container with a bar at the top, optionally the ability to minify/maximize/close the window, which doesn’t make sense in the case of an Android app anyway.</p><figure><img alt="Screenshot of Android Studio, which has code of Window95, Preview of Window95, and an emulator showing what it looks like" src="https://cdn-images-1.medium.com/max/1024/1*55NcXvojhGPXkBYD10d2_A.png" /></figure><p>As you can see, Windows95 is pretty straight forward. The most &quot;complicated&quot; part is probably the border. If you remember, Windows 95 is very skeuomorphism (is this word an adjective?), and the borders colors really sells the elevation, even to this date. I am not saying it looks great, but it certainly is effective. Using React95 as reference, I can see that the border is actually more like 2 boarders:</p><ul><li>1 on the outsize with pure white or black</li><li>1 on the inside a few shares of grey to make it look more like shadow, instead of just color borders</li></ul><p>And to achieve that look, basically I have to figure out how to draw border that has different color accordingly, and that means digging into what .drawBorder is doing. Since it is a receiver function of Modifier, of course there is a Modifier.Element powering it, in this case: DrawModifier. And once you get the draw scope inside of it, you just have to figure out the coordinates, and then it is not too complicated to draw the 8 lines.</p><p>And 1 last thing: if you check DrawBorder, you can see there are a lot more complexity inside, with how round corner should be, and most importantly cache. At some point Window95 probably should do that, but it is way too early for me to do any kind of optimization. Hell the code still looks like shit.</p><h3>Button</h3><p>Button95 is also structurally quite simple, the &quot;biggest&quot; challenge is to figure out how to detect press state, and flip the borders around to sell the effect of &quot;from above surface to below surface&quot;. And to figure out how, I digged into .ripple.</p><p>Inside .ripple, I found RippleModifier, but there is nothing too interesting to look into, since it looks like most of the code is about the animation of the ripple. What I want in this case is just a very basic &quot;is it pressed or not&quot; callback of some sort. And after I while, I realized that there are more than 1 argument for .clickable, esp. Indication. It is exactly what I need in this case.</p><figure><img alt="Screenshot of Android Studio, which has code of Button95, Preview of Button95, and an emulator showing what it looks like" src="https://cdn-images-1.medium.com/max/1024/1*8syesNMCHQ-yswfx6-rqwQ.png" /></figure><p>What Indication does is actually more like IndicationFactory, which creates IndicationInstance, and that IndicationInstance just have a function that gets a ContentDrawScope to draw whatever I want. And now things are starting to look very similar to how I draw the boarders inWindow95, except I have to check interactionState to see what color each border should be.</p><figure><img alt="A GIF of Button95 being click, and what happens when it got long press (content got highlited)" src="https://cdn-images-1.medium.com/max/430/1*5y3sebbyauJ_H3A6XFs2WA.gif" /></figure><p>While technically not a bug, it looks like I still have some work to do to figure out how to make it behave more naturally……</p><p>This is the end of this blog post, it is absolutely gonna take me forever to get it to a working state. I wish I have more energy and time to work on stuff like this……</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a9b803230fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Am I still taking photos in 2020? Kinda]]></title>
            <link>https://louis993546.medium.com/am-i-still-taking-photos-in-2020-kinda-37ef4a925887?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/37ef4a925887</guid>
            <category><![CDATA[reflections]]></category>
            <category><![CDATA[photography]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sun, 19 Jul 2020 17:08:38 GMT</pubDate>
            <atom:updated>2020-07-19T17:08:38.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fz5eVlEeY1qJomd1g5elcw.jpeg" /><figcaption>On my way home from office, one of the last picture I took before WFH started.</figcaption></figure><p>More than a year ago, <a href="https://medium.com/@louis993546/2019-photography-resolution-falling-in-love-with-it-again-6fb7cd44f7f4">I wrote about how I wanted to regain my love for photography</a>. Which means it’s about time for a quick review.</p><p>Now that I looked back at my last article, I can’t help but cringe the entire time, mostly because I can’t shut up about photography gear. I am still a nerd and enjoy all the great gears, but in the last 18 months, I have slowly realized how little attention I was paying to the rest of “photography”: composition, lighting, timing, location, emotion, all that jazz. And that is absolutely something I am still trying to grasp. And before diving into that, I am just gonna have a quick paragraph to list my gears and the reason why they are here to stay:</p><ul><li>iPhone 11 Pro: The best camera is the one that’s with you. Also it takes amazing picture</li><li>Fujifilm X-T1: it works, and it feels nice</li><li>Fujifilm 16mm f/2.8: it’s quite compact, fast AF, and quite.</li><li>(Selling) Fujifilm 27mm f/2.8: if I want a compact camera, I have my phone for that.</li><li>(Selling) Samyang 12mm f/2: turns out wide angle &amp; no AF = really hard to focus at night</li><li>(Shipping) Fujifilm 50–230mm XC: it’s on discount, and I do want to explore telephoto for street photography a little bit. Let’s see how it goes</li><li>Nikon FM: I will explain it later</li><li>Nikon 50mm f/1.8D: I have had this lens for probably more than 10 years now. Part of the reason why I got the Nikon FM is to use this lens to it’s full advantage.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FJk_ilGL1hoRz_M13yhCIw.jpeg" /><figcaption>Main photography gear mid-2020 ( - the iPhone 11 Pro that took this picture)</figcaption></figure><h3>What has changed?</h3><p>Back in secondary school (or so call high school), I fall in love with photography because it allows me to connect to all sorts of people: all the athletes during sports days, random student event organizers from other grades, even people from other schools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ErNAMmO3FFKLzDptBT-Q-Q.jpeg" /><figcaption>2010 me: lend my D40 to one of my friend to take pictures, when I participate in javelin</figcaption></figure><p>Now that I am 10 years older, work in a 9–5 job, and haven’t went out for anything other then shopping/business for the last 4 months, how I see photography has changed a lot. It’s a lot more about nostalgia of my student days, which probably explains why I am more into retro-looking gears; now it’s also a lot less social, a lot less active. Instead of taking photos of athletes, now I take photos of pedestrians, and often even without any particular reason/subject/anything.</p><h3>How am I dealing with those changes?</h3><p>Honestly, not well. I really missed back being able to make friends at school when I was young; I missed when my knee was not a shit show; I missed actually being slightly good at some sports. And that’s probably why for the last few years, I have kinda indulge myself in “what’s the gear that would make it feel like taking pictures with my D40 when I was 16”. Well, sadly the answer is “none”.</p><p>I don’t remember how it happens, but slowly I started to watch more videos about film photography, firstly I was still focusing on the camera, the film, or even how to process them. What’s different this time is that a lot of those videos also pay a lot more attention on other aspects of photography, which slowly opens up my eyes to what I’ve been missing. Hopefully, I am slowing getting to a point where taking picture is just a hobby, and not a event.</p><h3>Aaaaand we’re stuck inside</h3><p>For the first month or two of WFH, I spent way too much time online buying shit I don’t need, which includes the Nikon FM. I definitely have no idea how is it gonna make any difference to my X-T1, and even 3 months in, I still haven’t finished a roll of film. While I do enjoy the physicality of the camera, from a logical stand point, it is not a wise purchase decision at all. Thankfully it’s not expensive, so I am going to give it a few more months, to see if the process of going to a camera store, get the picture printed, can make the photo more meaningful or personal.</p><p>And there is 1 more potential stupid camera gear that’s on it’s way: a cheap-ish telephoto zoom lens. Over the last 18 months, I have been using almost exclusive wide angle lens, because “that’s the type of lens for landscape/cityscape”. And now that I have slightly better understanding of how the focal length of a photo can change the perspective and framing of a picture, I would like to give telephoto lens a shot. I am still very uncomfortable to take photos on the street, because my stupid brain keep saying “you look dumb as hell, just like all the tourists”, and having a long lens *might* make it slightly more comfortable, since I don’t have to get close to my subject anyway. And after so long with just wide angle lens and having a hard time making effective composition for photos, I am open to trying new things, especially from my the window of my room (no, not as a creep).</p><h3>In Conclusion,</h3><p>While I haven’t necessarily “fall in love” with photography, I think I am much more comfortable to have it be part of my life, my normal-boring-quiet life.</p><p>P.S.: The good thing about camera gear is that their value depreciate not that much, relative to other electronics. As long as you are not “buying the latest and greatest”, it’s actually less expensive of a hobby as I expected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37ef4a925887" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Went from “liking tweets about remote working” to “being 100% remote” in 1 day]]></title>
            <link>https://louis993546.medium.com/went-from-liking-tweets-about-remote-working-to-being-100-remote-in-1-day-2f32d9e8a213?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f32d9e8a213</guid>
            <category><![CDATA[remote-working]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Wed, 08 Apr 2020 19:22:48 GMT</pubDate>
            <atom:updated>2020-04-08T19:22:48.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVjZravYvhbsQnPxqvsW8g.jpeg" /><figcaption>My desk setup from a week ago</figcaption></figure><p>Today is <strong>2020 April 1st</strong>, and we are in the middle of a pandemic. Roughly 2 weeks ago, the company I worked for went “remote first”, and in terms of work, things are starting to get back to usual (well, as usual as it can get). So today, I’d like to write down some of my first impressions of the whole situation so far!</p><h3>How it went down (simplified)</h3><p>Even before Berlin starts getting it’s first COVID-19 case, there has been a bunch of people asking if the company’s policy about WFH and other preventive measures are gonna adapt to it. And after Berlin has it’s first confirmed case, it takes a few more days until the management establishes official news source. And a few more days (&amp; a lot of messages on the chat room) later, the company held a basically impromptu-all-hands in the morning, and announced the procedure of how to “apply” for WFH for most employees. And the next thing you know, half the people are gone before lunch.</p><h3>Perception of remote working before this</h3><p>I have been living in Berlin for 3 years now, and worked in multiple companies as full time employee, in their office, at least 9–5. I am now mostly used to it, but I don’t think I ever really liked it.</p><p>I like being able to easily make friends at work, but I don’t like waking up when it’s one of those days where I just don’t feel like socializing at all.</p><p>I like that it forces me to have a consistent schedule and lifestyle, but I don’t really enjoy the hours being so inflexible, given my work is not really time-specific.</p><p>I like that an office provides a safe space in terms of productivity (usually), but I hate having to spend 1+ hour each day on the commute.</p><blockquote>TL;DR: I never <strong>hate</strong> showing up to office per se, but I have a list of things I can complain about.</blockquote><h3>The first 24 hours of “OK you work from home now”</h3><p>Even though I was one of the people who tried to push the company to adopt WFH as soon as possible (i.e. “wrote on the super long COVID-19 thread to keep the conversation going”), the sudden announcement still throws me off. I spend basically the whole afternoon planning what do I have to do to get my room ready, and try to organize the work to make sure I won’t forget anything (although this didn’t really work because I was so distracted the entire time).</p><p>I left office a bit later than usual to try to avoid the crowd, and then I went to supermarket to get enough groceries for a week, and tried to go get a microphone for all the video chat (although the store was out of the cheap one). The last thing I did before officially working remotely is that on the next day at 7AM, I planned out how I am gonna move the furnitures in my room around to have a more separate work &amp; rest place (sorry downstairs neighbors). Living in a tiny room in a share flat in the middle of a pandemic is not ideal.</p><blockquote>TL;DR: Chaotic</blockquote><h3>What happens in the next week</h3><p>In terms of the work itself, things are quite typical, since it is such a short notice, we are not really prepared to adapt anything to be more remote friendly. We still have a lot of meetings, but with video chat instead of face-to-face. It’s ever so slightly worse than what I usually experience.</p><p>In terms of productivity, I’d say I am able to focus around 60% of the time. There is only so much you can do to improve your home office in such short notice. And I tried to compensate for it with working extra hours, which ever so slightly cancel out my reduced productivity (but not sustainable at all).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OI7YC42PLEtTNTV7" /><figcaption>This comic from Alex Norris speaks to my soul: <a href="https://twitter.com/nadiaoxford/status/1239588500212789248">https://twitter.com/nadiaoxford/status/1239588500212789248</a></figcaption></figure><p>The biggest change probably happens in terms of my sanity. This sheer amount of news around the pandemic drives my stress level high already, combine with issues with the work itself with a tight deadline that actually needs to be met or “shit might go down”, and me trying to compensate it with extra work hour, is driving my mood to an all time low.</p><blockquote>TL;DR: Externally business as usual, internally pulling my hairs out</blockquote><h3>Now what?</h3><p>Knowing that I will be stuck on this chair for a while, I am starting to plan how am I gonna survive this without going me insane (if I am not already insane).</p><p>First thing I did: online shopping. If all the advertisements have taught me anything, it is “buy this product and your problem will go away”. I am now aware of how much “useless” things I just bought, and I am doing a slightly better job at controlling my spending habit than a week ago. But I do need to make a few adjustments to the physical environments, and I am fortunate enough to have some saving &amp; incomes to do just that.</p><p>Next thing I did: spend a lot of time on the internet to try to figure out how WFH usually work. What should I expect (under normal circumstances), how should I adjust that expectation based on the situation, how people usually work, etc. One of the thing that kinda blows my mind is the <a href="https://www.pscp.tv/w/1nAKEdbbnPgxL">Q&amp;A session by David Heinemeier Hansson and Jason Fried from Basecamp</a>. While some of it do feel a bit too much like an ad for Basecamp, I think the rest is a good short summary of what a team of expert remote workers is experiencing, along with how newly remote workers can/should expect.</p><p>While I am coming up with a list of improvements for my surrounds physically, I also started to think about how to change my behavior to reduce my stress level, so that I don’t have to pull my hairs out.</p><h4>Workout</h4><p>A lot of people have suggested that keeping your workout routine is very helpful, and I will try to do some quick research on what body weight exercise can I do in such a tiny space. I haven’t do much body weight exercise since my Uni days.</p><h4>“Separation of concerns”</h4><p>A lot of people also suggested to keep your work space and personal space separate. While it’s physically hard to do in my tiny room, I can kinda achieve that by removing all work-related items from my sight (all notes, computer, accessories, etc.) when the day is over, and let my laziness do the the rest (a.k.a. “Nah I am too lazy to move the chair and take the computer back out. I will check it tomorrow”)</p><h4>Clean your room/apartment/mansion/whatever</h4><p>A lot of people suggested to keep your space tidy, plus the act of tidying can double as a distraction. That’s just a good idea in general, especially now that we are all spending 24 hours in the apartment everyday.</p><h4>Spend less time on internet</h4><p>First I have to say I love the internet, without it I would be absolutely useless. But in the last few months, the amount of time I spent reading COVID-19 related news is pretty much inversely proportional to my mood.</p><p>Back in 2003 when SARS was hitting Hong Kong, I remember everyone can’t stop watching the news, and it drives everyone into panic mode. And this time around, it started for me back in Jan-Feb, when my family and friends in Hong Kong are panicking on how they are gonna get enough masks, and pretty much my entire instagram feed is about how people are trying to keep themselves safe (from the virus or the police, or both). And when cases start to appear in Europe, I just can’t stop scrolling on Twitter and panic.</p><p>And even if you find the news about COVID-19 useful, there is still a huge problem of misinformation being share around, from random obfuscated screenshots on Instagram, to actual leaders of multiple countries (yes of course I am referring to Trump). One of the most vivid memory I have is that in the early days of the spread in Hong Kong, no one actually knows what the symptom should be, how they spread (WHO were saying “human to human transmission is unlikely”), and someone share a (later to be proven fake/taken out of context) video, of a men puking blood on some China subway/underground/U-Bahn/MTR, for like a full minute straight. That was really disturbing, not because of the visual, but the idea of “what if this happens to people I care about”. I was (and still am) not prepared for this. I just can’t stop thinking about it and focus at work for 2 days straight.</p><p>I think it’s safe to say I should spend a lot less time on the internet.</p><h4>Take up some new hobbies/pick up some old hobbies</h4><p>Now that I promise to spend less time on the internet, I’d need some other form of distractions. Some of my recent hobby-building purchase (i.e. online shopping spree) includes buying a Nikon FM (i.e. an old-school film camera from the 70s?), some books (currently reading <a href="https://www.goodreads.com/book/show/42086897-how-to">how to by <em>Randall Monroe</em></a>), and a decent speaker set (Creative T40 II to be exact. I am not an audiophile I just bought it because my work computer speaker starts cracking). Each of them should be enough distraction for quite a while.</p><p>There are also hobbies that does not involve extra spending, like writing, playing some instruments (A lot of people probably have an instrument laying around), or cooking (you have to eat everyday anyway, might as well make your food better).</p><p>We are all gonna be stuck here for a while, and by we I mean those who are privileged enough to work from home. The best we can do is to buy scientist and manufactures time to develop the vaccine and more effective cure, to help keep those who cannot work from home as safe as possible. In the day and age when both the physical world and digital world is plague with danger, it would be my first step to figure out how I can embrace remote working and get my sanity back on track.</p><p>Stay safe!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f32d9e8a213" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mental Models of Jetpack Compose #4: Components and Hindsight]]></title>
            <link>https://louis993546.medium.com/mental-models-of-jetpack-compose-4-components-and-hindsight-a0f0fd856c3e?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0f0fd856c3e</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mental-models]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 23:36:58 GMT</pubDate>
            <atom:updated>2020-02-26T23:36:58.036Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*maVyEvb84qWJfihU" /><figcaption>Photo by <a href="https://unsplash.com/@jamie452?utm_source=medium&amp;utm_medium=referral">Jamie Street</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After months of procrastinating, I am finally getting to the last chapter of “Mental Models of Jetpack Compose”, at least for now. Today, we are gonna talk about components, and hindsight.</p><h3>Component</h3><p>If you just look at the basics structure of Component in React or Widget in Flutter, you will probably find it not too far off from android.view.View on the typical Android View API.</p><p>React:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYCkv93V-Ljo6gF-olC7Rg.png" /></figure><p>Flutter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECaQmCkUuBB3HanGUz4sJA.png" /></figure><p>Typical Android View:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2CHCknVxL9iaPwW8LZSCw.png" /></figure><p>More specifically, they all have 1 method that ultimately determines what should be display. So what makes the concept of Component different? Well, the biggest distinction is that the render/build function defines an <strong>abstraction</strong> on what the view should look like, while in onDraw function you are responsible for specifying every last detail. Basically it goes back to <a href="https://medium.com/@louis993546/mental-models-of-jetpack-compose-1-state-programming-models-cc0d47209720">episode 1</a>, which we talk about declarative programming vs imperative programming.</p><p>And that’s pretty much what the concept of component is! On it’s own component is nothing special, what makes it fun and powerful is that it only carries information, not instructions, which usually makes it more understandable, and also more lightweight. Speaking of fun, that brings us to a minor addition to the concept of component. But first, let’s take a look at this example from React:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*klU5pzPuLrP0noo1COP7uA.png" /></figure><blockquote><em>Sample from </em><a href="https://reactjs.org/docs/hooks-overview.html"><em>React documentation</em></a></blockquote><p>Even if you don’t know JSX, when you read render(), you probably still understand what it is trying to do: it will have a text, and a button, probably as a column, and each click will trigger some text to change. But why are there so many other stuff? OMG does the constructor in JavaScript looks like the one in Java!? And what the hell are componentDidMount() and componentDidUpdate() doing there when they do exactly the same thing?</p><p>And if we take a step back, and try to remember why React was created in the beginning, what they wanted to do is basically this:</p><h3>UI = f(state)</h3><p>(read: given a state, a function transforms it into a UI)</p><p>So what if we just take that <strong>literally</strong>? That brings us to the concept of <strong>functional component</strong>. The mental model of component is still there, but instead of representing it with a “class”, just directly represent it with the function, and it would look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwpI41PzVluyKsHeP2SaNw.png" /></figure><blockquote>Sample from <a href="https://reactjs.org/docs/hooks-overview.html">React documentation</a></blockquote><p>Making function directly the star of the component encourages/forces us to embrace composition (since there is nothing to inherit from), and all it needs are a set of good API to expose the lifecycle and state management API back out.</p><p>React calls this “hooks”, named after all the API (i.e. hooks) it exposes for components to interact with the runtime, i.e. all the use___ functions. And after barely more than a year, it seems that React hooks have become the standard way of building components for them. And for Jetpack Compose, which is heavily inspired by React, it took it to the next level/extreme, by only having function components.</p><h3>Hindsight</h3><p>This is the last mental model I want to mention for this series, which is not actually a technical thing, but more of a mindset you should be aware of.</p><p>Often when we look at “legacy code”, we will say “ah they should have done X instead of Y”. But then 5 minutes later, you remember you are the one who wrote those code to begin with. Is that because you/that person was “young and dumb” back then? That’s possible, but the far more likely scenario is that things and people change in ways that were not participated. Who knew build time would be such a big issue 5 years ago? Who knew RxJava will be overuse 5 years ago? Who knew assuming there are only 2 genders is a bad idea 10 years ago? Probably not a lot of people.</p><p>And that’s what makes hindsight important: being able to learn from not just your own experiences, but also from others, is very important for your learning. And in the context of building a UI framework, knowing how annoying opinionated people can get, and what pattern people often use, are extremely useful information, even if we are not building for the same platform, or with the same language. (P.S. <a href="https://reactjs.org/docs/hooks-intro.html#motivation">hindsight from React on what motivates them to create hooks</a>)</p><p>So how does it apply to you? Well, even though there are not a lot of Jetpack Compose material (also half of those blog posts and videos out of date, since the API change so drastically), you can still learn from React, Flutter, and more other frameworks, see what other people have been doing, how they get used to it, what they have learned, and more. I promise a lot of the concepts are applicable to Jetpack Compose as well.</p><h3>Conclusion</h3><p>This will be the end of the “Mental Model of Jetpack Compose” series, at least for now, mostly because now Android Studio 4.0 is available, you can actually go try it out yourself. And very soon I will try to pick some random ideas I have and document my experience of “turning theories into practices”.</p><p>And also it’s 0:24 and I really should go to sleep right now 😴</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0f0fd856c3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How much am I really worth?]]></title>
            <link>https://louis993546.medium.com/how-much-am-i-really-worth-cb870e3ce6d2?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb870e3ce6d2</guid>
            <category><![CDATA[know-your-worth]]></category>
            <category><![CDATA[compensation]]></category>
            <category><![CDATA[salary]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sun, 16 Feb 2020 21:32:51 GMT</pubDate>
            <atom:updated>2020-02-16T21:32:51.431Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZIck82yK7X9Jb906WgFhA.png" /><figcaption>The beginning of #KnowYourWirth</figcaption></figure><p>In the last 2 days, the tech community on Twitter blew up with the <a href="https://twitter.com/hashtag/KnowYourWorth">#KnowYourWorth</a> movement. The TL;DR it is to share your salary, so that minorities can have a better grasp of what the market rate is, instead of relying on anonymous sites that you never really know if they can be trusted.</p><p>And just like every movement on Twitter, immediately there are a lot of supporters, along with a lot of criticisms. And what I want to do today is to share my 2 cents of what I fell about #KnowYourWorth.</p><p>First, I would like to get a few facts straight, before jumping into my own train of thoughts:</p><ul><li>The tech industry lacks diversity (and has been like that for a very very long time). <a href="https://insights.stackoverflow.com/survey/2019#developer-profile">According to Stack Overflow 2019 Survey, 91.7% of the respondent identifies as male, and 70.8% identify as “White or of European descent” (!)</a></li><li>The gender pay gap is (sadly) still real. <a href="https://www.harnham.com/2020-european-diversity-report">According to Harnham European Diversity Report 2020, the gender pay gap is around 16%, while the gap in Germany being just 4% (so close!)</a></li></ul><p>I am sure there are a lot of peer-reviewed studies on these topics, just go to Wikipedia and go through all of the citations for <a href="https://en.wikipedia.org/wiki/Gender_disparity_in_computing">gender disputesarity</a> and <a href="https://en.wikipedia.org/wiki/Gender_pay_gap">gender pay gap</a>, not to mention race, sexuality, age, and more.</p><p><strong>The TL;DR of what I think I am worth boils down to the following:</strong></p><ul><li>Honestly I think right now I am worth less than what my company is paying me</li><li>However, just 2 years ago, I am probably underpay (because I know nothing)</li><li>I wish the society has less stigma on compensation transparency</li><li>And hopefully with that, we can have a much better look at the inequality as a whole</li></ul><h4>What should be the criteria?</h4><p>One of the bigger group of discussion focuses on “should people with the same title have the same compensation, regardless of where they live”. Personally I am more in the camp of “pay people with same responsibility with same base compensation + compensation based on context”.</p><p>The reason why I am against same salary for everyone is because it is kinda unrealistic. Some people are gonna like to live in expensive places (SF, Norway, etc.) for a wide range of reasons. And unless you pay everyone that high level of compensations, you are excluding them based on something that they may have no power to change. There are also a lot of other reasons why you might want to pay people differently, like appreciation of loyalty, compensation in salary vs days off, and not to mention bonus on performance of individuals.</p><h4>Ok, so what are you really worth?</h4><p>And based on this criteria, I honestly think I am very lucky and maybe <a href="https://twitter.com/louis993546/status/1228570372771123201">even overpay</a>. I did not ask my teammates what their compensations are (since this blow up during the weekend), but from what I understand about our company’s pay structure, they probably get paid less than I do, while doing the same or even more than what I do. I fucked things up on such a regular basis, that I am still wondering if I am gonna pass the probation period 🤞</p><p>And in terms of the context, we more or less joined at the same time, with more or less the same amount of expertise of what we do (more then I do to be honest), and surprisingly similar backgrounds, and we are all living in Berlin now, so I think from that perspective we should more or less score the same as well.</p><h4>Umm, so are you gonna do anything about it?</h4><p>This is something I have been thinking about for the last 48 hours (i.e. not that much time), and here’s my train of thoughts:</p><ul><li>I should ask my leads on criteria of judging our pay grade</li><li>I should find out what’s the law on “keeping salary a secret” in Germany</li><li>Try to remember and write down how I got this offer (which is more than 5 months ago), and hopefully some of it can be useful to others</li><li>Spread the message to border audiences</li></ul><h4>Wait that it?</h4><p>For now that’s the list of things that I can come up with, and that brings up to a topic that I am no an expert in, but after watching this video, makes me appreciate this whole movement a lot more:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRSgXcFdHxFI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRSgXcFdHxFI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRSgXcFdHxFI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a2cff5102dbd35c1936aaea61c5b270/href">https://medium.com/media/1a2cff5102dbd35c1936aaea61c5b270/href</a></iframe><p>While it is not about salary or compensation or money, it does bring up a quite interesting topic on how much an individual can do, when facing a deep-rooted mental model that the society held. And from this video, this reminds me of this somewhat exaggerate &amp; American-focus snippet of Adam Ruins Everything:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7xH7eGFuSYI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7xH7eGFuSYI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7xH7eGFuSYI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6181e62ff3f44d25ccb3ef13e213c639/href">https://medium.com/media/6181e62ff3f44d25ccb3ef13e213c639/href</a></iframe><p>The more I think about it, the more I agree that currently the common practices for companies are the biggest bottleneck for achieving fair compensation regardless of age, gender, sexuality, race, and more. How can people have an open discussion on how to tackle pay gap, when people are still arguing that pay gap is not real (although to be fair, there are also people who think the earth is flat, so I guess data and statistics are not as powerful as I think they are 🤷‍♀️).</p><p>Hopefully one day, we can all sit down, have detailed and meaningful analysis and discussion on the inequality in the tech industry, and how we can tack the issue as a whole.</p><h4>Closing thoughts: some criticisms of #KnowYourWorth</h4><ul><li>Intentional or not, some of the tweets gonna feel more like <a href="https://www.urbandictionary.com/define.php?term=Humble%20Brag">humble-brag</a> (“Oh I make 1000k in SF and you should too!”).</li><li>Privacy is absolutely a big issue here. I get the point here is “This is my name, this is my compensation, and you can trust this info”, but judging by the amount of people who <a href="https://twitter.com/HeatherDoshay/status/1228743317300510726">backtracking their decisions</a>, and amount of things people can extract from <a href="https://twitter.com/newsycombinator/status/1228665735632822273">these data</a>, I guess it is safe to say this is not a scalable solution to raise awareness.</li><li>Context is absolutely still a very big problem. Does earning 200k in SF means the same thing as 100k in Berlin? And what about things that money cannot buy, like public health care that does not cost an arm and a leg, or nicer weather, or friends and family?</li></ul><p>I hope that it could be the beginning of a much bigger movement towards eliminating inequality, and I swear to god I will do my best to make that happen!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb870e3ce6d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Android zero to kinda-middle: Basic shell script for Android dev]]></title>
            <link>https://louis993546.medium.com/from-android-zero-to-kinda-middle-basic-shell-script-for-android-dev-485c274f693?source=rss-945d0493a934------2</link>
            <guid isPermaLink="false">https://medium.com/p/485c274f693</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Louis Tsai]]></dc:creator>
            <pubDate>Sun, 12 Jan 2020 15:57:28 GMT</pubDate>
            <atom:updated>2020-03-10T13:43:50.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wS0i4sDFxELGwQ-_R4Q9Tg.png" /><figcaption>A bunch of random stuff you can do with shell script</figcaption></figure><p>It has been a while since I did my last “From Android zero to kinda-middle” series, and today I’d like to talk about shell script.</p><h3>WTF is shell script</h3><p>You can think of it as a scripting language + the program that interprets it.</p><h3>Why you should know shell script?</h3><p>All the buttons in Android Studio will ended up executing some shell script in one way or another. For example,</p><p>“Run” 👉 ./gradlew assemble${flavor} + adb install</p><p>Install newer version of Android SDK 👉 sdkmanager &quot;platforms;android${versionCode}&quot;</p><p>Commit 👉 git commit -m &quot;${message}&quot;</p><p>But if all of the task can be done with buttons, why would anyone want to type all the steps out instead? Well, if you have a series of events you want to run repetitively, having a script will often makes it a lot easier to deal with, esp. when comparing to reading documentation and do it step-by-step. And those automated task can also be done by computers more accurately, for example, have a computer that builds and ship the app every time master branch is updated. And that is basically what &quot;Continuous Integration&quot; or &quot;Continuous Delivery&quot; (also known as CI/CD) are.</p><p>But this only explains half of the question. What makes shell script different than, let say JavaScript? Well, it’s all about the history. Shell script is very much tied to Unix, i.e. the foundation of Linux and macOS, and the popularity of the 2 (among developers and servers) makes it pretty much the universal way to tell a computer how to do something. Not only that, being super close to the operating system, it allows a multitude of tools to do whatever they want to do, from transforming video between formats, frame rate, resolutions, and more with ffmpeg, to compiling Java/Kotlin code with javac/kotlinc, to tools that communicate with external sources or devices like curl or adb.</p><h3>What can shell script do</h3><p>In general</p><ul><li>Travel in the file system (cd) 🚙</li><li>See where you are (pwd) 🗺</li><li>Create folder(s) (mkdir) 📁</li><li>See what files are there (ls) 🗂</li><li>Modify files (vi/nano) 📝</li><li>Open files and programmes (open on macOS) 👀</li><li>Read files (cat/less) 🖨</li><li>Install other softwares (brew) ⬇️</li><li>Version control with Git (git, dah) 📚</li><li>etc.</li></ul><p>Android-specific</p><ul><li>Talk to Android devices (adb and fastboot) 📱</li><li>Update tools to build Android app (sdkmanager) 📲</li><li>Contribute to AOSP (repo) 💪</li><li>Use dependencies (gradle) 😯</li><li>Build the app (still gradle) 😮</li><li>Test the app (also gradle) 😲</li><li>Install a specific version of gradle (yes the answer is gradle, and then you can use gradlew) 🤯</li><li>etc.</li></ul><h3>How to run shell script</h3><blockquote>If you are on Windows, I’m sorry but 50% of this article is not for you. While the concept is the same, they are so fundamentally different, that you should be using something call “Command Line” or “PowerShell”. These are 2 different program + scripting language that runs on Windows, and I have little to no knowledge about them. A quick Google will help you a lot more. And if you are brave enough, you can also try out WSL (and WSL2) to run the following steps. Not everything will work.</blockquote><p>Now that Windows users are out of the way, let see some basic commands on Linux or macOS!</p><ol><li>Open “Terminal” on your computer</li><li>Use pwd to see where you are in the file system</li><li>Use cd ${folder name} to move into a folder</li><li>Use cd .. to move to out of a folder</li><li>If you are not sure where you are, just type cd will take you back home.</li><li>Use mkdir ${folder name} to create a new folder</li><li>Use touch ${file name} to create a new file</li><li>(macOS only) Open a file with it’s default program with open ${file name}</li><li>(macOS only) Open a folder with open .</li><li>. means the folder you are currently in</li><li>man ${command}(e.g. man git) shows a manuel of the command</li></ol><p>And now, let’s try to create a new git repository, and then delete it</p><pre># Create a folder<br>mkdir newProject<br>​<br># Move into that folder<br>cd newProject<br>​<br># Tell git this is a new repository<br>git init<br>​<br># Create an empty README<br>touch README.md<br>​<br># Enter some text into README<br>echo &quot;# Hello, World!&quot; &gt; README.md<br>​<br># Tell git to stage everything<br>git add .<br>​<br># Commit with message<br>git commit -m &quot;Initial commit&quot;<br>​<br># Show commit history<br>git log<br>​<br>## Go back out<br>cd ..<br>​<br>## Delete folder (the -r is needed to remove folder. It stands for recursive)<br>rm -r newProject</pre><p>All the line starts with # are short comments that explains what the command does. And feel free to mix and match all of these, or just randomly roll around and try things out. But be careful, you don&#39;t want to mess up your computer.</p><h3>Practical shell script examples</h3><h4>Install <a href="https://httpie.org/">httpie</a>, a pretty user-friendly way to call REST API form terminal</h4><p>On <strong>Linux</strong>, there are a lot of “Package Manager”, and in this case we will use Debian/Ubuntu as an example, which uses apt-get, and that is includes when you install the OS.</p><pre>sudo apt-get update<br># Then type your password for the computer</pre><pre>sudo apt-get install httpie<br># Then you will have to accept it</pre><pre>http --version</pre><p>And on <strong>macOS</strong>, the most popular package manager is call “<a href="https://brew.sh/">homebrew</a>”, and first, you will need to install it. At the time of writing (Jan 2020), you just need to run</p><pre># This is from Jan 2020. Please check the website for the most up-to-date install instruction<br>/usr/bin/ruby -e &quot;$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/install">https://raw.githubusercontent.com/Homebrew/install/master/install</a>)&quot;</pre><pre># Install httpie. This will usually take quite a while<br>brew install httpie</pre><pre>http --version</pre><h4>Run unit tests for the entire project</h4><pre># Assuming you are already in the folder of your project<br>./gradlew test</pre><h4>Verify code style with pre-commit hook</h4><p><a href="https://github.com/pinterest/ktlint">ktlint</a> is a tool that verifies and fixes kotlin code. And git hook is basically a script that runs in specific time in the git process, in this case, pre-commit will run when you are trying to commit, and if it failes, the commit also fails, which makes it a great place for enforce coding style in a team.</p><pre># Install the latest version (0.36.0)<br>curl -sSLO <a href="https://github.com/pinterest/ktlint/releases/download/0.36.0/ktlint">https://github.com/pinterest/ktlint/releases/download/0.36.0/ktlint</a> &amp;&amp;<br>  chmod a+x ktlint &amp;&amp;<br>  sudo mv ktlint /usr/local/bin/<br>  <br># Ask ktlint to install itself as pre-commit git hook<br>ktlint installGitPreCommitHook</pre><pre># Imagine you have typed some kotlin code that&#39;s not perfectly format</pre><pre># Commit and this will fail<br>git commit -m &quot;Bad commit&quot;</pre><h4>Build &amp; Publish app automatically with Gradle and fastlane</h4><p>You probably already know the existance of Gradle (via build.gradle), and fastlane is a tool that can automate a lot of stuff for Android and iOS developers. Instead of writing all the steps here, please checkout the official documentation on how to <a href="https://docs.fastlane.tools/getting-started/android/setup/">install</a> and <a href="https://docs.fastlane.tools/getting-started/android/release-deployment/">publish to Play Store</a>, and <a href="https://about.gitlab.com/blog/2019/01/28/android-publishing-with-gitlab-and-fastlane/">this article from GitLab</a> on how to compile and run fastlane on Linux.</p><h3>Closing words</h3><p>I still remember when I start learning/using shell script from about a year ago, and I was like “Ugh really? It’s 2019 and I am going back to using computer like the 70s?”. But after a while, I realised the flexibility of it opens a lot of doors. It did took a while for me to understand some basic shell script syntax, but I promise you at some point you will find some usecases that shell script will make you life as an Android developer a lot easier to deal with! Thank you for reading, and I will see you next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=485c274f693" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>