<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joyce Leung</title>
    <description>The latest articles on DEV Community by Joyce Leung (@jleung230).</description>
    <link>https://dev.to/jleung230</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2926985%2F306720d1-b532-443f-91fb-0ca9f62ddf5c.jpg</url>
      <title>DEV Community: Joyce Leung</title>
      <link>https://dev.to/jleung230</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jleung230"/>
    <language>en</language>
    <item>
      <title>What I realized while learning Chrome DevTools</title>
      <dc:creator>Joyce Leung</dc:creator>
      <pubDate>Tue, 18 Mar 2025 16:30:00 +0000</pubDate>
      <link>https://dev.to/jleung230/what-i-realized-while-learning-chrome-devtools-21nb</link>
      <guid>https://dev.to/jleung230/what-i-realized-while-learning-chrome-devtools-21nb</guid>
      <description>&lt;p&gt;This past week, I started exploring Chrome DevTools through The Odin Project's &lt;a href="https://www.theodinproject.com/lessons/foundations-inspecting-html-and-css" rel="noopener noreferrer"&gt;Inspecting HTML and CSS module&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It was like opening up a new world for me, because I'm finally (and slowly) understanding what happens when you click "Inspect" on an element from a Chrome web page.&lt;/p&gt;

&lt;p&gt;While familiarizing myself with the tool, I realized two recurring concepts:&lt;/p&gt;

&lt;h2&gt;
  
  
  One symbol, different meanings
&lt;/h2&gt;

&lt;p&gt;Previously, I learned that the &lt;code&gt;$&lt;/code&gt; symbol represents a command prompt in Linux.&lt;/p&gt;

&lt;p&gt;In DevTools, the same symbol is something you can type in as a command in the Console, e.g., &lt;code&gt;$0&lt;/code&gt;, which will return the node selected in the DOM tree.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shortcuts are helpful
&lt;/h2&gt;

&lt;p&gt;Shortcuts; it appeared in the worlds of basic HTML, terminal commands, and now DevTools as well.&lt;/p&gt;

&lt;p&gt;I tend to visualize shortcuts as &lt;strong&gt;a language's own set of shortened commands.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each command, often made up of multiple individual elements, forms a cohesive unit with meaning when combined. &lt;/p&gt;

&lt;p&gt;These commands help me communicate with another "speaker" in conversation, i.e., the computer.&lt;/p&gt;

&lt;p&gt;For example, pressing &lt;code&gt;CTRL&lt;/code&gt; + &lt;code&gt;ALT&lt;/code&gt; + &lt;code&gt;T&lt;/code&gt; together opens the terminal in Linux.&lt;/p&gt;

&lt;p&gt;Meanwhile, if you have DevTools opened on your Chrome web page, you can press &lt;code&gt;Esc&lt;/code&gt; to open the Console drawer. &lt;/p&gt;

&lt;p&gt;It's pretty cool how various tech programs use similar "vocabulary", though these vocabulary terms and expressions can have vastly different meanings and functions in each program.&lt;/p&gt;

</description>
      <category>learning</category>
      <category>beginners</category>
      <category>cli</category>
    </item>
    <item>
      <title>Why does my bulleted list look odd on the web browser?</title>
      <dc:creator>Joyce Leung</dc:creator>
      <pubDate>Thu, 13 Mar 2025 20:13:42 +0000</pubDate>
      <link>https://dev.to/jleung230/why-does-my-bulleted-list-look-odd-on-the-web-browser-32f5</link>
      <guid>https://dev.to/jleung230/why-does-my-bulleted-list-look-odd-on-the-web-browser-32f5</guid>
      <description>&lt;p&gt;When editing my recipe project, I noticed something looking rather odd.&lt;/p&gt;

&lt;p&gt;In a center-aligned bulleted list, the bullets are far separated from the list items, all huddled towards the left.&lt;/p&gt;

&lt;h1&gt;
  
  
  Approach 1: Default List Format
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flii8d0lvgwc6s2kmz70h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flii8d0lvgwc6s2kmz70h.png" alt="Image description" width="800" height="152"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h2&amp;gt;Ingredients&amp;lt;/h2&amp;gt;
    &amp;lt;ul&amp;gt;
        &amp;lt;li&amp;gt;1 large egg&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;1 ripe avocado, pitted and peeled&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;1 slice of bread&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;1/4 tsp black pepper&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;1 teaspoon lemon juice&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;1 pinch of salt&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;1 pinch of cayenne pepper powder&amp;lt;/li&amp;gt;
    &amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My first thought was, &lt;em&gt;is it because the browser needs to distribute each list item evenly across the page?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;And at the same time, it needs to leave plenty of space between the text and each bullet point?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I later learned this happens because bullets are left-aligned by default, and the text is centered independently within a container.&lt;/p&gt;

