<?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 Kyle Holzinger on Medium]]></title>
        <description><![CDATA[Stories by Kyle Holzinger on Medium]]></description>
        <link>https://medium.com/@kyleholzinger?source=rss-5dd2e9de1955------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Bowz-ct3ofY2xGUy.jpg</url>
            <title>Stories by Kyle Holzinger on Medium</title>
            <link>https://medium.com/@kyleholzinger?source=rss-5dd2e9de1955------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 10:16:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kyleholzinger/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[Deploying an IPFS-backed NFT]]></title>
            <link>https://medium.com/coinmonks/deploying-an-ipfs-backed-nft-47ff6ff0c0?source=rss-5dd2e9de1955------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ff6ff0c0</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[ipfs]]></category>
            <dc:creator><![CDATA[Kyle Holzinger]]></dc:creator>
            <pubDate>Sun, 13 Feb 2022 02:47:09 GMT</pubDate>
            <atom:updated>2022-02-19T03:12:26.101Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many ways to deploy NFTs. You can host assets on your own servers, post images only, have attributes attached, etc. This blog post will go into the most typical setup I’ve seen for a project, that being:</p><ul><li>Images uploaded on IPFS</li><li>JSON metadata hosted on IPFS</li><li>Contract hand-made (in solidity, duh)</li></ul><h3>TL;DR</h3><ul><li>Write the solidity contract</li><li>Upload images to Pinata</li><li>Upload JSON data to Pinata</li><li>Deploy contract to rinkeby</li><li>Verify contract on rinkeby</li><li>Set your baseTokenURI to ipfs://&lt;your json folder CID&gt;/</li><li>List your project on OpenSea: <a href="https://testnets.opensea.io/get-listed">https://testnets.opensea.io/get-listed</a></li></ul><p>Before getting started, I’ve pushed all of my code to this public template here: <a href="https://github.com/keyboard-clacker/ERC-721">https://github.com/keyboard-clacker/ERC-721</a> Feel free to use this as your base starting point — you should probably not have to modify this code beyond a few lines like your IPFS CID or NFT name/ticker, unless you want added functionality in your contract.</p><h3>Writing Your Contract</h3><p>There really isn’t anything special here you have to worry about. I used a typical OpenZeppelin setup that has basically no custom code here. In case you want a boilerplate to start off with, here ya go:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2ad1637f0ccd0424eb6aa9f8250a3ee/href">https://medium.com/media/a2ad1637f0ccd0424eb6aa9f8250a3ee/href</a></iframe><p>I recommend using hardhat to deploy this, since you can also use it to verify your contract pretty easily (easier a time than I had with truffle). For this, I used @nomiclabs/hardhat-etherscan, which requires you to create an etherscan API key, but this can be done very easily and freely here, as long as you have an etherscan account: <a href="https://etherscan.io/myapikey">https://etherscan.io/myapikey</a></p><p>As for your hardhat configuration, you need very little special stuff here as well. Here is what I’m using, I really only added that etherscan import to the top, which registers the verify command, but that’s basically it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e979d036ba7f8a8e6a2f11752311012d/href">https://medium.com/media/e979d036ba7f8a8e6a2f11752311012d/href</a></iframe><h3>Upload Images to Pinata</h3><p>I recommend doing this and the following step of uploading these two folders to Pinata (or your IPFS portal of your choice) because the base URI you pass in to your contract constructor when deploying your contract will be the ipfs URL for your JSON folder, and all of those files will have image attributes that point to images in the IPFS folder with all of the images themselves. So you can really do this whenever you want, hell you can set your base URI to whatever random string you want really, just when you want to go publish on opensea, probably change it to your JSON folder IPFSURI or nothing will work obviously. That being said, let’s get into uploading images to Pinata.</p><p>This step is deceptively simple. Basically what you want to do is put all of your image assets in one folder, and upload that entire folder itself to Pinata. The reason you want to do this is because when you upload an entire folder to Pinata, it creates a CID, or content ID hash that is a hash resultant from the actual contents of all of the files within your folder. This will let you do something like ipfs://&lt;your cid&gt;/1.png or whatever file you want to reference in that folder. This isn’t as useful for your images folder, since your JSON will be the one pointing directly to each file so it really doesn’t matter, but might as well keep it consistent.</p><p>Back to uploading to Pinata. Here’s pretty much the steps you want to do:</p><ul><li>Put all of your images in a folder. Doesn’t matter the folder name, you can give it whatever name you like later.</li><li>Go to your Pinata pin manager dashboard here: <a href="https://app.pinata.cloud/pinmanager">https://app.pinata.cloud/pinmanager</a></li><li>Click the Upload button</li><li>Select the “Folder” option</li><li>Select the folder with all of the image files in it</li><li>At the next step, name it whatever you want, it really doesn’t matter. I chose the name of my contract, skewer case, and then for the next step I did the same and just appended -json to the end of it so I knew which was which easily. Plus then they’re in order in the list when sorting by name.</li></ul><p>That’s it for uploading images to Pinata. Pretty easy, made harder only by my lack of conviction for concision.</p><h3>Upload JSON Metadata to Pinata</h3><p>This was a part that I have found is poorly descripbed/documented online. And is also the keystone piece for actually connecting your contract tokens to your IPFS assets.</p><p>In order to understand this step, you need to know two things.</p><ol><li>When opensea fetches data for a token, it’ll call tokenURI on your contract with the given ID. If you navigate to this URI in your browser, this should eventually be a JSON object that abides by <a href="https://docs.opensea.io/docs/metadata-standards">the metadata spec described by opensea</a>. If it’s an IPFS URI, you might need a chrome extension to check it out.</li><li>That JSON file is nothing special — all it is is a file that abides by opensea’s metadata spec, served through IPFS. OpenSea takes care of all of the IPFS fetching and all the fancy stuff, for both the JSON file as well as the image itself (which also has an IPFS URI, if you’re following this guide).</li></ol><p>I’d imagine there’s some way here to auto-generate these JSON files, but I like doing things by hand before telling a computer to do them for me. Gotta build empathy for our future robot overlords.</p><p>Back to business. First things first, you want to create one JSON file who’s name is <em>just</em> the token number for each and every token. So you will have a file called 0, then 1, 2, 3, I think you get the picture. However many tokens you have, you need one JSON file per token. The reason you <em>do not</em> need the .json file extension is because if you try uploading one of these extension-less files and navigate to the IPFS URI, you will see in the headers of the response that IPFS is actually automatically declaring the content type, so we gucci.</p><p>Now that you have one JSON file per token all in a folder together. Note: this is a different folder than your image assets. I guess it doesn’t have to be, but seems better that way. Separation of concerns something something something. From here, you want to upload this new folder to Pinata the exact same way you uploaded your images folder. Easy peasy lemon squeezy, step done.</p><p>This is a good time to check in. How are you doing, you good? If you have any questions, tweet me @kyleholzinger, I am always down to help a fellow dev in need. Right about now you should have two folders in your IPFS pin manager dashboard, one with all of your image assets, and one with all of the corresponding JSON files per asset. If you have this, you are sitting pretty. On to the contract stuff.</p><h3>Deploy Contract to Rinkeby</h3><p>After uploading your assets and JSON files to IPFS, make sure that when you’re deploying your contract, you set the baseURI to ipfs://&lt;your JSON folder CID&gt;/. You don’t necessarily have to, since you probably wrote a setBaseURI method on your contract (please do this), but you know what they say, measure twice, deploy once. Learned that one the hard way.</p><p>In order to deploy your contract to rinkeby, run the following command:</p><pre>npx hardhat run scripts/run.js --network rinkeby</pre><p>I made my life easier by aliasing h to npx hardhat , but it’s your life. Also, do not clear your terminal history after running this command.</p><h3>Verify Contract on Rinkeby</h3><p>After running run.js , it should have spit out the contract address of your newly deployed contract. In order to verify this contract on etherscan, run this command:</p><pre>npx hardhat verify --network rinkeby &quot;&lt;your contract address&gt;&quot; &quot;ipfs://&lt;your json CID&gt;/&quot;</pre><p>This might take a second, but should eventually spit out a success message after a minute or two. Once it is verified, you can go to <a href="http://rinkeby.etherscan.io/">rinkeby.etherscan.io</a> and see your verified contract at that address with all its pretty viewable source code. Ya love to see it.</p><h3>Set your Base URI</h3><p>You might not need to do this. Just make sure your baseURI is set properly to the IPFS link to the folder with your JSON files in them. I repeat, JSON files, not your image assets. The JSON files should each link to the corresponding image asset— the top-level asset that opensea is requesting for should be this JSON data for each token.</p><h3>List Your Project on OpenSea</h3><p>I’m assuming you’re using OpenSea here because it’s kind of standard, but do what you want. This is what I’m doing. In order to list a project that’s deployed to rinkeby on opensea, you have to actually “import” the existing token. It’s quite hidden, and used to be in the page that you get to when you click “Create”, but they’re greedy bastards and want to take all your money so they hide all the good stuff. The page to import your own custom contract ERC-721 token to OpenSea is here: <a href="https://testnets.opensea.io/get-listed">https://testnets.opensea.io/get-listed</a>. You can also use this page to list something on mainnet, idk why they don’t know you want to publish to the rinkeby instance given you’re on testnets.opensea.io, but whatever.</p><p>All you do here is just give them the address of your deployed contract, bada bing bada boom.</p><h3>Done</h3><p>You should see any tokens that you have minted already from the contract (if you did, that is) populating your collection page now. They might not have any images showing yet, I usually test it out by going to one of them and clicking the “refresh” button in the upper right. If you wait a few minutes and it’s still not showing anything, try calling tokenURI on your contract with one of the token IDs and navigating to that URI it gives you (something like ipfs://lkasjdlkasjd/1). It should be your JSON file for that token, and if you navigate to the URI specified under the image attribute in the JSON, that should be the image you want to display on opensea.</p><p>That’s pretty much it, let me know if there’s an easier way to do any of this. Congrats on deploying your contract, now you have to do the hard part and convince people to like your art.</p><blockquote><em>Join Coinmonks</em><a href="https://t.me/coincodecap"><em> Telegram Channel</em></a><em> and</em><a href="https://www.youtube.com/c/coinmonks/videos"><em> Youtube Channel</em></a><em> learn about crypto trading and investing</em></blockquote><h3>Also, Read</h3><ul><li><a href="https://medium.com/coinmonks/crypto-arbitrage-guide-how-to-make-money-as-a-beginner-62bfe5c868f6">Crypto arbitrage</a> Guide |<a href="https://medium.com/coinmonks/how-to-short-bitcoin-568a2d0b4ae5"> How to Short Bitcoin</a></li><li><a href="https://coincodecap.com/coinbase-vs-wazirx">Coinbase vs WazirX</a> |<a href="https://coincodecap.com/bitrue-review"> Bitrue Review</a> |<a href="https://coincodecap.com/poloniex-vs-bittrex"> Poloniex vs Bittrex</a></li><li><a href="https://coincodecap.com/crypto-exchanges-in-germany">Best Crypto Exchanges in Germany</a> |<a href="https://coincodecap.com/arbitrum"> Arbitrum: A Layer 2 Solution</a></li><li><a href="https://medium.com/coinmonks/binance-trading-bots-d0d57bb62c4c">Binance Trading Bots</a> |<a href="https://medium.com/coinmonks/okex-review-6b369304110f"> OKEx Review</a> |<a href="https://coincodecap.com/atani-review"> Atani Review</a></li><li><a href="https://medium.com/coinmonks/best-crypto-signals-telegram-5785cdbc4b2b">Best Crypto Trading Signals Telegram</a> |<a href="https://medium.com/coinmonks/moonxbt-review-6e4ab26d037"> MoonXBT Review</a></li><li><a href="https://coincodecap.com/buy-shiba-bitbns">How to buy Shiba(SHIB) Coin on Bitbns?</a> |<a href="https://coincodecap.com/buy-floki-inu-token"> Buy Floki</a></li><li><a href="https://coincodecap.com/coinflex-review">CoinFLEX Review</a> |<a href="https://coincodecap.com/aex-exchange-review"> AEX Exchange Review</a> |<a href="https://coincodecap.com/upbit-review"> UPbit Review</a></li><li><a href="https://coincodecap.com/best-cryptocurrency-blogs">10 Best Cryptocurrency Blogs</a> |<a href="https://coincodecap.com/youhodler-review"> YouHodler Review</a></li><li><a href="https://coincodecap.com/ascendex-margin-trading">AscendEx Margin Trading</a> |<a href="https://coincodecap.com/bitfinex-staking"> Bitfinex Staking</a></li><li><a href="https://coincodecap.com/best-cardano-wallets">Best Cardano Wallets</a> |<a href="https://coincodecap.com/bingbon-copy-trading"> Bingbon Copy Trading</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ff6ff0c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/deploying-an-ipfs-backed-nft-47ff6ff0c0">Deploying an IPFS-backed NFT</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time to First Wow]]></title>
            <link>https://medium.com/@kyleholzinger/time-to-first-wow-bd9609bcc085?source=rss-5dd2e9de1955------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd9609bcc085</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Kyle Holzinger]]></dc:creator>
            <pubDate>Thu, 10 Oct 2019 01:49:24 GMT</pubDate>
            <atom:updated>2019-10-10T01:49:24.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*Cp-cXTd8Kf8Eaa6y.jpg" /><figcaption>Disclaimer: This is entirely my opinion; there are many ways to slice it, this is just my favorite!</figcaption></figure><p>A couple of weeks ago I was starting up a new project and needed a file server to serve some static assets. I didn’t need anything fancy, really just to serve a bunch of files from a folder. There are a lot of ways you can do this, whether it’s with a WEBrick, a small python http.server, generate a rails app (or any of the <a href="https://gist.github.com/willurd/5720255">innumerable other variations</a>) — those aren’t my go-to’s though. Although they definitely get the job done, you don’t have much control over anything, and I don’t want to deal with setting up a bunch of config for weeks, especially since I’m doing this in my free time. So I picked my personal favorite flavor, which is spinning up a tiny express server that looks something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbf9b69eae9540fc0db0cd2e0c2467da/href">https://medium.com/media/bbf9b69eae9540fc0db0cd2e0c2467da/href</a></iframe><p>I was ecstatic after writing this because it reminded me exactly why I fell in love with JavaScript + Node.js: it has an incredible Time to First Wow ™. What I mean by that is, the amount of time it takes to go from having nothing to having something someone can actually pick up and play with is seconds. Coming from my normal day to day where I’m working in pretty robust JSON APIs, web servers, and SPAs, where much of my time is spent getting lost in configuration options, reading tomes full of docs, or figuring out why my monitoring alerts aren’t firing, this little node applet was a nice crisp breath of fresh air. Technology should empower us to achieve real-world outcomes, not just invent new technical problems to bikeshed about or make us think about decisions orthogonal to our end-goal.</p><p>When it comes down to it, what I love about a nice short Time to First Wow ™ is that it helps users get their hands on whatever I’m building as soon as possible. While the above example is of course very small, keeping with this idea of small, simple solutions from day one can help you push towards this right out of the gate. Assuming your users are cognizant that you’re trying to gather early feedback, this can be a great tool to get eyes on your project early in its development. From there, you can aggregate that user feedback, iterate on ideas and features, and start adding real user value right from the beginning. Because at the end of the day, what’s the point of creating applications if not to fulfill real end-user needs?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd9609bcc085" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why VTS is Moving Off of AngularJS]]></title>
            <link>https://medium.com/building-vts/moving-on-from-angularjs-5417b79693a9?source=rss-5dd2e9de1955------2</link>
            <guid isPermaLink="false">https://medium.com/p/5417b79693a9</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ember]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Kyle Holzinger]]></dc:creator>
            <pubDate>Sat, 05 Jan 2019 21:43:01 GMT</pubDate>
            <atom:updated>2019-01-17T22:01:45.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Picking a front-end framework is like buying a new car: there are a lot of options, you probably have biases against particular manufacturers, and every car has its pros and cons. And each time you buy a new car, there’s also another one getting left behind. No matter how many memories you‘ve made, how many trips you’ve been on together, or how much time you’ve spent trying to increase its performance, there’s a time when your old ride just isn’t doing the trick anymore. And sometimes, just sometimes, Google will deprecate your old car and tell you they’re not going to fix it even if it breaks because they changed the latest model so much that it uses an entirely different syntax. Alright, enough beating around the bush, let’s cut to the chase.</p><p><em>Note: I’m going to refer to all methods of writing web applications as frameworks, though I am aware that some of these technologies represent only a portion of the associated framework and are technically just plain old libraries.</em></p><p>Last January Google announced that they will be deprecating support for AngularJS in favor of Angular (sometimes referred to as Angular 2+, Angular 4, etc. but from here on out I will be referring to it as Angular). This posed a very difficult question for us at VTS: What framework do we want to have our application built with in the coming years? Should we stick with AngularJS and hope it serves our needs for the foreseeable future? Or should we perform the laborious task of migrating to a new framework? While we have already made quite a substantial app with AngularJS, we deemed it necessary to migrate to a new framework given 1/ dwindling support of AngularJS libraries (and AngularJS itself), 2/ increasing difficulty in recruiting folks who are excited about AngularJS, and 3/ our current team isn’t happy with AngularJS, because it often feels like going through a lot of hoops to do simple things. BUT that’s not to say the road that lay ahead of us was easy; we still needed to actually pick <em>which </em>modern framework we wanted to go to. In order to do this, we wanted to examine all of the viable options and assess how difficult it would be to migrate over. We identified VueJS, Angular, React, and Ember as the contenders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjHMrWIX4JzGPu7KomFFmw.png" /></figure><h3>Evaluation Strategy &amp; Criteria</h3><p>Going in to this evaluation, we had a couple requirements that we knew we wanted to stick to as closely as possible. At the very least, we knew we wanted to 1/ be able to migrate our app incrementally in order to reduce risk, 2/ be on a supported tech stack, and 3/ be on a tech stack that our engineers are happy with and promotes fast and efficient product development. In order to judge each of the frameworks on a level playing field, we came up with the following actions to take for each:</p><ul><li>Talk to other companies who had already performed a similar migration¹</li><li>Make a sample app with each proposed framework. It should contain an index view, a generic reusable table component, and a form that fetches some individual record asynchronously.</li><li>Take a small section of our app and see what it would be like to convert it to the new framework. Start with a simple presentational component and then level up to its more complex container component.</li></ul><p>While doing these investigations, we tried to stay consistent and keep in mind the following criteria as well:</p><p>We want our ideal new framework to…</p><ul><li>Interface easily with AngularJS</li><li>Have thorough &amp; concise documentation</li><li>Have a strong community backing</li><li>Easy to convert a component from AngularJS</li><li>Easy to set up initially</li><li>Ease of integration with our build system</li><li>Test tooling</li><li>Dev tooling</li></ul><p>After evaluating each option through these vectors, we pulled together the list of options with some potential migration strategies, pros, cons, and some points that are a little bit of both. Here’s a summary of our findings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*tJ-HUJxRD1zHL3I4cknwYw.png" /></figure><h3>VueJS</h3><p>Ding ding ding! First up is VueJS. Vue was released in February 2014 by a former Google employee who used AngularJS in a number of projects and “extract[ed] the part that I really liked about AngularJS and buil[t] something really lightweight without all the extra concepts involved.” This was the one we knew least about going into the evaluation. I had a small amount of prior experience with Vue, but didn’t ever end up making a full blown product with it, more just tinkering around with it in <a href="https://codesandbox.io/">CodeSandbox</a>.</p><h4>The Good:</h4><p>There was a surprising amount I found I really enjoyed about Vue. It felt like a boiled down AngularJS (definitely a step in the right direction), and was very easy to pick up, especially coming from AngularJS. Here are a couple of the positives I enjoyed while evaluating Vue:</p><ul><li>Uses virtual DOM. This means it has great rendering performance and is on par with the rest of the modern front-end frameworks</li><li>Great documentation. It was super easy to understand and was a pleasant read going through their initial guides</li><li>Single file components ( .vue files) keep all the component logic in one place</li><li>Styles can be scoped to a component. Can reduce style defects to due naming collisions</li><li>Animations have wrappers instead of using confusing animation classes</li><li>Bindings are simple because they’re just an array of strings vs. the different kinds of bindings in Angular/AngularJS</li><li>Built in directives to ensure HTML stays logic free</li><li>Developer tools maintained by core team. I can’t emphasize enough how awesome these were; dare I say they’re even better than <a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en">React Developer Tools</a>.</li><li>Watches data changes instead of relying on digest calls being littered everywhere</li></ul><h4>The Gray Area:</h4><p>These are more personal preferences, but I found I was tripping over myself occasionally. Here are a couple things some people say are positives, some people don’t like them, and I found them a bit questionable:</p><ul><li>There are multiple ways to do the same thing. This makes it difficult to choose conventions, and makes learning material a bit confusing. Whether it’s JSX vs Pug vs HTML for templating, @clickvs v-on:click for event binding, or the :prefix vs v-bindin HTML attrs, it can all be very disorienting when learning</li><li>Feels similar to Angular. This could lead to a false sense of familiarity, e.g. thinking features behave the same way between Vue and AngularJS</li><li>No state in the Vue router</li></ul><h4>The Bad:</h4><p>Unfortunately not everything is sunshine and roses in vue-land. Here are a couple of the areas I thought Vue struggled or was lacking:</p><ul><li>Using Vue components inside existing AngularJS seemed a little overcomplicated. While there’s an Angular shim to easily use Vue components in Angular, it has several caveats which make it error prone</li><li>Not a ton of blog posts about Vue (at the time I was researching)</li><li>Because of single-file components, compilation of those .vuefiles is pretty complex. Could end up being a big headache and single point of failure for any infrastructure teams. Not saying it’s a problem now, but as someone on one of those infrastructure teams, the concept definitely made me squirm a little</li><li>Not as mature. As you can see from Stack Overflow Trends, Vue’s level of adoption is quite a bit lower than React and Angular, although it’s an up-and-comer for sure</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*VNhWqh95DFDISo7YbuGMtA.png" /></figure><ul><li>Fake HTML elements/attributes in .vue files feel very strange. It feels like it’s fighting against the current ecosystem of having different compilers apply to different file types, a technique which I don’t see any real problem with.</li></ul><h4>How We’d Migrate</h4><p>Given the difficulty of mounting Vue components in an AngularJS application, the easiest and least error prone way to integrate Vue into our app would be to do feature slicing. Reducing the amount of interfacing between Vue and AngularJS would be best, and would yield the least friction for the developer migrating or writing a component.</p><h4>The Bottom Line</h4><p>While Vue does have some interesting differences in comparison to AngularJS, namely the lack of features that could prove dangerous such as two way data binding, there are some key areas where Vue is lacking. Namely, 1/ The community backing just isn’t there, 2/ it tries to recreate the wheel in multiple places, each of which can trip you up, and 3/ it doesn’t seem to be very popular among candidates and companies currently in the US.</p><p>As for using it at VTS specifically, there are a couple other barriers. As I mentioned it could be painful to migrate, and in addition, the library options to interface between AngularJS and Vue are pretty unpopular, with no more than 200 stars on GitHub.</p><p>Vue would definitely put us in a better place than where we are now, but there are other options with similar feature sets that do not have the same flaws and could provide easier migration paths.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CsP85ToA8l4_JiBbhNTcg.png" /></figure><h3>Angular 2+ (Not AngularJS)</h3><p>Angular 2+ was released in September 2016 as a successor to the widely adopted AngularJS. We decided to treat Angular as a separate framework from AngularJS because although Angular is technically a successor to AngularJS, it is a fundamentally different framework.</p><h4>The Good:</h4><ul><li>Better supported by Google than AngularJS</li><li>Discourages two way data bindings</li><li>Can declare stylesheets with a component</li></ul><h4>The Gray Area:</h4><ul><li>Typescript. While Typescript does offer some really great features, our current AngularJS app is on vanilla JS and it would be quite a big lift to move to Typescript and train our team on strongly typed language programming practices.</li><li>Differentiation of data passed in and actions passed in. Cool idea but ultimately doesn’t provide much value and feels like unnecessary overhead</li><li>ngCli, a command line tool for generating boilerplate files, is great for greenfield projects. But it’s also worrisome that a CLI is needed because there is so much boilerplate</li><li>There’s a UI-router for Angular 2, but it doesn’t seem very popular</li></ul><h4>The Bad:</h4><ul><li>Lots of boilerplate means potential for user error and wasted developer time, e.g. ng modules, inputs vs outputs, services, providers, etc.</li><li>There’s an ngUpgrade utility, but our app doesn’t meet the criteria to easily use it</li><li>Need to convert all directives to components</li><li>Need to change the way we bootstrap the app</li><li>Use of decorators is a bit confusing and still not common practice in javascript (the feature is currently in stage 2 of the <a href="http://github.com/tc39/proposals">tc39 proposal process</a>)</li><li>Still augments HTML which translates to custom conventions for differentiating behavior from standard HTML behavior. E.g. how you declare binding types with () and []</li><li>They renamed bindings to inputs. This is incredibly confusing, provides no differentiable value, and makes it very difficult to search for on google/stack overflow/etc</li><li>ngCli is useful but too opinionated for our usage. We’d have to augment our current build architecture significantly to make it work</li><li>Very few examples not in typescript, so we’re kind of forced to use it</li><li>Component definitions and usage is just as strange as in AngularJS</li></ul><h4>How We’d Migrate</h4><p>While there is an ngUpgrade tool that converts the syntax from AngularJS to Angular, the work we would have to do to get our app in a place where we could do that is pretty much the same as migrating to any other framework. At that point it is mostly just copying and pasting and changing how bindings are consumed, but it would be a pretty big lift to get there.</p><p>Besides ngUpgrade, because of the complexity of managing our current AngularJS libraries and upgrading them to a point where they can be used with both AngularJS as well as Angular, it would probably be best to only develop new pages/applications in Angular moving forward.</p><h4>The Bottom Line</h4><p>After attempting to make Angular and AngularJS play nice with each other, we found that the work we would have to undertake to change how our app behaves so it abides by the new rules in the world of Angular would effectively be a full rewrite, and as laborious as using any of the other options.</p><p>Given the pros/cons of Angular, it’s hard to recommend over the other options. Though its architecture has evolved and become more like the other options we reviewed, many of issues we have are pretty core to Angular itself. In addition, there aren’t any benefits that we’d get upgrading to Angular over choosing a different framework that has better community backing, fewer impositions, and more curated best practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-NZuUcmoc7nDq5G0nqPIQ.png" /></figure><h3>React</h3><p>React is a library which focuses on making view components easy to create/maintain. Released in 2013, it’s arguably the most popular ui library in the last 3 years. It’s championed by dedicated development teams within Facebook/Instagram. Concepts such as component trees/virtual DOM, one-way data flow, and JSX were made popular by this library.</p><h4>The Good</h4><ul><li>Very little boilerplate and easy to learn. It’s almost all … just javascript (as opposed to the compiled or interpreted HTML of AngularJS/Angular/Vue)</li><li>Because it is all in pure JS, you can leverage compile-time error messaging to let you know when your JSX is malformed</li><li>Data flow is only 1-way which makes it very clear how data gets updated.</li><li>Component tree performance is way better than the DOM manipulations + dirty checking in AngularJS</li><li>Transclusion is super simple because all nested markup is in the children property</li><li>Rendering inside an AngularJS app only requires 1 method call. It’s dead simple, and is pretty much the same as rendering a react app onto a standard webpage</li><li>While migrating, it can use the same technique to binding to props as in an actual react app</li><li>Well curated AirBnB linting guide for react apps</li><li>Tooling is well maintained.</li></ul><h4>The Gray Area</h4><ul><li>There’s a cost to learning JSX vs HTML templating</li><li>There’s a UI-router for React, but it doesn’t seem very popular</li></ul><h4>The Bad</h4><ul><li>Template conversion from HTML to JSX will require a bit more forethought</li><li>No named transclusion slots. We’d have to convert multi-slot transclusions into components</li></ul><h4>How We’d Migrate</h4><p>Given that React can interplay quite smoothly with AngularJS, we could go with one of two strategies:</p><p><strong>Bottom Up</strong></p><p>We would identify the most nested component on a given view and start converting up the tree until all of the view is in React. This would allow us to continually merge/deploy as usual since React components would live inside existing AngularJS views.</p><p><strong>Page by Page</strong></p><p>A new route that points to a React container component will be made. Inside that container component we’d rebuild the page using React components. We’d be able to side-by-side compare the Angular version and React version</p><h4>The Bottom Line</h4><p>React offers simplicity and interoperability which lends well to using it side-by-side with AngularJS. There’s a clear path in migrating to React incrementally with plenty of online guides offering advice. The cost we’d be paying down would be training the engineering team in how to composing JSX elements, how React lifecycle hooks differ from AngularJS’s, and how to craft components using true one-way data flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*9Tsw1uiHeiK2hHJRFFGwLA.png" /></figure><h3><strong>Ember</strong></h3><p>Ember is the most mature out of the bunch, being released in 2011. It was created by <a href="https://medium.com/u/324797632ca4">Yehuda Katz</a>, a very prominent developer in the Rails community. It’s a full-fledged MVVM framework similar to Angular in terms of scope, offering solutions for routing, services, templating, and components.</p><h4>The Good</h4><ul><li>Solid how-to guides for beginner ember developers</li><li>Testing is built into the framework</li></ul><h4>The Gray Area</h4><ul><li>It’s a very opinionated framework. If you don’t opt into all of their suggested tools e.g. Handlebars templating/Ember data, there will be less support for solving bugs</li><li>Not so great documentation. There are a lot of guides, but those aren’t really a replacement</li></ul><h4>The Bad</h4><ul><li>Difficult to integrate into existing applications</li><li>Uses much older patterns, harder to find relevant examples</li><li>Requires changes to our back-end to work with ember data</li></ul><h4>How We’d Migrate</h4><p>It’s difficult to say that there’s any incremental migration strategy. Ember is a very opinionated framework in general, and embedding it inside of another application is definitely outside of its comfort zone, and we found it incredibly difficult to integrate into our current ecosystem during our investigation. Any sort of migration effort would involve large scale rewrites.</p><h4>The Bottom Line</h4><p>Ember isn’t a viable framework solution to migrate to from our AngularJS app. The requirements to migrate are too large in scope to consider.</p><h3>Bottom Bottom Line</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTLZDJbkjIZSl0aerFXDrg.png" /></figure><p>Out of all the frameworks we evaluated, VueJS and React were the quickest to understand and get up and running. We struggled with Angular and Ember as there was a lot more convention to wire everything up and the documentation wasn’t as well organized and was often excessive to the point of unusability.</p><p>VueJS offers some of the familiarity of AngularJS templating paired with a similar reactive DOM system to React. The templating however comes at the cost of learning the framework’s unique caveats and intricacies. There is a large surface area to Vue’s API, leading to a steeper learning curve, slower development cycles, and unnecessary tribal knowledge.</p><p>React’s value comes from its simplicity. Their focus on a minimalist API and dedication to the functional school of thought yields a library that is powerful, yet easy to understand and use. In addition, data can only flow one way and is truly read-only; there’s less magic to it. Although there is more work when wiring “two-way bindings” up, it’s explicitly clear how data gets updated and how changes to data propagate.</p><p>The benefits of React far outweigh its shortcomings, and can help us solve some of our most prevalent problems such as updating data in real time, the massive memory footprint our app currently leaves, and the prolonged developer cycles spent dealing with AngularJS’s quirks. We have strong confidence that our engineering team can learn the ins and outs of React much faster than all other frameworks we evaluated.</p><p>Given all of these factors, the recommendation from the front-end platform team for the next framework VTS migrates to is: <strong>React</strong>.</p><p>After finishing this process towards the end of last year, we feel confident with our evaluation of the potential options and our final decision, and are excited to see where this choice in technology takes us. In the coming months we’ll be reporting back on our actual migration strategy, any potential speed bumps that are bound to come up, and the journey that will be training our team on this new technology. Stay tuned for more updates!</p><h4>Footnotes</h4><p>¹ Shout out to Grubhub, 500tech, Web.com, WayUp, Didjatv, AwesomenessTV, Stitchfix, Solar Winds, EERO,</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5417b79693a9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/building-vts/moving-on-from-angularjs-5417b79693a9">Why VTS is Moving Off of AngularJS</a> was originally published in <a href="https://medium.com/building-vts">Building VTS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Patches: The Alternative Solution]]></title>
            <link>https://medium.com/building-vts/git-patches-the-alternative-solution-15975aabd9b0?source=rss-5dd2e9de1955------2</link>
            <guid isPermaLink="false">https://medium.com/p/15975aabd9b0</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kyle Holzinger]]></dc:creator>
            <pubDate>Fri, 07 Sep 2018 19:18:16 GMT</pubDate>
            <atom:updated>2018-09-07T19:18:16.798Z</atom:updated>
            <content:encoded><![CDATA[<p>Git is awesome. I’ve been relying on it ever since I started my journey into software engineering and have found a new feature or neat little trick around every corner. One of the more recent ones is git patch files!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x1HTl1i1ARdBgY-O.jpg" /></figure><p>When you’re working on a large project and have a long-running branch, often you have to rebase to a more recent version of your master branch. This is great — you keep your code up to date, make sure that you’re not accidentally introducing bugs or unintended behavior into your code, and are able to see how your changes will reflect in the latest version of your application.</p><p>There are a couple ways git helps you avoid these nasty events, and one of them is through merge conflicts. A merge conflict is basically whenever you rebase on (or merge in) a branch where a change on your branch “conflicts” with a change that has been applied to said base branch since you last rebased on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*VpKggHGUxfxZfW65LxzvTw.png" /><figcaption>Sample git commit/branch tree</figcaption></figure><p>Let’s say you’re working on feature/crazy-big-project and you decided to edit a file called my-custom-input.js. BUT in commit 123abc on master, someone’s edited that file in the same place! Maybe they added some functionality to a formatter in there or something, I don’t know. Now when you go try to rebase feature/crazy-big-project onto master, you get a merge conflict saying that you tried to update a section of code that has also been modified by them (I use stylings on them and you because of how git treats theirs and ours when rebasing. It’s a little backwards from what you’d think; check it out <a href="https://git-scm.com/docs/git-rebase#git-rebase---merge">here</a> if you want to learn more about that).</p><p>This is exactly what you want. It’s now up to you (the rebaser) to decide how to best deal with this conflict, whether you want to integrate your change into the new code, or maybe make a new util that’s just for your new functionality.</p><p>There’s a caveat though. What if you simply moved my-custom-input.js and didn’t make any changes to it? The file is the exact same, it’s just in a different place. This actually also causes a merge conflict, since it’s technically “deleting” that file and making a new one with the same content. This is where git patches come in.</p><p>So what is a patch file? It’s super simple: a git patch is the output of a git diff in a file. For a file rename (a specific kind of file move), it might look something like this:</p><pre>diff --git a/my-custom-input.js b/my-custom-input/index.js<br>similarity index 100%<br>rename from my-custom-input.js<br>rename to my-custom-input/index.js</pre><p>One key aspect of git diff&#39;s (and patch files) is the similarity index. In the <a href="https://git-scm.com/docs/git-diff-index">git documentation for </a><a href="https://git-scm.com/docs/git-diff-index">git-diff-index</a>, the similarity index is defined as:</p><blockquote>The similarity index is the percentage of unchanged lines, and the dissimilarity index is the percentage of changed lines. It is a rounded down integer, followed by a percent sign. The similarity index value of 100% is thus reserved for two equal files, while 100% dissimilarity means that no line from the old file made it into the new one.</blockquote><p>What this tells us is that, because we’re only moving the file and not changing the contents, the similarity index is 100% — this is great! Because similarity index is used when determining if a patch file can be applied, this similarity index means that we can always apply this change as long as the file exists. Let’s generate a patch file for our file rename change-set:</p><pre>$ git diff &gt; move-input.patch</pre><p><em>(Note: if you have a branch that has tons of these merge conflicts instead of just one commit, you may need to use </em><em>git-merge-base and the alternate syntax of </em><em>git diff a..b in order to get the full diff of your branch. Just watch out, this will effectively squash your branch into one commit)</em></p><p>Now that you have your patch file, you can go and check out your master branch:</p><pre>$ git checkout master</pre><p>and apply your newly created patch! This will replay your changes onto whatever branch you want to rebase on (in this case master)</p><pre>$ git apply move-input.patch</pre><p>Because my-custom-input.js still exists and the similarity index is 100%, when you re-apply your changes, git is totally fine with moving this file to my-custom-input/index.js again.</p><p>Now that you’re familiar with patch files, you can actually use them for many different purposes. One of my favorites is using them to store workflow optimizations that require code changes. An example is, let’s say you’re working in a codebase that uses webpack to compile its assets. Maybe they use cheap-eval-source-maps as their devtool config, but you want to have the original source! In addition, you want to change the stats that are output from your compilation process and also add a logger to your server for whenever a request is made to your asset server. You can make all these optimizations, store them in a git patch file, and apply them whenever you need them.</p><p>That’s pretty much it! Although there is no official definition, patch files are a way of re-applying (and un-applying with git apply -R) change-sets in git. You can read more about <a href="https://git-scm.com/docs/git-apply">how to leverage patch files and </a><a href="https://git-scm.com/docs/git-apply">git-apply in their documentation</a>.</p><p>Git is a powerful tool with a near-infinite number of features — how you use them often guides how you develop software and communicate with your team. Hopefully this empowers you to work more efficiently and adds another tool to your git toolbelt! Use it with caution.</p><p><em>Disclaimer: know you can solve the “you moved a file that someone else changed” by adding some rebase options; that was just an example of how you could use a patch file</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15975aabd9b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/building-vts/git-patches-the-alternative-solution-15975aabd9b0">Git Patches: The Alternative Solution</a> was originally published in <a href="https://medium.com/building-vts">Building VTS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Another Intro to Angular]]></title>
            <link>https://medium.com/front-end-weekly/another-intro-to-angular-266dd8928067?source=rss-5dd2e9de1955------2</link>
            <guid isPermaLink="false">https://medium.com/p/266dd8928067</guid>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Kyle Holzinger]]></dc:creator>
            <pubDate>Tue, 11 Oct 2016 18:01:43 GMT</pubDate>
            <atom:updated>2016-10-15T16:17:11.336Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve heard some pretty cool stuff about Angular — people seem to like it. MVC(ish) on the front end? Sounds awesome! Two way data binding with your html? Crazy talk. Too bad the only thing I’ve done with it is make a todo list.Well let’s take a dive into creating and Angular application and see if we can turn that todo list into something with a little more substance. There are a couple different types of parts in an angular application you’re probably familiar with, but let’s review them real quick:</p><ul><li>Controllers</li><li>Services</li><li>Directives</li><li>Factories</li><li>Components</li></ul><p>Each of these serve a different purpose, and can fulfill different roles throughout your application. <a href="https://docs.angularjs.org/guide/controller">Controllers</a> manage actions like sending network requests, business logic for displaying elements, serving as an abstraction layer on top of other services, etc. whereas <a href="https://docs.angularjs.org/guide/services">services</a> are often used for managing data since they are singletons and only created once. <a href="https://docs.angularjs.org/guide/directive">Directives</a>, on the other hand, are predominantly used for creating smaller, more isolated and testable components in your application — these are where you use all of your HTML templates. Factories are a bit of an outlier because they behave very similarly to services, however they’re really supposed to be used, as the name implies, as factories that create other objects similar to constructor functions in standard JS. There’s also a new kid on the block called a <a href="https://docs.angularjs.org/guide/component">component</a>, which acts similarly to a directive, however it doesn’t have a link function, and you should only be using bindings to the controller instead of to scope (don’t worry if you don’t know what those are, components are pretty new and you can just use directives for now).</p><p>But that’s not all! This may seem well and good, but how do you fit your whole application into a couple different directives or components? For a while, this was pretty much as far as I got, and yeah this allows for some pretty cool self contained, single-purpose tools, but there’s one key missing element that can take your Angular application from a tiny cluster of javascript to a fully fledged SPA (Single-Page-Application). That key is what’s called a <a href="https://github.com/angular-ui/ui-router">router</a>. This not only allows you to define separate urls for the various states and views of your application, but also handle transitioning and passing data between them, acting as a <a href="https://en.wikipedia.org/wiki/Finite-state_machine">state machine</a> for your application. What’s cool about that? Well now you can define different views, and control and maintain a consistent state without the need for managing any of that state on the back end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*4O99SzVbm6IFSLZKlQGteQ.gif" /></figure><p>This can be done relatively simply by setting various ui-views in your markup! eg.</p><pre>&lt;!-- index.html --&gt;<br>&lt;body&gt;<br>  &lt;div ui-view=”left-pane”&gt;&lt;/div&gt;<br>  &lt;div ui-view=”right-pane”&gt;&lt;/div&gt;<br>&lt;/body&gt;</pre><p>What a ui-view allows you to do is to tie different “states” (aka routes used by your router) that have templates, controllers, params, etc. in your routes file, for example:</p><pre>// some-routes.js<br>app.config(function ($stateProvider) {<br>  $stateProvider<br>    .state(“index”, {<br>      url: “/home”,<br>      views: {<br>        “left-pane”: { template: “&lt;div&gt; hello! &lt;/div&gt;” },<br>        “right-pane”: { template: “&lt;div&gt; goodbye :( &lt;/div&gt;” }<br>      }<br>    });<br>});</pre><p>This can make adding functionality like a sidebar or floating overlay both extremely easy and modular. Woohoo! Now combine this with using directives, controllers, services, and factories and you have yourself a fully fledged application!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=266dd8928067" width="1" height="1" alt=""><hr><p><a href="https://medium.com/front-end-weekly/another-intro-to-angular-266dd8928067">Another Intro to Angular</a> was originally published in <a href="https://medium.com/front-end-weekly">Frontend Weekly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Another Intro to Angular]]></title>
            <link>https://medium.com/building-vts/another-intro-to-angular-4fca5e254abf?source=rss-5dd2e9de1955------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fca5e254abf</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Kyle Holzinger]]></dc:creator>
            <pubDate>Tue, 11 Oct 2016 18:01:43 GMT</pubDate>
            <atom:updated>2018-05-14T19:58:15.563Z</atom:updated>
            <content:encoded><![CDATA[<p>Another Intro to Angular</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*OE3y1y9GBZm3z_LD11zMcg.jpeg" /></figure><p>I’ve heard some pretty cool stuff about Angular– people seem to like it. MVC(ish) on the front end? Sounds awesome! Too bad the only thing I’ve done with it is make a todo list. There are a couple different types of parts in an angular application:</p><ul><li>Controllers</li><li>Services</li><li>Directives</li><li>Factories</li></ul><p>Each of these serve a different purpose, and can fulfill different roles throughout your application. <a href="https://docs.angularjs.org/guide/controller">Controllers</a> manage actions like network requests, business logic for displaying elements, serving as an abstraction layer on top of other services, etc. whereas <a href="https://docs.angularjs.org/guide/services">services</a> are often used for managing data since they are singletons and only created once. <a href="https://docs.angularjs.org/guide/directive">Directives</a>, on the other hand, are predominantly used for creating smaller, more isolated and testable components in your application. Factories are a bit of an outlier because they behave very similarly to services, however they’re really supposed to be used, as the name implies, as factories that create other objects similar to constructor functions in standard JS.</p><p>But that’s not all! This may seem well and good, but how do you fit your whole application into a couple different directives? For a while, this was pretty much as far as I got, and yeah this allows for some pretty cool self contained, single-purpose tools, there’s one key missing element that can take your Angular application from a tiny cluster of javascript to a fully fledged SPA (Single-Page-Application). That key is what’s called a <a href="https://github.com/angular-ui/ui-router">router</a>. This not only allows you to define separate urls for the various states and views of your application, but also handle transitioning and passing data between them, acting as a <a href="https://en.wikipedia.org/wiki/Finite-state_machine">state machine</a> for your application. What’s cool about that? Well now you can define different views, and control and maintain a consistent state without the need for managing state on the back end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*4O99SzVbm6IFSLZKlQGteQ.gif" /></figure><p>This can be done relatively simply by setting various ui-views in your markup! eg.</p><pre>&lt;body&gt;<br>  &lt;div ui-view=”left-pane”&gt;&lt;/div&gt;<br>  &lt;div ui-view=”right-pane”&gt;&lt;/div&gt;<br>&lt;/body&gt;</pre><p>and then with your UI router you can do something like</p><pre>app.config(function ($stateProvider) {<br>  $stateProvider<br>   .state(“index”, {<br>     url: “/home”,<br>     views: {<br>       “left-pane”: { template: “leftPage” },<br>       “right-pane”: { template: “rightPage” }<br>     }<br>   });<br>});</pre><p>This can make adding functionality like a sidebar or floating overlay both extremely easy and modular. Woohoo! Now combine this with using directives, controllers, services, and factories and you have yourself a fully fledged application!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fca5e254abf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/building-vts/another-intro-to-angular-4fca5e254abf">Another Intro to Angular</a> was originally published in <a href="https://medium.com/building-vts">Building VTS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>