Devchat.tv Episode Roundup

Devchat.tv Episode Roundup

Download on the App Store

All Devchat.tv Episode Roundup episodes

  • JSJ 266 NPM 5.0 with Rebecca Turner

    On today’s episode of JavaScript Jabber, Charles Max Wood and panelist Joe Eames chat with Rebecca Turner, tech lead for NPM, a popular Javascript package manager with the worlds largest software registry. Learn about the newly released NPM 5 including a few of the updated features. Stay tuned!

    [1:58] Was the release of node JS 8 tied to NPM5?
    • Features in NPM5 have been in planning for 2 years now.
    • Planned on getting it out earlier this year.
    • Node 8 was coming out and got pushed out a month.
    • Putting NPM5 into Node 8 became doable.
    • Pushed really hard to get NPM5 into Node 8 so that users would get NPM5 and updates to NPM5.
    • [2:58] Why would it matter? NPM doesn’t care right?
      • Right you can use NPM5 with any version of node.
      • Most people don’t update NPM, but upgrade Node.
      • So releasing them together allowed for when people updated Node they would get NPM 5.
      • [3:29] How does the upgrade process work if you’re using NVM or some node version manager?
        • Depends. Different approaches for each
        • NVM gets a fresh copy of Node with new globals. NVM5 and Node 8 are bundled.
        • For some, If you manually upgrade NVM you’ll always have to manually. It will keep the one you manually upgraded to.
        • [4:16] Why NPM 5?
          • It’s night and day faster.
          • 3 to 5 times speed up is not uncommon.
          • Most package managers are slow.
          • NPM 5 is still growing. Will get even faster.
          • [5:18] How did you make it faster?
            • The NPM’s cache is old. It’s very slow. Appalling slow.
            • Rewrote cache
            • Saw huge performance gains
            • [5:49] What is the function of the cache?
              • Cache makes it so you don’t have to reinstall modules from the internet.
              • It has registry information too.
              • It will now obey http headers for timing out cache.
              • [6:50] Other things that made it faster?
                • Had a log file for a long time. It was called shrinkwrap.
                • NPM 5 makes it default.
                • Renamed it to packagelog.json
                • Exactly like shrinkwrap package file seen before
                • In combo with cache, it makes it really fast.
                • Stores information about what the tree should look like and it’s general structure.
                • It doesn’t have to go back and learn versions of packages.
                • [7:50] Can you turn the default Packagelog.json off?
                  • Yes. Just:
                  • Set packagelog=false in the npmrc
                  • [8:01] Why make it default? Why wasn’t it default before?
                    • It Didn’t have it before. Shrinkwrap was added as a separate project enfolded in NPM and wasn’t core to the design of NPM.
                    • Most people would now benefit from it. Not many scenarios where you wouldn’t want one.
                    • Teams not using the same tools causes headaches and issues.
                    • [9:38] Where does not having a lock show up as a problem?
                      • It records the versions of the packages installed and where NPM put them so that when you clone a project down you will have exactly the same versions across machines.
                      • Collaborators have the exact same version.
                      • Protects from issues after people introduce changes and patch releases.
                      • NPM being faster is just a bonus.
                      • Store the sha512 of the package that was installed in the glock file so that we can verify it when you install. It’s Bit for bit what you had previously.
                      • [11:12] Could you solve that by setting the package version as the same version as the .Json file?
                        • No. That will lock down the versions of the modules that you install personally, not the dependancies, or transitive dependancies.
                        • Package log allows you to look into the head of the installer. This is what the install looks like.
                        • [12:16] Defaulting the log file speed things up? How?
                          • It doesn’t have to figure out dependences or the tree which makes it faster.
                          • Shrinkwrap command is still there, it renames it to shrinkwrap but shrinkwrap cannot be published.
                          • For application level things or big libraries, using shrinkwrap to lock down versions is popular.
                          • [13:42] You’ve Adopted specifications in a ROC process. When did you guys do that?
                            • Did it in January
                            • Have been using them internally for years. Inviting people into the process.
                            • Specifications
                            • Written in the form of “Here is the problem and here are the solutions.”
                            • Spec folder in NPM docs, things being added to that as they specify how things work.
                            • Spec tests have been great.
                            • [14:59] The update adds new tools. Will there be new things in registry as well?
                              • Yes.
                              • Information about a package from registry, it returns document that has info about every version and package json data and full readme for every version.
                              • It gets very large.
                              • New API to request smaller version of that document.
                              • Reduces bandwidth, lower download size, makes it substantially faster.
                              • Used to be hashed with sha1, With this update it will be hashed with sha512 as well as sha1 for older clients.
                              • [16:20] Will you be stopping support for older versions?
                                • LTS version of NPM was a thing for a while. They stopped doing that.
                                • Two models, people either use whatever version came with Node or they update to the latest.
                                • The NPM team is really small. Hard to maintain old NPM branches.
                                • Supports current versions and that’s pretty much it.
                                • If there are big problems they will fix old versions. Patches , etc.
                                • [17:36] Will there ever be problems with that?
                                  • Older versions should continue to work. Shouldn’t break any of that.
                                  • Can’t upgrade from 0.8.
                                  • It does break with different Node version
                                  • Does not support Node versions 0.10 or 0.12.
                                  • [18:47] How do you upgrade to NPM?
                                    • sudo npm install -gmpm
                                    • Yes, you may not need sudo. depend on what you’re on.
                                    • [19:07] How long has it been since version 4?
                                      • Last October is when it came out.
                                      • [19:24] Do you already have plans for version 6?
                                        • Yes!
                                        • More releases than before coming up.
                                        • Finally deprecating old features that are only used in a few packages out of the whole registry.
                                        • Running tests on getting rid of things.
                                        • [20:50] Self healing cache. What is it and why do we want it?
                                          • Users are sometimes showing up where installs are broken and tarbols are corrupted.
                                          • This happens sometimes with complicated containerization setups makes it more likely. It’s unclear where the problem actually is.
                                          • CaCache - content addressable cache. Take the hash of your package and use it to look up address to look it up in the cache.
                                          • Compares the Tarbol using an address to look it up in the cache.
                                          • Compares to see if it’s old. Trashes old and downloads updated one.
                                          • Came out with the cache. Free side effect of the new cache.
                                          • [23:14] New information output as part of the update?
                                            • NPM has always gave back you the tree from what you just installed.
                                            • Now, trees can be larger and displaying that much information is not useful.
                                            • User patch - gives you specifically what you asked for.
                                            • Information it shows will be something like: “I installed 50 items, updated 7, deleted 2.”
                                            • [24:23] Did you personally put that together?
                                              • Yes, threw it together and then got feedback from users and went with it.
                                              • Often unplanned features will get made and will be thrown out to get feedback.
                                              • Another new things ls output now shows you modules that were deduped. Shows logical tree and it’s relationships and what was deduped.
                                              • [25:27] You came up to node 4 syntax. Why not go to node 8?
                                                • To allow people with just node 4 be able to use NPM.
                                                • Many projects still run Node 4. Once a project has been deployed, people generally don’t touch it.
                                                • [26:20] Other new features? What about the File Specifier?
                                                  • File specifier is new. File paths can be in package json, usually put inside pointing to something inside your package.
                                                  • It will copy from there to your node modules.
                                                  • Just a node module symlink.
                                                  • Much faster. Verifiable that what’s in your node modules matches the source. If it’s pointing at the right place it’s correct. If not, then it’s not.
                                                  • Earlier, sometimes it was hard to tell.
                                                  • [27:38] Anything else as part of the NPM 5 release? Who do you think will be most affected by it?
                                                    • For the most part, people notice three things:
                                                    • 1st. no giant tree at the end
                                                    • 2nd. Much faster
                                                    • 3rd. Package lock.
                                                    • [28:14] If it’s locked, how do you update it?
                                                      • Run npm installer and then npm update
                                                      • Used to be scary, but works well now.
                                                      • Updates to latest semver, matches semver to package json to all node modules.
                                                      • Updates package lock at the same time
                                                      • Summary in Git shows what’s changed.
                                                      • [28:59] Did Yarn come into play with your decisions with this release?
                                                        • The plans have been in play for a long time for this update.
                                                        • Yarn’s inclusion of similar features and the feedback was an indicator that some of the features were valuable.
                                                        • [29:53] Other plans to incorporate features similar to yarn?
                                                          • Features are already pretty close.
                                                          • There are other alternative package managers out there.
                                                          • PMPM interesting because when it installs it doesn’t copy all the files. It creates hard links.
                                                          • [30:28] Does PMPM and Yarn use NPM registry?
                                                            • Yes! Other than CNPM. The NPM client used in China.
                                                            • CNPM Registry mirror behind firewall. Have their own client to their registry. Their registry is a copy of ours.
                                                            • [31:15] What about RNPM?
                                                              • I wouldn’t be surprised.
                                                              • [31:45] “Won’t you come and say something controversial about your competitor?”
                                                                • We all want it to be collaborative.
                                                                • When we were writing our new cache, we also helped Yarn with their cache and sped things up tremendously.
                                                                • Picks
                                                                  Charles

                                                                  Rush Limbaugh’s children’s books

                                                                  Tinker Crate
                                                                  Kiwi Crate
                                                                  NPM
                                                                  Episodes on My JS Story.

                                                                  Joe

                                                                  Gravity Falls

                                                                  Board Games

                                                                  Rebecca

                                                                  NPX

                                                                  Funstream

                                                                  Links to keep up with NPM and Rebecca

                                                                  Twitter @rebeccaorg

                                                                  NPMjS on Twitter
                                                                  blog.npmjs.com

                                                                  41 min
                                                                • AiA 144 Azure and Angular with Shayne Boyer

                                                                  On today’s episode of Adventures of Angular we’ve got panelists Ward Bell, Joe Eames, Alicia Michael, John Papa, Charles Max Wood, and our special guest Shayne Boyer. Shayne is a Senior Developer Advocate at Microsoft and on the Azure team. The last time he was on the show was Episode 082 of Adventures in Angular and we talked about getting started with Angular 2. Today we are going to talk a bit about Angular and Azure. Stay tuned.

                                                                  [3:12] Talk about offerings with Azure.
                                                                  • There is a connotation that if you want to use Azure you have to use .NET
                                                                  • That is not the case.
                                                                  • Large part of Azure runs linux.
                                                                  • There are over 170 type products that Azure offers.
                                                                  • noSQL databases, postgres, mongolDB, Azure Cosmos, Azure functions
                                                                  • It’s more than .NET and VMs.
                                                                  • Things you can do this type application are things like - Deployment to web front end, putting apps in Docker container and pushing to container service, scaling those apps etc etc.
                                                                  • [5:23] Put your app in Docker container?
                                                                    • Talking about just front end. Just the web application.
                                                                    • Putting it into a container and deploying the container into a linux instance or web app on Azure.
                                                                    • [6:13] Why is it a good thing to use Docker for this kind of thing?
                                                                      • Example. NGX for front end services, you can’t NGbuild using ClI do an NGBuild get the disc folder and throw that to a web application service like IAS or Node and have that application just service. Deep linking wouldn’t work.
                                                                      • Instead you would want to package something like an express server that requires NodeJS. Then something to handle deep linking. You can easily package that in a container and push it to the cloud and be able to control it without worrying about infrastructure.
                                                                      • Essentially it’s the app that has been written as well as the server that serves that app.
                                                                      • You can choose the base it runs on. I.e. Node 6 instead of 8. Etc etc.
                                                                      • Control those in the container so any time you pull it down it has those same settings.
                                                                      • Often developers assume versions of services are the same between the developer and the services used like a cloud service and when it’s not, things break.
                                                                      • The concept of “works on my machine” is actually true now. How it works for you, will be exactly how it works where ever you push it.
                                                                      • You can set up the version of Node you want, the settings how you’d like, test it on your own machine and when you push it to providers like Azure, Heroku, AWS, etc, it will run the same on all those providers.
                                                                      • Takes away complexities when testing.
                                                                      • [9:39] Outside of Docker, what other things does cloud bring to the table?
                                                                        • Serverless offerings.
                                                                        • Takes away issues with - worry about building a node server to serve my app. Building API to serve the data. Building Infrastructure behind the server and deploying it.
                                                                        • Building and deploying pains reduced as well.
                                                                        • [10:57] “Wait wait, serverless?”
                                                                          • It’s the new buzzword.
                                                                          • There are servers underneath.
                                                                          • Don’t have to worry about infrastructures or the servers themselves.
                                                                          • Just write the function.
                                                                          • Function will return the data to controller service built in Angular. Just have to build the Javascript (or python, and C#, java is coming) in the portal or in Github, and it’s just the code to run the function.
                                                                          • No need to worry about the types of servers, VMs, operating systems, patching or scaling.
                                                                          • It will scale based on what the capacity demand it needs.
                                                                          • Event driven - event queues, message queues, etc.
                                                                          • [13:20] Simple endpoints
                                                                            • Scalability at endpoint level.
                                                                            • Previously when writing APIs on the backend, typically you’re concerned with scaling that API application.
                                                                            • Endpoints typically scale at the same level.
                                                                            • Serverless functions scale at that typical API level.
                                                                            • Paying only for usage.
                                                                            • [15:30] How do you orchestrate between the services?
                                                                              • Just because you spread things around doesn’t mean it’s better.
                                                                              • It’s important to realize that breaking assembly or dll files down into smaller dll files don’t change things much.
                                                                              • Minimizing what it takes to think about when it comes to handle and configure a server running the services.
                                                                              • It’s easy as “Here it is, go run it for me Azure!”
                                                                              • [20:12] How does this relate to angular developers?
                                                                                • Be careful about over complicating the ‘concept count’ Having too many systems, front end, back end, VMs, Docker, etc. To many things to learn or to know to get it done.
                                                                                • Easier to write API and serverless. So then it’s just Javascript on the front end. Much easier.
                                                                                • [21:58] Someone brand new to Azure, what should they try out?
                                                                                  • Azure functions is a great place for Javascript or Angular.
                                                                                  • Typescript is coming as well.
                                                                                  • Understanding it’s just a backend.
                                                                                  • Learning to connect to a database, or have a static file.
                                                                                  • Routing, proxies, etc are all built in Azure.
                                                                                  • [23:13] What JavaScript engine does it support?
                                                                                    • Chakra Engine.
                                                                                    • ES 5
                                                                                    • ES 6
                                                                                    • Support for TypeScript recently announced. Coming up.
                                                                                    • Node 8 is now available on Azure service platform.
                                                                                    • [25:04] More on the portal.
                                                                                      • The portal is one of the largest typescript platforms available right now.
                                                                                      • The portal is not the only option.
                                                                                      • Strong CLI experience.
                                                                                      • Making VMs and web applications and all products can be done with CLI.
                                                                                      • If you like CLI then start there.
                                                                                      • [26:54] Creating a quick web app
                                                                                        • If you want to create a new web application.
                                                                                        • Simple as AZ web create
                                                                                        • Pass the name of application
                                                                                        • pass the location
                                                                                        • in a few commands you can create an app
                                                                                        • Set it up to deploy from the GitHub Repo
                                                                                        • From there it’s just checking in code and it’s getting the deployment from the CLI pipeline.
                                                                                        • Write it, check it in, deploy.
                                                                                        • [27:32] Do you have articles or videos that people can jump to?
                                                                                          • Did a course in deploying an angular app using GitHub git Azure
                                                                                          • Talks about how to hook up Azure web app instance to a GitHub repo.
                                                                                          • It’s easy as checking in code, no worries about the concept count and complicated setup.
                                                                                          • [28:45] Integrates with Docker and Visual Studio Code
                                                                                            • There is an Azure extension for VS Code that allows you to push all of your code.
                                                                                            • Demos available to learn
                                                                                            • Has great extensions for Angular too.
                                                                                            • [29:28] Simplifies or eliminates complications on the back end, does it also help on the front end.
                                                                                              • Don’t have to worry about scaling my static site. Data is what makes it scalable.
                                                                                              • Serverless experience - hitting databases, doing computations, working on triggers or WebHook from other parts of your business.
                                                                                              • Azure function can listen to WebHooks
                                                                                              • Azure can aggregate backend in serverless functions.
                                                                                              • Has database offerings to store data.
                                                                                              • Infrastructure for hosting Node applications and Node APIs
                                                                                              • Azure does not = .NET
                                                                                              • [31:19] How does someone get involved and try it out?
                                                                                                • Go to Azure.com and try it free.
                                                                                                • Try the Azure functions portal free as well.
                                                                                                • Plenty of free experiences from the platform.
                                                                                                • The tuts and walk-throughs for almost any of the platforms or languages for Azure.
                                                                                                • Picks
                                                                                                  Joe

                                                                                                  John Papa’s course on Angular CLI course.

                                                                                                  NG Doc.

                                                                                                  Ward

                                                                                                  Troy Hunt used Azure functions to fight DDOS attacks article.

                                                                                                  Alexa

                                                                                                  Charles

                                                                                                  Serverless framework. NPM serverless.

                                                                                                  Angular Dev Summit (Now free)

                                                                                                  Shayne

                                                                                                  Keyvo Smartlock

                                                                                                  Angular 2 app to Azure using Git play by play course.
                                                                                                  Docs.microsoft.com

                                                                                                  Links

                                                                                                  Azure

                                                                                                  41 min
                                                                                                • MRS 007 My Ruby Story Charles Max Wood

                                                                                                  My Ruby Story with Charles Max Wood

                                                                                                  This week’s episode is a bit different. Charles Max Wood interviews… Charles Max Wood! Hear a bit about how Charles’ grandfather inspired him towards his career in programing, how handling technical support for Mozy somehow led him to writing Ruby code, and hear a bit about what he is working on now! Stay tuned.

                                                                                                  How did you get into Programming?

                                                                                                  Charles talks about remembering some of his first programming exposure as far back as second grade. He talks about programming the iconic turtle to move around on the screen and draw shapes. Later on he had more experience in a particular Math class in high school, this time Pascal, then of course the TI-85.

                                                                                                  Inspired by his Grandfather

                                                                                                  Charles gives a bit of a background story on his inspiration for taking electronics classes in school, his Grandfather. His Grandfather was an inventor that created various inventions, including tools used in the manufacturing of rocket boosters for the NASA Space Shuttle. Charles became very interested in electronics and took his first electronic class.

                                                                                                  Electrical engineering in College

                                                                                                  Charles then attended Brigam Young University majoring in Electrical Engineering, giving him even further chances to experience programming. To Charles, programming seemed fun but didn’t feel serious enough to hold weight as his career. His interest grew in computers. He eventually switches to Computer Engineering and graduates, also picking up a job in the office of information technology at BYU.

                                                                                                  Programming gets more serious

                                                                                                  Charles talks about how programming in college tended to lean towards games and fun projects, and it wasn’t until after college that the projects that he got involved with felt as if the work he was doing meant something. From building a system to help college students find apartments that fit their needs, to Bash scripts that made some of the IT updates at BYU faster and safer.

                                                                                                  His first job with Ruby on Rails

                                                                                                  Charles then lands a job with Mozy, the popular online backup service. Mozy’s systems were all running with Ruby on Rails and Charles worked as Technical Support. Mozy gets publicity in The Wall Street Journal, increasing the Technical Support workload. Charles then writes a Ruby on Rails system that created a smoother flow when cycling through emails. He soon added extra features like canned responses and a way to measure how often canned responses were sent as a way to highlight any particular issues Mozy was having.

                                                                                                  Shifting into Podcasting

                                                                                                  Charles talks about switching from a Management position to a developer track and working with a man name Don, who had an original iPod and listened to podcasts. Introducing him to Rails Envy, a podcast by Jason Seifer and Gregg Pollack. After emailing Gregg, to Charles’ surprise he responds and encourages him to start his own podcast. Charles talks about how he feels his main contribution to the Ruby community is his podcast. Since then he has had a chance to interview some really influential people, including David Heinemeier Hansson, the creator of Ruby on Rails. Outside of the podcast, Charles adds that he has also taken over Teach Me To Code and has contributed a few open source libraries, one connecting to project HoneyPot, as well as contributing indirectly through his other podcast work including JavaScript Jabber, and Adventures in Angular.

                                                                                                  What are you working on now?

                                                                                                  Charles talks about hoping to get back into writing open source code and even starting a project. Charles spends most of his time doing ‘businessy’ stuff for the podcast as well as the conferences, currently working on putting together a Ruby Dev Summit. Charles talks about a few new podcast shows he is working on, including bringing some requested content like web application security, React, and Elixir. Charles talks a bit about other things he is involved in at home and creating systems to help him manage his busy workload.

                                                                                                  Picks

                                                                                                  Electro-Voice RE20 Microphone
                                                                                                  Behringer Xenyx 802
                                                                                                  Roland EDIROL R-09
                                                                                                  ZOOM H6
                                                                                                  Audio Technica 2100
                                                                                                  GetACoderJob.com

                                                                                                  Charles’ Links

                                                                                                  Devchat.tv
                                                                                                  Charles’ Twitter
                                                                                                  Devchat.tv’s Twitter
                                                                                                  Charles GitHub
                                                                                                  34 min
                                                                                                • MJS #021 Justin Meyers

                                                                                                  My JS Story Justin Meyers

                                                                                                  On this week’s episode of My JS Story, Charles Max Wood interviews Justin Meyers Co­founder and CEO of Bitovi, a Javascript consulting firm focused on simplifying Javascript development through the use and creation of open source tools as well general consulting, training, and web applications. He was on Episode 202 and talked about DoneJS and CanJS. Tune in to hear Justin’s full story!

                                                                                                  7th Grade and a TI­82 [3:02]

                                                                                                  Justin’s discovery of conditional statements and methods on a classic TI­82 was his first taste of programming. With a little guidance, he soon learned to program games on the TI­82 and then later moved onto bigger and better mediums like C and QBasic.

                                                                                                  Grunt work is good for you. [4:51]

                                                                                                  While studying Computer Science, Justin finds out that professors often have grunt work, and although they may not pay well now, sometimes they can in time lead to loads of experience and maybe even a bigger job. After 4 years of working on websites and writing documentation, he gets his first real job at Accenture.

                                                                                                  Open Source and reducing waste. [6:23]

                                                                                                  Accenture, while giving him a great chance to make some impressive projects, provoked Justin to see the efficiency in sharing code. Justin and a college friend get together to work on a project to build a platform that…builds. Although their project was unsuccessful, the tools they started to create for the project had plenty of potential.

                                                                                                  The Last desperate gasp. AKA shaving his head. [9:40]

                                                                                                  Justin talks about the Ajaxian blog and conference. Ten years ago, the Ajaxian blog was one of the best online resources for Javascript news. Justin was running low on funds and struggling and as his “last desperate gasp” he heads to the Ajaxian conference with his head shaved. Leaving only “Javascript MVC” shaped out of his hair. This stunt gets him remembered by many of the important attendees and also scores him his big break with a consulting job with T­-Mobile. Two to Three weeks later, Justin had a stroke. Justin talks about how incredible the timing was.

                                                                                                  How Javascript MVC came to be. [13:23]

                                                                                                  Justin talks about starting with JSJunction and modeling after it. Their first steps were to add a model layer as well as Event Delegation. Javascript MVC reflects some of Ruby on Rails. Justin worked with Peter Svensson from Dojo, with a methodology that at the time seemed crazy. Justin reminisces when Steve Jobs “Killed” Flash with HTML5 and CSS.

                                                                                                  Bitovi begins. [17:24]

                                                                                                  Justin talks about how the T­-Mobile job meant that he would need an official business. Originally dubbing it JupiterIT. Justin found that MVC was too encompassing and that programmers enjoyed a sense of creativity. By pulling Javascript MVC’s tools apart and creating single frameworks from the tools, Justin then created tools like CanJS and DoneJS.

                                                                                                  Who does the heavy lifting at Bitovi? [20:48]

                                                                                                  As the CEO of Bitovi, Justin has less time to program as before. Working with Open Source, development is a mix between contributors and full time employees. The majority being the employees. Justin talks about not having a sales force and focusing on their product to drive sales. Mainly, long term cost of ownership and the ability for the framework to last, working hard to make sure that clients that have committed to Javascript MVC years ago still have a relevant use for the framework.

                                                                                                  Exploring HTTP2 and Push. [23:42]

                                                                                                  With the emergence of HTTP2 and Push, Justin talks about working on and exploring different ways for streaming/server side rendering. Justin describes one of the experiments with building an empty skeletons, javascript assets, but also pushing instructions on how to mutate the page to the client. Before the javascript payload is fully loaded, the page starts to mutate. Allowing for optimal performance on slower connections, fantastic for mobile. Problems they are looking at for the future include things like different ways that CDNs can work with HTTP2 and Push. Justin has also worked with using Fetch to enable streaming by building tools around that. He suggests that HTTP2 and Push will maybe bring a renaissance in the developer world.

                                                                                                  Justin’s side Parsing Project. [28:45]

                                                                                                  Additional to his other work, Justin is working on a generic parsing project. Similar to BISON or JISON. Designed for simple parsing at faster speeds. He describes how to compiles to the code that parses your code. Working in runtime.

                                                                                                  A way other companies can learn from Bitovi. [29:52]

                                                                                                  We don’t know what the future is going to be for code, so packaging the framework into separate repos allows for better scheduling and a better way to manage long term. Updating a segment of a framework can sometimes break another segment if having it all happen together.

                                                                                                  Picks [34:26]

                                                                                                  Justin:

                                                                                                  Dean Radcliff’s Antares Framework

                                                                                                  Charles:

                                                                                                  Boom Beach

                                                                                                  Clash of Clans

                                                                                                  BlueTick.io

                                                                                                  Nimble

                                                                                                  Keeping up with Justin’s work.

                                                                                                  Bitovi.com’s Blog

                                                                                                  Justin’s Twitter.

                                                                                                  Sponsors

                                                                                                  Cachefly.com

                                                                                                  Newbie Remote Conf 2017

                                                                                                  40 min
                                                                                                • AiA MAS 014 Aaron Frost: My Angular Story
                                                                                                  Aaron Frost

                                                                                                  On today’s episode of My Angular Story we have special guest Aaron Frost. This episode might as well be both, a My Angular Story as well as a My Javascript story. Aaron has worked with us on JS Jabber and was a panelist for Adventures in Angular. You also may know him from NG Conf, the original Angular Conference. Stay tune to hear his story!

                                                                                                  Getting Started

                                                                                                  Before Aaron got involved with Javascript or Angular, he worked as a loan officer, and he wasn’t the best at it. Luckily his job exposed him to small bits of SQL. Aaron goes to say that SQL “was like speaking English”. In 2010 he shifted into development. At the time, most web developers hated Javascript, so anytime they could pin Javascript work on him they would. Aaron loved it.

                                                                                                  College Dropout

                                                                                                  Aaron decided to go to college to learn programing, mainly as a means to an end. His goal was primarily to get a job. After finding the job, he dropped out of classes. Aaron says that he was confused by why he was still in school considering he had the job and at any rate, Aaron had learned how to teach himself. Between Stack Overflow and podcasts and Youtube, Aaron has all the resources he needed.

                                                                                                  Getting Into Work.

                                                                                                  Aaron talks about his time working with Kynetx, writing a language called Kynetx Rule Language. Kynetx was a platform where developers could create web browser plugins and it would work across the platforms. Aaron talks about the lack of frameworks then, leaving mainly only jQuery.

                                                                                                  And Then, Angular…

                                                                                                  In one of the corporations Aaron worked for, they used a framework called Backbone. Five Hundred programmers all prescribed Backbone for their work, but Aaron nudged someone in the stack team to look into Angular. It was a no brainer, Angular allowed to get the job done in much less code. They adopted it and got proficient.

                                                                                                  Conferences “Oyee! We should make one!”

                                                                                                  Aaron and Kipp Laurence decided that after they were unable to find an Angular conference to goto online that “Oyee! We should make one!” Reluctantly Aaron agreed and afterwards had someone from Google on board to send a whole team to the conference.

                                                                                                  Google Developers Experts

                                                                                                  Aaron is a GDE. He talks a bit about what that process what like and how it’s changed. He talks about what Google looks for in a GDE and clears any misconception that a GDE is about people who contribute to the community and are natural evangelists.

                                                                                                  Aaron vs Captchas

                                                                                                  Aaron talks about how one of his first projects will always be his favorite. His brother worked in real estate and used a particular website for work. The website had an annoying Captcha that had to be filled out pretty frequently. His brother asked Aaron to attempt to create a way to bypass the Captchas. Aaron talks about how at first he thought it was impossible, but after contemplating using a canvas and some basic calculations, he was able to put together a web browser extension to handle the task. They marketed the tool to others that used the website.

                                                                                                  What He Has Learned

                                                                                                  Aaron says that there is a theme that is reoccurring for him. Aaron talks about how often programmers and developers spend their efforts “chasing the pendulum” instead of focusing on solving the issues that the company needs them to solve. Programmers should worry less with how cool their patterns are or if they are using the latest Frameworks, and more about getting the job done.

                                                                                                  Keeping Up

                                                                                                  Aaron’s Twitter

                                                                                                  Aaron’s Medium
                                                                                                  Aaron’s GitHub
                                                                                                  Aaron’s AMA

                                                                                                  Picks
                                                                                                  Aaron

                                                                                                  Superpowereds

                                                                                                  Yarn
                                                                                                  Samsung SmartThings

                                                                                                  Charles

                                                                                                  Nimble

                                                                                                  BlueTick
                                                                                                  Zapier
                                                                                                  Visual Studio Code
                                                                                                  Microsoft Build

                                                                                                  41 min
                                                                                                • RR 314 DynamoDB on Rails with Chandan Jhunjhunwal
                                                                                                  RR 314 DynamoDB on Rails with Chandan Jhunjhunwal

                                                                                                  Today's Ruby Rogues podcast features DynamoDB on Rails with Chandan Jhunjhunwal. DynamoDB is a NoSQL database that helps your team solve managing infrastructure issues like setup, costing and maintenance. Take some time to listen and know more about DynamoDB!

                                                                                                  [00:02:18] – Introduction to Chandan Jhunjhunwal

                                                                                                  Chanchan Jhunjhunwal is an owner of Faodail Technology, which is currently helping many startups for their web and mobile applications. They started from IBM, designing and building scalable mobile and web applications. He mainly worked on C++ and DB2 and later on, worked primarily on Ruby on Rails.

                                                                                                  Questions for Chandan

                                                                                                  [00:04:05] – Introduction to DynamoDB on Rails

                                                                                                  I would say that majority of developers work in PostgreSQL, MySQL or other relational database. On the other hand, Ruby on Rails is picked up by many startup or founder for actually implementing their ideas and bringing them to scalable products. I would say that more than 80% of developers are mostly working on RDBMS databases. For the remaining 20%, their applications need to capture large amounts of data so they go with NoSQL.

                                                                                                  In NoSQL, there are plenty of options like MongoDB, Cassandra, or DynamoDB. When using AWS, there’s no provided MongoDB. With Cassandra, it requires a lot of infrastructure setup and costing, and you’ll have to have a team which is kind of maintaining it on a day to day basis. So DynamoDB takes all those pain out of your team and you no longer have to focus on managing the infrastructure.

                                                                                                  [00:07:35] – Is it a good idea to start with a regular SQL database and then, switch to NoSQL database or is it better to start with NoSQL database from day one?

                                                                                                  It depends on a couple of factors. For many of the applications, they start with RDBMS because they just want to get some access, and probably switch to something like NoSQL. First, you have to watch the incoming data and their capacity. Second is familiarity because most of the developers are more familiar with RDBMS and SQL queries.

                                                                                                  For example, you have a feed application, or a messaging application, where you know that there will be a lot of chat happening and you’d expect that you’re going to take a huge number of users. You can accommodate that in RDBMS but I would probably not recommend that.

                                                                                                  [00:09:30] Can I use DynamoDB as a caching mechanism or cache store?

                                                                                                  I would not say replacement, exactly. On those segments where I could see that there’s a lot of activity happening, I plugged in DynamoDB. The remaining part of the application was handled by RDBMS. In many applications, what I’ve seen is that they have used a combination of them.

                                                                                                  [00:13:05] How do you decide if you actually want to use DynamoDB for all the data in your system?

                                                                                                  The place where we say that this application is going to be picked from day one is where the number of data which will be coming will increase. It also depends on the development team that you have if they’re familiar with DynamoDB, or any other NoSQL databases.

                                                                                                  [00:14:50] Is DynamoDB has document store or do you have of columns?

                                                                                                  You can say key value pairs or document stores. The terminologies are just different and the way you design the database. In DynamoDB, you have something like hash key and range key.

                                                                                                  [00:22:10] – Why don’t we store images in the database?

                                                                                                  I would say that there are better places to store the, which is faster and cheaper. There are better storage like CDN or S3.

                                                                                                  Another good reason is that if you want to fetch a proper size of image based on the user devices screen, resizing and all of the stuff inside the database could be cumbersome. You’ll repeat adding different columns where we’ll be storing those different sizes of images.

                                                                                                  [00:24:40] – Is there a potentially good reason for NoSQL database as your default go-to data store?

                                                                                                  If you have some data, which is complete unstructured, if you try to store back in RDBMS, it will be a pain. If we talk about the kind of media which gets generated in our day to day life, if you try to model them in a relational database, it will be pretty painful and eventually, there will be a time when you don’t know how to create correlations.

                                                                                                  [00:28:30] – Horizontally scalable versus vertically scalable

                                                                                                  In vertically scalable, when someone posts, we keep adding that at the same table. As we add data to the table, the database size increases (number of rows increases). But in horizontally scalable, we keep different boxes connected via Hadoop or Elastic MapReduce which will process the added data.

                                                                                                  [00:30:20] – What does it take to hook up a DynamoDB instance to a Rails app?

                                                                                                  We could integrate DynamoDB by using the SDK provided by AWS. I provided steps which I’ve outlined in the blog - how to create different kinds of tables, how to create those indexes, how to create the throughput, etc. We could configure AWS SDK, add the required credential, then we could create different kinds of tables.

                                                                                                  [00:33:00] – In terms of scaling, what is the limit for something like PostgreSQL or MySQL, versus DynamoDB?

                                                                                                  There’s no scalability limit in DynamoDB, or any other NoSQL solutions.

                                                                                                  Picks

                                                                                                  David Kimura            

                                                                                                  • CorgUI
                                                                                                  • Jason Swett     

                                                                                                    • Database Design for Mere Mortals
                                                                                                    • Charles Maxwood

                                                                                                      • VMWare Workstation
                                                                                                      • GoCD
                                                                                                      • Ruby Rogues Parley
                                                                                                      • Ruby Dev Summit
                                                                                                      • Chandan Jhunjhunwal     

                                                                                                        • Twitter @ChandanJ
                                                                                                        • 47 min
                                                                                                        • JSJ 265 Wade Anderson and Ramya Rao on Visual Studio Code
                                                                                                          JSJ 265 Wade Anderson and Ramya Rao on Visual Studio Code

                                                                                                          This episode is live at the Microsoft Build 2017 with Charles Max Wood and AJ O’Neal. We have Wade Anderson and Ramya Rao from the Visual Studio Code Team at Microsoft. Tune in and learn more about what’s new with Visual Studio Code!

                                                                                                          [00:01:20] – Introduction to Ramya Rao and Wade Anderson

                                                                                                          Ramya Rao and Wade Anderson are in the Visual Studio Code Team at Microsoft.

                                                                                                          Questions for Wade and Ramya

                                                                                                          [00:02:00] – Elevator Pitch for Visual Studio Code

                                                                                                          Our vision on Visual Studio Code is to take what was best out of the IDE world (Visual Studio, Eclipse, IntelliJ, etc.) and bring what was best from the lightweight editor world (Sublime Text, Notepad++, Atom) and merge those two together. We wanted the lightweight features from text editors and the debugging capabilities of Visual Studio and Eclipse. We did general availability last year. We’ve been stable for a year. Additionally, this is Visual Studio Code for Mac, Windows, or Linux. It’s also built in Electron.

                                                                                                          [00:03:45] – What are your roles on the team? Do you have particular parts that each of you work on?

                                                                                                          Wade’s title is a Program Manager. He does more non-developer things but Ramya is an engineer on the team so she gets a lot more coding that Wade does. Everybody has a key area to own but nothing stops them to go into another area. We try to share knowledge between people but we always have that one key owner that you always go to.

                                                                                                          Ramya is a recent addition to the team. She started out maintaining the Go extension, maintaining and adding features. She’s slowly branching out to the Emmet features of the product.

                                                                                                          [00:05:30] What is Emmet?

                                                                                                          Emmet, or Zen Coding, is a must-have tool for you. You can write, say abbreviations and that expands to really huge HTML to update tags, rename tags, etc. That is one of the features of Emmet and Sergey actually wrote the library. We have an in built integration in the product. I [Ramya] am currently working on that.

                                                                                                          [00:06:28] Does Visual Studio Code make it easy to go to the parts that I need to customize on an HTML?

                                                                                                          In that case, we have a multi-cursor software in Visual Studio Code, as well. You could place your cursor in different positions, and then, simultaneously edit things.

                                                                                                          [00:07:42] Is Emmet an extension or does it come with Visual Studio Code?

                                                                                                          Right now, it’s in Built. If you want to know more about Emmet features, you can to emmet.io. That has all the documentation that you need to learn about Emmet features. In Visual Studio Code right now, we’re looking at making into an extension. We pull it out of the main code and maybe more people can contribute and make it even more better.

                                                                                                          [00:08:21] – What’s new in Visual Studio Code?

                                                                                                          One of our main pillars for this year is to improve performance of the product. We’ve grown a larger team so we’re adding a lot more features every month. Last few months has been, “How can we get some stability on the issues coming in while making sure we’re reducing our tech load?” We really keep to those core principles that we started with at the beginning, which was, we want a fast, lightweight editor.

                                                                                                          We built a few extensions that we call key map extensions. They are just a mapping of key bindings that you learned in Sublime Text. You don’t have to re-learn any key bindings in Visual Studio Code.

                                                                                                          We also build this Welcome page where you can flip through and see features really briefly. In that Welcome page, one of the key things is an interactive playground where you can play with existing code in different sections. Additionally, as we’ve mentioned, we also put multi-cursor features.

                                                                                                          Another thing is workbench naming. You can change the theme of Visual Studio Code but it will be restricted to the editor and not the rest of the workbench.

                                                                                                          [00:13:40] – Do you know how Xterm.js works as it was one of the features that you’ve added in Visual Studio Code?

                                                                                                          Daniel’s another engineer that’s here with us today. He was the largest contributor to the Xterm.js project. He built the integrated terminal for Visual Studio code so I can’t speak to the internals of how that works.

                                                                                                          [00:14:12] – Are we going to start seeing Visual Studio Code integrated into web experiences with other Microsoft products?

                                                                                                          That’s actually where we started. We were Monaco editor where you get this cloud-based editing experience. We’re getting people to use it but we’re only getting people who were already using Microsoft products.  When electron came out, we saw an opportunity of, “Hey, can we port this  Monaco editor to Electron and we could then, run it on Mac and Linux.”

                                                                                                          [00:19:45] – What are the performance things that you’ve done?

                                                                                                          One thing that we did recently was adding an ability to calculate the start time for Visual Studio Code? That’s one of our full steps to get more information from the user-side. How can you get a profile of what things are running? Which part of the process took much time?

                                                                                                          We also need to identify what are the things people are doing that’s causing the editor slow down. An example is when you open a large file and things get laggy.

                                                                                                          Another exercise we did was we looked at all of our extension API’s to see which one of those could be a malicious extension.

                                                                                                          The difference between VS Code and Atom is that, we ask questions like, “Are we using good data structures? Are we managing our memory properly? Are we removing stuff we don’t need anymore?” That just comes down to all those little things you learn from basic textbooks that have been around for decades about how to write good code. That’s what we have been doing and that’s what we’ll continue to try to do, to try and improve the performance.

                                                                                                          [00:25:55] – Do you have problem on the desktop? Are all the modules just load at once?

                                                                                                          We definitely don’t load everything at once. Different parts of the editor is loaded differently. When you do the Require, we don’t do it at first load. We do it when we notice that the user wants to use Emmet. We don’t try to load all the library at the beginning and delay the whole process.

                                                                                                          We try to lazy load as much as possible, even the extensions. We have a separate process called extension host that takes care of loading all the extensions. Whether the extensions are completed loading or not, that does not stop you from typing in a file. Simple actions shouldn’t be bugged down by fancy actions.

                                                                                                          [00:28:25] – What’s coming next for Visual Studio Code?

                                                                                                          Every month, when we plan our iteration, we create iteration draft plan. We put it out there for people to see. Performance and helping people get started are probably the top two for us. You can look at github.com/Microsoft/vscode, look for the label ‘iteration plan draft.’ So that’s the current work that we’re doing that month.

                                                                                                          Another feature is the multi-root workspace where you can open multiple folders. When you look at the issues and sort by most comments, multi-root is the number one. The second one that is little paper cuts around formatting and auto-intending – just things that make your code prettier.

                                                                                                          Picks

                                                                                                          AJ O’neal

                                                                                                          • Breath on the Wild
                                                                                                          • Microsoft’s Intelligent Edge
                                                                                                          • Charles Max Wood

                                                                                                            • Boom Beach
                                                                                                            • Bluetick.io
                                                                                                            • Emacs key binding extension for Visual Studio Code
                                                                                                            • Wade Anderson

                                                                                                              • Kindle Paperwhite
                                                                                                              •  Twitter @waderyan_
                                                                                                              • Ramya Rao

                                                                                                                • Open source
                                                                                                                • Twitter @ramyanexus
                                                                                                                • 48 min
                                                                                                                • AiA 143 KendoUI with Burke Holland
                                                                                                                  AiA 143 Kendo UI with Burke Holland

                                                                                                                  Charles Max Wood and Burke Holland discuss Kendo UI. Burke Holland is on the Developer Tools Division at Progress. The discussion ranges from the introduction of Kendo UI to tests used for Angular apps. Stay tuned to discover what Kendo UI can do for you!

                                                                                                                  [00:01:50] Shutout for Angular Remote Conf

                                                                                                                  Charles will be picking speakers really soon so get your ticket at the early bird price.

                                                                                                                  [00:02:15] – Introduction to Burke Holland

                                                                                                                  Burke Holland is working for Progress in the Developer Tools Division on the Developer Relations Team. They work on products like NativeScript, KendoUI and all the developer tools that Progress makes, which is mostly UI components and mobile frameworks

                                                                                                                  Questions for Burke Holland

                                                                                                                  [00:03:00] – What is Kendo UI?

                                                                                                                  Kendo UI is a Javascript UI library. It has open source components (Kendo UI Core), but it’s primarily commercial. It’s more on heavy lifting text scenarios like grid that has sorting and filtering, drag and drop, grouping, scheduler, robust calendar interface, pivot grids, Gantt charts, data visualizations. We’ve rebuilt Kendo UI from the ground up using Angular components. It’s the Kendo UI Core Angular that was released last January.

                                                                                                                  [00:08:00] – How are Kendo UI elements pulled for use into an app?

                                                                                                                  There’s a private npm repo that you would just pull in and bundle some of the widgets together. Inputs can be a drop down list, a combo box, autocomplete, etc. Using npm and install -@progress/kendo-angular-input, you get all of those inside your npm modules folder. We and the team are pushing to move to the public npm repo so that people don’t have to register for an account.

                                                                                                                  [00:13:00] What about mobile development? Does this work with NativeScript?

                                                                                                                  Kendo UI widgets do not work inside of NativeScript for mobile apps. However, we are looking for a possibility of merging their NativeScript UI library with Kendo UI so that you can build a website, a progressive web app, a NativeScript app, etc.

                                                                                                                  [00:16:00] Do you also have to pull in some CSS?

                                                                                                                  Kendo UI has their own CSS that is based on Sass. It has a theme builder to customize themes that you can pre-select from. Integration for Bootstrap 4 was also built because Kendo UI does not have a layout system so it doesn’t provide you with any grid system for layouts or for responsive design.

                                                                                                                  [00:19:00] Do you just import it into my app and then use the components, is it that simple?

                                                                                                                  It is recommended to use Angular CLI to use Kendo UI’s components and import it into an app. First step is to create a new project with the Angular CLI because Kendo UI is designed to work with it. You can work with SystemJS, instead, but it requires some tweaking. Next, you would need to add the private npm repo which registers the end point on the terminal. And then, npm-install to install the components. After that, you can include them in your app module file. Import Kendo grid from @progress/kendo-angular-grid. Then, you can import them into your module so you use it in your templates.

                                                                                                                  [00:23:00] – Can I tie a chart to a grid, update the chart and have the grid change?

                                                                                                                  Everything that Angular updates, Kendo UI just updates too. If you buy two components to the same array and you update that array, both of those components are going to update because they’re using Angular’s binding.

                                                                                                                  [00:24:00] – Does Kendo UI work with the older versions of Angular?

                                                                                                                  Kendo UI works with Angular 1.x. By the way, AngularJS means Angular 1.x. Meanwhile, Angular means Angular 2 and up. Directives for Angular 1.x wrap Kendo UI components.

                                                                                                                  [00:28:00] – When moving my component in AngularJS to Modern Angular, do I have to include both of those in the product?

                                                                                                                  I can’t provide any guidance here, other than I wouldn’t do that. If you migrate, you’re going to be firing up a new project but you should be able to move your application logic over pretty well. However, we still have this idea of services and injection and those things are transferable. And then, when you use Kendo UI components, the only thing that’s really transferable there is the configuration settings.

                                                                                                                  [00:29:00] – How do you write tests if you’re testing Angular app? Are there other things that you should be testing?

                                                                                                                  That would mean there’s some sort of functional testing and unit testing. If we’re talking about unit testing, you should just test the way that you would normally test Angular. For functional test, you need a functional testing tool like Selenium or Test Studio.

                                                                                                                  [00:30:00] – Is there anything else that people need to know about Kendo UI?

                                                                                                                  We’ve got a lot of other components coming so stay tuned on that. We’re also working on some React stuff. We always love to get feedback. We have a github repo.

                                                                                                                  Picks

                                                                                                                  Burke Holland:

                                                                                                                  • Server list
                                                                                                                  • Azure Functions Challenge
                                                                                                                  • Medium article on Samsung’s weird emoji
                                                                                                                  • Twitter at @burkeholland
                                                                                                                  • Twitter of Tara Z. Manicsic
                                                                                                                  • Charles Max Wood:

                                                                                                                    • Serverless library in npm
                                                                                                                    • AWS Lambda
                                                                                                                    • Slack room for the podcast (adventuresinangular.com/slack)
                                                                                                                    • Angular Remote Conf
                                                                                                                    • Get A Coder Job
                                                                                                                    • Stack for Slack automation
                                                                                                                    • MemberPress on WordPress
                                                                                                                    • 39 min