<?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 The Anh on Medium]]></title>
        <description><![CDATA[Stories by The Anh on Medium]]></description>
        <link>https://medium.com/@dieptheanh?source=rss-b5b1cfdb93d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ohIaugMLOGCft9w-eddiGQ.png</url>
            <title>Stories by The Anh on Medium</title>
            <link>https://medium.com/@dieptheanh?source=rss-b5b1cfdb93d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:26:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dieptheanh/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[Setup a React Native project for small MVP]]></title>
            <link>https://dieptheanh.medium.com/setup-a-react-native-project-for-small-mvp-5f0fed05f55b?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f0fed05f55b</guid>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 15:34:56 GMT</pubDate>
            <atom:updated>2022-07-13T15:34:56.745Z</atom:updated>
            <content:encoded><![CDATA[<p>As I just finished a small project for the client with great <a href="https://www.linkedin.com/posts/activity-6949188140276269056-sVwH?utm_source=linkedin_share&amp;utm_medium=member_desktop_web">feedbacks</a>. I would like to share a simple skeleton React Native project that I setup and why I do it such way.</p><p>First of all, this aimed for small MVP projects, which development need to happen as quicks as the client changes their minds and the design too :(. One thing I learned when working with start ups is “if you are going to fail, fail fast”.</p><p>Now to start, you gonna need the <a href="https://expo.dev/tools#cli">Expo CLI</a>, which can be install easily with</p><blockquote>npm install — global expo-cli</blockquote><p>I choose Expo because:</p><ul><li>it could help scaffolding a react native project very quickly</li><li>there are Expo Go apps for both iOS and Android, which help you to debug your app on real device (wirelessly)</li><li>EAS (Expo Application Services) can build your project into Android and iOS apps, then submit them to the app stores. This help working with TestFlight in my case.</li><li>Support for Jest &amp; Typescript out of the box too</li></ul><p>With a simple command</p><blockquote>expo init</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JJyDuG19lZBlnmL0EP59Q.png" /></figure><p>Notice here I select the template with “react-navigation” and “TypeScript” here. Now you got yourself a React Native app already, but let’s add a few more things to make it “ready to fight”.</p><p>Out of the box, the template already added a few “bloat” dependencies like: expo-asset, expo-constants, @expo/vector-icons, … If you not foreseen to be using them, please feel free to remove them, smaller app build faster =&gt; you work faster =&gt; make more $ for yourself and client.</p><blockquote>To make APIs and passing the data around, I use “axios” and “”react-query”.</blockquote><p>For a React application (native or not), trying to use a state management lib like Redux is common. But before adding it to the project, please ask yourself:</p><ul><li>Why do you need it?</li><li>How much information are shared between the views?</li><li>what if the design is changed, how much effort to refactor the store?</li></ul><p>If the answer are “not much”, react-query is a better choice. It provide hooks that I found very easy to work with. And what I like most is API call’s statuses, errors, caching out of the box. Think how much code for reducer, selector,…you have to write to have all that?!</p><p>For linting and auto format let’s add “eslint” &amp; “prettier”</p><blockquote>yarn add @react-native-community/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-filenames eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native prettier</blockquote><p>this is just my personal reference, depend on your coding style you might want to add/remove a few eslint plugin. Adding a .eslintrc.js file to the root folder might help with that too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*jxPSOR92cQWJp2-HjeyjZg.png" /></figure><p>But do keep this in mind, there is no best convetion/coding style, the purpose of this:</p><ul><li>to keep the coding convention consistent throughout the app</li><li>to make the code look like it written by a single person =&gt; improve the readability</li><li>it would be easier to maintain &amp; less potential bugs (since code is more predictable)</li></ul><p>Now in order to do unit test properly, you will need to add</p><blockquote>yarn add @types/jest @types/react-test-renderer ts-jest</blockquote><p>Now you got yourself a “ready to fight” React Native project.</p><p>I didn’t mention any UI lib/framework because most of the case there already a design you have to follow. For both web and mobile application, using a UI lib or framework with pre-defined styles and trying to tweak them to match your design only taking more time and create more code to maintain. If you can do it, try to make the components yourself.</p><p>One tips is asking the designer to follow a design system (if they are good, there should always be one) with named colors and consistent spacing (padding, margin).</p><p>Good luck with your MVP, god blesses who write code themself, sorry no git repo here :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f0fed05f55b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Book] — BARKING UP THE WRONG TREE]]></title>
            <link>https://dieptheanh.medium.com/book-barking-up-the-wrong-tree-79f3a6fab800?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f3a6fab800</guid>
            <category><![CDATA[success]]></category>
            <category><![CDATA[wall-street]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Thu, 17 Dec 2020 15:13:29 GMT</pubDate>
            <atom:updated>2020-12-17T15:13:29.766Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Book] — BARKING UP THE WRONG TREE</h3><p>This is the third part of my series about interesting books that I read. You can find the first 2 here:</p><ul><li><a href="https://medium.com/@dieptheanh/book-everybody-lies-936507744d89">[Book] — Everybody Lies</a></li><li><a href="https://medium.com/@dieptheanh/book-the-subtle-art-of-not-giving-a-f-ck-f12d7a50d4a7">[Book] — The Subtle Art Of Not Giving A F*ck</a></li></ul><p>Personally, I think the name is somewhat not really well reflect what the book’s content is about.</p><p>In this book, the author (Eric Barker) discussed “what makes people successful?” and it turned out that not everything people thought to be the factors that could make someone successful is correct.</p><p>What makes this book stand out from other “self-help” books is that it not focus on a single characteristic of a successful person or a single side of 1 success story. Eric took a different approach to put the “context” in the case.</p><p>He tries to get an overview of the whole story, sometimes a person’s disadvantage in a field will be an advantage in another field. Anh it turned out that success in one field doesn&#39;t mean that you will have a meaningful, happy life after all.</p><p>I found that the example he gave about “how pirate/criminal organize”, “how NAVY SEAL never gave up” are very interesting.</p><p>After all, what I learned from this is that success is not from a single characteristic, talent, or an opportunity. It’s from your choice to be the person you want to be and your adaptation, commitment along the way toward your goal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f3a6fab800" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Wizeline worked through COVID 19]]></title>
            <link>https://dieptheanh.medium.com/how-wizeline-worked-through-covid-19-64e2bda820f1?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/64e2bda820f1</guid>
            <category><![CDATA[wfh]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Sun, 24 May 2020 10:00:41 GMT</pubDate>
            <atom:updated>2020-05-26T02:33:04.704Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jth8s3wkL3Rg5-EDVyMC-w.png" /></figure><p>It has been a month and we don’t have any new cases in the community in Vietnam. Wizeline opened its Vietnam office 2 weeks back and I thought of sharing my quarantine experience with you. And what’s the best time of sharing my experience during the quarantine than now!</p><p>We were able to control the virus because of a lot of reasons but mainly was because of the lessons we learned from the last epidemics (h5n1, h1n1, sars…). And also last year was one of the years with the most polluted air in Vietnam, so people already prepared themself.</p><p>At Wizeline Vietnam, things were going normally during the first couple of months of 2020. It’s an advantage that we already have work from home (WFH) culture. It’s very normal that a teammate takes 1 or 2 weeks’ work from home. In the early stage of the epidemic, Wizeline took a step further, anyone can submit a WFH without any approval needed. This allows us to help our family prepare for what was to come.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRCt_A9wVX7w8y5FIN5jZg.png" /><figcaption>TGIF</figcaption></figure><p>During the quarantine, again thanks to the long WFH culture, work felt normal to many of us. Just a bit longer this time. We also hosted several remote events to keep people connected such as team hustles, TGIF, and so on. These events ensured that no one felt disconnected. Wizeline also offered its employees to take away monitors and other hardware to set up a productive workstation at home.</p><p>Wizeline was also extra cautious before opening its office. They sent surveys to make sure that people felt safe to come back to the office. Wizeline allowed people an additional week of remote work so that they could support their families who got to go back to work before them. Whoever feels that they need to WFH longer than were also supported.</p><p>Thanks to all the efforts and the culture we have built, the epidemic just feels like a long WFH vacation to us. The only bad experience for me is how much I missed the office, my desk, and fellow teammates. We were able to maintain productivity during quarantine but we surely missed our daily chit-chats, eating, playing, and working beside each other every day in the office.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64e2bda820f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HƯỚNG DẪN TỰ QUYẾT TOÁN THUẾ TNCN 2020]]></title>
            <link>https://dieptheanh.medium.com/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BB%B1-quy%E1%BA%BFt-to%C3%A1n-thu%E1%BA%BF-tncn-2020-945ae5df43a4?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/945ae5df43a4</guid>
            <category><![CDATA[tax-returns]]></category>
            <category><![CDATA[taxes]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Wed, 18 Mar 2020 15:29:54 GMT</pubDate>
            <atom:updated>2020-03-18T15:32:17.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHdbVPt-KPOLO_xL5VjnpQ.jpeg" /></figure><p>Hằng năm, cứ độ tháng 03, kèm theo làn sóng tấp nập chuyển việc là một mùa hoàn thuế mới lại về.<br>Chính xác hơn là mùa quyết toán thuế TNCN lại về cùng trăn trở là có được hoàn thuế hay phải đóng bù 🙂 .<br>Dưới đây là hướng dẫn ngắn gọn và đơn giản nhất đảm bảo mọi người đều có thể tự làm thành công ngay lần đầu tiên.</p><h3>I. Chuẩn bị:</h3><p>- Chứng từ khấu trừ thuế thu nhập cá nhân (Certificate of personal income tax withholding) hay còn gọi bình dân là Biên lai thuế TNCN: liên hệ với bộ phận kế toán/ C&amp;B của công ty.<br>- Thư xác nhận thu nhập năm (Annual income confirmation letter): liên hệ cùng bộ phận kế toán/ C&amp;B<br>- Tìm hiểu xem chi cục thuế gần nơi mình ở nhất nằm ở đâu<br>- Máy tính<br>* Lưu ý:<br>- Nếu có thay đổi công việc trong cùng một năm thì cần liên hệ lấy đủ tất cả các biên lai thuế và thư xác nhận thu nhập của năm đó. Ví dụ: năm 2019 bạn làm 02 công ty, năm 2020 này bạn phải tự làm quyết toán thuế cho năm 2019, nhất định phải yêu cầu cả 02 công ty cung cấp đủ 02 chứng từ trên.<br>- Biên lai thuế và thư xác nhận cần ghi rõ năm, và đóng mộc đỏ, kí tên.</p><h3>II. Các Bước Thực Hiện:</h3><p>Bước 1:<br>Truy cập trang: <a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fthuedientu.gdt.gov.vn%2F%3Ffbclid%3DIwAR0ZcMNCMaTALxE6ULkMj4T8bxpIOD9EYxjVyOzhisjEZIOmqMIHnPRkb2c&amp;h=AT2eZORaqr5Qh38k2xD6HUySaSPJf6HhFLXDaXWqsdryzB4I8Ski5JxReByFjT4NR-soC6YXN6e5-lFtfEca0Ol1pe6ZPfwyM79cIHnbG8U1d0QnJ5ZRohVc2xisUv9dG2asO2y7pAJTezd1yjsq8uuY-v7z1qQoIJHqaw8">http://thuedientu.gdt.gov.vn</a> sau đó nhìn vào phí bên tay phải chọn tab “ CÁ NHÂN” (bước 1a)</p><p>1.1 Vào mục “ Trang chủ” chọn Tra cứu thông tin NNT: nhập MST/ CMND; nhập “Mã kiểm tra” =&gt; Bấm nút tra cứu</p><p>1.2 Mở một tab khác, làm đến bước 1a. Tiếp tục chọn mục “ Đăng nhập”: nhập MST, ngày cấp MST, nhập Cơ quan thuế Tỉnh/Thành phố, nhập cơ quan thuế quản lý theo thông tin đã tra được ở bước 1.1.<br>Sau khi điền đâỳ đủ thông tin =&gt; nhấn nút “ Đăng nhập” (bước 1b)</p><p>Bước 2:<br>Sau khi “ Đăng nhập” ở bước 1b =&gt; bấm vào tab “Quyết toán thuế”</p><p>2.1 Vào “ Quyết toán thuế” chọn “ Kê khai trực tuyến” :<br>- Nhập đầy đủ thông tin có dấu (*)<br>- Chọn loại tờ khai 02/QTT-TNCN<br>- Chọn cơ quan thuế quyết toán: tick vào dòng thứ 2 (NNT không trực tiếp khai thuế trong năm), sau đó tick tiếp vào ô NNT có thay đổi nơi làm việc (nếu có thay đổi nơi làm việc); hoặc tick vào ô còn lại nếu ko thay đổi nơi làm việc.<br>2.1a Nếu có thay đổi nơi làm việc: khai thông tin vào ô 1 hoặc ô 2<br>2.1b Nếu không thay đổi nơi làm việc: khai thông tin vào ô 3 hoặc ô 4.<br>* Lưu ý: nhớ đọc kỹ nội dung ở bước 2.1 để chọn đúng ở bước 2.1a hoặc 2.1b</p><p>Bước 3:<br>Sau khi điền và tick đầy đủ thông tin, nhấn “ Tiếp tục” trang sẽ chuyển đến phần “ Nhập dữ liệu tờ khai”<br>Đây là bước quan trọng, nhớ kiểm tra lại vài lần.</p><p>3.1 Nhập đầy đủ thông tin, gồm cả STK ngân hàng để cục thuế hoàn thuế lại (nếu có)</p><p>3.2 Nhập các thông số theo yêu cầu trên tờ khai Quyết toán thuế TNCN mẫu 02/QTT-TNCN (nhớ là tự đi quyết toán là phải hiện ra mẫu này mới đúng nhé):<br>- Mục (23): nhập tổng thu nhập phát sinh tại VN (lấy ở mục thu nhập chịu thuế trong tờ Biên lai thuế, có bao nhiêu tờ Biên lai thuế thì cộng tổng tất cả rồi nhập vào)<br>- Mục (26): nhập tổng thu nhập phát sinh ngoài VN (tương tự như mục 23).<br>- Mục (31),(32),(33) các khoản giảm trừ: nếu có thì nhập, không có thì bỏ trống nha.<br>- Mục (37): số thuế đã khấu trừ, nhập số tiền ghi ở mục số (17): số thuế thu nhập cá nhân đã khấu trừ (amount of personal income tax with held) trên tờ biên lai thuế nha (có mấy tờ thì cộng tất cả rồi nhập vào).<br>- Mục (38), (39), (40): nếu có nộp thuế ở nước ngoài, nộp trùng, hoặc nộp tạm thì nhập vào, không có thì bỏ trống nha.</p><p>Mệt chưa? Cố lên sắp tới đích rồi nè 💃🕺💃🕺💃🕺</p><p>3.3. Nhìn xuống bên dưới góc trái cuối màn hình có tab phụ lục 02–1/BK-QTT-TNCN: khai thông tin người phụ thuộc để được tính thêm giảm trừ nha.<br>Nhấp vào tab xanh đó và điền đầy đủ thông tin người phụ thuộc: =&gt; Sau đó bấm “ Lưu bản nháp”</p><p>3.4. Kiểm tra lại tờ khai đã điền ở bước 3.3 đã hiện lên người phụ thuộc chưa, số người đã đúng chưa, kiểm tra các mục (23), (26 nếu có), (31), (32), (33), (37 -quan trọng nè), (38), (39), (40) đã đúng chưa.<br>- Nếu tất cả đã đúng rồi thì kéo xuống Mục (45) xem thử có được hoàn hay không, nếu được hoàn thì nhập số đó vào mục (47) =&gt; Đây chính là số tiền thuế mà bạn sẽ được nhận lại. Chúc mừng chúc mừng ❤</p><p>Bước 04: In và gửi tờ khai:<br>- Nhấn nút “ Hoàn thành kê khai” =&gt; Kết xuất XML =&gt; Nộp tờ khai =&gt; Xác thực nộp tờ khai (nhập cái mã khi nãy trang nó báo ở bước 3.2) =&gt; Tiếp tục =&gt; Xuất hiện thông báo nộp tờ khai thành công.<br>- Tờ khai có dạng file XML, cần đổi sang file PDF để in ra nhé.</p><p>Bước 05:<br>Cầm tờ khai đã in hoàn thiện, gộp chung với Biên lai thuế và thư xác nhận thu nhập năm đến nộp ở chi cục thuế gần nhà bạn nhất.<br>Vậy là xong.</p><p>III. Lưu Ý:<br>- Trong quá trình làm cần lưu bản nháp liên tục để tránh mạng lag rớt mất thông tin nha<br>- Muốn kiểm tra xem tờ khai đã lên hệ thống chưa: vào tab “ Tra cứu tờ khai” =&gt; chọn loại tờ khai =&gt; chọn ngày gửi =&gt; bấm tra cứu.</p><p>Chúc các bạn thành công<br>Nguồn: <a href="https://www.facebook.com/ubichan312">https://www.facebook.com/ubichan312</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945ae5df43a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Authentication with Firebase and unit testing]]></title>
            <link>https://dieptheanh.medium.com/react-authentication-with-firebase-and-unit-testing-35f6958e5f7a?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/35f6958e5f7a</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Sun, 23 Feb 2020 08:31:19 GMT</pubDate>
            <atom:updated>2020-02-23T08:33:37.787Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my first post about technical stuff and programming, hope you guys enjoy it.</p><p>In this post, I will show you how to integrate your React app (and similar for other frameworks/libraries) with Firebase and how to do unit testing (or integration test if you want to call it so).</p><h4>Prerequisites:</h4><ol><li><a href="https://firebase.google.com/docs/web/setup#create-firebase-project">Firebase project created</a></li><li><a href="https://firebase.google.com/docs/web/setup#register-app">Registered your app</a></li></ol><p>First, let&#39;s install Firebase in our project:</p><pre>yarn add firebase</pre><p>To initialize firebase you will need some config like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hg3BrXvMctTTCaGx2cDRJw.png" /><figcaption>firebase.config.js</figcaption></figure><p>As you can see this takes info from a bigger envConfig file, which takes input from the process.env just to make our code “DevOps friendly”.</p><p>To centralize our logic related to Firebase, let’s create a util file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kq7rAQkAYJ5fVYY4HqugCQ.png" /><figcaption>Utils/firebase.js</figcaption></figure><p>Pay Attention to the init async function. Since our app’s logic is based on Firebase, it has to be initialized first before we start to render anything on the UI. By making it an async function, we can make sure that all setting and configuration in place when we need.</p><p>Now from the index.js (if you used create-react-app), you can import and run the init before ReactDOM.render</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*buq1Tl09XmgBzPiSN8rMtw.png" /><figcaption>index.js</figcaption></figure><p>For routing, we gonna use <a href="https://reach.tech/router">Reach Router</a> (the same approach should be applicable for any other routing library). To force unauthenticated user redirect to login and authenticated user redirect to the dashboard, we gonna use a Private route component for that. But first, let&#39;s add the isAuthenticated function to our Firebase util:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lqpWXD5cYBhJ9YVlAwg4DQ.png" /><figcaption>Utils/firebase.js</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkYq1sOKXIOVXXj58JiyjA.png" /><figcaption>Components/PrivateRoute.js</figcaption></figure><p>Then in the App.js (or wherever your routing is), we can just use PrivateRoute for routes that require authenticate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJN2u8oI1R-dWUdGahl_7w.png" /><figcaption>App.js</figcaption></figure><p>That’s for routing, how about login, logout, and other things?</p><p>Wells, Firebase already have it cover for us: <a href="https://firebase.google.com/docs/auth/web/start">https://firebase.google.com/docs/auth/web/start</a></p><p>for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbfqQJIXL3DsB5SP6I1M-A.png" /><figcaption>Utils/firebase.js</figcaption></figure><p>From your Login component, you can just import the Firebase utils and call these functions to do authentication.</p><h3>Testing</h3><p>To test the Firebase util, we gonna mimic the behavior we just implemented above. For each of the test cases, we need to initialize our Firebase instance and log out when we finish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*M3jtOMZ-ALc03dLaafzVBg.png" /><figcaption>Utils/firebase.test.js</figcaption></figure><p>Now let&#39;s test the login/logout flow first:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1DnPvvq5YInNRrl5hKOP1A.png" /></figure><p>Then for other Firebase util functions, you can do something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5SYIwq-BLsOc7bFFDJnlwQ.png" /></figure><p>For components that have logic depend on the Firebase util, you can do the same things. This way we can cover all of our code in unit testing.</p><p>The downside of this approach is that when you have too many tests, your pipeline for CI/CD can take quite some time and it cost $$$.</p><p>Let me know if you find this helpful or you have ideas to improve this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35f6958e5f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Book] — The Subtle Art Of Not Giving A F*ck]]></title>
            <link>https://dieptheanh.medium.com/book-the-subtle-art-of-not-giving-a-f-ck-f12d7a50d4a7?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f12d7a50d4a7</guid>
            <category><![CDATA[books]]></category>
            <category><![CDATA[freedom]]></category>
            <category><![CDATA[happiness]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Mon, 09 Dec 2019 06:49:22 GMT</pubDate>
            <atom:updated>2019-12-09T06:49:22.343Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Book] — The Subtle Art Of Not Giving A F*ck</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*vjPqcm1BicwoODsx" /></figure><p>This is the second part of my series about interest books that I read.</p><p>You can find the first one here:</p><p><a href="https://medium.com/@dieptheanh/book-everybody-lies-936507744d89">[Book] — Everybody Lies</a></p><p>The book is somewhat a reminder for what is important to care about in our lives and what we really shouldn’t give a f*ck about.</p><p>Mark’s idea is really simple, no one is special and we all gonna die anyway. Sometimes we just worry too much about too many things that we really couldn’t do anything about. So instead of trying so hard to lives up to the social standard which is not appropriate to everyone in every case, we should spend our time and effort on what/who that is really important to us, which could make us really happy.</p><p>And I think… that’s it. It pretty much everything this book is about. I have spent the last hour to think about what else the book really impressed me but I can’t. The book is short and really fun to read. It could be a great gift when you want to inspire someone.</p><p>See you guys again with next book: Barking up the wrong tree — Eric Barker</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f12d7a50d4a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Book] — Everybody Lies]]></title>
            <link>https://dieptheanh.medium.com/book-everybody-lies-936507744d89?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/936507744d89</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Fri, 08 Nov 2019 05:53:35 GMT</pubDate>
            <atom:updated>2019-12-09T04:22:40.188Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Book] — Everybody Lies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94mzNQvOcxPvS4RvyKVFBA.jpeg" /></figure><p>This is the first in my series (at least 3 stories) of reviewing the book I have read.</p><p>Here are the 3 books that recently got my attention, I was siting on the bus and looking for something interesting to read:</p><ul><li>THE SUBTLE ART OF NOT GIVING A F*CK — <a href="https://markmanson.net/">Mark Manson</a></li><li>BARKING UP THE WRONG TREE — Eric Barker</li><li>EVERYBODY LIES — Seth Stephens &amp; Davidowtiz</li></ul><p>EL (<strong>E</strong>verybody <strong>L</strong>ies), the book is about how people can use big data and sometime “not so big data” (but collected correctly) to discover unexpected knowledge.</p><p>EL gives many example, in which sometime the size of data is not as important as how it is collected and scientist’s approach to process them. EL discribes the case studies in a way that even non-technical people could easily understand.</p><p>Morever, Mark Manson also point out a lot of misconception. The facts are discovered when internet had become popular and people found a new way to collect what Mark called “the right data”. They discovered that, the original way to collect data about people via survey may not be accurate because people tend to lies about themself. They also discoverd that people will expose their true self on internet when they feel no-one watching. I think this is the reason the book is called “Everybody Lies”.</p><p>EL is one of very few books that I fully finished. Mark also give readers a small suprise in the conclusion.</p><p>I personally found this is a very good book. Mark used very simple terms that would be easy to understand for everyone. Nowadays, when data is considered most valuable asset, this book is a pretty good start for someone who want to know more about data science.</p><p>Next: THE SUBTLE ART OF NOT GIVING A F*CK</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936507744d89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Sách Hay] — Mọi Người Đều Nói Dối]]></title>
            <link>https://dieptheanh.medium.com/s%C3%A1ch-hay-m%E1%BB%8Di-ng%C6%B0%E1%BB%9Di-%C4%91%E1%BB%81u-n%C3%B3i-d%E1%BB%91i-faaa09dbf120?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/faaa09dbf120</guid>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Fri, 08 Nov 2019 04:39:36 GMT</pubDate>
            <atom:updated>2019-11-08T05:31:09.468Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Sách Hay] — Mọi Người Đều Nói Dối</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94mzNQvOcxPvS4RvyKVFBA.jpeg" /></figure><p>Đây là bài đầu tiên trong series (ít nhất 3 bài) mình viết về những quyển sách hay mình đọc qua.</p><p>Tình cờ trong lúc đi xe bus mình có đọc nhiều bài trên <a href="http://tamlyhoctoipham.com/">http://tamlyhoctoipham.com/</a> trong đó có 3 cuốn sách làm mình chú ý:</p><ul><li>Nghệ Thuật Tinh Tế Của Việc Đếch Quan Tâm (THE SUBTLE ART OF NOT GIVING A FUCK) — <a href="https://markmanson.net/">Mark Manson</a></li><li>Chó Sủa Nhầm Cây (BARKING UP THE WRONG TREE) — Eric Barker</li><li>Mọi Người Đều Nói Dối (EVERYBODY LIES) — Seth Stephens &amp; Davidowtiz</li></ul><p>Mình sẽ đọc hết 3 quyển này, đó là lý do vì sao series sẽ có ít nhất 3 bài (sau đó tính tiếp).</p><p>Đầu tiên nói về EL (<strong>E</strong>verybody <strong>L</strong>ies), quyển sách nói về cách người ta sử dụng dữ liệu lớn và đôi khi ngay cả những “<em>dữ liệu không lớn” </em>nhưng được thu thập đúng và áp dụng đúng cách sẽ mang lại những kiến thức mà chúng ta không ngờ tới.</p><p>EL nêu ra nhiều ví dụ, trong đó đôi khi số lượng hay kích cỡ của dữ liệu không quan trọng bằng cách dữ liệu được thu thập và cách nhìn của người làm khoa học dữ liệu. Những ví dụ được nhắc đến một cách dễ hiểu, dễ hình dung ngay cả với những người không chuyên về IT hay Data Mining đều cũng có thể hiểu được.</p><p>Ngoài ra, tác giả còn tiết lộ thêm nhiều sự thật mà chính chúng ta đã ngộ nhận bấy lâu nay. Những sự thật đó chỉ được phát hiện khi internet phát triển và chúng ta tìm ra cách mới để thu thập cái mà tác giả gọi là “<em>dữ liệu đúng</em>”. Khi mà mọi người thật sự bộc lộ bản thân trên internet khi họ nghĩ là không bị ai dòm ngó. Cá nhân mình nghĩ đây chính là lý do quyển sách có tên là Mọi Người Đều Nói Dối</p><p>EL là 1 trong số ít sách mà mình đọc từ đầu tới cuối, ngay cả ở phần kết luận tác giả vẫn giành ra 1 bất ngờ thú vị cho người đọc.</p><p>Sách mình mua từ Tiki, giao hàng khá nhanh, ngoại hình sách đẹp không tì vết, giấy in đẹp tuy nhiên có vài trang chữ bị nhòe (sách in lậu chăng ?!).</p><p>Kết luận, cá nhân mình thấy sách khá hay, tác giả dùng những câu chữ bình dân dễ hiểu với đại đa số. Trong thời đại dữ liệu quý như vàng, EL là một điểm suất phát khá tốt nếu bạn muốn bắt đầu với khoa học dữ liệu.</p><p>Hẹn gặp lại các bạn với một quyển sách khác.</p><p>Phần kế: Nghệ Thuật Tinh Tế Của Việc Đếch Quan Tâm</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faaa09dbf120" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tập Đọc Cùng Thế Anh Gian Ác]]></title>
            <link>https://medium.com/series/t%E1%BA%ADp-%C4%91%E1%BB%8Dc-c%C3%B9ng-th%E1%BA%BF-anh-gian-%C3%A1c-c85c9185d89b?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c85c9185d89b</guid>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Fri, 08 Nov 2019 04:30:55 GMT</pubDate>
            <atom:updated>2019-11-08T04:30:55.660Z</atom:updated>
            <content:encoded><![CDATA[<p>Nơi mình chia sẻ những thứ hay ho mình đọc được</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c85c9185d89b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snippets of Wizeline Culture]]></title>
            <link>https://dieptheanh.medium.com/snippets-of-wizeline-culture-86a2ac286694?source=rss-b5b1cfdb93d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/86a2ac286694</guid>
            <category><![CDATA[recruiting]]></category>
            <category><![CDATA[wizeline]]></category>
            <dc:creator><![CDATA[The Anh]]></dc:creator>
            <pubDate>Mon, 26 Aug 2019 08:28:30 GMT</pubDate>
            <atom:updated>2019-08-26T09:02:20.550Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ehapUlfi-QUVI2GOsQgzA.jpeg" /></figure><p>I’m a software developer with 4 years of experience.</p><p>I joined Wizeline Vietnam in Dec 2018. Still I’m still impressed by the culture and people I have met here.</p><p><strong>Interview Process</strong></p><p>The first thing that caught my attention was the interview process. I had joined quite a lot of interviews before (both as candidate and interviewer), sort and long ones. The process at Wizeline is not only for the company to evaluate the candidate but also a chance for the candidate to get to know the company and people who that they would work with. Yes, to some it may feel long (3 round, with the last round is on site whole day at Wizeline office). But take this, it’s the effort of the whole interview team, and they really invest in prepare it. I really enjoyed my day working with them.</p><p><strong>Catering Service</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Ax-WIHTofJvh8W9dkcCqQ.jpeg" /></figure><p>The next thing is FOOD.You never have to wonder “What will I eat today?” (which is sometimes the hardest question for me) at Wizeline with our catered meal service for breakfast and lunch every day. There are a lot of good value behind this:</p><ul><li>when everyone eating together, it feel like family, really help the relation ship between people</li><li>it helps newcomers to get to know everyone faster</li><li>it spreads the “flat culture” spirit, there is no distance, managers and leaders eat the same meals with all other team members.</li></ul><p><strong>Communication &amp; Recognition</strong></p><p>Another things is Communication. I can really feel the “positive attitude” being spread everywhere. It’s the first times i see a company has a whole process to<strong> encourage, regconize, reward people doing good things</strong>. Not only in term of the company’s interest, but also as helping each others everyday.</p><ul><li>There is a Slack channel called “Kudos” which people use to <strong>publicly thank others</strong> for anything and everything (bringing coffee, helping them on a project, etc.).</li><li>Awesome Award for people to nominate others, who go above and beyond their duty. (there is $ reward for this every month)</li><li>All of above get sumary by year end and people will get more reward also.</li></ul><p><strong>Learning Organization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKm2wWJPiBZD8myDg8DV-Q.jpeg" /></figure><p>Another culture I feel at Wizeline is <strong>knowledge sharing</strong>, both internal and external. There is Internal Tech Talk every week, where everyone can talk about any topic they feel interest or new technology.</p><p>Wizeline also host Academy events that people from outside the company could come and join freely, we believe this is a way to <strong>help the tech community grow</strong> and also attract more people.</p><p><strong>Transparency</strong></p><p>One last thing i want to share is the transparent process. There is an internal app where imployee could ask any question (named or anonymous) to any one or department, include the executive staffs like CEO, CTO,…</p><p>The slogan to resolve any problem at Wizeline is <strong>“Nothing beats a one on one”</strong>; employees are encouraged to speak up whenever they have a question or see something wrong, and are even able to reach out directly to the high-level managers.</p><p>Above is just a small part from the experience i had while working here at Wizeline. Above all, i think the best benefit for an engineer is to work with the best people.</p><p>Looking forward to continue to work with amazing people here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86a2ac286694" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>