<?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 Yuri on Medium]]></title>
        <description><![CDATA[Stories by Yuri on Medium]]></description>
        <link>https://medium.com/@coffee-chat-with-yuri?source=rss-5abad3fdb514------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WnZRvDhpMA53NMqzAw-3TQ.jpeg</url>
            <title>Stories by Yuri on Medium</title>
            <link>https://medium.com/@coffee-chat-with-yuri?source=rss-5abad3fdb514------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:17:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@coffee-chat-with-yuri/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[How to Dynamically Filter a List by Search Bar with Flutter]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/how-to-dynamically-filter-a-list-by-search-bar-with-flutter-141f67caa32e?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/141f67caa32e</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[searchbar]]></category>
            <category><![CDATA[filters]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Sat, 27 Aug 2022 21:55:22 GMT</pubDate>
            <atom:updated>2022-08-27T21:55:22.652Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently built an app that has a search bar. It searches through the list of shopping logs that I fetch from Firestore and displays the items that include the keyword on the search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*mQPhDrQHnXyQUUAV0DHHLQ.gif" /><figcaption>Filtering a list with a search bar</figcaption></figure><p>Let’s dive into the code. The first piece builds the magnifying glass on the top right corner of the first screen.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/33a522caba5e4e5e1eccb8cba6118933/href">https://medium.com/media/33a522caba5e4e5e1eccb8cba6118933/href</a></iframe><p>The second piece is the search bar and filtering functionality. Clicking the magnifying glass on the first page pushes users into this search page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b123af8a8d1ba7aa7bbbe6e5989f398d/href">https://medium.com/media/b123af8a8d1ba7aa7bbbe6e5989f398d/href</a></iframe><p>It fetches the list in initState and filters it insetState when the text in the search bar changes. I’m filtering the list of log objects by its “notes” field, checking if the string contains the search text.</p><p>My initial mistake was that I was fetching the data in the Scaffold’s body with Future Builder. And I was assigning the data to a variable and updating the same variable with setState when a keyword was typed in.</p><p>Of course, this didn’t work because I had to have a list of all logs (_allLogList in the code above) and a filtered list of logs (_filteredList in the code above) separately, so that I can easily add and remove items from the list.</p><p>I hope this gives you some ideas for whatever you are working on and you will make the function even better!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=141f67caa32e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Animate Chat Bubble with Flutter]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/how-to-animate-chat-bubble-with-flutter-ad87615e910?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad87615e910</guid>
            <category><![CDATA[chat]]></category>
            <category><![CDATA[flutter-animation]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[apps]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 09 May 2022 04:24:04 GMT</pubDate>
            <atom:updated>2022-05-09T04:24:04.544Z</atom:updated>
            <content:encoded><![CDATA[<p>We have an app with chat functionality. Before a chat bubble wasn’t animated so when users send a message, the bubble appeared all of a sudden. See the left GIF.</p><p>I refactored so that when users send a message, the bubble moves from bottom to top which gives a much smoother feel. See the right GIF.</p><p>As you can compare the two GIFs, this small animation made a big difference and our chat feels more sophisticated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*dk5WtCQ_JEP2oBl9lOvUhA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*a0NdK3wck8myXurGzUWFRg.gif" /><figcaption>Non-animated (left) vs. animated (right)</figcaption></figure><p>Let’s look at both “Non-animated code” and “Animated code” to discuss how we can make the chat animation. Our tech stuck is Flutter x Firebase, and I simplified the code snippet to focus on the topic.</p><h4>Non-animated</h4><ul><li>Stream chat collection</li><li>Loop through snapshots with ListView and return a chat bubble widget</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/53ffd8a6e00aaec04d326f4882d4cc02/href">https://medium.com/media/53ffd8a6e00aaec04d326f4882d4cc02/href</a></iframe><p>It was streaming the chat collection from the Firestore. Whenever a new message doc was added, it updated the view automatically but the transition was sudden.</p><h4>Animated</h4><ul><li>Stream chat collection</li><li>Create a list of chat bubble widgets</li><li>If a new chat doc is added, insert a chat bubble widget that is wrapped with SizeTransition into the list</li><li>Loop through the list with ListView</li><li>Execute animation</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bfbba7b33c49fbf338aedab5b727219/href">https://medium.com/media/6bfbba7b33c49fbf338aedab5b727219/href</a></iframe><p>ListView got much simpler. The following code is how to make _messageList(a list of chat bubble widgets).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4430ce620c33adefecc1396761bbf167/href">https://medium.com/media/4430ce620c33adefecc1396761bbf167/href</a></iframe><p>This _createMessageList function is triggered whenever data comes into the stream. It starts listening to the stream by opening that up in the initState.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/999299ab5fe6eff1d245ea9975ea56aa/href">https://medium.com/media/999299ab5fe6eff1d245ea9975ea56aa/href</a></iframe><p>Keep in mind that we need animation ONLY when new messages come in while a user is seeing the chat view. All we have to do here is to find out which message is sent while the user is in the chat, and add animation to the chat widget.</p><p>It’s streaming the chat collection the same way as before, but it calls _createMessageList function whenever stream data comes in, which is detected by _chatStreamController.stream.listen.</p><p>In _createMessageList function, if the newest message’s sent time is after the stored _currentNewestMessageSentAt(which is the timestamp of the latest message doc the user has seen), then I wrap the chat bubble widget with SizeTransition.</p><p>Lastly, I execute the animation with _animationController!.forward() as ListView displays _messageList.</p><p>Chat functionality can get complex, but I hope you get an idea of how to make chat bubble animation and implement it on your code. I was surprised at how this small animation increases the user experience whole a lot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad87615e910" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Cloud Functions ~ Migrating an Existing JavaScript Project to TypeScript]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/firebase-cloud-functions-migrating-an-existing-javascript-project-to-typescript-56139554dbe8?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/56139554dbe8</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[cloud-functions]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 02 May 2022 05:42:11 GMT</pubDate>
            <atom:updated>2022-05-02T05:42:11.808Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4uecqZ0viu-aC6VL2YWEmg.png" /></figure><p>We had been writing our firebase cloud functions in Javascript, but we finally migrated it into Typescript. This is the step-by-step guide on how to do that. Firebase has very good documentation explaining the steps, so I added my experience to it so that you can do this even more smoothly.</p><p>Firebase doc is <a href="https://firebase.google.com/docs/functions/typescript#migrating_an_existing_javascript_project_to_typescript">here</a>.</p><h3>Step 1: Create a git checkpoint and save copies of your existing JavaScript source files.</h3><p>First, I was like, “wait, what’s git checkpoint!? Is it another new git thing that I don’t know?”, but I think it just means creating another branch or any other git things you usually do to manage commits. I created a new branch as well as a copy of the entire project folder just in case by typing the following into the command line:</p><p>&gt; cp -R path-to/project-name path-to/project-name-copy</p><h3>Step 2: In the project directory, run firebase init functions and select TypeScript when prompted for a language for writing functions.</h3><p>Straight forward. I just typed firebase init functions in the command line.</p><h3>Step 3: When prompted whether to overwrite the existing package.json file, select <strong>No</strong> unless you are sure you don&#39;t want to keep the existing file.</h3><p>This is what I was asked and what I chose (blue text is my answer).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*BLE__qDvlePqK87v5C0xcQ.png" /></figure><h3>Step 4: Delete index.ts in the directory functions/src, replacing it with your existing source code.</h3><p>I had a functions folder on the first level before, but by running firebase init functions and choosing Typescript, it created src folder below the functions folder. I deleted the default index.ts file → moved my index.js into this src folder and changed the extension to .ts → and fixed linter errors.</p><p>With the Javascript project, I had a models folder where I stored all function files. So I moved the whole thing under the src folder. Now the structure looks like this:</p><p>functions/src/index.ts and functions/src/models/your_file_name.ts</p><p>I manually converted the all file extension from .js to .ts. Linter tells all errors, so I basically followed what the linter suggested. So handy.</p><h3>Step 5: In the tsconfig.json file created at initialization, set the compiler options to allow JavaScript: &quot;allowJs&quot;: true.</h3><p>I added “allowJs”: true as well as the other three values based on this <a href="https://medium.com/lotharschulz/how-to-migrate-firebase-cloud-functions-javascript-to-typescript-f19c9d1d4521#:~:text=Also%20I%20enriched%20the%20firebase%20generated%20file%20tsconfig.json%20based%20on">article</a>. Now my tsconfig.json looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1gTKLaIvHcjEaITYrSk1A.png" /></figure><h3>Step 6: Copy your saved package.json file into the functions directory, and edit it to set &quot;main&quot; to &quot;lib/index.js&quot;.</h3><p>I think my package.json was already under the functions directory. I set &quot;main&quot;: &quot;lib/src/index.js” because that’s where the index.js is compiled. The firebase doc says lib/index.js so that made me wonder whether I should move my index.ts out of the src folder. But setting main to lib/src/index.js worked for me.</p><h3>Step 7: Also in package.json, add a build script for TypeScript like the following:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*AzzARCBDCCrbSBOxJbseNg.png" /></figure><p>In addition to what the firebase doc says to add, I added “lint”: “eslint”. I added this because an error occurred when I was trying to deploy functions and this was the solution. Now my package.json’s scripts map looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*QvPJFyvbOHQ6zDPZaVwFfg.png" /></figure><h3>Step 8: Add &quot;typescript&quot; as a dev dependency by running npm install --save-dev typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser.</h3><p>Straight forward. I just ran those commands: npm install — save-dev typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser</p><h3>Step 9: For all dependencies, run npm install --save @types/&lt;dependency&gt;.</h3><p>If I understand this step correctly, it’s just installing npm packages of the typescript definition. Not all dependencies had typescript definitions, but I was able to install @types/node-fetch and @types/twilio&quot;.</p><h3>Step 10: Rewrite source code from .js to .ts as desired.</h3><p>I did this on step 4. This last step is basically making sure it’s all working and you can deploy functions just like before. As I was fixing the linter errors and deploy errors, here are some of the main things I did.</p><p>(1)</p><p>It did not like the way I was importing. I had to change like this:</p><p>import functions from &quot;firebase-functions&quot;;</p><p>↓</p><p>import * as functions from &quot;firebase-functions&quot;;</p><p>I had to close the VSCode and open it again for the changes to be applied.</p><p>(2)</p><p>Linter is great because it tells if the variable is possibly null. I had to apply <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#optional-chaining">Optional Chaining</a> to a lot of places. For example, userRef.data()?.userID instead of userRef.data().userID because userRef.data() might return null or undefined. You can do userRef.data()?.userID ?? “default-id” to assign a default value for the error handling.</p><p>(3)</p><p>A date had some issues with Math. I had</p><pre>const now = admin.firestore.Timestamp.now().toDate();<br>const hourDifference = Math.trunc(Math.abs(now - user.lastActive.toDate()) / (60 * 60 * 1000))</pre><p>but I had to change it to</p><pre>const now = admin.firestore.Timestamp.now().toDate().valueOf();<br>const hourDifference = Math.trunc(Math.abs(now - user.lastActive.toDate()) / (60 * 60 * 1000))</pre><p>Notice I added .valueOf() after .toDate() method. I’m not super sure, but when operating the math with date variables, you have to do that.</p><p>(4)</p><p>When I was reviewing the Typescript project overview with the firecasts <a href="https://www.youtube.com/watch?v=DYfP-UIKxH0">video</a>, I realized I have to add the/lib directory in the .gitignore. So the way it works is that Typescript is compiled to Javascript before being deployed and the/lib directory is the auto-generated Javascript files. So no need to include it in the source control.</p><p>(5)</p><p>I was importing node fetch like this: import fetch from &#39;node-fetch&#39;;, but I learned that you no longer need to import with the <a href="https://stackoverflow.com/questions/70142391/importing-node-fetch-in-node-project-with-typescript#:~:text=the%20dom%20lib.-,Update,-2022%2D02%2D04">update</a>. So I removed the import.</p><p>(6)</p><p>When I did &gt; git add . I noticed that stuff in .gitignore was not ignored.</p><p>I ran &gt; git rm -r --cached . and it was all good. The solution was found <a href="https://stackoverflow.com/questions/24410208/gitignore-does-not-ignore-folder#:~:text=git%20rm%20%2Dr%20%2D%2Dcached%20.">here</a>.</p><p>Those are the main things I fixed and I was able to deploy all functions by running &gt; firebase deploy –-only functions in the terminal and it went through without any error! Changes are successfully applied to cloud functions. We have been monitoring if there are any errors, but so far so good. Now we can write cloud functions in Typescript and it made our life so much easier! I hope you enjoy Typescript as much as I do!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56139554dbe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create an object with firestore’s auto-generated uid as property from document snapshot]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/how-to-create-an-object-with-firestores-auto-generated-uid-as-a-field-from-document-snapshot-c6fc49127f33?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6fc49127f33</guid>
            <category><![CDATA[firestore]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[snapshot]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[object-oriented]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 05:50:24 GMT</pubDate>
            <atom:updated>2022-03-29T17:03:17.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*VcQw5Lsiqs_eqhzq.png" /></figure><p>We use Flutter x Firebase for our app. We have a goals collection that we store in the firestore. Users can create multiple personal goals, and all the goal documents are stored under the goals collection. Let’s say the goal document has the following fields:</p><ul><li>goalText (String)</li><li>createdAt (Timestamp)</li><li>isActive (bool)</li></ul><p>We create this document in the flutter like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd91dfc864058f6ef9372417fdf90314/href">https://medium.com/media/dd91dfc864058f6ef9372417fdf90314/href</a></iframe><p>We also have a goals-report collection and the goal-report document has a field for goalID. This goalID is the auto-generated uid of a goal document.</p><p>When I fetch goal data from firestore, I was creating a goal object from a snapshot with the properties that reflects all the fields of the goal document. I did not have access to uid from the goal object. Passing the uid separately seemed like a waste.</p><p>It became clear that it is extremely helpful if I can create a goal object with all properties, pulse the document uid. With that, I can easily get data from the object to filter the goals-report collection and do more.</p><p>This is how we did it.</p><p>First, we have model classes for every collection in the firestore. The goal model looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e222b2ef1212236a5b44fef13e522f1/href">https://medium.com/media/2e222b2ef1212236a5b44fef13e522f1/href</a></iframe><p>We receive id String and dataMap to create the goal object in the .fromMapWithId.</p><p>When I fetch the goal document from firestore with FutureBuilder, you can convert the snapshot to an object like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78b2fadb4ab5027ffa4eead701b985b8/href">https://medium.com/media/78b2fadb4ab5027ffa4eead701b985b8/href</a></iframe><p>Now I can use this list of goal objects and each object has an id property.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6fc49127f33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference Between Stateful and Stateless Widgets]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/difference-between-stateful-and-stateless-widgets-2a3ffb35140e?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a3ffb35140e</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[statefulwidget]]></category>
            <category><![CDATA[statelesswidget]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 04:36:29 GMT</pubDate>
            <atom:updated>2022-03-14T04:36:29.072Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*uWmZxeu9QAOTqIRQ239F9Q.jpeg" /></figure><p>Flutter has a Stateful widget and a Stateless widget. What’s the difference and which one do you want to use? This is a super simple explanation of what I learned about the Stateful vs. Stateless widget.</p><h4>Stateful</h4><p>You want to use a Stateful widget when any parts of UI change within the same widget. Examples are:</p><ul><li>When after 3 seconds of loading the page, show a tooltip</li><li>When a user clicks the button, show the loading icon until the task is done</li><li>When you need the animation to change an image’s height</li><li>When you need to show a validation message as a user types in a text field</li></ul><p>If whatever you are working on has some sort of state change like this, you probably need to use the Stateful widget.</p><p><a href="https://flutterbyexample.com/lesson/stateful-widget-lifecycle">Flutter documentation</a> explains the Stateful widget life cycle. I recommend reading it because if you understand the life cycle of the Stateful widget, it helps you to understand the error you are seeing, and debugging becomes easier.</p><h4>Stateless</h4><p>As you can guess by now, you want to use a Stateless widget when you don’t have any UI update within the same widget. Examples are:</p><ul><li>User’s profile page where you just display data from database</li><li>An alert dialog widget that always shows the same message when it’s triggered</li></ul><p>If you don’t have to use a Stateful widget, you always want to use a Stateless widget.</p><p>I hope this helps you to understand the basic difference between Stateful and Stateless without any difficult words. There are many articles that go more in-depth on this topic, so I hope you can step up into those details as you learn more about flutter!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a3ffb35140e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Become a Software Engineering with Great Communication Skills]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/how-to-become-a-software-engineering-with-great-communication-skills-c4343f9ff49?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4343f9ff49</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[communication-skills]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Tue, 08 Mar 2022 07:30:11 GMT</pubDate>
            <atom:updated>2022-03-08T07:30:11.408Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgUzgeDT2lpBJ9fTzRCyNQ.png" /></figure><p>A psychologist once said, “What is true is not what I said, it’s what you understand.”</p><p>It is fascinating how different the things you think you told people and what they actually understood. Communication is crucial in every aspect of our lives and software engineering is no exception. You cannot expect to not communicate with humans when you become a software engineer. In fact, it’s the opposite. Software engineers with strong communication skills are so variable.</p><p>These are some of my tips for communication in software engineering.</p><h4>Understand the audience’s technical level</h4><p>In other words, understand what they want to know. If you are talking to PM or UX designers, they don’t care if you use this library or that library. What they are interested in is what you deliver. Depends on the purpose of the meetings, but my rule of thumb is to choose words through the user’s eyes.</p><p>For example, say “when you click this button, it will take you back to the home page and you can see that the task is checked off” instead of “when you click the button, it fetches user data from firebase and stores the inputs under users document, and the state changes synchronously because the home page is listening to the document update.”</p><h4>Visualization is king</h4><p>I often take screenshots and <a href="https://www.loom.com/">loom</a> recordings when I communicate with other engineers. Visuals deliver ideas 100x better than typed words. My recommendation is to leave UI screenshots or walk-through videos on Pull Requests. It will help reviewers to know what code they are about to review.</p><h4>Be reachable</h4><p>I personally have a hard time trusting people who do not respond to messages. Don’t be that guy. If you are not reachable, people won’t trust you nor come to you for help.</p><p>I don’t respond to slack messages immediately when I’m deep in code, but I do respond soon. You decide the rules that work for you. I often use the status feature on Slack where you can set your current status such as lunch break, commuting, in the meeting, etc. This way, people would know when they expect my response.</p><p>There are so many when it comes to communication skills. But those are the top three high-level ideas that came to my mind as I think about effective communication in software engineering. Let us break the stereotype of software engineers(awkward communicator, can’t communicate with the business side, etc. ) by becoming software engineers with great communication skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4343f9ff49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Email Link (Password-less) Authentication with Firebase & Flutter]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/email-link-password-less-authentication-with-firebase-flutter-6f6db00877a4?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f6db00877a4</guid>
            <category><![CDATA[passwordless]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 20:13:03 GMT</pubDate>
            <atom:updated>2022-03-01T22:58:08.727Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xVUCoASQDC_4RJYt.png" /></figure><p>If your app provides some level of a personalized experience, you almost always have an authentication process. Our app originally started with Google login, Apple login, and phone number verification login, but we wanted to add an email link login AKA password-less login. This is what I learned how to write password-less login with the firebase &amp; flutter project.</p><p>Let’s first understand its flow. This is how I understand what is going on in a very high-level view.</p><ol><li>I have a login screen where users type in their email address in a text field.</li><li>When users click the “continue” button, it verifies the email address and triggers a FirebaseAuth method; sendSignInLinkToEmail</li><li>sendSignInLinkToEmail sends an email that has a login link. The method also contains parameters that tell firebase where to go after the link is clicked.</li><li>WidgetsBinding is observing the app’s state, whether the app is in the background or foreground. When the app state is resumed (users open the email app and click the link which opens your app again, aka resume), the AuthService methodhandleEmailLinkis triggered.</li><li>handleEmailLink takes 1) a dynamic link passed from firebase, 2) the email the user typed in, and then it returns firebase authenticated user object.</li><li>If the user object is not null and emailVerified field is true, then this user is authenticated!</li></ol><p>Let’s get to the code!</p><p>** This code snippet is bits and parts of crucial lines of my stateful widget. Please take the principle and apply it to your codebase.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61f68d568da8d43a01353c3c9ba320cf/href">https://medium.com/media/61f68d568da8d43a01353c3c9ba320cf/href</a></iframe><p>**1</p><p>What is url? Reference from firebase <a href="https://firebase.google.com/docs/auth/ios/email-link-auth#:~:text=The%20deep%20link%20to%20embed%20and%20any%20additional%20state%20to%20be%20passed%20along">doc</a>:</p><blockquote><em>The deep link to embed and any additional state to be passed along. The link’s domain has to be whitelisted in the Firebase Console list of authorized domains, which can be found by going to the Sign-in method tab (Authentication -&gt; Sign-in method).</em></blockquote><p>**2 **3</p><p>What is andriodPackageName and iOSBundleId?</p><p>You can find your android package name and iOS bundle id on the firebase console general setting page.</p><p>**4</p><p>What is dynamicLinkDomain? Reference from firebase official <a href="https://firebase.google.com/docs/auth/ios/email-link-auth#:~:text=When%20multiple%20custom%20dynamic%20link%20domains%20are%20defined%20for%20a%20project%2C%20specify%20which%20one%20to%20use%20when%20the%20link%20is%20to%20be%20opened%20via%20a%20specified%20mobile%20app%20(for%20example%2C%20example.page.link).%20Otherwise%20the%20first%20domain%20is%20automatically%20selected.">doc</a>:</p><blockquote><em>When multiple custom dynamic link domains are defined for a project, specify which one to use when the link is to be opened via a specified mobile app (for example, </em><em>example.page.link). Otherwise the first domain is automatically selected.</em></blockquote><p>As I figure this out, <a href="https://medium.com/firebase-developers/dive-into-firebase-auth-on-flutter-email-and-link-sign-in-e51603eb08f8">this article</a> and <a href="https://medium.com/@akhilaand/passwordless-email-sign-in-using-flutter-and-firebase-dynamic-link-ace3906c70a7">this article</a> helped me a lot. I recommend checking multiple resources to take principles and apply them to your codebase.</p><p>You might wonder how to handle a user who tries to log in with the same email address but a different method (ex. google login and password-less login with the same email address). Luckily, firebase already handles that and you can edit the setting from firebase console &gt; Authentication &gt; Sign-in method &gt; Advanced.</p><h3>Conclusion</h3><p>Whenever I try to implement something new, it helps me to first understand the mechanism and flow, and then compare multiple articles or documentation. Through the process, I eventually figure out how to make it work on my codebase. I hope this article can be one of your resources that leads you to your solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f6db00877a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Send HTML Email Using Free Tools]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/how-to-send-html-email-using-free-tools-eafb4873f174?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/eafb4873f174</guid>
            <category><![CDATA[html-email-template]]></category>
            <category><![CDATA[html-email]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 17:55:17 GMT</pubDate>
            <atom:updated>2022-02-21T17:55:17.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZxEupZLIPECZnOo_SNKZg.png" /></figure><p>I wanted to send out cool-looking HTML emails to remind weekly schedule for people who go to the same local church. Obviously, this is not my business but volunteer work, and I’m not trying to grow the number of subscriptions or anything. I just wanted to create HTML emails for free just for fun.</p><p>I googled “HTML email template builder” and tried three tools that came top on my search result. I explain the pros and cons and why I ended up choosing the one I used.</p><h3>BEE Free</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*HvKsOyeOpR7lCfSpJJmcfA.png" /></figure><p>Access their site from <a href="https://beefree.io/?utm_source=google&amp;utm_medium=cpc&amp;utm_campaign=15920450875&amp;utm_content=&amp;gclid=Cj0KCQiAjc2QBhDgARIsAMc3SqRGJaVw15YlI9VMV6FqHDCKRtm9ZbTuDyL8qS2z5m9KmSltRjljEtsaAsM5EALw_wcB">here</a>.</p><p><strong>Pros:</strong></p><p>This site lets you create HTML emails without signing up. It has many templates to start from.</p><p><strong>Cons:</strong></p><p>Because it does not require signing up for the free account, it will not save your template. I was planning to reuse the same design every week, so this did not work for me.</p><p>Also, the free account only lets you download .html files, so I had to open the HTML on a browser → copy the whole content → past it on Gmail.</p><p>It worked perfectly if I open the email on my laptop, but when I open the email on my iPhone, a few of the alignments are off. I could not figure that out, so I gave up and moved on to the next tool.</p><h3>Mailchimp</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SiIOER4fJzq6PIQS5sV7_A.png" /></figure><p>Access their site from <a href="https://mailchimp.com/">here</a>.</p><p><strong>Pros:</strong></p><p>Many organizations use Mailchimp. I like their UI.</p><p><strong>Cons:</strong></p><p>Their template builder is just like every other builder tool, but it won’t let me insert a widget onto another widget. They have an Image + Text widget but it won’t let me resize the image on the widget. I wanted background color on the image + text widget but the image expanded to the full width and background colors looked chopped in half by the image … Anyway, I could not make it in the way I wanted.</p><p>Also, for the free account, the email has to have this logo on the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*w240HuDXuFqUIBcO0MhCxg.png" /></figure><p>I don’t want my church people to see this because I don’t want them to feel like this is business! So this was the deal-breaker for me and I moved on to the next tool.</p><h3>Omnisend</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5kW0IDmc0aIyLb1wV-kkw.png" /></figure><p>Access their site from <a href="https://www.omnisend.com/">here</a>.</p><p><strong>Pros:</strong></p><p>I like their UI. The free account has everything I needed. No company logo is required in the email. I can see the basic data such as who opened the email. Basically, Omnisend is the tool I ended up using!</p><p><strong>Cons:</strong></p><p>So far so good! Just know that when you send a testing email, the subject line starts with [preview]. I was worried that it will show up on real emails too, but it won’t. So no worries!</p><p>Conclusion:</p><p>I’m sure there are lot more tools out there, but these are the three tools I encountered and the decisions I made. I hope you will find a perfect tool for you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eafb4873f174" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey of Becoming a Full-Time Software Engineer]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/my-journey-of-becoming-a-full-time-software-engineer-28a8ff95aac8?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/28a8ff95aac8</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[software-engineer-jobs]]></category>
            <category><![CDATA[full-time-jobs]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 06:15:04 GMT</pubDate>
            <atom:updated>2022-02-14T06:15:04.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*vK7Im-Zh7CC8Ug18" /></figure><p>I was born and raised in Japan. My parents are blue-collar workers and they’ve never been tech-savvy. I did fine with math classes, not particularly felt fascinated by it. However, I liked the aspect of math that there is only one right answer and there are multiple ways to get to it. I asked for a laptop when I was in middle school, and my parents gave me a cheap Lenovo laptop. I can’t remember what exactly I used the laptop for, but it was nothing crazy but excel or word documents, etc.</p><p>I started university in the United States and I wasn’t super sure about which major to choose. Then I remembered that my friend’s father was talking about how Information Systems was a hot major at the time. He was a university professor in Japan. So I decided to major in Information Systems. I liked the fact that there were not many girls choosing a techie path and I could be unique because my personality liked to be different from others.</p><p>Information Systems is like in between business and computer science. Most people who graduated from this program went on various paths such as project/product management, cyber security, software engineering, tech consulting, etc. I started to learn coding in my junior year for the first time in my entire life. It was a big learning curve and I thought it was very frustrating. I tried to avoid coding because it was stressful and I thought I would pursue project management or something.</p><p>Even I thought I wasn’t going to be a programmer, I wanted to get a little more techie job on my resume, so I got a student programmer on-campus job in the summer. Before this job, I only wrote code for my class, however, I had to write code the whole day every day for the entire summer. This was the turning point. It was a big learning curve again and I was mentally exhausted at the end of the day, but surprising thing is that you eventually get used to it. At the end of the summer, I was able to write code the whole day and I was mentally fine.</p><p>This experience gave me comfort and confidence in programming. I started to think about pursuing a software engineer. Next summer, I got a software engineer internship. It was a great experience to work with actual engineer teams. After the internship was over, I started to work for a small software startup company in the school year. I enjoyed the fast startup environment so much, and most importantly, I trusted and respected the people who I worked with. I gained a lot more confidence and experience through this startup experience.</p><p>At the same time, I started to recruit for the full-time position hardcore. After four months of applying to a bunch of companies for full-time positions, I received three offers and signed with one.</p><p>Looking back on my journey, I’m glad that I gave a try on programming. I’m glad that I kept trying long enough that I started to have confidence. Learning to be a software engineer requires a lot of patience, I guess any professional skills are the same way. But you can do it if you are patient with yourself. Let us write our own journey and support those who are going through the same experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28a8ff95aac8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is BuildContext in Super Simple Words]]></title>
            <link>https://medium.com/@coffee-chat-with-yuri/what-is-buildcontext-in-super-simple-words-5f260e510205?source=rss-5abad3fdb514------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f260e510205</guid>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[build-context]]></category>
            <dc:creator><![CDATA[Yuri]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 06:18:21 GMT</pubDate>
            <atom:updated>2022-02-07T06:18:21.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPLhQWp9OXx75_8Mzt7E_Q.jpeg" /></figure><p>We build our mobile app with Flutter Dart. I was refactoring a part of our app, and I came across a situation where I have to pass around BuildContext of a widget in order to make showCupertinoModalBottomSheet function work. I had a couple of bugs so I was trying to understand the structure, then I realized I didn&#39;t fully understand what BuildContext is. This is what I learned about BuildContext and I write it in a super simple way because I love simple and short explanations. If you want to know more in-depth, <a href="https://medium.com/flutter-community/widget-state-buildcontext-inheritedwidget-898d671b7956">this article</a> is very well-written and it helped me a lot to grasp.</p><p>BuildContext is simply a reference to the specific widget. Flutter is very object-oriented and writing flutter to me is like building legos; you write widgets under widgets and you keep building. We call it “Widget Tree” because it’s literally a tree of widgets that you can visually see on the flutter debug tool. BuildContext tells us where the widget is located within the tree.</p><p>We usually structure our codebase in a way that one file represents one widget. They are either Stateless Widget or Stateful Widget. Either way, you see the part it starts like this in those files:</p><pre>@override<br>Widget build(BuildContext context) {<br>...</pre><p>That’s where the BuildContext of that widget is created.</p><p>I really like this diagram that the author of the article I recommended above used to explain the notion of BuildContext. Each color in the image represents a BuildContext.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhU_a2J9YtKcOaDQ_WDD6A.png" /></figure><p>The bug I had was because I was passing the wrong BuildContext to showCupertinoModalBottomSheet function and that&#39;s why the button sheet was not showing up the way I wanted to. Now I have a pretty good basic understanding of what BuildContext is. It helps a lot to understand why certain functions and parts of our code require a BuildContext!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f260e510205" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>