<?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 Hahnbee Lee on Medium]]></title>
        <description><![CDATA[Stories by Hahnbee Lee on Medium]]></description>
        <link>https://medium.com/@hl985?source=rss-888dfa574016------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OpQAlQ03h9GkPcXaSL4xpQ.jpeg</url>
            <title>Stories by Hahnbee Lee on Medium</title>
            <link>https://medium.com/@hl985?source=rss-888dfa574016------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:30:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hl985/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[Receive Slack Notifications for Documentation Changes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@hl985/receive-slack-notifications-for-documentation-changes-69b603634e2e?source=rss-888dfa574016------2"><img src="https://cdn-images-1.medium.com/max/1468/1*vI5bfjw0rFKPSsiYb6wxLw.png" width="1468"></a></p><p class="medium-feed-snippet">My co-founder, Han Wang, and I just participated in the Y Combinator W22 batch and one thing we thought was super helpful was an automated&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@hl985/receive-slack-notifications-for-documentation-changes-69b603634e2e?source=rss-888dfa574016------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@hl985/receive-slack-notifications-for-documentation-changes-69b603634e2e?source=rss-888dfa574016------2</link>
            <guid isPermaLink="false">https://medium.com/p/69b603634e2e</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[workplace]]></category>
            <dc:creator><![CDATA[Hahnbee Lee]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 17:00:03 GMT</pubDate>
            <atom:updated>2022-06-21T17:13:07.584Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Does Self-Documenting Code Actually Exist?]]></title>
            <link>https://medium.com/better-programming/does-self-documenting-code-actually-exist-8824b22e9a0f?source=rss-888dfa574016------2</link>
            <guid isPermaLink="false">https://medium.com/p/8824b22e9a0f</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Hahnbee Lee]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 15:11:06 GMT</pubDate>
            <atom:updated>2022-03-23T15:11:06.130Z</atom:updated>
            <content:encoded><![CDATA[<h4>Meet VS Code Docstring Skeleton Generator and the AI Doc Writer extensions to simplify your documentation process</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pEjPS-SNr1rW5inNJj2sFA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There seem to be two schools of thought when it comes to documentation within codebases: you either believe code should be documented or you abhorrently hate documentation and refuse to ever write a docstring.</p><p>Nowadays, many professors require their students to write documentation for every function — deducting points if a student forgets to accompany their code with documentation.</p><p>On the other hand, many people argue against in-line documentation because it gets out-of-date quickly and people believe code should be self-documenting.</p><p>According to <a href="https://en.wikipedia.org/wiki/Self-documenting_code">Wikipedia</a>, self-documenting code “follows naming conventions that enable use of the system without prior specific knowledge”. It’s a given that any good programmer should meaningfully name their variables so that they describe the actual functionality of said variable.</p><p>However, how much prior knowledge should you expect other members of your team to have? Is it expected that the person whose reading your code should be fluent in the language you’re coding in? And how do you balance readability and conciseness?</p><h3>Balancing readability and conciseness</h3><p>Here are 3 different ways a return statement within a function could be written in JavaScript:</p><p>1.</p><pre>...<br>if (fruit != null) {<br>  return fruit;<br>} else {<br>  return “apple”;<br>}</pre><p>2.</p><pre>...<br>  return fruit != null ? fruit : &quot;apple&quot;;</pre><p>3.</p><pre>...<br>  return fruit ?? “apple”;</pre><p>The first statement is technically the most readable — especially to a junior developer who is learning JavaScript for the first time. But, you can see how silly it is to argue that the first snippet is the best way to check if the variable fruitis null and return &quot;apple&quot; if it is. Whether a snippet of code is considered readable/self-documenting is so subjective and there is no right answer.</p><p>Additionally, as code gets more complex, the barrier to entry gets much higher for someone with no prior knowledge of the codebase to understand what’s going on from the first glance. The matter of fact is that a programmer can be extremely thoughtful, use best practices, and intentionally name their variables and it still wouldn’t be considered “self-documenting” for many people.</p><p>For example, you could have a function that implements the knn algorithm blatantly named knn and someone who has never heard of the algorithm before will still have no idea what the function is doing.</p><p>When writing code there are many factors to be taken into consideration including readability, conciseness, modularity, and the list goes on. And you should do all the best practices involved to produce self-documenting code, but it would be quite difficult to definitively label a codebase as “self-documenting” purely because of the subjective nature of the term.</p><p>But how does documentation play into the picture?</p><p>One of the main arguments against documentation is that it gets out-of-date quickly. If someone changes the code and doesn’t think to change the docstring, the compiler will still compile with incorrect documentation. Many people also argue that documentation should only explain the <em>why</em> and not the <em>what</em>.</p><p>However, the argument for documentation is that no matter what prior knowledge you have, it decreases the barrier of entry for quickly and easily understanding the code. If all of your functions are documented, then it is objectively easier to read the plain english description of all the functions rather than reading the code and trying to make sense of the logic amidst the syntax.</p><p>Additionally, almost all programming languages have a defined format for function, class, and variable documentation. For example, when I was learning Java, I would constantly reference the Oracle Javadoc that showcased documentation for Java standard’s String and Array classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kndgZC3PTcHibxMfj5aviw.png" /><figcaption>Screenshot of <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html">Oracle’s Javadoc</a> about the String class</figcaption></figure><p>In this case, the documentation is useful because if it didn’t exist I wouldn’t know which functions existed in the first place. Along with a documentation style, programming languages usually have a software that gathers all the documents and generates a page that can be easily searched through. This is helpful if you’re providing an API as a service and your customer wants to know how to work with your software. In these cases, the documentation is helpful because without it others wouldn’t know about the existence of certain functions and it ultimately promotes discoverability.</p><p>In addition to software that compiles your documentation into a page, there are tools that aid in documenting code. For example, VS Code has a feature that automatically fills in the parameters and creates the structure for the standard documentation format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*N66vSjE9GxEzAAX_G3sebA.gif" /><figcaption>VS Code Documentation Skeleton Generation</figcaption></figure><p>To take it one step further, the <a href="https://marketplace.visualstudio.com/items?itemName=mintlify.document">AI Doc Writer for Python, JavaScript, TypeScript, C, C++, PHP, Java, and C#</a> extension fully writes out the entire docstring including the function and parameter descriptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Yg-jtpGOj--ni0ZpwnFeaw.gif" /><figcaption>Demo of <a href="https://marketplace.visualstudio.com/items?itemName=mintlify.document">AI Doc Writer</a></figcaption></figure><p>With new tools like the VS Code Docstring Skeleton Generator and AI Doc Writer Extension, the activation energy required to document your code is now much lower — instead of spending 30 seconds to document your code you can spend 5 seconds generating documentation.</p><p>The discussion about code documentation is a multi-faceted one. There are many factors that play into code quality that go beyond documentation. With new technologies arising to make it easier to document code, the argument that it’s difficult to keep documentation up-to-date diminishes.</p><p>Ultimately, I do not have an answer for whether self-documenting code truly exists or not, but rather I advocate that all programmers should code with best practices in mind and with the intent to make it easy for others to understand it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8824b22e9a0f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/does-self-documenting-code-actually-exist-8824b22e9a0f">Does Self-Documenting Code Actually Exist?</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Too Lazy to Write Documentation? Let the AI Write It for You]]></title>
            <link>https://medium.com/better-programming/too-lazy-to-write-documentation-let-the-ai-write-it-for-you-8574f7cd11b2?source=rss-888dfa574016------2</link>
            <guid isPermaLink="false">https://medium.com/p/8574f7cd11b2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Hahnbee Lee]]></dc:creator>
            <pubDate>Mon, 31 Jan 2022 18:29:05 GMT</pubDate>
            <atom:updated>2022-01-31T18:29:05.370Z</atom:updated>
            <content:encoded><![CDATA[<h4>A first look at AI Doc Writer VS code extension</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hRjO40SvJmcKrzqc" /><figcaption>Photo by <a href="https://unsplash.com/@ubahnverleih?utm_source=medium&amp;utm_medium=referral">C M</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’ve never met a developer that enjoys writing documentation. At the very least they understand the value of it and will begrudgingly write it, but will never enjoy the process of writing it.</p><p>Some people go by the philosophy that good code should document itself, but if this were true then why is that one person who is familiar with the entire codebase so valuable to a team? There is a lot of knowledge, reasoning, and context that cannot simply be deduced from raw code. Good documentation that’s well-maintained only adds value and context to a codebase.</p><p>This particularly holds for untyped programming languages. The one language that sticks out to me is Python. Although it’s considered extremely “readable”, many times I find myself trying to deduce the type of a variable or parameter by looking for other places in the code where it’s used.</p><p>Here’s an example of a grammar object:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1468150cb6591b69874379c3846360d4/href">https://medium.com/media/1468150cb6591b69874379c3846360d4/href</a></iframe><p>Here is the same object with the documentation that it came with:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d06d94d5b30a0f377e498ff26c81741c/href">https://medium.com/media/d06d94d5b30a0f377e498ff26c81741c/href</a></iframe><p>Without the documentation, it’s nearly impossible to deduce the type/structure of the rules property.</p><p><a href="https://marketplace.visualstudio.com/items?itemName=mintlify.document">AI Doc Writer for Javascript, Typescript, Python, and PHP</a> is a VS Code extension that generates documentation for you using AI. The way it works is that you select the code you want to document and you press the ‘Generate docs’ button or hit the keyboard shortcut Cmd/Ctrl + .</p><p>Here it is in action:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fzfGNaY8aGjfCaxyGPBLwQ.gif" /><figcaption>AI Doc Writer Demo. Photo courtesy of author.</figcaption></figure><p>Now, how well can AI understand your code?</p><p>Let’s look at some examples.</p><p>Here’s the code from the above demo and the documentation that the AI generated:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d4bb093cb9617b5c6679d95a348c43e/href">https://medium.com/media/8d4bb093cb9617b5c6679d95a348c43e/href</a></iframe><p>The AI gave a concise summary of each function and short descriptions of the parameters.</p><p>Let’s see how it fares with some Javascript code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92438836559eb02371f594a35f6d6f6a/href">https://medium.com/media/92438836559eb02371f594a35f6d6f6a/href</a></iframe><p>This output was particularly interesting to me because it was able to conclude that 15 was divisible by both 5 and 3 instead of stating that it prints “FizzBuzz” when i is divisible by 15. Then, this got me thinking how else could I test it — does it know simple geometry equations?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea43381e17488bf6ef4d5451b66e6491/href">https://medium.com/media/ea43381e17488bf6ef4d5451b66e6491/href</a></iframe><p>It does! It didn’t say “Multiply PI with r to the power of 2&quot; AKA it didn’t explain what the code does verbatim, but rather it was able to intelligently deduce that these variables were calculating geometry equations.</p><p>Overall, AI Doc Writer can save developers a lot of time while increasing the quality and readability of their codebases. It gives developers the power to intelligently explain and provide context to functions and code snippets in under a second.</p><p>Maybe it’s time to skip out on the dread of writing documentation and let AI do it for you.</p><h4>Start using AI Doc Writer</h4><p>Take a test run yourself! Head <a href="https://marketplace.visualstudio.com/items?itemName=mintlify.document">here</a> to get access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8574f7cd11b2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/too-lazy-to-write-documentation-let-the-ai-write-it-for-you-8574f7cd11b2">Too Lazy to Write Documentation? Let the AI Write It for You</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No-Body: A bathroom sign redesign]]></title>
            <link>https://medium.com/@hl985/no-body-a-bathroom-sign-redesign-69d8d24d3665?source=rss-888dfa574016------2</link>
            <guid isPermaLink="false">https://medium.com/p/69d8d24d3665</guid>
            <category><![CDATA[bathroom]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[inclusive-design]]></category>
            <dc:creator><![CDATA[Hahnbee Lee]]></dc:creator>
            <pubDate>Tue, 26 May 2020 20:54:14 GMT</pubDate>
            <atom:updated>2020-05-26T21:53:24.253Z</atom:updated>
            <content:encoded><![CDATA[<h3>No-Body: A bathroom signage redesign</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSn0CwWbnrE915AoyDcJ9Q.png" /></figure><p>We met up at Oishii Bowl, a Collegetown staple, to discuss the theme of diversity and inclusion. In the midst of the conversation, Lauren went to use the bathroom. She saw the bathroom sign representing a gender-neutral bathroom, and noticed that it was not inclusive at all because the figure in a dress did not represent who Lauren was, second year b.arch who never wore skirts. That’s when we resolved to redesign bathroom signs.</p><p>Bathroom signs are so common that they are usually overlooked, but in reality they reveal how people are categorized. During the Jim Crow era, they were used to segregate black and white people. Today, they are widely used to separate people by the gender binary: men and women. Because bathroom signs are representations for how society categorizes people, it is important that the signs are inclusive.</p><p><strong>Problems with the Binary Sign</strong></p><p>During our initial brainstorm, we intuitively knew that the current bathroom sign is not an accurate representation of gender because it depicts a traditional view of gender dynamics. The main visual indicator that differentiates the two stick figures is the dress, which is used to symbolize a female. Women became associated with the dress because traditional society attempted to prevent the mobility of women and place women in a more submissive role. The semiotics of the dress is deeply heteronormative, and so when people don’t fit this heteronormative standard, their presence in the bathroom is challenged.</p><p>This deeply affects people who look androgynous or are non-binary and/or transgender. In our research, we learned that, according to a 2015 survey published by the National Center for Transgender Equality, almost 60% of the 27,000 transgender respondents said that they avoided using public restrooms for fear of confrontation, including harassment or being the victim of assault. According to the report findings, transgender people are much more likely than anyone else to be assaulted in public restrooms. Overall the bathroom is not a safe place for transgender people because people don’t believe that trans people belong there.</p><p><strong>A First Attempt: Gender-Neutral Figures</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a_AhlDxuRTTCzxIBFRr3Ng.png" /></figure><p>After recognizing this significant problem, we wanted to redesign the binary sign to be more gender-neutral. In our initial design process, we started off by looking at the existing bathroom signs and our first move was to shift away from the dress. Secondly, we wanted to create a gender-neutral stick figure. Both of the designs involved distinguishing masculine and feminine features in a way that is both generic enough for people to understand and non- heteronormative. We thought of aspects of people’s appearance that could be an indicator: clothes, body language, and hair. We tested figures with skirts, pants, wide stances, narrow stances, short hair, and long hair, and plain old smiley faces.</p><p>We initially liked differentiating the man and woman by hair length for the binary sign. However, not all women have long hair and not all men have short hair, so we quickly recognized the need to move away from symbolization using the body and clothing. As for the gender neutral sign, we decided on a smiley face because no matter how hard we tried to create a gender neutral stick figure it ultimately looked masculine because masculine features are the default for what we consider gender neutral.</p><p><strong>The Turning Point: Why we had trouble creating figures</strong></p><p>We asked Nicholas Robinson, a friend of Hahnbee’s who identifies as non-binary, for feedback. They significantly broadened our perspectives and encouraged us to reiterate our design. They told us to completely deviate from the gender binary because it forces gender roles upon people: “If you are in the bathroom and you’re a woman who doesn’t look feminine or a man who doesn’t look masculine, then you can immediately feel like you do not belong.” All anyone wants to do is use the bathroom, and the binary prevents many people from doing so. Their advice helped us realize that we could be bolder with our redesign by not bringing any attention to the body. We were trying to cohesively represent people’s diverse gender identities, but it was paradoxical to try to create pictograms that are simultaneously inclusive and categorize people into a binary based on appearance. Our goal should have been to redesign the pictograms such that the bathroom would be a safe space for everybody.</p><p><strong>The Solution</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqHyUSS4frXYsFZKuhJe_w.png" /></figure><p>We shifted our redesign to represent the bathroom only by its function, rather than the stick</p><p>figures, because we believe that no body could represent everybody. We altered our set such</p><p>that the conventional binary bathrooms would be represented by the objects that reside within them. The men’s bathroom would be represented by a sink, urinal, and toilet while the women’s bathroom would be represented by only a sink and toilet. As for the gender neutral bathroom it would be represented by a roll of toilet paper. This solution successfully deviates from distinguishing people by their appearance and is easily universally recognizable. In an ideal world, we would go even further to suggest changing all bathrooms into gender neutral bathrooms, because it removes any type of distinction between people. However, realistically, many buildings already have separated bathrooms and some states have building codes that require two bathrooms.</p><p><strong>Critique and Feedback</strong></p><p>During our mid-semester project review with professor Denise Ramzy, we received overall positive feedback: we focused on a very specific problem, and our design overall achieved its goal of moving away from the gender binary. Some suggestions that we received included removing the sink because a sink’s presence in the bathroom is intuitive enough. It was also suggested that we eliminate the toilet paper and the gender neutral bathroom can be a door with all the objects on it. We also realized that we were focusing on transgender people, but the restroom experience affects many other groups of people. For example, fathers who want to change their baby’s diaper, are currently unable to do so because the baby changing table is in the women’s bathroom. There are also other issues such as comfort and privacy to take into account. With the erasure of the gender binary restrooms, many women might speak out about feeling uncomfortable or unsafe sharing the restroom with men, as it might incite other unseen consequences. These were considerations that we had overlooked but valuable feedback since our design does not exist in a vacuum, but rather in a rich context and social fabric. If we were to continue this project further, we would add more functionalities and make our design applicable and friendly to more people. In particular, we might add a handicap sign, tampon or pad dispenser sign, a wheelchair accessible sign, and a baby changing table sign.</p><p><strong>Where We’re Going</strong></p><p>Through this project we learned a lot about bathrooms and how to design inclusively. In the more immediate future, we hope to implement our design in the Milstein bathrooms (which currently do not have any signs distinguishing the two bathrooms) and submitting our redesign proposal to design competitions.</p><p>But in the grand scheme of things, we learned that signs and icons are an incredibly prevalent way of identifying and labeling, across a variety of platforms. Whether it’s an icon on a website or spray painted on the floor of a parking garage, the way we identify people and things matter. Our hope is that one day when we create signs, we will be more cognizant of the different types of people who may be included or excluded from the label.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69d8d24d3665" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>