<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Personal Blog</title><description>Thoughts, ideas, and creative work</description><link>https://personal-website-8ek.pages.dev/</link><item><title>Working with Modern JavaScript Features</title><link>https://personal-website-8ek.pages.dev/blog/sample-technical-post/</link><guid isPermaLink="true">https://personal-website-8ek.pages.dev/blog/sample-technical-post/</guid><description>A look at some useful JavaScript and TypeScript patterns for cleaner, more maintainable code.</description><pubDate>Sat, 20 Jan 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Modern JavaScript has come a long way. Here are some patterns I find myself reaching for regularly.&lt;/p&gt;
&lt;h2&gt;Destructuring and Defaults&lt;/h2&gt;
&lt;p&gt;Destructuring with default values makes function arguments much cleaner:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function createUser({ name, email, role = &apos;user&apos; } = {}) {
  return {
    name,
    email,
    role,
    createdAt: new Date()
  };
}

const user = createUser({ name: &apos;Alice&apos;, email: &apos;alice@example.com&apos; });
console.log(user.role); // &apos;user&apos;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;TypeScript Utility Types&lt;/h2&gt;
&lt;p&gt;TypeScript&apos;s utility types are incredibly powerful for type transformations:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;interface User {
  id: number;
  name: string;
  email: string;
  createdAt: Date;
}

// Make all properties optional
type PartialUser = Partial&amp;lt;User&amp;gt;;

// Pick only specific properties
type UserPreview = Pick&amp;lt;User, &apos;id&apos; | &apos;name&apos;&amp;gt;;

// Omit properties you don&apos;t need
type UserWithoutDates = Omit&amp;lt;User, &apos;createdAt&apos;&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Async Patterns&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;Promise.allSettled&lt;/code&gt; method is great when you need to run multiple async operations and handle each result individually:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const results = await Promise.allSettled([
  fetchUser(1),
  fetchUser(2),
  fetchUser(3)
]);

results.forEach((result, index) =&amp;gt; {
  if (result.status === &apos;fulfilled&apos;) {
    console.log(`User ${index + 1}:`, result.value);
  } else {
    console.log(`User ${index + 1} failed:`, result.reason);
  }
});
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;These patterns have become second nature in my daily work. The key is knowing when to reach for them and not over-engineering simple solutions.&lt;/p&gt;
&lt;p&gt;What patterns do you find yourself using most often?&lt;/p&gt;
</content:encoded></item><item><title>Welcome to My Blog</title><link>https://personal-website-8ek.pages.dev/blog/welcome-post/</link><guid isPermaLink="true">https://personal-website-8ek.pages.dev/blog/welcome-post/</guid><description>An introduction to this space where I share thoughts, ideas, and creative work.</description><pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Welcome! This is a place where I share my thoughts on various topics that interest me.&lt;/p&gt;
&lt;h2&gt;What to Expect&lt;/h2&gt;
&lt;p&gt;Here&apos;s what you&apos;ll find in this blog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Personal essays&lt;/strong&gt; exploring ideas and experiences&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Technical writing&lt;/strong&gt; on tools and technologies I work with&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Creative pieces&lt;/strong&gt; that push the boundaries of traditional blogging&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Why I Write&lt;/h2&gt;
&lt;p&gt;Writing helps me think through problems and crystallize ideas. There&apos;s something powerful about putting thoughts into words that forces clarity.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The act of writing is the act of discovering what you believe.
— David Hare&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I hope you find something useful or thought-provoking here. Feel free to reach out if anything resonates with you.&lt;/p&gt;
&lt;h2&gt;What&apos;s Next&lt;/h2&gt;
&lt;p&gt;I&apos;ll be sharing posts on a variety of topics. Some will be deeply technical, others more reflective. The common thread is genuine curiosity about how things work and why they matter.&lt;/p&gt;
&lt;p&gt;Thanks for visiting!&lt;/p&gt;
</content:encoded></item></channel></rss>