&lt;p&gt;I decided to play around with the formatting...&lt;/p&gt;

&lt;h1&gt;
  
  
  Approach 2: Removing the &lt;code&gt;ul&lt;/code&gt; element
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhm2ed930k0p633u5kf0g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhm2ed930k0p633u5kf0g.png" alt="Image description" width="800" height="141"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h2&amp;gt;Ingredients&amp;lt;/h2&amp;gt;
      &amp;lt;li&amp;gt;1 large egg&amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;1 ripe avocado, pitted and peeled&amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;1 slice of bread&amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;1/4 tsp black pepper&amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;1 teaspoon lemon juice&amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;1 pinch of salt&amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;1 pinch of cayenne pepper powder&amp;lt;/li&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without the &lt;code&gt;ul&lt;/code&gt; element, the &lt;code&gt;li&lt;/code&gt; elements are treated as regular block elements standing on their own. &lt;/p&gt;

&lt;p&gt;But the browser will still interpret the &lt;code&gt;li&lt;/code&gt; elements as list items, and add bullets to each item. And since there are no &lt;code&gt;ul&lt;/code&gt; elements to apply the default styling onto the list items, the bullets are also center-aligned. &lt;/p&gt;

&lt;p&gt;Now what happens if you take out both &lt;code&gt;ul&lt;/code&gt; and the &lt;code&gt;li&lt;/code&gt; elements?&lt;/p&gt;

&lt;h1&gt;
  
  
  Approach 3: Removing &lt;code&gt;ul&lt;/code&gt; and &lt;code&gt;li&lt;/code&gt; elements
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvq968rz5wbuewrshaq1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvq968rz5wbuewrshaq1k.png" alt="Image description" width="800" height="140"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;
   1 large egg
   &amp;lt;br&amp;gt;
   1 ripe avocado, pitted and peeled
   &amp;lt;br&amp;gt;
   1 slice of bread
   &amp;lt;br&amp;gt;
   1/4 tsp black pepper
   &amp;lt;br&amp;gt;
   1 teaspoon lemon juice
   &amp;lt;br&amp;gt;
   1 pinch of salt
   &amp;lt;br&amp;gt;
   1 pinch of cayenne pepper powder
&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of list items, the text is structured as paragraph elements. The bullet points have disappeared, and although this type of formatting looks more bare bones, it has a cleaner appearance compared to the previous approach above. &lt;/p&gt;

&lt;p&gt;I also added the &lt;code&gt;br&lt;/code&gt; element to add a line break between each text item.&lt;/p&gt;

&lt;p&gt;After trying all three approaches, I decided to go with the last one since it looks more tidy than the other two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next step&lt;/strong&gt;: find out different ways to format a bulleted list, but in CSS!&lt;/p&gt;

</description>
      <category>html</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>learning</category>
    </item>
    <item>
      <title>4 lessons from learning webdev as a beginner</title>
      <dc:creator>Joyce Leung</dc:creator>
      <pubDate>Tue, 11 Mar 2025 22:41:44 +0000</pubDate>
      <link>https://dev.to/jleung230/4-lessons-from-learning-webdev-as-a-beginner-2nm1</link>
      <guid>https://dev.to/jleung230/4-lessons-from-learning-webdev-as-a-beginner-2nm1</guid>
      <description>&lt;p&gt;In February, I decided to take a plunge in web development. &lt;/p&gt;

&lt;p&gt;With very little technical knowledge, I started &lt;a href="https://www.theodinproject.com/paths/foundations/courses/foundations" rel="noopener noreferrer"&gt;The Odin Project's Foundations course&lt;/a&gt; not knowing anything about HTML and CSS, nor the difference between the Web and the Internet.&lt;/p&gt;

&lt;p&gt;Fast forward now, I've learned a little bit about computer basics. I also built my first recipe web pages and published them on GitHub just last week! &lt;/p&gt;

&lt;p&gt;Here are the standout lessons I've learned throughout the past few months:&lt;/p&gt;

