<?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 Matthew Wall on Medium]]></title>
        <description><![CDATA[Stories by Matthew Wall on Medium]]></description>
        <link>https://medium.com/@mtw.?source=rss-ae5b35ab8435------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Xs0cyL9U-PaXEu6g</url>
            <title>Stories by Matthew Wall on Medium</title>
            <link>https://medium.com/@mtw.?source=rss-ae5b35ab8435------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:02:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mtw./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[React Server Components]]></title>
            <link>https://medium.com/@mtw./react-server-components-bf5325eed5ed?source=rss-ae5b35ab8435------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf5325eed5ed</guid>
            <dc:creator><![CDATA[Matthew Wall]]></dc:creator>
            <pubDate>Tue, 01 Aug 2023 18:29:33 GMT</pubDate>
            <atom:updated>2023-08-01T18:29:33.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjytc6vSbaFdBF5M-3S9ew.png" /></figure><p>Not too long ago, the React team announced the rollout of React Server Components. <a href="https://legacy.reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html">While these aren’t necessarily a new features</a>, it took the community by surprise (I’m assuming by the lack of examples and/or jarring rollout with very little documentation to explain “best practices”). I’ve taken the time to build out a couple enterprise-level web applications, and my goal of this article is to break down the pros and cons of my experience with it thus far.</p><h3>Utilizing React Server Components in Enterprise-level Web Applications</h3><h3>The Basics of React Server Components</h3><p>Before we dive into the pros and cons, let’s get a basic understanding of what React Server Components (RSCs) are. Essentially, RSCs are a new type of component that can be rendered only on the server. They are designed to complement the existing capabilities of React, enabling developers to build more efficient, scalable applications.</p><p>RSCs have the ability to access server-side data sources directly, removing the need for additional client-side fetching and data management. Moreover, since they are rendered on the server, the output is HTML, which is sent to the client. This could lead to potential improvements in performance, as it reduces the amount of JavaScript shipped to the client.</p><h3>The Pros of Using React Server Components</h3><h3>1. Performance Boost</h3><p>One of the most notable benefits of RSCs is the potential for enhanced performance. They allow you to write components that produce HTML on the server and send it to the client. This results in faster initial load times, as less JavaScript needs to be downloaded and parsed.</p><h3>2. Reduced Client-Side Code</h3><p>RSCs can directly access the database or file systems on the server side, which significantly reduces the need for client-side data fetching and state management code. This leads to a reduction in bundle size and complexity of the client-side application.</p><h3>3. Automatic Code Splitting</h3><p>RSCs support automatic component-level code splitting. This means you can reduce the amount of code sent to the client by only loading the components required for the initial render, effectively increasing load performance.</p><h3>The Cons of Using React Server Components</h3><h3>1. Limited Interactivity</h3><p>RSCs have limitations on what they can do. They do not support React’s event system, which means you cannot add event handlers directly to a server component. They are read-only components, and any interactivity needs to be handled by traditional client components.</p><h3>2. Server Environment Dependency</h3><p>As server components run on the server and can access databases directly, they inherently become dependent on the server environment. This could potentially complicate your component design and make them less portable.</p><h3>3. Learning Curve and Documentation</h3><p>Though the idea of RSCs is appealing, the steep learning curve can be off-putting for some developers. As the feature is relatively new, the lack of comprehensive documentation and community-driven best practices has made adoption more challenging.</p><h3>Real-World Examples of RSC vs. Traditional Client Components</h3><p>To illustrate the practical implications of RSCs, let’s dive into a couple of examples that compare them with traditional client components.</p><h3>1. Data Fetching</h3><h4>Traditional Client Component</h4><p>In a traditional client-side component, fetching data might look something like this:</p><pre>import React, { useEffect, useState } from &#39;react&#39;;<br><br>function UserProfile({ userId }) {<br>  const [user, setUser] = useState(null);<br><br>  useEffect(() =&gt; {<br>    fetch(`/api/users/${userId}`)<br>      .then(res =&gt; res.json())<br>      .then(data =&gt; setUser(data))<br>      .catch(err =&gt; console.error(err));<br>  }, [userId]);<br><br>  if (!user) {<br>    return &lt;div&gt;Loading...&lt;/div&gt;;<br>  }<br><br>  return (<br>    &lt;div&gt;<br>      &lt;h1&gt;{user.name}&lt;/h1&gt;<br>      &lt;p&gt;{user.bio}&lt;/p&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default UserProfile;</pre><p>Here, we’re fetching user data on the client-side using fetch within useEffect. We have to manage the loading state, handle potential errors, and ensure the component re-renders when the user data changes.</p><h4>React Server Component</h4><p>Now, let’s look at the equivalent code using a React Server Component:</p><pre>import { db } from &#39;./db.server&#39;;<br><br>export default function UserProfile({ userId }) {<br>  const user = db.users.get(userId);<br><br>  return (<br>    &lt;div&gt;<br>      &lt;h1&gt;{user.name}&lt;/h1&gt;<br>      &lt;p&gt;{user.bio}&lt;/p&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>With RSCs, you can see the component becomes significantly simpler. We no longer need to handle the data fetching within useEffect, manage loading states, or handle errors.</p><h3>2. Server-side Calculations</h3><p>Another use-case for RSCs can be server-side computations. Let’s say we have an e-commerce site, and we want to display the total price of all items in the user’s cart.</p><h4>Traditional Client Component</h4><p>In a traditional client-side component, the calculation might look something like this:</p><pre>import React, { useEffect, useState } from &#39;react&#39;;<br><br>function CartTotal({ cartItems }) {<br>  const [total, setTotal] = useState(0);<br><br>  useEffect(() =&gt; {<br>    let newTotal = 0;<br>    cartItems.forEach(item =&gt; {<br>      newTotal += item.price * item.quantity;<br>    });<br>    setTotal(newTotal);<br>  }, [cartItems]);<br><br>  return &lt;div&gt;Total: ${total.toFixed(2)}&lt;/div&gt;;<br>}<br><br>export default CartTotal;</pre><p>Here, we’re calculating the total cost on the client-side, inside a useEffect hook. This means we have to ensure the total is updated whenever the cartItems change.</p><h4>React Server Component</h4><p>With a React Server Component, the calculation can be done on the server-side, reducing the computation load on the client:</p><pre>import { db } from &#39;./db.server&#39;;<br><br>export default function CartTotal({ userId }) {<br>  const cartItems = db.cartItems.getForUser(userId);<br>  const total = cartItems.reduce((sum, item) =&gt; sum + item.price * item.quantity, 0);<br><br>  return &lt;div&gt;Total: ${total.toFixed(2)}&lt;/div&gt;;<br>}</pre><p>As you can see, using RSCs allows the computations to be offloaded to the server, simplifying the client-side component and potentially improving performance.</p><h3>Conclusion</h3><p>React Server Components introduce an interesting new way to structure React applications. While the potential for enhanced performance and simplified client-side code is enticing, it’s important to remember that they introduce a new paradigm with its own set of challenges. As such, it’s crucial to carefully evaluate their fit into your application before deciding to adopt them fully. With time, I think that the React community will likely develop more comprehensive documentation and usage patterns, helping developers to better leverage this exciting new feature. So far so good though in my honest opinion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf5325eed5ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Relay — a GraphQL client that “just works”]]></title>
            <link>https://medium.com/@mtw./relay-a-graphql-client-that-just-works-84263dc151b2?source=rss-ae5b35ab8435------2</link>
            <guid isPermaLink="false">https://medium.com/p/84263dc151b2</guid>
            <category><![CDATA[relayjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Matthew Wall]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 20:06:52 GMT</pubDate>
            <atom:updated>2023-01-25T20:06:52.759Z</atom:updated>
            <content:encoded><![CDATA[<h3>Relay — a GraphQL client that “just works”</h3><p>In this post, I’ll be covering one of my favorite GraphQL clients that I often use when working on NextJS/ReactJS projects: <a href="https://relay.dev/">Relay</a>. It features built-in optimizations that keep your app performant while being insanely easy to setup and use. Let’s dive in!</p><p>Relay is a powerful JavaScript framework that makes it easy to build high-performance, data-driven React applications. By leveraging the power of GraphQL, Relay allows developers to declaratively describe the data requirements of their components, and automatically handles the fetching and caching of that data.</p><p>In this blog post, we’ll take a look at how to use Relay with a basic React application. We’ll start by setting up a new project, and then move on to creating a simple component that fetches data using Relay.</p><p>First, we’ll need to set up a new project. We’ll be using create-react-app to get started quickly. Simply run the following command in your terminal:</p><pre>npx create-react-app my-relay-app</pre><p>Once the project is created, navigate into the new directory and install the necessary dependencies:</p><pre>cd my-relay-app<br>npm install relay-runtime react-relay</pre><p>Next, we’ll need to set up a GraphQL server to handle our data requests. This can be done using any GraphQL server, such as Apollo or GraphQL Yoga. For the purposes of this example, we’ll be using a simple JSON server.</p><pre>npm install json-server</pre><p>Now, we’ll need to create a schema for our GraphQL server. This will define the types of data that our application can request, as well as the fields that are available for each type.</p><pre>type User {<br>    id: ID!<br>    name: String!<br>    email: String!<br>}<br><br>type Query {<br>    users: [User]<br>}</pre><p>With our GraphQL server set up, we can now create a Relay component to fetch data from it. We’ll start by creating a new file called User.js in the src directory of our project.</p><pre>import React from &#39;react&#39;;<br>import { createFragmentContainer } from &#39;react-relay&#39;;<br><br>const User = ({ user }) =&gt; (<br>    &lt;div&gt;<br>        &lt;h2&gt;{user.name}&lt;/h2&gt;<br>        &lt;p&gt;{user.email}&lt;/p&gt;<br>    &lt;/div&gt;<br>);<br><br>export default createFragmentContainer(User, {<br>    user: graphql`<br>        fragment User_user on User {<br>            name<br>            email<br>        }<br>    `<br>});</pre><p>In this example, we’re using the createFragmentContainer function from react-relay to create a container component that fetches the name and email fields of the User type from our GraphQL server. The user prop passed to the component is a plain JavaScript object that contains the data we requested.</p><p>Finally, we can use this component in our App.js file to render a list of users:</p><pre>import React from &#39;react&#39;;<br>import { QueryRenderer, graphql } from &#39;react-relay&#39;;<br>import User from &#39;./User&#39;;<br><br>const App = () =&gt; (<br>    &lt;QueryRenderer<br>        environment={environment}<br>        query={graphql`<br>            query AppQuery {<br>                users {<br>                    ...User_user<br>                }<br>            }<br>        `}<br>        variables={{}}<br>        render={({ error, props }) =&gt; {<br>            if (error) {<br>                return &lt;div&gt;Error!&lt;/div&gt;;<br>            }<br>            if (!props) {<br>                return &lt;div&gt;Loading...&lt;/div&gt;;<br>            }<br>            <br>            return (<br>              &lt;div&gt;<br>                {props.users.map(user =&gt; (<br>                  &lt;User key={user.id} user={user} /&gt;<br>                ))}<br>              &lt;/div&gt;<br>            );<br>        }}<br>    /&gt;<br>);<br>            <br>export default App;</pre><p>In this example, we’re using the QueryRenderer component from react-relay to handle the data fetching for our application. We pass it the environment object that is responsible for handling the network requests and caching of the data. We also pass it a query that specifies the data we want to fetch, and variables if needed. In this case, we’re fetching the users field of the Query type, and passing the result to the User component as a prop.</p><p>And that’s it! With these few steps, you’ve set up a basic Relay application that fetches data from a GraphQL server that renders it in a component. Of course, Relay is a powerful tool that can handle much more complex data requirements, but this example should give you a good understanding of the basics. Relay is a great tool for building high-performance, data-driven applications. To learn more, check out the <a href="https://relay.dev/docs/tutorial/intro/">official Relay documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84263dc151b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Framer Motion <Switch /> Component]]></title>
            <link>https://medium.com/@mtw./framer-motion-switch-component-82af3fecf1fa?source=rss-ae5b35ab8435------2</link>
            <guid isPermaLink="false">https://medium.com/p/82af3fecf1fa</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[framer-motion]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[styled-components]]></category>
            <dc:creator><![CDATA[Matthew Wall]]></dc:creator>
            <pubDate>Sat, 14 Jan 2023 01:10:52 GMT</pubDate>
            <atom:updated>2023-01-14T01:52:05.139Z</atom:updated>
            <content:encoded><![CDATA[<h3>Framer Motion Switch Component</h3><figure><img alt="toggle switch animated using framer-motion" src="https://cdn-images-1.medium.com/max/640/1*d0oMWEi04Y0AQLX8JtO0Aw.gif" /></figure><p>Framer Motion is a popular animation library for React that allows for the creation of complex animations with minimal code and high abstraction. In this blog post, we will take a look at how to implement this library to create a pretty fun switch component which changes background color and position simultaneously.</p><p>First, you will need to install the Framer Motion library by running the following command in your terminal:</p><pre>npm install framer-motion<br>// or<br>yarn add framer-motion</pre><p>Once you have the library installed, you can import the motion component and the useAnimation hook from the library in your React component:</p><pre>import { motion } from &quot;framer-motion&quot;</pre><p>Let’s start by setting up some initial components we’ll need. If you take a look at any switch (or toggle) component, you’ll notice that there are two main components.</p><ol><li>The background</li><li>The circle/thumb that is controlled and moves from off to on state</li></ol><p>Let’s dive right in and focus on setting up the two components. I’m going to utilize <a href="https://styled-components.com/">styled-components</a> as my styling library because that’s what I like, but you can use vanilla CSS or your choice of library.</p><h3>Toggle Component</h3><pre>const Toggle = styled(motion.div)`<br>  width: 48px;<br>  height: 24px;<br>  border-radius: 16px;<br>  position: relative;<br>  cursor: pointer;<br>`;</pre><p>Let’s take a look at what we have here. We’ve setup a &lt;Toggle/&gt; component that will be responsible for acting as the background for our switch component. It’s important to do some very basic math here. Whatever width size you choose (in this case, 48px), your height has to be exactly half of that (respectively, 24px). And that’s really all you have to worry about when it comes to the background (for now…).</p><h3>Circle Component</h3><p>The only other component, and arguably the one that requires a bit more babysitting, is the circle component.</p><pre>const Circle = styled(motion.div)`<br>  width: 18px;<br>  height: 18px;<br>  border-radius: 50%;<br>  position: absolute;<br>  cursor: pointer;<br>  top: 3px;<br>`;</pre><p>Here we define the width and height of the circle to be the same size in pixels. You can adjust this a bit if you wish, but keep in mind the math here has to be: height — (padding*2) . So for example, if you wanted to make the height of your switch 48px , and a padding of 8px around the circle, your component would look like this. 48-(8*2) = 32px.</p><pre>const Circle = styled(motion.div)`<br>  width: 32px;<br>  height: 32px;<br>  border-radius: 50%;<br>  position: absolute;<br>  cursor: pointer;<br>  top: 4px;<br>`;</pre><p>Another thing to note is that the top position has to be exactly half of your padding (in this case, 4px). This logic would also adjust your background width to be 96px . However, for the rest of this post, we’ll use the original sizing. Let’s continue…</p><h3>The Animations</h3><p>Okay great. So we’ve done some basic styling. Big whoop, right? Alright I hear you. Let’s dive in to the fun stuff.</p><p>We’re going to setup two sets of variants, one for the circle, and one for the background. If you don’t know what variants are, basically it’s just a set of objects that define the object in that state. Framer motion uses these to animate between variants and allows us to abstract animations extremely easily this way.</p><h4>The Circle</h4><pre>const circle = {<br>  off: {<br>    x: &quot;4px&quot;,<br>    backgroundColor: &quot;rgb(247, 242, 242)&quot;<br>  },<br>  on: {<br>    x: &quot;26px&quot;,<br>    backgroundColor: &quot;#786EF2&quot;<br>  }<br>};</pre><p>Here we have two states, on and off . We’ll see this is responsible for moving the circle from x position 4px to 26px . To calculate these positions, we can simple take into account the full width of the switch, minus the padding we want left on the sides, and minus the width of the circle. That number will give us the amount of movement we have on the x plane to work with. 48-(4*2)-18 = 22px . You can see we don’t want to start at x=0, since that would be at the complete left-hand side of the background, so we start at x=4. This means our ending position is x=4+22 =&gt; 26px. Simple! This is optional, but if we want to change the color of the circle from on to off , we simply define that in these variants too.</p><h4>The Toggle</h4><pre>const toggle = {<br>  off: {<br>    backgroundColor: &quot;#616161&quot;<br>  },<br>  on: {<br>    backgroundColor: &quot;rgba(120, 110, 242, 0.2)&quot;<br>  }<br>};</pre><p>I’ll keep this one brief since it looks pretty similar to the circle. Here we’re just toggling between background colors. Super simple! You can add more flare here if you wish, but this does the trick, and it looks great to me.</p><h4>Wrapping Up</h4><p>Let’s throw this all together into a component we can use. Lucky for us, framer motion provides a wonderful utility function <a href="https://www.framer.com/motion/utilities/#usecycle">useCycle</a> that we can use for the state management here. However, if you were to persist the choice of the toggle, you should inject an initial state into this component.</p><pre>import styled from &quot;styled-components&quot;;<br>import { motion } from &quot;framer-motion&quot;;<br><br>const circle = {<br>  off: {<br>    x: &quot;4px&quot;,<br>    backgroundColor: &quot;rgb(247, 242, 242)&quot;<br>  },<br>  on: {<br>    x: &quot;26px&quot;,<br>    backgroundColor: &quot;#786EF2&quot;<br>  }<br>};<br><br>const toggle = {<br>  off: {<br>    backgroundColor: &quot;#616161&quot;<br>  },<br>  on: {<br>    backgroundColor: &quot;rgba(120, 110, 242, 0.2)&quot;<br>  }<br>};<br><br>const Toggle = styled(motion.div)`<br>  width: 48px;<br>  height: 24px;<br>  border-radius: 16px;<br>  position: relative;<br>  cursor: pointer;<br>`;<br><br>const Circle = styled(motion.div)`<br>  width: 18px;<br>  height: 18px;<br>  border-radius: 50%;<br>  position: absolute;<br>  cursor: pointer;<br>  top: 3px;<br>`;<br><br>interface ToggleProps {<br>  on: number;<br>  check: React.Dispatch&lt;React.SetStateAction&lt;boolean&gt;&gt;;<br>}<br><br>const ToggleComponent = ({ on, check }: ToggleProps) =&gt; {<br>  return (<br>    &lt;Toggle<br>      onClick={() =&gt; check((prev) =&gt; !prev)}<br>      variants={toggle}<br>      initial={on ? &quot;on&quot; : &quot;off&quot;}<br>      animate={on ? &quot;on&quot; : &quot;off&quot;}<br>      transition={{<br>        backgroundColor: {<br>          duration: 0.01<br>        }<br>      }}<br>    &gt;<br>      &lt;Circle<br>        variants={circle}<br>        initial={on ? &quot;on&quot; : &quot;off&quot;}<br>        animate={on ? &quot;on&quot; : &quot;off&quot;}<br>        transition={{<br>          backgroundColor: {<br>            duration: 0.01<br>          },<br>          x: { type: &quot;spring&quot;, stiffness: 200, damping: 17.5 }<br>        }}<br>      /&gt;<br>    &lt;/Toggle&gt;<br>  );<br>};<br><br>export default ToggleComponent;</pre><p>And voila! Your very own switch component with very basic styling and a super simple but effective animation. Did I mention you can run Minecraft at 60fps while toggling it? Unbelievable. I know.</p><p>Here’s a code sandbox to play around with this if you want to: <a href="https://codesandbox.io/s/mtw-switch-3f8d6q?file=/src/Toggle.tsx:0-1416">https://codesandbox.io/s/mtw-switch-3f8d6q</a></p><p>Thanks for reading. I hope this helped. Happy animating!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82af3fecf1fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introspective look into Web3 gaming]]></title>
            <link>https://medium.com/@mtw./introspective-look-into-web3-gaming-67eded83cce4?source=rss-ae5b35ab8435------2</link>
            <guid isPermaLink="false">https://medium.com/p/67eded83cce4</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Matthew Wall]]></dc:creator>
            <pubDate>Tue, 03 Jan 2023 21:29:29 GMT</pubDate>
            <atom:updated>2023-01-04T17:22:01.515Z</atom:updated>
            <content:encoded><![CDATA[<p>A brief look into the current pitfalls of the play-to-earn trends that are running rampant in the Web3 gaming industry and my take on better alternatives that could lead to an upward tread in adoption.</p><p>It should be no surprise that the crypto and NFT market is in shambles with all the fluff promised by pretty much every project that has minted this past year. Especially those that “promised to take you to the moon” or “earn you big $$ the more that you played.” These projects were at the center of it all, and yes, it can be argued that everyone should’ve had some foresight to predict that these tokens would head to zero inevitably– I won’t argue against that. However, it should be stated that most of these projects were clones of each other simply with different artwork provided by some artist off <a href="https://fiverr.com/">Fiverr</a> making pennies on the dollar while these projects rack in (in some cases) millions of dollars. Some of these projects include: <a href="https://wolf.game/">Wolf Game</a>, <a href="https://thegame.gold/">Gold Hunt Game</a>, and <a href="http://fox.game/">Fox Game</a>. These projects are all the same contract-wise. They provide a “deflationary” ERC-20 token as a reward for spending ether via an in-game interaction– most often a staking interaction. As a result, this artificially pumps the value of whatever ERC-20 token their giving you as a reward for in-game interactions. But, and here’s where the problem lies, what gives <em>their token </em>any value? The answer (in most cases): <strong>Absolutely nothing</strong>.</p><p>Another reason that these games are largely destined to fail, which I already briefly mentioned, is because of the high cost to play them. Before the <a href="https://ethereum.org/en/upgrades/merge/">Ethereum merge</a> that happened in 2022, the interactions in these games would cost upwards of a few dollars per transaction. That’s absurd. You add up a few hundred interactions and you’ve totalled thousands of dollars to “play” these games. Now that the merge has happened, I’m sure it’s a little more reasonable, but still more expensive than any standard Layer2 (Polygon, Avalanche, Arbitrum, etc.). Bottom line is that there’s absolutely no reason that these games should cost more than any AAA game on the market right now.</p><p>Alright, so let’s dig in. What could (and should) a blockchain game do differently to ensure it’s longevity? These are just my thoughts, and I’m not claiming to be an expert in this area by any means. The first thing they could do is deliver a full-fledged game before releasing their NFT collection. That means more than just a surface level staking interface with an ERC-20 reward. Incentivize your users to spend that token through: upgrades, boosts, rolling a random reward, etc. The options there are limited only by your imagination. There’s no reason a game backed by an ERC-20 token should be released without this completed in my mind. The second thing is considering what blockchain they should use. Internally process this question: “Does my game involve a lot of user interactions?” If the answer is yes, consider deploying your smart contract on a Layer2. You’ll save your users so much money in the long run (being around for a long time is the goal, right??) that will enable them to keep playing. Think about this. If your end user runs out of ether, how will they be able to play your game? The answer is that they won’t, and will more than likely end up playing a game that is more affordable.</p><p>I want to end this by saying that I’m a huge fan of indie games and by no means want to bash all the indie artists trying to do something new in an emerging market. I really believe that the indie games could thrive on the blockchain, but they just have to be more affordable and setup for longevity unlike the majority that launched in 2020–2022 backed by ponzi economics. Here’s to hoping that 2023 brings us more indie artists that push boundaries and setup their users for success. 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67eded83cce4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>