<?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 Joseph Maurer on Medium]]></title>
        <description><![CDATA[Stories by Joseph Maurer on Medium]]></description>
        <link>https://medium.com/@josephamaurer?source=rss-3a5740265e9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Joseph Maurer on Medium</title>
            <link>https://medium.com/@josephamaurer?source=rss-3a5740265e9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:45:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@josephamaurer/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[What I Learned Solving A Leetcode Problem A Day For 45 Straight Days]]></title>
            <link>https://medium.com/geekculture/what-i-learned-solving-a-leetcode-problem-a-day-for-45-straight-days-5294c3cf2da7?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5294c3cf2da7</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Fri, 18 Jun 2021 21:26:13 GMT</pubDate>
            <atom:updated>2021-06-20T17:57:30.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5drbNUuspzHwM75Y97FGEQ.png" /></figure><p>Being an engineer there are so many problems that I have to solve every day that you get into the flow pretty easily. But at work you are mostly solving the same type of problems on a daily basis that you forget that there are other exciting types of problems out there that require you to think differently. A great starting place is Leetcode or any other daily coding puzzle website. Let’s go over how to get started and best practices!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGgWBIgwfr7Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGgWBIgwfr7Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGgWBIgwfr7Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f857ed2d06629706f80bbf769ff90834/href">https://medium.com/media/f857ed2d06629706f80bbf769ff90834/href</a></iframe><h3><strong>The Fundamentals of Solving Coding Puzzles</strong></h3><p>I think Leetcode does a great job of having daily puzzles that come out in their “Monthly Challenges”. Each month the problems start easy or medium, and progressively get harder. You have 24 hours to submit your solution for credit, after that you can still do the problem just not for any Leetcode Coins.</p><p>Step one is to read the problem and understand the example solutions that they give you. Work through the examples on paper if you have to, break down each problem into a series of steps to work toward the solution. Start thinking about potential edge cases that aren’t considered that your design needs to take into account.</p><p>Step two is to write some abbreviated pseudo code. I tend to think about this step like the high-level whiteboard coding interview. Run through the algorithm you are going to use to solve the problem. Write down any data structures that you might need and contemplate the time and space complexity. This is the easiest step to fix, but when I get stuck this is the work I refer back to to help get me back on track.</p><p>Step three is to code your test cases. Now that you have a good idea of what you need to do, write some additional tests and write your test cases in code if you are coding outside of their editor. Leetcode won’t tell you what tests failed outside of the ones they give you (maybe they do if you have premium? Not sure tbh)</p><p><strong>Pro tip: Code in your editor. Not in the browser.</strong></p><p>Step four is to code and iterate on your design. Just because it passes all the tests doesn’t mean it’s perfect. Think of potential optimizations or ways to make your code more flexible.</p><p>Step five is to look at what other people did and see if there is anything you can learn from their approach to the problem. There are often multiple solutions so don’t be surprised if you see something slightly different.</p><h3><strong>Consistency is Key</strong></h3><p>This might not be surprising, but the more problems you solve the better you get. That’s just how it is. Leetcode does a good job of giving you only the information you need to solve a problem and the more of these types of problems you do, the more you begin to get comfortable with understanding the prompt and planning your approach. The hope is that by doing these exercises often you will continue to grow in your programming skills so that when you have to approach a different type of problem at work, you can draw on any number of examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGaNFnKRGZgiBZE_EAhVXw.png" /><figcaption>Here’s the list of every Leetcode problem I solved</figcaption></figure><p><strong>Thanks for reading this and </strong><a href="https://twitter.com/maurerpwer"><strong>tweet me</strong></a><strong> if you have any questions!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5294c3cf2da7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/what-i-learned-solving-a-leetcode-problem-a-day-for-45-straight-days-5294c3cf2da7">What I Learned Solving A Leetcode Problem A Day For 45 Straight Days</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WWDC 2021: State of the Union Recap]]></title>
            <link>https://medium.com/geekculture/wwdc-2021-state-of-the-union-recap-8c3c22b4c146?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c3c22b4c146</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[wwdc]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Sun, 13 Jun 2021 22:39:04 GMT</pubDate>
            <atom:updated>2021-06-14T06:36:08.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRJyRoAbGQAEZtkAIXPn8Q.png" /></figure><p>Here’s a quick recap of Apple’s State of the Union at WWDC (World Wide Developer Conference 2021). You can find the <a href="https://developer.apple.com/videos/play/wwdc2021/102/?time=2036">full video here</a>.</p><h3><strong>XCode Build</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*ujiy5ahuGYQj0Lr8" /></figure><p>A new continuous integration and delivery service built right into Xcode and hosted in the cloud, Xcode Build is Apple’s take on simplifying the process of building an app while helping you focus on what’s important. It helps you offload your builds, test, and code signing for distribution. It publishes your result right back into Xcode’s report navigator so you never have to switch context out of where you are building your app.</p><p>One cool feature is that you can have the build notify you when it completes and publish it to your Slack or any other service. There is also a public API that you can dive into for grabbing information about your builds. I can see how building apps this way is way more integrated and convenient. This actually seems like a fun way to write tests for your app!</p><p>Code reviews also look to make massive improvements on commenting and reviewing code. The new views allow you to select between multiple ways to see what code has changed, and even view comments as you are fixing any potential bugs. Anyone who does code reviews how confusing it can get when there are multiple revisions and files removed or added to a pull request.</p><h3><strong>Swift Concurrency Support</strong></h3><p>Most developers and engineers are used to the idea of writing concurrent code as it’s such a vital part of making fast and responsive code.</p><blockquote><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1209">“Concurrency enables your apps </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1211">to perform multiple tasks at the same time, </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1214">which helps your apps stay responsive to user input </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1217">while doing work in the background, </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1218">like a weather app fetching forecast data </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1221">while the user selects a city.</a>”</blockquote><p>The problem? Swift never had native support for concurrent code, so it was unnecessarily difficult to write good concurrent code. Apple’s new approach to this is <strong>Structured Concurrency</strong>. Actors are an industry standard and are vital to safe concurrent programming.</p><blockquote>“<a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1483">Conceptually, an actor is an object that protects </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1487">its own state by only providing mutually exclusive access. </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1492">This completely eliminates concurrent access </a><a href="https://developer.apple.com/videos/play/wwdc2021-102/?time=1495">and the low-level data races that come with it. </a>“</blockquote><p>Actors’ are now a first class citizen in Swift and have a much simpler declaration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/0*7QtJSxD181PQqVuX" /></figure><p>Another benefit is MainActor, which lets you decorate a function to always run on the main thread. This is vital for API calls that are needed for the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/0*VD5MVKhoP9zGQ28s" /></figure><h3><strong>Swift Playgrounds</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*JF8N9u9zI0MeRwhb" /></figure><p>This year, Swift playgrounds 4 allows you to work on your ideas wherever you go. It allows you to switch between Playgrounds and Xcode. Once you have created an app, you can even publish your app to TestFlight right from the Playgrounds app.</p><h3><strong>VR and AR Kits</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*Tn8R_KyphTBw6TwT" /></figure><p>You can now add cool effects to your AR objects with Custom metal shaders and dynamic textures. You can see these effects in the Birthday Cake demo with confetti falling around the object.</p><h3><strong>Metal Improvements</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*I7UJOl-HzXrFIWlu" /></figure><p>One thing that stood out to me as a Game Engineer is that you can now have more control over the display refresh rate. Especially if you are developing games that are going to run on the IPad Pro with ProMotion or on Macs that are connected to high end monitors, having control over the refresh rate can be useful for making your game look like it’s running smoothly!</p><p>Game controller support is also easier to add now, with haptic support. You can add a new on screen controller with only a few lines of code.</p><h3><strong>Notifications</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/0*w_aV5wAXsGq7OxIy" /></figure><p>iOS is now changing how notifications work and at what level they are delivered. Focus allows the user to select what types of notifications are delivered. There are now 4 levels of notifications: Low, Active, Time Sensitive, and Urgent (seen above). Notifications summary allows users to get a brief overview of what was delivered with some marks of relevance.</p><p>There was lots more covered, but those are the highlights that stuck out to me. <strong>Let me know what you found interesting in the comments below!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c3c22b4c146" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/wwdc-2021-state-of-the-union-recap-8c3c22b4c146">WWDC 2021: State of the Union Recap</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Sprite Sheets in Unity]]></title>
            <link>https://medium.com/geekculture/working-with-sprite-sheets-in-unity-d30278832370?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d30278832370</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[3d]]></category>
            <category><![CDATA[unity3d]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Wed, 09 Jun 2021 19:02:11 GMT</pubDate>
            <atom:updated>2021-06-10T16:12:51.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wKG6ZnIvR6Fy1_gH" /></figure><p>Sprites are a vital part of working on a game in Unity. Part of that is how do you go about slicing a sprite that contains multiple images within it. I’m going to spend some time going through a basic example of how to split a sprite and hook it up to an animation 2D platform game! Let’s get started!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAQXs_w_IaxU&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAQXs_w_IaxU&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/533863a93471e6a568b3ab74838fd5ab/href">https://medium.com/media/533863a93471e6a568b3ab74838fd5ab/href</a></iframe><p>To start you are going to need to acquire a sprite sheet from somewhere. <a href="https://kenney.nl/assets/platformer-characters">Here is a link to where I acquired the platform character for this project</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxj-N83l_ZPr0KOEwa2UuA.png" /></figure><p>Once imported into Unity, you are going to need to splice the sprite. You can do this in a number of ways, but I suggest starting by seeing if Unity can automatically figure out each of the images. To do this, use automatic mode as pictured below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fPU-_urT0Z1-Cv3o" /></figure><p>Once finished, you will see a light grey box around each of the images in the sheet. Hit Apply and let Unity work the magic behind the scenes to cut each image into a usable asset. You will know it is done when you can expand the sheet and see each image appended. Something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/0*J6cd0ScBCWstTjux" /></figure><p>At this point, you can start making your animations for your character. In my basic example, this just involved swapping the sprites on each possible state to be the correct image.</p><p>Pro tip: Expose lots of variables within your Animator so that it’s easy to tell your player how to move!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/0*thTGK353TWdHvHx8" /></figure><p>And then you’re done! You now have an easy way to control your player in code so that you can make a cool game!</p><p><strong>I hope this tip helps! Follow me on </strong><a href="https://twitter.com/maurerpwer"><strong>twitter</strong></a><strong> for more tech tips!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d30278832370" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/working-with-sprite-sheets-in-unity-d30278832370">Working with Sprite Sheets in Unity</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Build 2021]]></title>
            <link>https://josephamaurer.medium.com/microsoft-build-2021-e237ad3de2b7?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e237ad3de2b7</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Mon, 07 Jun 2021 15:01:23 GMT</pubDate>
            <atom:updated>2021-06-07T15:01:23.454Z</atom:updated>
            <content:encoded><![CDATA[<h4>Build Cloud-native Applications That Run Anywhere</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZwF4Jd5cfSkUdWjU" /><figcaption>Source: Microsoft</figcaption></figure><p>ICYMI (In case you missed it); two weeks ago was Microsoft’s Build event! The yearly event is a chance for developers to learn new things that are going on in technology. The reason I love listening to these types of events is because it gets you excited about the happenings in the industry.</p><p>One of the talks that stood out to me was on the challenges that modern developers face like needing to move from concept, to code, to cloud seamlessly. Needing this type of agility, reliability, and security is critical when trying to solve problems at scale. Cloud native is the ability to package application code and dependencies into a container, to deploy as a microservice and manage using DevOps.</p><p>&lt; Insert typically CI/CD pitch here &gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*VP_MkvcigRHa-X0F" /><figcaption>Source: Microsoft</figcaption></figure><p>Part of this talk sounds like a marketing pitch for Azure, but I think that the underlying technology is actually really exciting. Jeff Hollan gives a good demo (around minute 8:25) about attacking a real world problem. The dashboard that he builds utilized Github’s App Templates. It lets you launch a sample and launch a code space that automates a lot of the initial setup of the project.</p><blockquote>“Rather than me spending the next 30 minutes installing tools and configuring my machine, instead everything I need is ready to go right here in this codespace.” — Jeff Hollan</blockquote><p>Azure Arc allows you to deploy anywhere without the need to have to learn Kubernetes and have a bunch of overhead. The integration with <a href="https://github.com/features/actions">Github Actions</a> and other workflows is going to be a time saver forsure!</p><p>I highly recommend watching this session if you have the time!</p><p><a href="https://mybuild.microsoft.com/sessions/2debfc2e-f0b3-4adf-bcec-d126930f806f?source=sessions">Microsoft Build</a></p><p><strong>Let me know what your favorite session of Microsoft Build was!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e237ad3de2b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP: Object Oriented Programming]]></title>
            <link>https://medium.com/geekculture/oop-object-oriented-programming-1bc86ce772c6?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bc86ce772c6</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[object-oriented-software]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Fri, 04 Jun 2021 01:18:09 GMT</pubDate>
            <atom:updated>2021-06-06T11:09:39.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqhpO_8RaPGCyZ9XXXfFRw.png" /></figure><p>Object Oriented Programming (<a href="https://www.educative.io/blog/object-oriented-programming">OOP</a>) is a programming paradigm that is the cornerstone of modern software development. While OOP isn’t the only programming paradigm that exists, I would argue it is the most important to have a firm foundation of, and when used correctly, can lead to stronger and more robust software. But what is OOP and how can you make sure to understand it well? Let’s explore.</p><h3><strong>High Level</strong></h3><p>At a high level, in OOP there are 3 main pillars to understand for getting OOP down:</p><ul><li>Encapsulation with classes</li><li>Inheritance</li><li>Polymorphism (the most important by far)</li></ul><h3><strong>Encapsulation</strong></h3><p>Encapsulation is the ability to enclose data that describes the object and the functions used to manipulate that data into one module container.</p><p>In OOP these are typically called classes and are at the center of the paradigm. The resulting variable when the variable is declared is called an <em>object</em>. An important part is abstraction so that only necessary features are exposed.</p><ul><li><strong>Private/Internal:</strong> Methods and properties are accessible from other methods of the same class. Anything outside of the class shouldn’t be able to access these members/methods. This is typically denoted by Private or Protected.</li><li><strong>Public/External</strong>: Methods and properties are accessible from outside the class.</li></ul><p>An example would be if you were programming a card game. In your card dec class, would you want someone else to modify the number of cards in the deck? Probably not.</p><h3><strong>Inheritance</strong></h3><p>Inheritance is the ability to take an existing class and extend its functionality to form another class.</p><p>Why is this important? Because it supports reusability with code reuse. This is because the new class has access to all of the parent functionality. The child class just needs to add new attributes and methods that are specific to its needs.</p><ul><li>Generalization is the relation such that the subclass is a variation of the parent. I.e. a pickup truck “is-a” automobile.</li><li>Specialization is the relationship such that the class “has-a” subclass. I.e. an automobile “has-a” engine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*hiDCjYE_Oq7_8cJx" /></figure><h3><strong>Polymorphism</strong></h3><p>Polymorphism is the ability of similar objects to respond differently to the same message.</p><p>The final pillar of OOP is closely related to inheritance and yet is arguably far more important. The prefix poly means many; morph means form. Polymorphism then refers to the ability of a single type or class to take many forms.</p><p>How is this done? With method overriding:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/0*x7lZ9byEsN4e14ms" /></figure><p>In the example above, you can see that both the electric car and the pickup truck inherit from Automobile and both override the Start behavior since both have vastly different needs. An electric car doesn’t need to start an engine while a pickup truck would (assuming it’s of the gas variety).</p><p><strong>Key Takeaways</strong></p><ol><li>Well designed objects manipulate the data or state of an object by passing messages through the object’s interface.</li><li>Controlling an object through its interface guarantees it behaves in a safe manner and that the internal state remains valid.</li><li>The ability to model the real world is an important advantage of OOP.</li><li>Objects must be self-contained so that they can stand on their own.</li></ol><p>OOP isn’t the only programming paradigm out there. Can you name any others? <a href="https://twitter.com/maurerpwer"><strong>Follow me on twitter</strong></a><strong> for more programming posts!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bc86ce772c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/oop-object-oriented-programming-1bc86ce772c6">OOP: Object Oriented Programming</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Shader Graph in Unity]]></title>
            <link>https://medium.com/geekculture/exploring-shader-graph-in-unity-b9b0d5263139?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9b0d5263139</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[unity-3d-tutorials]]></category>
            <category><![CDATA[3d]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[shaders]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Tue, 01 Jun 2021 19:30:57 GMT</pubDate>
            <atom:updated>2021-06-04T06:24:18.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dDFebuaza-0ShqZC" /></figure><p>There is something that you realize really quickly when you start programming games, and it’s that materials are coded differently than anything else. They work almost in mysterious ways that can often be hard to describe and the code is often very dense c style code that doesn’t shed any light on how or why something works the way it does.</p><p>Enter Shader Graphs, Unity’s latest attempt to help alleviate some of the mystery and confusion around how shaders work. This feature is recently out of preview and has a wide array of features that aim to shift how shaders are made. Before, you made shaders with code, now the hope is that you make shaders with graphs like the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*n85E7-4YmDWMVvcM" /></figure><p>Want to follow along? <a href="https://on.unity.com/2Yqn6Vm">Here is a link to the sample project!</a></p><p>So if shaders are for programming materials, why is it so hard? Because you are writing low level code that the GPU needs to take and determine how in the world this object is going to look. It’s a complicated process but the benefit is that you are not taking up valuable CPU time with compute heavy tasks that are often needed to determine how something is going to look (i.e. shiny, dull, transparent, etc).</p><p>Shader Graphs allow the coder to visually assemble the “graphical elements” that manipulate the end properties of how something is going to look. In the video, we look at the basics of what a node is, how to connect them, and how to find the documentation around each possible node. We also go over some of the <a href="https://www.youtube.com/watch?v=-QcwEYOHt2I">new features</a> in Shader Graphs since there have been some changes since the project is now officially supported.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQ1yJPPWZnA0&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ1yJPPWZnA0&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/774b25fc5a4afc62ac04f4b657196f84/href">https://medium.com/media/774b25fc5a4afc62ac04f4b657196f84/href</a></iframe><h3><strong>Pro Tips</strong></h3><h4>1. Make sure you have Shader Graph included in the project</h4><p>To make sure that you can use Shader Graph, go to Window -&gt; Package Manager and make sure that Shader Graph is included in the project Resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*65vhSDylT2AaOV1b" /></figure><h4>2. Quickly get to the documentation for what a node does.</h4><p>When looking at a node it might be hard to exactly tell what this black box does when computing. To quickly go to the documentation, Right click on the node and hit ‘View Documentation’. It will bring up a Unity page with relevant information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/0*ag_YvHUhokGZSnhE" /></figure><h4>3. Use Sticky Notes and Groups!!</h4><p>One of the newer features is that you can add sticky notes and groups of nodes to help organize your graph. It massively helps anyone looking at your graph later to understand how something is working. In the example below, you can see a ‘Grass Mask’ group that has a sticky note attached to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*4hzwN3Yx2CWAtmoq" /></figure><p>Follow me on <a href="https://twitter.com/maurerpwer">Twitter</a> for more tech articles!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9b0d5263139" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/exploring-shader-graph-in-unity-b9b0d5263139">Exploring Shader Graph in Unity</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting a URL Parameter in Javascript]]></title>
            <link>https://medium.com/geekculture/getting-a-url-parameter-in-javascript-ce78626c0308?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce78626c0308</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Mon, 31 May 2021 22:21:18 GMT</pubDate>
            <atom:updated>2021-06-01T15:38:00.653Z</atom:updated>
            <content:encoded><![CDATA[<p>When programming in Javascript there are times when you might want to know if there were any parameters passed through the URL. In case you aren’t familiar with URL parameters, they are the arguments set after the base URL and the ‘?’. For example let’s look at the below example:</p><p><a href="https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html?PerPage=100">https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html?PerPage=100</a></p><p><em>?PerPage=100</em> is the first parameter that is passed with this URL. It’s up to your javascript logic to grab this parameter’s value and use it appropriately. So can there be multiple parameters? You betcha! Additional parameters are added with the following syntax:</p><p><a href="https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html?PerPage=100&amp;Page=2">https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html?PerPage=100&amp;Page=2</a></p><p>‘&amp;Page=2’ is the second parameter that is with this URL. At this point you might be wondering what are the limitations of passing arguments like this? Well the obvious one is that you can’t have any spaces. Another is that the ‘#’ character is reserved for jumping to a section of a document. Generally, <a href="https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters">URL Encoding</a> is used to deal with this problem and make any text safe to pass in the URL. Internet Explorer (RIP) had a maximum length of<a href="https://support.microsoft.com/en-us/topic/maximum-url-length-is-2-083-characters-in-internet-explorer-174e7c8a-6666-f4e0-6fd6-908b53c12246"> 2,083 characters</a>. Although, the <a href="https://datatracker.ietf.org/doc/html/rfc2616#section-3.2.1">RFC 2616</a> spec says that servers need to be able to handle any number of characters, you do risk a web server failing to respond if the request is too long. I highly recommend looking at the <a href="https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/security/url_display_guidelines/url_display_guidelines.md">Google Chrome guidelines</a> if you plan to do this on a production project.</p><h3><strong>Web Forms</strong></h3><p>The most common use of these query strings within a URL is web forms. When a user hits submit on a form, their responses are posted in the URL for processing by the backend. In this tutorial, we’ll focus on just grabbing values from that URL for processing, but there are plenty of examples of using this on the backend.</p><h3><strong>URL Search Params</strong></h3><p>When using javascript to parse the URL, it is easiest to use <a href="https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams">URLSearchParams</a> instead of trying to parse the string yourself. You could use regular expressions to try to do this, but as <a href="https://dev.to/mwrpwr/why-regular-expressions-are-super-powerful-but-a-terrible-coding-decision-m8i">I wrote earlier</a> this is a terrible idea. So let’s look at the example below and see how this works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p2_gBvoW-Tmnchrj" /></figure><p>As you can see, grabbing the params is actually a really straightforward process. You can very easily query to see what objects are present and check if they are null or an actual value first before using them. At the time of writing this, <a href="https://caniuse.com/urlsearchparams">browser support</a> is very good and is available to use almost everywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tFl27zk-FH32O2n2" /></figure><h3><strong>Live Example</strong></h3><p>Building on my <a href="https://dev.to/mwrpwr/exploring-dev-to-api-45ni">last video post</a>, you can now pass parameters to my example page to play with the number of posts that it returns.</p><p><a href="https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html?PerPage=3">DEV.to API Tester: Recent Posts</a></p><p>Let me know if you end up having a use for this method and happy coding 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce78626c0308" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/getting-a-url-parameter-in-javascript-ce78626c0308">Getting a URL Parameter in Javascript</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring DEV.to API]]></title>
            <link>https://josephamaurer.medium.com/exploring-dev-to-api-c8c64eff19c3?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8c64eff19c3</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[javscript]]></category>
            <category><![CDATA[webdev]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Fri, 28 May 2021 00:13:08 GMT</pubDate>
            <atom:updated>2021-05-28T00:13:08.043Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrXb5Xr12_CdDJP-TeXdnw.png" /></figure><p>You often forget that APIs exist for most of the platforms you use. While some companies lock down their APIs to only provide very limited information, DEV.to goes the extra mile to provide an extremely robust API. Let’s go over what is available!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSJtGzVoA5Uw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSJtGzVoA5Uw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSJtGzVoA5Uw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/06ea54f151c11c5b81700224c15eb445/href">https://medium.com/media/06ea54f151c11c5b81700224c15eb445/href</a></iframe><p>Link to Project: <a href="https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html">https://www.josephamaurer.com/Projects/DevAPI/RecentDevPosts.html</a></p><p>Link to DEV API Documentation: <a href="https://docs.forem.com/api/">https://docs.forem.com/api/</a></p><p>DEV’s API allows for lots of interesting functionality. In the video above, I go over a use case where you pull the latest 100 posts, and create bootstrap cards for each. In each card I display three buttons. The first is either active or disabled if the user has a twitter account. This is useful because I like to retweet articles and tag their creators. The second button is a link to the DEV post. Finally the third button opens the API response for the article.</p><p>While my example showed articles, there are lots of different things that the API can return to you. One of the more interesting functionality is the ability to post an article completely from the API. I have no idea why you would want to do that, but it could be useful.</p><p>All in all, it’s cool to think that this functionality exists, even if you can’t find a practical use case for it. One of the more useful use cases might just be populating your recent articles from your blog to your website.</p><p><strong>Let me know what you would want to do with this API!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8c64eff19c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unity’s C# Job System]]></title>
            <link>https://josephamaurer.medium.com/unitys-c-job-system-535364596b4a?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/535364596b4a</guid>
            <category><![CDATA[3d]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Tue, 25 May 2021 04:39:44 GMT</pubDate>
            <atom:updated>2021-05-25T04:39:44.416Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPTJhyZEjbdugBnUX08XSA.png" /></figure><p>There are times when you need to take full advantage of every ounce of performance possible to make your dream game a reality. Enter the Job System in Unity. It allows the developer to write multithreaded code that can still interact with the rest of Unity.</p><h3>What is multithreading?</h3><p>Multithreading allows the program to run faster by taking advantage of the CPU’s ability to process many threads at the same time across multiple cores. Typically this means that a main thread spawns several other threads that in turn performs work. The problem with this is that games tend to spawn a ton of threads. So much so that the overhead causes the CPU to run less efficiently. So how do we solve this issue? You get a Job.</p><h3>What is a Job?</h3><p>A Job system is a group of <a href="https://docs.microsoft.com/en-us/cpp/parallel/multithreading-creating-worker-threads?view=msvc-160">worker threads</a> that are being executed across multiple cores of the CPU. This allows you to save resources from having to perform context switching. The Job system operates on a Job queue where a worker thread takes an item from the queue and executes it. It does all of this while making sure to execute this in the appropriate order so that issues don’t arise. Not all Jobs have dependencies, while others do so throughput can depend on the input and dependencies associated with them. The best part? Unity’s C# Job system detects all potential race conditions and protects you from them. How sweet is that?!</p><h3>Simple Jobs Example</h3><p>To create a job in Unity, you need to implement the <a href="https://docs.unity3d.com/ScriptReference/Unity.Jobs.IJob.html">IJob</a> interface. This interface allows you to define a struct that has parameters and an execute function. In the example below, we define a job that adds two numbers together and returns the result in an array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iRysOSxoggUHUsae" /></figure><p>Once you have the job, you need to schedule it to run in the main thread. Notice how we allocate space for the result array and then destroy it after we are done with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SJI30GsmsUBh2mQD" /></figure><p>While this might seem like a very rudimentary example of Jobs, there is actually a lot you can do with them and they do provide an extreme speed benefit! Watch this video from GDC 2018 for more</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fkwnb9Clh2Is%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dkwnb9Clh2Is&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fkwnb9Clh2Is%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b75231a117f4895a5ea0c9032afa53d/href">https://medium.com/media/4b75231a117f4895a5ea0c9032afa53d/href</a></iframe><p><a href="https://twitter.com/maurerpwer"><strong>Tweet me</strong></a><strong> if you’ve ever used Jobs before and what you did with them!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=535364596b4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tabs Versus Spaces: Defining a Coding Standard]]></title>
            <link>https://josephamaurer.medium.com/tabs-versus-spaces-defining-a-coding-standard-c17a2269d2e1?source=rss-3a5740265e9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c17a2269d2e1</guid>
            <category><![CDATA[progarmming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[standards]]></category>
            <dc:creator><![CDATA[Joseph Maurer]]></dc:creator>
            <pubDate>Mon, 24 May 2021 05:56:41 GMT</pubDate>
            <atom:updated>2021-05-24T05:56:41.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W-xHzWwsnTge4f7M" /></figure><p>Writing clean and maintainable code is pivotal to any production project. And yet even the most functional code is frowned upon if it doesn’t follow the coding standards that a company sets. A good engineer knows that any big changes need to go through a code review before being merged into the mainline. Yet the most frequent comments made in those types of reviews are often about violations of any coding standards (not the functionality). So why do we care so much about coding standards? Do people really debate tabs versus spaces?</p><h3><strong>Defining a Coding Standard</strong></h3><p>Why is a coding standard important?</p><ul><li>It creates a consistent look across the entire code base.</li><li>Enables readers to understand the code more quickly.</li><li>Easier to maintain the code base during merges.</li><li>Easier to check for following best practices.</li></ul><p>Most of the time when working at a company they already have a coding standard provided that hopefully is written in a way that is easy to understand. But let’s say you are starting a pet project that you plan to open up to the community as open source. What standard do you follow and how do you communicate it to the people that will hopefully be contributing? Well you don’t have to reinvent the wheel. There are plenty of pre-made coding standards out there. Here is a list of some of the good ones I found:</p><ul><li><a href="https://google.github.io/styleguide/cppguide.html">Google’s C++ Style Guide</a></li><li><a href="https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions">Microsoft’s C# Coding Conventions</a></li><li><a href="http://contribute.jquery.org/style-guide/js/">jQuery Foundation’s Javascript Style Guide</a></li><li><a href="https://kotlinlang.org/docs/coding-conventions.html">Kotlin’s Coding Conventions</a></li><li><a href="https://www.python.org/dev/peps/pep-0008/">Python’s Style Guide</a></li><li><a href="https://swift.org/documentation/api-design-guidelines/">Swift Design Guide</a></li><li><a href="https://github.com/Kristories/awesome-guidelines">Way more are listed here!</a></li></ul><h3><strong>Tips for Following the Standard</strong></h3><p>I really only have one tip for helping to follow a style guide. <strong>Make it impossible to fail</strong>. Setup your IDE so that it yells at you every time it finds something that violates the standard. Is that super annoying when you’re just trying to get the code to work? Absolutely, but it is also the only way that you will learn to conform to the standard. Plus some of the rules are annoying.</p><p><a href="https://www.jetbrains.com/help/idea/configuring-code-style.html#editorconfig">Follow this tutorial</a> for how to add your coding standard to your IDE</p><p>Pro tip: Most standards define a max number of characters per line. Setup your editor to display a vertical line at that mark like the line on the right in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/0*JOUwWK12JNatO7qK" /></figure><h3><strong>Tabs Versus Spaces?</strong></h3><p>The answer is spaces. Why? Because…. It just is. Honestly, I’m fine with either. Just never mix the two. <strong>Be consistent.</strong></p><p><strong>So do you follow a written coding standard or any standard convention? Let me know in the comments below!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c17a2269d2e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>