&lt;h1&gt;
  
  
  1. Get used to being a language learner (many times!)
&lt;/h1&gt;

&lt;p&gt;Learning terminal commands, as well as basic HTML and CSS was like learning a new language. &lt;/p&gt;

&lt;p&gt;You learn the names and functions of different elements. &lt;/p&gt;

&lt;p&gt;You also learn the syntax of a "sentence" or "paragraph"— how these elements can be structured to form a coherent part, where each part has their unique meaning and purpose.&lt;/p&gt;

&lt;p&gt;The fields of coding and linguistics also seem to describe and visualize relationships in similar ways. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Using terms like "ancestor", "descendant", "parent", and "child" to describe relationships between elements&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Organizing elements into nesting structures (e.g., subdirectories inside the root directory vs. noun and verb phrases in a sentence) , with each element having different dependencies and hierarchy levels &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A command doesn't always require an option and an argument, just like how an intransitive verb doesn't need to take on an object argument&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  2. Understand your current location and directions
&lt;/h1&gt;

&lt;p&gt;The concept first came up when I was learning Linux terminal commands. &lt;/p&gt;

&lt;p&gt;Many times, I tried to jump to a directory located multiple paths away, or search for a specific file or directory, only for the terminal to return an error because I was located in the incorrect directory.&lt;/p&gt;

&lt;p&gt;Then I realized this concept also applies to Git. &lt;/p&gt;

&lt;p&gt;It's good practice to understand where your files are located and their current statuses, so you don't accidentally push your unfinished files to a remote repository.&lt;/p&gt;

&lt;p&gt;Similarly, developers may need to know where they're located when writing and debugging code, so they can better keep track of their progress and issues that come up along the way.&lt;/p&gt;

&lt;p&gt;No matter if you're working on a single line of code, jumping between directories or Git branches, I realized it's important to understand clearly where you are and where you're going at the current time.&lt;/p&gt;

&lt;h1&gt;
  
  
  3. Naming is important
&lt;/h1&gt;

&lt;p&gt;Going hand-in-hand with the concept of understanding your current location, naming items correctly can save time and make locating files easier.&lt;/p&gt;

&lt;p&gt;One way I learned this is by making sure the file extension name matches the type of data or information in the file.&lt;/p&gt;

&lt;p&gt;Space and capitalization also matter. &lt;/p&gt;

&lt;p&gt;For example, typing the Linux terminal commands &lt;code&gt;ls -s&lt;/code&gt; vs. &lt;code&gt;ls -S&lt;/code&gt; can yield different results.&lt;/p&gt;

&lt;p&gt;When looking at the names of a programming language or a digital program, I think about where they came from, why were they named that way, and the impact they bring for the mass audience or a specific group of audience.&lt;/p&gt;

&lt;p&gt;A word like "Windows" now carries very different meanings and interpretations compared to decades ago.&lt;/p&gt;

&lt;p&gt;Side note: why are there so many food words used in technological terms, like "flavors of Ubuntu", "Raspberry Pi", "Linux kernel"? &lt;/p&gt;

&lt;h1&gt;
  
  
  4. One problem, many solutions
&lt;/h1&gt;

&lt;p&gt;Oftentimes, there are many different ways to create something or to perform a specific action.&lt;/p&gt;

&lt;p&gt;For example, in Linux commands, you can create a text file using a text editor, or by using the touch command.&lt;/p&gt;

&lt;p&gt;Currently, I'm on the CSS Cascade module from The Odin Project. I learned that there are different ways to style a button element by increasing its higher specificity value.&lt;/p&gt;

&lt;p&gt;So far, I enjoy that there is often no simple 1:1 solution to building something. There can be different solutions, and each person may write their solutions differently.&lt;/p&gt;

&lt;p&gt;As I'm slowly adopting this mindset, I also find myself coming up with more questions whenever I'm working through practice exercises:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Why did this solution work or not work?&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;What other ways can you solve this specific problem?&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;How can you make your solution "better" or more efficient?&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Looking back to these months of learning, a part of me feels silly to be starting from ground zero when the tech field is developing so rapidly everyday. &lt;/p&gt;

&lt;p&gt;But learning each language's syntax, how elements interact with each other, and thinking of different ways to make something work (or manually troubleshooting why something doesn't work) is still 100% the fun, and a critical skill to have in the age of AI.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>learning</category>
      <category>beginners</category>
      <category>html</category>
    </item>
  </channel>
</rss>
