<?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[Software Engineering - Medium]]></title>
        <description><![CDATA[Building Apps - Medium]]></description>
        <link>https://medium.com/brianyang?source=rss----4dde87ba7a4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Software Engineering - Medium</title>
            <link>https://medium.com/brianyang?source=rss----4dde87ba7a4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:45:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/brianyang" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reinventing the Wheel — Building JavaScript Widgets]]></title>
            <link>https://medium.com/brianyang/reinventing-the-wheel-building-javascript-widgets-769de73db38e?source=rss----4dde87ba7a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/769de73db38e</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Brian]]></dc:creator>
            <pubDate>Fri, 07 Oct 2016 03:40:52 GMT</pubDate>
            <atom:updated>2016-10-07T03:43:30.601Z</atom:updated>
            <content:encoded><![CDATA[<p><em>originally published at </em><a href="http://brianyang.com/reinventing-the-wheel-building-javascript-widgets/"><em>http://brianyang.com/reinventing-the-wheel-building-javascript-widgets/</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*14Nsm__NvhSUgjsuvOFo4w.jpeg" /></figure><p>You’re about to create a slider. Actually it’s a swiper, because you’re primarily targeting touch-enabled devices. It does slide on desktop, when the user clicks the button. In other words, it’s a carousel that let’s you showcase a collection of items.</p><h3>Different Names at Different Times</h3><p>Originally it was a carousel, later known as a slider, and today, known as a swiper. It’s more generally known as a carousel, which can have different types of interfaces like fading. If the new item will slide into view, whether from the top or from the side, it is more aptly known as a slider. In todays world of touch-enabled devices, our users swipe new items into view.</p><p>In the past I’ve spent a fair amount of time reviewing code for some of my clients.</p><h3>Roll Your Own</h3><p>If you only plan to support the latest browsers then this can be pretty easily done with CSS transitions. Write JavaScript methods to handle ontouchstart and ontouchend. Do some math to determine where the user is when they lift their finger, and slide to the next or previous item. For a more robust solution, you will want to determine the users current position withpageX and move the item in real-time. Users expect the swiper interaction to have the same feel, as when they are swiping through their photo gallery on Android or iOS. They expect for the image to move with their finger.</p><h3>Advantages in a Custom Solution</h3><p><strong>less code</strong>. Creating your own solution will almost always result in less code. That’s less code for your user to download, less code to manage and understand, and less code to have bugs. There’s less code because you have less options, and you have less code in there to account for edge cases and bugs in different browsers and platforms.</p><h3>Using a Third-party</h3><p><strong>battle tested</strong>. The total number of man hours that have been put into these third-party libraries is significant. Ask yourself how much time you have to implement a solution and fix bugs. Be realistic with how many features can you get into your swiper before you run out of time.</p><h3>Important Questions</h3><ul><li>Will my solution be better than that which exists in the wild?</li><li>Will my solution be documented better?</li><li>Will my solution work better and be more performant?</li><li>Will I have the bandwidth to support any future bugs discovered in my solution?</li><li>Will the time I save in reusing code, give me time to refine the UI in other places?</li></ul><h3>In the Wild</h3><ul><li><a href="http://idangero.us/swiper/demos">swiper</a> (10k stars and 700 commits)</li><li><a href="http://kenwheeler.github.io/slick/">slick</a> (16k stars and 800 commits)</li><li><a href="https://github.com/thebird/Swipe">swipe</a> (5.8k stars and 250 commits. not actively maintained.)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=769de73db38e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brianyang/reinventing-the-wheel-building-javascript-widgets-769de73db38e">Reinventing the Wheel — Building JavaScript Widgets</a> was originally published in <a href="https://medium.com/brianyang">Software Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to building modern JavaScript applications — mobile, native, hybrid, and progressive web apps]]></title>
            <link>https://medium.com/brianyang/guide-to-building-modern-javascript-applications-mobile-native-hybrid-and-progressive-web-apps-7649e1d1e1bd?source=rss----4dde87ba7a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/7649e1d1e1bd</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Brian]]></dc:creator>
            <pubDate>Wed, 28 Sep 2016 01:58:53 GMT</pubDate>
            <atom:updated>2016-09-29T01:09:42.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtsbbX4_B2KXbEpyalLT1A.jpeg" /></figure><p>JavaScript frameworks and libraries are showing up everyday, and for a good reason. There’s something to be said about using The right tool for the job. You could certainly build most kinds of apps with your favorite framework, or just JavaScript. In choosing the right tools, you may want to consider some or all of these reasons.</p><p><em>originally published at </em><a href="http://brianyang.com/guide-to-building-modern-javascript-applications-mobile-native-hybrid-and-progressive-web-apps/"><em>http://brianyang.com/guide-to-building-modern-javascript-applications-mobile-native-hybrid-and-progressive-web-apps/</em></a></p><h3>Adoption Rate</h3><blockquote><em>There are more books, stack overflow posts, blog posts, and open source repos on the most popular libraries. This is often a very useful supplement to the official docs.</em></blockquote><p>Developers building apps will hit road blocks. The decisions they make to solve their problems, will have varying degrees of elegance, readability, testability, and reusability. The most widely used and talked about framework at this point in time, is arguably Angular. The frameworks and libraries that are growing the most rapidly right now, are React and Angular 2. Ember has a fraction of the users and Backbone has been losing traction for years. Choosing a framework that has been widely adopted by the community means your team will be able to find other people who have experienced similar problems and potentially find solutions quicker and easier.</p><h3>Ease of Use</h3><blockquote><em>Building your app with web components and ES2016 may help you get the most out of the time you spend in development, in the long run.</em></blockquote><p>At times the most valuable thing is using a tool that’s easy to grok. In these cases, tools such as Vue, Aurelia, and Polymer may seem the most interesting. The latest and greatest frameworks won’t be around forever, and sometimes we want to convince ourselves that we can future-proof our code by adopting drafts that will possibly become specifications.</p><h3>Priorities</h3><blockquote><em>Time to first paint of content (with service workers)<br>React — 1004ms<br>Angular 1.5–2500ms<br>Angular 2–294ms<br>Ember — 414ms</em></blockquote><p>Everybody wants really performant apps, but for some this is critical and for others this is a nice-to-have. Building your apps with vanilla JavaScript will often be more performant by a hair, at the expense of having to maintain a lot of code. React and Angular2 can help you achieve an acceptable first-paint while Angular 1.x may not do this for you.</p><h3>Mobile</h3><blockquote><em>Any JavaScript framework or library can be used for a hybrid mobile app, but at the moment only a couple solutions exist for deploying full native apps, such as React Native and Angular 2 Native.</em></blockquote><p>Sharing code can be in the form of a hybrid app, reusing most of the same code and deploying it in a browser without the address bar. A lot of solutions build a core business of this, and bring together the UIs and deployment with Cordova. Some interesting solutions include Ionic and Ionic 2, and also Onsen UI which can be used with Angular, React, or Vue. Another way to reuse some code is to deploy to Angular Native and React Native. This will use the native device UI, but because it’s not deployed in a browser the app will feel like a native app.</p><h3>Server Rendering</h3><blockquote><em>React and Angular 2 are used on the server to create universal JavaScript solutions.</em></blockquote><p>Browser vendors are racing to optimize their JavaScript engines and render pages at lightening speeds. Google has been known to index JavaScript pages. An interesting pattern we’re seeing today with universal JavaScript, previously dubbed isomorphic, involves rendering initial page views on the server and subsequent views in the UI.</p><h3>Team Dynamics</h3><blockquote><em>Take into consideration what the implementers are bringing to the table, and where they want to go.</em></blockquote><p>Another very important factor will be the implementers. Find out what is their recent experience, and what do they want to learn. It could be tough getting a team of engineers excited about building an Ember app, when they’ve been working on React and Redux apps for some time. When we’re starting greenfield we can consider all options. When we’re extending an existing codebase we may think twice about the technologies we choose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*JObB24iI6HL-920o.png" /></figure><p>*</p><h3>One Size Doesn’t Fit All</h3><blockquote><em>The best solution will always combine a number of technologies and solutions.</em></blockquote><p>The best solution for one project is the worst for another. Before deciding which technologies will work we have to take all factors into consideration. Most of the time our teams will have multiple products which use different technologies.</p><h3>Not Just Development</h3><blockquote><em>Deploying your application involves solutions for dependency management and managing environments and releases.</em></blockquote><p>Using ES2015 and ES2016 means having to use a transpiler to convert our code into ES5 compatible code. Deploying your code to production will mean determining how you want to serve your code. The current trend has been to serve multiple packages and use code-splitting.</p><p>In addition to your framework or library, you will also want to figure out dependency management. Popular solutions include Rollup, Webpack, Browserify. You’ll want to use NPM to manage your dependencies, unless bower is a better choice, such as with Polymer apps. You will need a build tool, probably Gulp if Webpack and NPM can’t handle all your needs. When you’re working with legacy apps you will need to understand older technologies such as RequireJS and Grunt.</p><h3>Links</h3><ul><li><a href="https://speakerdeck.com/addyosmani/progressive-web-apps-across-all-frameworks">https://speakerdeck.com/addyosmani/progressive-web-apps-across-all-frameworks</a></li><li><a href="https://medium.com/@sachagreif/the-state-of-javascript-front-end-frameworks-1a2d8a61510#.us7v6f53a">https://medium.com/@sachagreif/the-state-of-javascript-front-end-frameworks-1a2d8a61510#.us7v6f53a</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7649e1d1e1bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brianyang/guide-to-building-modern-javascript-applications-mobile-native-hybrid-and-progressive-web-apps-7649e1d1e1bd">Guide to building modern JavaScript applications — mobile, native, hybrid, and progressive web apps</a> was originally published in <a href="https://medium.com/brianyang">Software Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Should Learn React and Angular Even Though They Will Be Gone Someday]]></title>
            <link>https://medium.com/brianyang/why-you-should-learn-react-and-angular-even-though-they-will-be-gone-someday-64d66b9d6b0d?source=rss----4dde87ba7a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/64d66b9d6b0d</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Brian]]></dc:creator>
            <pubDate>Fri, 19 Aug 2016 10:33:00 GMT</pubDate>
            <atom:updated>2016-08-19T10:32:59.864Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EtCqubwwqKRtY-I0iulv5A.png" /></figure><p>You should be using and learning React and Angular 2. As much as you can. You’re right, we won’t be using React and Angular forever. If you’re working on a jQuery project, and you want more for yourself, you should find another job. Keeping up with the latest technologies makes you more valuable to the industry and presents you with more opportunities and choices.</p><p>Learning and understanding vanilla JavaScript is vital. Learning ES6 constructs is supremely valuable. All this talk of JavaScript fatigue is for people that want to hold you down. The ecosystem is evolving, and you don’t want to miss the train and be relegated to developing and maintaining outdated jQuery and no-framework sites. It’s your choice. What you learned back in the day in your CS classes, may be outdated if it was long ago.</p><p>Spend your time learning frameworks that have gained traction within the community. React and Angular 2 are currently the trending application frameworks to learn. Other frameworks like Ember, Aurelia, and Vue 2, are interesting projects, but you will be less valuable to the industry if you learn these. Although, learning these frameworks will make it easier to learn any other framework, so it is better than nothing, but not the best thing you can do for yourself.</p><p>Like the rest of us, you’ve only got so much time to get better at what you do. Pick up some side projects, or create your own. Set objectives for what you plan to accomplish and set timelines like any other project. Create stories and tasks, and keep track of all your work.</p><p><em>original published at </em><a href="http://brianyang.com/why-you-should-learn-react-and-angular-even-though-they-will-be-gone-someday/"><em>http://brianyang.com/why-you-should-learn-react-and-angular-even-though-they-will-be-gone-someday/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64d66b9d6b0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brianyang/why-you-should-learn-react-and-angular-even-though-they-will-be-gone-someday-64d66b9d6b0d">Why You Should Learn React and Angular Even Though They Will Be Gone Someday</a> was originally published in <a href="https://medium.com/brianyang">Software Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>