Herding Code

Herding Code

By Herding CodeTechnologyTech News
Download on the App Store

Herding Code episodes

  • Herding Code 171: Magnus Martensson talks Continuous Delivery on Windows Azure and the Global Windows Azure Bootcamp

    Episode 171

    At NDC, Jon and K Scott talked to Magnus Martensson about continuous delivery on the Windows Azure platform and the Global Windows Azure Bootcamp he helped run.

    Download / Listen:

    Herding Code 171: Magnus Martensson talks Continuous Deliverery on Windows Azure and the Global Windows Azure Bootcamp

    Show Notes:

    • Continuous Delivery on Windows Azure
      • (00:20) Jon asks Magnus about what he'll be speaking about at NDC.
      • (00:45) Jon asks about the difference between continuous integration and continuous delivery. Magnus says continuous integration just runs tests and builds, but it doesn't go anywhere; continuous delivery actually deploys the code to an environment - staging, possibly production.
      • (02:06) K Scott asks about Azure support for continuous delivery. Magnus says you can do it with cloud services, but there's a delay; with Windows Azure Web Sites the deployment is extremely fast and easy.
      • (03:00) K Scott asks about the steps of setting up continuous delivery for a web application for deployment including non-git source control. Magnus talks about the setup, new offerings for dev / test scenarios, and asks why anyone wouldn't integrate this into their development process.
      • (05:02) Jon asks what recent Azure changes were announced. Magnus discusses both pricing and policy changes for MDSN subscriptions.
      • (05:47) Jon asks what some of Magnus' demos include. Magnus talks about using your own TFS service, other git repos, etc. He talks about a his secret demo - the non-Microsoft demo that uses TeamCity, NUnit, and GitHub.
      • (07:45) K Scott mentions all the new Azure SDK language support.
    • Migrating to the cloud and surprise business transformations
      • (07:54) Jon asks how this relates to Magnus' work. Magnus works at Active Solution, which employs both of Sweden's Azure MVP's. Cloud development is really a hot field in Sweden right now.
      • (08:45) Jon asks about some common challenges. Magnus says the biggest thing is learning the platforms - there are a lot of architectural and strategic things they haven't even considered.
      • (10:23) K Scott asks if businesses think they can't move to the cloud because they have custom processes or protocols.
      • (10:59) Jon asks if they often do hybrid solutions. Magnus says that multitenant solutions are common, and the process allows companies to transform themselves from product to service companies.
    • Global Windows Azure Bootcamp
      • 12:21 Jon asks about the Global Windows Azure Bootcamp that Magnus helped organize. Magnus tells the story of how they started talking to a few MVPs and things spiraled out of control. In the end they had all timezones, 92 locations, over 5000 attendees. They had some big turnout in some unexpected locations: Nepal, Brazil, Africa.
      • 14:08 Jon asks what happened at the event. Magnus talks about the content in the Windows Azure Training Kit and a shared demo with nearly 5000 coordinated worker roles in a giant render farm passed the rendering power of some Pixar films.
      • (16:13) Jon asks about the relationship with Microsoft for the event. It was community run, but Microsoft helped out with things like attendee giveaways.
      • (16:52) Jon asks if they'll do this again. Magnus says yes and talks about some of the scaling challenges. He calls out the sponsors, who gave away $18 million in license giveaways. It scales because each location is independent, so each location just needs to run one event. 
      • (18:36) Jon says this reminds him of Corey Haines' Global Day of Code Retreat.
      • (18:52) Jon asks what Magnus is up to next. Magnus says he's moving and calls out the upcoming CloudBurst conference - in Sweden and live streamed.

    Show Links:

    • Magnus Martensson (http:??magnusmartensson.com?, @noopman)
    • NDC Session video: Continuous Delivery Zen on Windows Azure
    • Active Solution
    • Global Windows Azure Bootcamp
    • 256 Worker Role 3D Rendering Demo is now a Lab on my Azure Course
    • Global Day of Coderetreat
    • CloudBurst 2013
    • Herding Code 128 - Corey Haines on Global Day of Coderetreat
    • Herding Code 143 - Paul Stack on Continuous Delivery
    21 min
  • Herding Code 170: NDC Geekout with Richard Campbell and Rob Conery

    Episode 170

    At NDC, Jon and Rob Conery quizzed Richard Campbell about books, nanotech, graphene, cooking, travel, explosions and more.

    Download / Listen:

    Herding Code 170: NDC Geekout with Richard Campbell and Rob Conery

    Show Notes:

    • Cryptonomicon and other Neal Stephenson books
      • (00:55) Rob Conery says he's been rereading Cryptonomicon. Richard, Jon and Rob talk about their favorite Neal Stephenson books.
    • Nanotech
      • (02:26) Richard mentions nanotech in the context of Diamond Age. Jon asks Richard what's going on with nanotech.
      • (03:31) Richard describes graphene - what it is, how it's made, and what we can do with it.
    • BBQ!
      • (07:38) Jon asks Richard what he uses to barbecue things. No surprise, he's got three different BBQ devices, electrical modifications and Excel spreadsheets. Intense food chemistry discussions ensue.
    • Turing and Electromechanical computing
      • (11:32) Rob talks about the Enigma machine discussion in Cryptonomicon. Jon and Richard talk about how the Enigma code was broken.
    • Quantum computing
      • (14:37) Jon asks Richard about quantum encryption and computing. Richard explains  quantum effects with the two slit experiment.
    • My Drunk Kitchen
      • (18:10) Jon asks Richard how it came to pass that he hosted an episode of My Drunk Kitchen. Richard tells the history of My Drunk Kitchen and how french toast turned into some kind of sourdough frittata.
    • Home brewing and stills
      • (22:37) Jon asks Richard if he's done any home brewing. Richard owns a still but has not used it in anger yet. Richard lists the dangers of moonshining and one-upmanship contests with Carl Franklin. 
    • The geekiest house ever
      • (25:38) Jon asks how Richard handles his intensely instrumented house and Rob asks for more details about Richard's house. Richard says he's only been raided as a suspected drug grow-op house once and talks about all the server infrastructure he's got at his house.
      • (29:50) Rob asks about Richard's generator setup.
    • Modern media management
      • (31:23) Jon asks Richard how he handles the hardest problem in modern life: managing media. Richard talks about his media shares, networking, media center, and how he gets all the good stuff.
    • Favorite books
      • (34:28) Jon asks Richard for five book recommendations. Richard recommends Existence, Daemon and Freedom. Jon and Richard discuss the believability of Daemon and Richard talks about how some authors are good story tellers, others are good universe builders, and authors who do both are incredibly rare. Richard also recommends Lean Startup and The Phoenix Project. Rob recommends Ender's Game and talks about Arthur C. Clarke; Jon says he liked The Fiction Author's Guide To Time Travel and that got him into Heinlein. Rob and Richard liked Dan Simmons - especially Hyperion. Rob and Richard discuss the difficulty of ending a story well and Richard says Harry Potter put The Matrix to shame in that regard.
    • Travel tips
      • (41:45) Jon asks Richard for some travel tips. Richard starts with recommending local SIM cards and knowing your power plugs.
      • (42:33) Richard recommends beating jet lag using light and timing your meals. Rob has been pretty happy with some homeopathic jetlag whatsihoosie and likes baking soda too.
      • (45:08) Jon likes compression bags and big batteries with USB outputs. Jon and Richard discuss the frustration of the VGA to HDMI conversion.
      • (47:33) Rob always maps out the nearest Apple store before travelling.
      • (47:57) Jon has USB video adapters for both VGA and HDMI and figures he's covered.
      • (48:15) Richard mentions wireless video in Windows 8.1. Rob mentions AirPlay and Jon talks about Windows PlayTo, but they're all too fiddly for now.
    • Pretend ending
      • If you don't like background noise, this is the end. Bye!
    • More stuff in the outtake
      • We had some more discussion that's pretty hard to hear because of background noise, but we're throwing it in just in case you want to listen through it.
      • (50:44) Rob talks about Benford's Law. Rob talks about the application in detecting voter fraud, Rob talks about the application in counterespionage in Cryptonomicon.
      • (52:14) Rob wants to talk about submarines. Jon talks about some of the complexities of torpedo seek patterns. Rob talks about Russian supercavitation and mine hunting. Jon talks about old Russian wing-in-ground effect vehicles and ski-ramp carriers.
      • (55:30) Richard talks about rail guns, which reminds Jon of fuel air explosives. Jon and Richard tell FAE stories.
      • (58:47) Rob tells a story about big explosions at a YMCA camp on Catalina Island.

    Show Links:

    • Richard Campbell (@richcampbell)
    • Rob Conery (@robconery, http://wekeroad.com)
    • Norwegian Developers Conference (NDC)
    • Graphene
    • Enigma machine 
    • My Drunk Kitchen: Vancouver..."French Toast"? (contains drinking and cursing and a little cooking)
    • Books
      • Cryptonomicon by Neal Stephenson
      • The Code Book: The Science of Secrecy by Simon Singh
      • Existence by David Brin
      • Daemon and Freedom by Daniel Suarez
      • Lean Startup by Eric Ries
      • The Phoenix Project by Gene Kim, Kevin Behr, George Spafford
      • Time Travel: A Writer's Guide to the Real Science of Plausible Time Travel by Paul Nahin
      • The Door Into Summer by Robert Heinlein
      • Ender's Game by Orson Scott Card
      • Hyperion by Dan Simmons
    1 hr 1 min
  • Herding Code 169: Tom Dale and Rob Conery on the EmberJS / AngularJS Cage Match at NDC

    Episode 169

    At NDC, Jon and K Scott sat down with Tom Dale (co-founder of Ember.js) and Rob Conery to recap their cage match battle, compare Ember.js and AngularJS, and hear from Tom about where Ember.js is headed.

    Download / Listen:

    Herding Code 169: Tom Dale and Rob Conery on the Ember.js / AngularJS Cage Match at NDC

    Show Notes:

    • Intro
      • (00:18) K Scott and Rob asks Tom and Rob to introduce themselves and recap the Cage Match.
      • (01:22) Tom describes the challenge and thanks Peter Cooper for moderating. Rob describes the scenario - start with installation and creating a new project, then move to routing and navigation between views.
    • Demo vs. Reality
      • (02:28) Rob says it's fun to do a demo with Angular, but once you need to do more structured things you have to start over and reimplement with modules, etc.
      • (02:43) Tom says that seeing the TekPub screencast about AngularJS informed a lot of their design for Ember.js. The result is a framework that gives you the same simplicity in getting started, but also grows with your application pretty easily.
    • You Just Don't Do That
      • (03:22) K Scott asks if they pretty much match up if you're looking at a feature checklist, and if it's more about how you implement things. Rob says AngularJS is much more component based and talks about some things that came up during the cage match which were tricky in Angular, because "you just don't do that".
      • (04:18) Jon asks if there's an overall effect to how you build your application because it's just not how the framework works. Tom says it's unacceptable when your designer comes to you with a user interaction design for you to tell them it's just too hard to do in your framework, so you won't do it. As framework developers, they spend a lot of effort on composability. Rob says that he sees Ember.js as more prescriptive, while AngularJS provides more building blocks. Rob says it seems like Rails to him, in that it just goes a lot better for you if you give in and go with the framework's opinions.
      • (06:13) Jon asks about how customization works in Ember.js, compared with Angular's use of directives and filters. Tom says that's done via helpers, referencing an example from the cage match.
    • Client-side MVC implementation and The Importance of URLs
      • (06:34) Rob asks Tom if it makes sense to say that "if you can think of it in a server-side framework like ASP.NET MVC or Rails, you can think of it in Ember.js". Tom says it's not the same, because server-side MVC requests are short-lived compared to client-side applications. The real challenge is how you manage that state over time.
      • (07:17) Tom says that they think URLs are really important. Their challenge has been how to marry the concepts of desktop MVC with the fact that they have a URL, and he thinks they've nailed it. Jon asks how that compares to Angular; Rob says that it's not a primary concern in AngularJS or Backbone.
      • (08:37) Tom says he considers your web application broken if he hits refresh and doesn't see the same thing he saw before. Everyone screws this up, not because they're idiots but because it's hard, and if you don't have this built into the framework you're using you'll mess it up. (09:06) K Scott asks what kinds of applications are the sweet spot for Ember.js. Tom says his first real professional programming gig was working on MobileMe / iCloud apps. They were big apps written in SproutCore. He says it's important to be able to add features without breaking old features. Functional reactive programming and strong conventions help support this.
    • State and Scope
      • (10:38) Jon asks about the difference in maintaining state between Ember.js and AngularJS. Tom talks about how the Ember.js controller is similar to Cocoa and explains how the the controller presents the model to the template. Rob describes the $scope in AngularJS and compares the way AngularJS handles things more explicitly, whereas Ember.js is more conventional.
      • (12:19) Tom says that he thinks the way AngularJS leverages JavaScript's prototypal inheritance is really elegant, but it breaks down when you have very deeply nested UI's pushing you into directives and more complex decisions. Rob says that you can share scope between AngularJS controllers, but the isolated scope situation is one of the things you struggle with in Angular.
    • Testing, testing
      • (13:54) Jon asks Tom about his comment on testability. Tom says that Angular's Karma test support is really nice, and they're working on catching up in Ember. Rob says that in AngularJS you're just working with basic objects, which is really nice when you're testing.
      • (16:08) Tom says Ember.js requires you to do things correctly from the beginning; they won't give you any foot guns to make things easier. Helpers help.
      • (16:42) K Scott asks how change detection works. Tom explains the differences - AngularJS uses dirty checking against the DOM, while Ember.js uses accessors (like Backbone). Tom says that the performance is better in Ember.js. Angular's situation will improve when they get object.observe, which ironically will happen at the same time Ember's situation improves due to support for object proxies.
      • (18:37) K Scott says he'd like to be able to conventionally wire up events. Tom talks about event delegation in Ember.js.
    • The SEO Elephant in the Room
      • (19:53) Tom says the biggest issue with JavaScript client-side applications today is SEO and describes why he's not happy with the SEO solutions the other frameworks provide. They're working on a solution that uses leverages the fact that they use Handlebars for templating to run a server-side process to generate SEO friendly content without any PhantomJS dependency.
    • Using Ember.js When You're Not Tom
      • (22:28) Jon says that one issue with highly conventional frameworks is that it can be hard when you're getting started and don't know the conventions. Tom agrees and says that you'll be frustrated if you experience learning difficulty before you feel the power and says the solution is documentation and good tooling. He mentions a coming Chrome extension that will show you what controller and model are backing content on the screen when you hover over it. K Scott says he's pretty impressed with the Ember.js documentation.
    • What's Next? How about some Prollyfills?
      • (24:45) K Scott asks about what's coming out next. Tom talks about Polymer and Web Components. Jon asks if this was related to something he saw on Twitter the other day and Tom says it's #extendthewebforward. The idea is that browsers should express primitives so browser vendors can innovate at the JavaScript level - rather than building speculative features into the browser, shipping a JS library that works cross-browser and can function as a polyfill (or "prolly"fill) if the feature doesn't ship.
    • So who won? Any missed opportunites?
      • (29:45) K Scott asks who won the cage match and Rob admits to having been destroyed. K Scott asks why Rob keeps challenging framework authors to cage matches.
      • (30:52) Jon asks Tom about the curveball that he threw at Rob during the cage match. Rob and Tom agree that coding a directive on the fly is not easy.
      • (31:42) Jon asks Tom if there's something that Rob could have asked Tom that would be hard in Ember. Tom says that they just added a competitor to filters using bound helpers, but if Rob had thrown list sorting at him he'd have had a hard time.
      • (32:54) Jon asks about a viewer question on the emphasis on getting started vs. maintainability. Rob says that they'd first focused on composability, but nobody wanted to use it until it was easy to get started. Framework libraries don't get the luxury of forcing a difficult learning experience on developers - if he can't show value in 5 - 10 minutes, you'll leave.
    • Wrap?
      • (34:42) K Scott asks Rob and Tom what else they've got going on. Rob plugs some TekPub videos (listed below) and Tom plugs some upcoming classes he and Yehuda will be offering (also listed below).

    Show Links:

    • Tom Dale (@tomdale, http://tomdale.net/)
    • Rob Conery (@robconery, http://wekeroad.com)
    • Norwegian Developers Conference (NDC)
    • Ember.js
    • AngularJS
    • Ember101.com
    • SproutCore
    • Karma test runner for JavaScript
    • Yehuda Katz - Extend the Web Forward
    • Polymer
    • Extensible Web Community Group
    • TekPub: Get Involved! with Scott Hanselman
    • Upcoming Ember.js courses from Tilde
    37 min
  • Herding Code 168: John Sheehan on Runscope

    Episode 168

    This week on Herding Code, the guys talk to John Sheehan about the recent launch of his new API developer tools company, Runscope.

    Download / Listen:

    Herding Code 168: John Sheehan on Runscope

    Show Notes:

    • Intro
      • (00:30) "What is Runscope and why should I care?"
      • (00:55) Runscope is the ultimate API integrator developer's toolbox. It helps you solve the problems you encounter in dealing with API's from a consumption standpoint. It takes invisible API traffic and makes it visible, then helping you do all sorts of things with it: debugging, sharing, retry a request from the website, testing features like response playback without hitting the API, webhook debugging, etc. When you rely on an API, you're not just taking on a service dependency - it's code code that's running on someone else's service, and you should treat it like it's code that's under your control. You should apply the same testing rigor and should have the same debugging facilities.
      • (03:25) Jon asks about the launch. Anyone can try it out now at runscope.com. John talks about the internal preview (shoutout to Kevin Dente, the first beta tester) and the launch at GlueCon and press at TechCrunch and TheNextWeb.
    • (04:35) Overview of features:
      • Traffic Inspector
        • (04:55) In your code, instead of calling an API directly, you create a Runscope URL by including a Runscope bucket key and replacing dots with dashes. Essentially you're pointing your API calls at Runscope, which then extracts the hostname and makes the API request for you. A lot of other tools require you to change your API calls by modifying your authentication, adding parameters, etc. Runscope doesn't require any changes outside of the hostname, and all of your original headers and request parameters stay intact. This means you can just flip it on by changing your hostname and turn it off when done. You can then view all your requests in the Runscope website, filter to only show errors, All your requests show up in
        • (07:45) Scott says this is essentially a reverse proxy. John agrees that's technically correct, but they avoid the term because they're doing a lot more.
        • (08:13) Scott asks if Runscope adds headers to allow filtering or other things. John says the only modification they make is to add a Runscope message id header to allow lookup. They're thinking of some things in the future like caching credentials to apply to a lot of requests and other features that benefit performance, security, etc.
        • (09:27) Jon asks about the security concerns, as Runscope is kind of like a man in the middle. John says they're very concerned with security, and points to https://www.runscope.com/docs/security for a lot more information about their security practices. They're looking at future things like encrypted storage, and currently if you make an SSL request to Runscope they will forward it over SSL to the API provider.
        • (11:45) Jon asks about cases like multi-legged auth. John says everything just flows through Runscope, with one exception - if a response comes back with a location header then Runscope will modify the location to a Runscope url so if the client follows it it'll be captured.
        • (12:40) Scott asks about how geolocation works, since Runscope is making the request from a different location. John says that currently they're making requests from US East Coast, but in the future they want to allow requests from specific geographic areas.
        • (14:10) Scott asks about a current app he's working on which requires a custom certificate to connect to an API and asks if that would be supported. John says that they're looking at both support for custom certificates as well as on -premises installations to support those scenarios.
        • (15:35) Scott asks about support for non-standard ports. John says they support that using a Runscope request port header.
      • Request Editor
        • (16:09) Jon asks about the Request Editor. John explains that they really wanted to make it possible to edit and create requests as easily as any other code. Their original inspiration was the hurl.it site. Jon interjects that he loves using hurl.it to see where shortened or dodgy urls will take him before clicking on them. John says they've taken the idea of hurl.it and really filled it out to include storage, advanced editing, etc. They also built in some helpers for basic auth, digest authentication, OAuth 1, OAuth 2 token generators, etc.
        • (19:45) Scott asks if they've looked at integrating OWASP tests to run some automated security inspection for things like SQL injection, XSS, redirect attacks, etc. John says he'd like to let people create collections and share them with others.
      • Shared Requests
        • (21:11) Jon says that when he was testing during the beta and hit a question, John just had him share the request with him. John says that he really wanted that feature when he was at Twilio, and they currently use it all the time internally.
        • (22:39) Jon asks if there's a way to download or otherwise privately share a request. John says the best way to do that now is use team account, which allows for privately share requests within the team. They're also looking at allowing redacting some fields in shared requests, so you can share a request without revealing your password or other sensitive information.
      • Passageway
        • (22:48) Passageway was based on the localtunnel project. It installs an agent on your local machine which forwards requests to a specific port to Runscope, and Runscope then creates a public URL. You can use Passageway to show off code running on your local machine, but you can also use it for debugging webhooks and testing API's used in a mobile application (by pointing it at the public Runscope URL). Scott says he sees this as being useful in a continuous integration environment, and John says that a current customer is already doing this.
        • (27:33) Jon asks about the installation via pip, and John explains how pip relates to other package managers. They plan to provider other installers, and later the agent will do more than just Passageway - right now it also supports automatically creating Runscope urls for requests.
        • (29:27) Jon says that Passageway is the first place on the site where he sees something about paid accounts and asks John how they're going to get rich. John says there are three reasons (access to passageway, team sharing and volume) to upgrade from a free account to a starter or team account. Jon asks about the naming of the starter account, and John says that naming and pricing are really hard. Scott offers some advice on enterprise friendly pricing.
    • Starting a business
      • (32:47) Jon asks about the experience of moving from being a developer to founding a company. John says he's started several small companies, and writing software has always been a way to solve problems for businesses. He tells his recent job history at Twilio and IFFT and how he and his co-founder Frank got really fed up with the lack of good API developer tools and how they got started, funded, and launched. Getting funded was both a finish line and a starting line.
      • (41:33) Scott and Jon talk about positive response they saw to the GlueCon launch: John spent the majority of the time describing the problem, then unveiled the solution. Scott compares John to Steve Jobs.
    • What's next
      • (43:05) Jon asks what's next. John says they're first focusing on dev-time troubleshooting. Next they'll be focused on production use, especially high volume use cases. Long term they're thinking about mitigating problems - handling or proactively monitoring for problems.
    • Python
      • (45:14) Jon asks about John's experiences building Runscope in Python and how he compares it to .NET. John says he's really come around to significant whitespace and standard
      • (46:59) Scott asks if John's noticed that there are fewer ways to solve a problem, as opposed to C# or JavaScript. John says that's true for the most part. He comments on how he likes the small libraries and ecosystem.
    • Runscope vs. other network tools like Fiddler and Wireshark
      • (49:19) Scott asks why you'd use Runscope rather than use things like Fiddler, Wireshark, etc. John explains proxies and applications modify the way the application works and doesn't work well on servers - it's cloud-native. It's also social - sharing is built in. Thirdly, it's not a desktop application.
      • (52:30) John says he'd like to write a Fiddler plugin to make the two work well together. Scott says that there's one advantage to desktop applications - it can interact directly with the network stack. John agrees that developers need tools that work at all layers of the stack. Scott recounts a harrowing tale in which Fiddler had to be installed on a server for an application to work.
      • (55:20) Jon says he was wondering about integrating with Glimpse but that would require an API - does Runscope have an API? John says one's on the way soon.
    • Lightning Round inspired by John's Traffic and Weather podcast (with Steve Marx)
      • (57:00) Jon says he's really been enjoying the Traffic and Weather podcast, and the John and Steve have convinced him that API's really can be interesting.
      • (57:50) JSON API - what is it, and is it good?
      • (59:34) What are webhooks, and why have you been talking about them?
      • (1:01:52) Should we stop writing REST SDK clients?
      • (1:04:29) Where is API security going? Is it OAuth 2 from here on out?
      • (1:05:21) Eric Williams (@motowilliams) asks "Ping Pong or Foosball? #gooooooaaaaaallll"
      • (1:06:17) Where are you speaking next (answer: API Days and API World, both in San Francisco)
      • (1:07:32) Do you support the HTTP 418 teapot response?

    Show Links:

    • John Sheehan (@johnsheehan, http://john-sheehan.com/)
    • Runscope
    • TechCrunch: Runscope Lands $1.1M From True Ventures And Andreessen Horowitz For Tools That Address The Broken API Plague
    • TheNextWeb: Runscope raises $1.1m to help developers that rely on 3rd-party APIs
    • localtunnel
    • hurl.it
    • Traffic and Weather podcast
    • JSON API
    • Zapier (REST hooks discussion on Traffic and Weather ep 11)
    • Hyper Text Coffee Pot Control Protocol and the HTTP 418 (I'm a teapot) response
    1 hr 8 min
  • Herding Code 167: Glenn Block on scriptcs

    Episode 167

    This week on Herding Code, the guys talk to Glenn Block about scriptcs.

    Download / Listen:

    Herding Code 167: Glenn Block on scriptcs

    Show Notes:

    • Intro
      • (00:10) K Scott asks Glenn if he's still working with Node at Microsoft. Glenn says he's moved from command-line tools for node and is focused on Azure Mobile Services, but he still owns the Node SDK and the Node story for Azure.
      • (01:56) K Scott scriptcs is another way to write C# code outside of the IDE as script files. It's inspired by Glenn's work with Node.js. It leverages Roslyn, NuGet, and some conventions to simplify scripting, such as automatically pulling in NuGet packages.
      • (03:58) K Scott comments on the ability to reference assemblies using the #r directive. Glenn says it's even easier than that - you can use #r to reference GAC'd assemblies, but assemblies in the local bin folder are automatically referenced. K Scott asks about the hooks to support that, and Glenn explains how Roslyn supports a lot of scenarios; since it ships it as NuGet packages it can be used outside of Visual Studios. Roslyn allows for code to exist outside of a class.
      • (06:33) Jon talks about his initial experiences, and how the REPL made it really easy to get started. Glenn explains how that works and explains how, using Chocolatey you can quickly install scriptcs and a NuGet package like MongoDb and then just start writing code in the REPL.
    • Dependence on Roslyn
      • (09:35) Kevin points out that Roslyn is still in CTP and asks how that impacts scriptcs. Glenn says that since it's a CTP Roslyn you can't ship the binaries, but that's not a problem for scriptcs since it pulls in the public NuGet packages. Roslyn is still evolving, it doesn't yet support async / await or dynamic, for instance.
      • (11:13) scriptcs no longer takes a dependency on Roslyn. It uses a pluggable script executor which can use Roslyn but can potentially also use other script engines.
    • Example uses of scriptcs
      • (12:33) K Scott asks for some common use cases. Glenn says that it's possible to build apps because you can have one script that includes other scripts, then talks about the WPF calculator sample in the scriptcs-samples repo.
      • (14:18) Glenn says another use he's seeing is automation - basically as a replacement for PowerShell. He talks about the Fluent Automation sample which uses script-cs to automate Selenium tests.
      • (15:18) Glenn talks about a real world example at a large trucking company who is using scriptcs to automate data processing jobs.
      • (16:05) Octopus Deploy has added support for scriptcs. He used a loader script that passes configuration to user-written scripts.
      • (17:42) Glenn says it's useful to tinker and play with libraries or services and give an example of interacting with Azure Mobile Services in the REPL.
      • (18:38) One other example is extensibility - creating hooks and allowing end users to just drop in a scriptcs script to extend behavior.
      • (19:03) Kevin says that in the past people have used JavaScript engines to support extensibility. Glenn says that touches on a common question - why scriptcs as opposed to a lot of other options such as F#, Ruby, node, etc.? He gives two reasons: you get to stay in a language you're familiar with, and there's a "grow up" story to migrate from scriptcs to a Visual Studio project using the same libraries, same code, etc.
      • (20:03) Jon says that the PowerShell syntax is different enough that he can't remember it. He talks about the idea of using scriptcs for installation and initialization scripts in NuGet rather than PowerShell. Glenn says there are kind of ways to use C# with PowerShell, but it's not the same. He mentions a sample from @beefarino which lets you talk to scriptcs from PowerShell.
      • (23:01) Kevin asks what the migration process is to move from scriptcs to a C# project. Glenn says it depends on how much you take advantage of scriptcs features like Script Packs. Script Packs bring a node-like require module syntax into scriptcs. Glenn talks about the Web API script pack which adds in proper usings and gives you an API that's very easy to use in script, without IntelliSense. They've talked about creating a project exporter which could set up a project and bring in your Script Packs, etc.
      • (26:25) Kevin asks if the Script Pack / Require experience could be brought into standard C#. Glenn says the general concept could work because it's just a DLL, although there are some incompatible things like import statements. They've looked at writing Script Packs as script, which could make this more useful.
      • (28:40) Kevin talks about how the Node module system handles conflicting dependencies and asks if scriptcs handles that. Glenn says not yet, but .NET is now able to handle that so it could be added in. The general idea of script modules depending on other script modules makes sense, but conflicting dependencies might not be very useful. They're thinking of NuGet packages with no assemblies, just does as content, and talks about some implications.
      • (31:32) Jon talks about how Glenn had told him that a lot of his bizarre feature requests wouldn't fit in the core but could be useful as extensions, then asks about the extensibility points. Glenn runs through what you can do: change the engine, use Script Packs, bring in NuGet packages, possible later REPL extensions via global NuGet packages. He says they're following the Node team's principles of keeping a small tight core and pushing features towards extensions.
    • Questions from Twitter
      • (34:14) Jeff Schumacher (@codereflection) asks Glenn to compare scriptcs performance vs. compiled code. Glenn says that there can be a short startup impact and potentiall
      • (35:58) Akim Boyko (@AkimBoyko) asks if it's possible to run scriptcs without Roslyn, async/await support and in sandbox mode. Glenn talks about the Mono impact of running without requiring Roslyn support. Roslyn will be getting async/await support at some point, but it could also be added via CodeDom if people implement that. However, CodeDom doesn't support the classless system that Roslyn does.
      • (38:04) Simon Cropp (@SimonCropp)  asks if scriptcs support plugging into the build pipeline? Eg if I wanted to plug in Fody (https://github.com/Fody/Fody/).
      • (39:41) Several questions on how scriptcs compares to Snippet Compiler, LinqPad and csscript.
      • (41:12) Dan Vanderboom (@danvanderboom) asks if scriptcs let us run a .cs code file by itself anywhere in the file system? Glenn says no and explains why he's not sure that would be useful.
      • (42:55) Tomasz Janczuk (@tjanczuk) asks When will integration of scriptcs and edgejs be done? ;) Glenn talks about how the projects have both grown up together and how the two would be useful together.
    • Debugging and IntelliSense
      • (45:29) Jon talks about how he messed something up in the samples and debugged it and asks about debugging support. Glenn points out that you can directly debug an EXE in Visual Studio and explains how to debug scriptcs code in Visual Studio. He also talks about MDbg which Glenn (and apparently everyone else) didn't know existed. He also mentions a Script Pack for debugging.
      • (48:15) Jon says the REPL is great, and yet he'd sometimes like IntelliSense. Glenn talks about a lightweight WPF editor that's in progress, but says if you get to a point where things are getting complex it's probably time to move to move from scriptcs to a project. Jon says that for the most part Script Packs seem to really simplify the code to the point where you don't really need IntelliSense, and Glenn agrees.
    • Shoutouts
      • (50:45) Glenn calls out the two other coordinators on the project, Filip Wojcieszyn (@filip_woj) and Justin Rusbatch (@jrusbatch) as well as some other top contributors.
    • Shell capabilities, TSR scenarios
      • (52:03) Kevin asks if there are possible changes to make it more shell-like with things like piping. Glenn says they currently have a poor story for arguments, but it's coming. You can currently pipe text, but he's not sure about piping objects.
      • (54:30) Jon says he's got some AutoHotKey scripts and asks if scriptcs could handle that kind of thing.
    • Future plans
      • (56:10) K Scott asks where things are going in the future. Glenn mentions scriptcs modules, aliases, a better Visual Studio experience, export project, and saving DLLs.
      • (1:04:25) Glenn talks about some interesting ideas on GitHub, like a command to break execution into the REPL. They've got 20 active contributors, so things are moving fast.
      • (59:54) Glenn says he's got a personal interest in seeing some adoption in Microsoft - such as adding scriptcs scripting to other projects.
      • (1:00:25) Glenn talks about one question that comes up: should the Roslyn team have tackled the scriptcs scenario?
    • Wrap up
      • (1:01:10) K Scott asks about Glenn's upcoming plans, speaking engagements, etc.
      • (1:02:27) Jon makes a last minute sales pitch to try it out - you can install in seconds from Chocolatey and just start playing at the REPL. Glenn points one gotcha - scripts which run servers need to be run as admin.

    Show Links:

    • Glenn Block (@gblock, CodeBetter blog,  MSDN blog)
    • scriptcs - Living on the edge in C# without a project on the wings of Roslyn and Nuget - Glenn's post explaining scriptcs and why the project started
    • Scripting ease with Script Packs 
    • Roslyn CTP
    • scriptcs samples repository 
    • Fluent Automation sample
    • ScriptCS or PowerShell post by @beefariono
    • scriptcs on Dot Net Rocks
    • Project-less scripted C# with ScriptCS and Roslyn (Scott Hanselman)
    1 hr 5 min
  • Herding Code 166: Tomasz Janczuk on Edge.js

    Episode 166

    This week on Herding Code, the guys talk to Tomasz Janczuk about running .NET code in Node.js using Edge.js.

    Download / Listen:

    Herding Code 166: Tomasz Janczuk on Edge.js

    Show Notes:

    • Intro and background on Edge.js
      • (00:40) Tomasz has been focusing on Node.js at Microsoft for the past 3 years. He's been working on making Node.js run well on Windows. He's also worked on hosting Node.js on Windows Azure with IISNode.
      • (02:08) Jon asks about Edge.js's original name, Owin. Tomasz explains how that made sense with the original scope - connect middleware and express handlers - but it's grown since then so it needed a more generic name.
      • (02:45) Edge.js lets you run Node.js and .NET code in one process and provides interop mechanisms between the two.
      • (03:05) Jon asks why that's useful. Tomasz says you can do pretty much anything in either Node.js or .NET, but some things work a lot better on one platform. He gives examples like using ADO.NET to connect to SQL Server and running CPU bound computations as multi-threaded .NET code from the single-threaded Node.js event loop. There are two classes of scenarios: things that work better on one platform, or writing native extensions to Node.js without having to drop all the way down to raw C and native OS mechanisms.
      • (06:11) Jon brings up two questions from Twitter about Mono support (Jason Denizac @_jden "when's mono support coming?" and Kevin Swiber "Mono support? Can we do legit Node modules in C#? Are grilled hotdogs really better than boiled?" Tomasz says not yet, but it's high on the list. There are some complications to implement that support since Edge.js uses C++ CLI, which isn't available on Mono.
    • Getting started and samples
      • (07:57) Jon asks what's involved in setting it up. He says he ran npm install edge, then npm install edge-cs. Tomasz explains why he didn't need to install edge-cs - C# support is built in, other language support plugs in.
      • (08:43) Jon asks about the samples. Tomasz explains the different ways of integrating CLR code into Node.js and talks about how the samples show these approaches.
      • (10:36) Jon says he liked how the samples progressed from very basic to pretty complex. Tomasz says you can do just about anything in Edge.js, but there's a specific interface you need to follow in order to work smoothly between the Node.js async model and many synchronous operations in .NET. Every function in Edge.js uses an async function delegate, so you end up using small wrapper functions in some cases.
    • Marshalling and interop
      • (13:08) Kevin says this reminds him of COM / .NET interop and issues with object lifetime, garbage collection, etc. Tomasz says that that the async function delegate solves the threading models. Object lifetimes are controlled because everything is marshalled by value.
      • (16:22) Kevin asks if the marshal by value prevents working directly with the CLR object. Tomasz says that you can handle this using function proxies to create closures over CLR states.
      • (17:45) Scott K. asks if structs eliminate the serialiazation issues. Tomasz clarifies that the marshalling process is reflecting over the objects in .NET and recreating a synonymous JavaScript. Scott says this sounds like thunking from days of old.
      • (19:27) Jon says that he saw one sample that allows for debugging inline .NET code in a JavaScript file. Tomasz explains that this is done using the codedom compiler to create an in-memory assembly with debugging information, which can be attached to from Visual Studio.
      • (21:25) Jon says he thinks this sounds useful for using a NuGet package in a Node.js application and asks if there's support for pulling in a NuGet package. Tomasz says that at this point it's up to you how you'd get the assembly downloaded and set up, but that there's an open issue to get script-cs integration going and that would handle this.
    • Overhead and performance
      • (23:06) Jon asks about the overhead of running two virtual machines and marshalling. Tomasz says there is some overhead, but it's better than running two different processes. Edge.js is built for solving some specific scenarios, and it's fast in those
      • (24:55) Kevin asks if there's a delay when Edge.js spins up. Tomasz says that happens when you require Edge, but it's not really noticeable.
    • Misc questions
      • (25:55) Jon asks what was the hardest part of implementing Edge.js. Tomasz says the function proxies to handle lifetimes and reconciling threading models.
      • (27:45) Scott says this sounds useful for authentication or using a legacy .NET library. Tomasz lists several more.
      • (29:20) Kevin asks how exceptions are handled. Tomasz explains how the exceptions are marshalled and thrown across VM boundaries.
      • (30:15) Kevin asks if it's tied to specific Node.js versions. Tomasz says it works on all current stable versions.
      • (31:30) Question from Twitter: @jeremydmiller "I've seen a lot of samples of hosting . Net in node, but how about running node in a .net process?" Tomasz talks about an open issue, Mission Double Edge which would handle that. He explains that the challenge is that Node.js doesn't have a hosting model.
      • (33:20) Jon says he saw several of the samples had the C# script named with .CSX extension and asks about that. Tomasz says that this is partly done to follow Roslyn conventions, including specifying assemblies as references in code using #r.
    • Future plans and next steps for listeners
      • (34:25) Jon asks what's planned going forward. Tomasz talks about Mono support and adding support for additional languages, including F# (note: this has been added http://tjanczuk.github.io/edge/#/3) . Jon asks what's involved in adding language support.
      • (36:30) Jon asks about the relationship with OWIN. Tomasz says there's a separate module which allows you to plug any OWIN compatible .NET application and plug it into an Express.js pipeline. Jon says this reminds him of the Edge name and Tomasz explains that the idea is that mathematically an edge connects two nodes, so Edge.js connects differe.
      • (38:25) Jon asks about next steps for people to get started.
      • (38:55) Jon asks if this is a Microsoft project. Tomasz says it's his own separate open source project that's inspired by his day job, and this allows him some more flexibility to work with the community. He lists some of the community contributions they've seen so far.

    Show Links:

    • Tomasz Janczuk (@tjanczuk, blog)
    • Official Edge.js site: http://tjanczuk.github.io/edge/#/
    • Edge.js on GitHub: https://github.com/tjanczuk/edge
    42 min
  • Herding Code 165: Mark Seemann on AutoFixture and Unit Testing

    Episode 165

    While at the Danish Developer Conference in Copenhagen, Jon sat down with Mark Seemann to talk about AutoFixture and Unit Testing.

    Download / Listen:

    Herding Code 165: Mark Seemann on AutoFixture and Unit Testing

    Show Notes:

    • AutoFixture
      • (00:44) AutoFixture is an open source library that simplifies the "Arrange" part of the standard Arrange / Act / Assert steps in unit tests.
      • (01:20) Jon asks about anonymous variables. Mark says he got that terminology from Gerard Meszaros' book, xUnit Test Patterns. Anonymous methods and variables are necessary for a test, but their implementation doesn't matter.
      • (02:23) Mark describes the test data builder pattern, from the book Growing Object-Oriented Software. The pattern works well, but it gets to be repetitive and mechanical to write and maintain, so he wanted to automate it. AutoFixture uses reflection to create the needed instances.
      • (04:00) Jon asks about the usage pattern for AutoFixture.(04:16) Jon asks about the different values returned for strings, ints, etc. Mark explains how that's changed over time - numbers no longer just return sequential values, they now return random small numbers.
      • (05:20) Mark explains equivalence classes. Jon says "Okay" a lot. You can use AutoFixture in cases where you don't care about the value; in cases where you do, you can configure what you want to. Mark explains some of the different ways you can use the AutoFixture API to set specific values when needed.
      • (09:15) Jon asks how AutoFixture works with mocking. Mark says there are NuGet packages which will interface with Moq, Rhino Mocks, FakeItEasy and NSubstitute.
      • (10:25) Jon asks Mark what his talk said about equivalence. Mark explains identity and value objects with an example with overriding the equals operator on a money value object. The more you can model your domain as value objects, the easier your tests become. Jon asks if this is an example of TDD driving a good design. Mark says that he tried letting tests completely drive his design a few years ago, but he found that it alone didn't drive a very good overall design.
    • Testing philosophy, Testing Trivial Methods
      • (15:56) Jon asks Mark about his recent post advocating testing trivial methods. Mark says that his post was in response to Robert C. Martin's post, The Pragmatics of TDD. Mark makes a case for testing getters and setters - if you decide to use a property rather than a field, that decision probably warrants a test to verify the property is maintaining the behavior that drove the original decision.
      • (20:38) Jon asks how this applies to the example of testing ASP.NET MVC controller code. Mark says he's in the habit of testing everything, and has written a lot of tools to make writing the tests easy enough that it's not a concern. The question is, how much does it cost you if a unit of code doesn't function as designed? Mark explains how a controller action models the data flow in an MVC application, and decomposing the flow allows you to write smaller, simpler, more targeted tests.
      • (25:03) Jon asks how this relates to outside-in testing using tools like Selenium. Mark says that testing at the external boundary is fine if you can, but most applications become complex enough that boundary testing would require an impractical number of test cases.
    • Wrap up
      • (26:04) Mark says that many of these concepts are covered in more detail in Mark's Pluralsight course.

    Show Links:

    • Mark Seeman (@ploeh, blog)
    • AutoFixture
    • Book: xUnit Test Patterns: Refactoring Test Code
    • Book: Growing Object-Oriented Software, Guided by Tests
    • Blog post: Test trivial code
    • Blog post by Uncle Bob Martin: The Pragmatics of TDD
    • Pluralsight announcement: New course: Advanced Unit Testing
    27 min
  • Herding Code 164: OWIN and Katana with Louis DeJardin

    Episode 164

    This week on Herding Code, the guys talk to Louis DeJardin about OWIN - the Open Web Interface for .NET - and Katana, an open source OWIN implementation for ASP.NET and IIS.

    Download / Listen:

    Herding Code 164: OWIN and Katana with Louis DeJardin

    Show Notes:

    • Intro
      • (00:44) Scott and Louis explain what OWIN is.
      • (01:33) Louis explains the difference between OWIN (the community standard) and Katana (actual bits - an implementation of the OWIN standard for ASP.NET).
      • (03:18) Jon asks if this is similar to the distinction between HTTP / HTML standards and browser implementations. Louis explains what's required for an implementer to participate in a request. Each request calls a simple func with an IDictionary which returns a task.
    • The killer app: middleware
      • (04:54) Scott talks about how the pipeline might not sound like much, but it can support a lot of really useful middleware scenarios like static caching and domain splitting - especially in a way that's common across frameworks.
      • (06:05) Louis talks about the challenge they've had in describing the benefit of OWIN in non-academic terms, and that it's not until you want to apply cross-framework concerns like authentication that OWIN really shines.
      • (07:52) Scott says that previously these kinds of concerns - logging, etc. - were wrapped up in System.Web, and they had performance implications regardless of whether you used them. The pipeline model lets you avoid those hits unless you explicitly want the features.
      • (10:03) Scott mentions some of the frameworks which have implemented OWIN, including NancyFx, Fubu, ServiceStack.
      • (10:50) Kevin says that the current implementation examples are full web frameworks rather than middleware. Louis says that probably because ASP.NET and IIS already had pipeline implementations so there's less of a forcing function than there was with Node and Ruby. Scott says that since the current implementations already have full stacks, there's less need to plug in modular solutions. Jon says he thinks that the late arrival of NuGet and other open modular systems like this mean it'll take a while to get traction.
      • (14:40) Louis says we'll need a killer app, and HttpListener hosting alone isn't that. Jon asks if you'd host Katana under IIS to manage the process. Louis says yes, and until there are other hosts than IIS he doesn't see the hosting as a big draw - he thinks auth is probably it.
      • 1640 Scott says he could see auth frameworks and scaling middleware. Louis says that David Fowler updated JabbR to run on OWIN, and was able to move some of the scale pieces into OWIN middleware.
      • (18:25) Jon asks if he can take an existing ASP.NET application to start taking advantage of middleware without rewriting the application. Louis says that if you add the Microsoft.Owin.Host.SystemWeb NuGet package, you can put an OWIN pipeline on the route table. You can also use an IHttpHandler to plug in middleware. They're looking at third option - an integrated pipeline module which will delegate to the application if an OWIN handler doesn't pick it up.
      • (22:22) Jon asks Louis has some other ideas for middleware, and Louis lists several (static file handlers, authentication, etc.) and points to Rack and Node as examples. He lists another example - anti-bot  protection that returns an HTTP 200 for a URL pattern.
      • (23:50) Jon asks if it's possible to plug things in at runtime. Louis talks about the Startup class - it's a POCO class so you can easily work with it via IoC, plug things in whenever - it's just code.
      • (25:05) Scott says he looked at implementing URL rewriting in middleware. Louis explains how this works perfectly with the pipeline and describes how you could also use this to monitor 404s.
      • (26:45) Scott says hosters could implement middleware to set ETAGS, enforce things, etc.
      • (27:40) Louis explains why it's really powerful to have middleware that's not coupled to a specific implementation like ASP.NET MVC.
      • (28:35) Jon asks if it's possible that some of this middleware could run on hardware. Louis says it is, and gives an example with a reverse proxy.
      • (29:57) Scott talks about breaking middleware into application and networking uses and talks of some optimizations that could be done in middleware.
    • Next
      • (31:48) Scott asks where we go from here - are done? What's the next goal? Louis says the current 1.0 version of Katana has IIS hosting; the 1.1 version will add production grade HttpListener and self host story, and after that it's about supporting emerging standards and looking for synergies. Louis says documentation would be nice, but Scott says that the model is so simple that there's not a lot to document.
      • (34:50) Scott and Louis talk about how this will affect the ecosystem in general, with an example of how smoothly the SignalR implementation worked.
      • (35:25) Jon asks about the future for hosters like Azure, AppHarbor, etc. Louis talks about an example for  supporting zip file based deployment, Mono hosting.
    • Getting involved
      • (37:05) Louis talks about what's available in the Katana Project, including sample code and pre-release packages. The Google Group - net-http-abstractions - is the best place to discus OWIN.
      • (38:15) Jon asks if the Katana project takes pull requests. Louis says it's run under the MS Open Tech organization and is clear to take pull requests from developers who have signed a contributor license agreement. Jon asks for areas where they'd like help. Scott says he'd like to see lots of middleware; Louis he'd love to see an OWIN Contrib project emerge.
    • Questions from Twitter
      • (41:05) Sean Massa (@endangeredmassa): Is it possible to use the DLR?
      • (41:45) Eric Hexter (@ehexter): what do MVC and Web Forms look like on OWIN. Louis says there are two exciting things there - you can have an Owin pipeline running in front of your application, or you can use self hosting to put an application inside of your own process (not supported but fun!).

    Show Links:

    • Louis DeJardin (@loudej, blog)
    • OWIN - Open Web Interface for .NET
    • Katana Project on CodePlex
    • Google Group: .NET HTTP Abstractions
    • NuGet package: Microsoft.Owin.Host.SystemWeb
    • GitHub: ServiceStack.Owin
    • NuGet: Nancy.Hosting.Owin
    • NuGet: FubuMVC.Katana
    • Herding Code 60: Spark View Engine with Louis DeJardin
    44 min
  • Herding Code 163: Sticker Tales and Building Windows Store apps with Damien Guard and Robert Sweeney

    Episode 163

    This week on Herding Code, the guys talk to Damien Guard and Robert Sweeney about Sticker Tales (a Windows Store application for kids), some challenges in building touch applications for kids, their CSharpAnalytics open source library, and a companion app they built for Western Digital.

    Download / Listen:

    Herding Code 163: Sticker Tales and Building Windows Store apps

    Show Notes:

    • Introductions
      • (00:39) Damien describes what he's been up to since we last talked to him.
      • (01:25) Robert worked on the Windows user interface, then XBox.com, then several apps for NetFlix.
      • (02:57) Jon asked about the experience of building high scale customer facing applications at XBox and NetFlix. Damian tells about how they ran the XBox store on two servers.
    • Building Sticker Tales
      • (03:38) Jon asks how they decided to build a sticker book app. Robert explains how they got started.
      • (04:45) Robert describes how they decided to spend some money on professional illustration.
      • (05:40) Jon describes how Sticker Tales works and how he loves watching what his five year old daughter comes up with, especially how she plays with scale. Robert says he sees the same as his daughter
      • (6:57) Damien describes some of the surprises they saw in user testing.
      • (8:30) Scott K asks if their experiences in watching how kids interact with touch gestures will influence their design in general.
      • (9:18) Damien talks about some of the changes the kids inspired, especially using direction of motion to flip things. Jon says he wants this flip gesture everywhere, and Scott K says he thinks kids should be interaction testing all touch interfaces.
      • (10:44) Damien gives another example with how pinch / zoom didn't work well for kids, and they added a handle instead.
      • (11:26) Jon asks about how they were interacting with the illustrators. Robert describes the interaction and how they handled different image sizes, exporting, etc.
    • In-app purchases
      • (13:37) Jon asks about the "free app + in app purchase" model. Robert explains why they chose that model.
      • (14:48) Jon asks if the in-app purchases were difficult to set up. Damien says yes and explains how it was set up. Robert says the purchasing is easy, but the delivery is up to you as the developer.
    • Google Analytics and the CSharpAnalytics library
      • (17:00) K Scott asks about what kind of analytics they were using. Damien explains how they used Google Analytics and explains they published that library as CSharpAnalytics on GitHub. Damien likes tracking usage patterns, Robert says he loves the real-time and geographic views.
      • (18:19) Robert says they track initiated vs. completed purchases, and they see it's only about 10%. Jon speculates that's because kids start the purchase and the parents veto it.
      • (19:08) K Scott asks if it's only available for Windows 8. Damien says that's all that's documented, but he's set it up to work with Windows Phone as well.
      • (19:30) Jon asks about how auto-analytics work.
    • Platform targeting - iPad future, Windows 8 implementation
      • (20:40) Kevin asks if they're looking at porting this to iPad. Robert says they're looking at using Xamarin for that.
      • (21:24) Jon asks about what Windows 8 integration points they're using. Robert discusses live tiles, sharing, search, and background download API support.
      • (22:58) Jon asks if they used C# / XAML or HTML. Damien says they went with C# / XAML partly because the touch API support seemed better early on.
    • SharpDX and performance
      • (23:30) Damien explains that they're using SharpDX to be able to take screenshots for live tiles, sharing, etc. Jon gets confused and thinks they're using SharpDX everywhere, but Robert explains it's only for saving screenshots - everything else is using image controls.
      • (26:54) Jon asks if they ran into any performance issues. Robert explains some of the guidelines they'd learned at NetFlix and says that everything's worked really well in StickerTales. Damien says they've seen great performance on Surface / ARM as well. Jon says he's seen Audacity recompiled for ARM and it worked great on Surface, too.
    • Data storage and MVVM perspective
      • (28:34) Jon asks what they're using for data storage; Damien says using XML.
      • (28:46) Robert says they're not using MVVM because it just doesn't work with the Microsoft tools and isn't worth it for the kinds of thin clients they've been building, even at NetFlix.
    • Western Digital companion application
      • (30:07) Jon asks how about their next project, a companion application for Western Digital. Damien describes how Western Digital wanted an application that would present an all-up aggregate view of media on external media.
      • (30:42) Damien says they using SQLite for that project and explains the challenges they ran into with hierarchical data storage in a relational database engine.
    • Unit Testing Windows Store application code
      • (32:52) Kevin asks about the testing story. Damien says they used MSTest and it all worked fine, with the exception of determining code coverage. Jon asks some questions about testing frameworks and test focus for Windows Store applications.
      • (35:20) Robert says the WinRT platform wasn't written in a very testable manner - there are lots of static classes and a generally test resistant API.
    • Business Challenges and Opportunity for Windows Store Developers
      • (36:38) Jon asks about the challenges of building and running a company that's building Windows 8 applications. Robert describes some of the perception and education issues they face in selling the potential to customers.
      • (38:20) Scott K compares the current Windows Store opportunity to the pre-iOS Mac development market - a nice place to create a niche product and make a good living. Damien says it is nice to be featured in the store, and that's difficult on other platforms. Robert says that ease of developing Windows Store applications means that you still need to market your applications.

    Show Links:

    • Damien Guard (@damienguard, blog)
    • Robert Sweeney (LinkedIn)
    • Sticker Tales
    • Attack Pattern
    • CSharpAnalytics
    • SharpDX
    • WD Companion App
    • Herding Code 50: Damien Guard on LINQ to SQL, Entity Framework, and Fontography
    42 min
  • Herding Code 162: Whacha doin, Goodbye Google Reader, scriptcs and Lightning Round!

    Episode 162

    This week on Herding Code, the guys talk about what they've been up to lately (including Kevin's new Greater Than Parts site), lament the passing of Google Reader, talk about scriptcs, and even fit in a lightning round!

    Download / Listen:

    Herding Code 162: Whacha doin, Goodbye Google Reader, scriptcs and Lightning Round!

    Show Notes:

    • What are you up to?
      • (00:29) Scott K is doing MVC with a lot of JavaScript.
        • He laments the quality of the code he's working with.
        • There's a discussion of how bad code happens and how to clean it up.
      • (07:58) Kevin's been working on his GreaterThanParts site.
        • He soft launched it on twitter and got more response than he expected, but it's been holding up.
        • It's a full JavaScript stack - Node, Backbone, Mongo.
        • Kevin was surprised how resistant developers were to trying out the site via Google / Facebook login, so he set up an anonymous (cookie based) login.
        • Scott K has some specific feature requests.
        • Jon asks if the design feedback was coherent or contradictory. Kevin says some was really good, a lot wasn't
      • (15:40) Jon talks about the ASP.NET Jump Start event he did in February and some upcoming Web Camp he's doing - Denmark, Istanbul, Sunnyvale, San Diego. In his spare time he's working on a book about programming Windows 8.
        • Scott K mentions a blog post he read about a developer who was frustrated he couldn't store password protected zip files or preview office docs. Jon says it's an app model and it's different than building desktop apps. Kevin wonders about how the updates will work for Windows Store apps.
        • Scott K says he read about limitations in displaying help files. Jon says that some things are easier to do using the HTML dev model, and he's seeing some people writing business logic in C# and using it in an HTML app.
        • K Scott talks about the current campaign to pay developers for apps. Jon says he thinks that may be driven by the fact that all the tech columnists just write about the number of apps in the store, but he agrees that fewer quality apps is better. The Windows Store has a try / buy model, which effectively halves the number of apps required compared to Android and iOS. Jon talks about how he's been using the Surface RT.
      • (25:49) Google Reader
        • K Scott asks if anyone's upset. Kevin is.
        • Scott K hasn't used it in a while because he just uses Twitter and an RSS reader he likes.
        • Jon says he used to read tons of feed, but he now gets most of his info off Twitter, Hacker News, and TheCadmus.com
        • Scott K says he's going to need to replace Reader because he follows some feeds he cares about that will never make their way onto Hacker News.
        • Jon says he used to use Reader more when it had Google Gears support. He talks about how he tried to write his own RSS reader which never materialized, but he learned a lot along the way.
        • Kevin says the bigger problem is that so many apps use Google Reader as an RSS sync backend.
        • Jon says he's happy that the whole RSS system isn't dependent on Google Reader, and that it's a good thing that major parts of the web stayed open.
      • (34:45) scriptcs
        • K Scott overviews the idea.
        • Scott K says he thinks it's interesting - a natural use of Roslyn. He's been wanting something that would output assemblies so it could create projects.
        • Jon talks about some of the samples they've got, including WPF, Mono, etc. He says he'd prefer it to PowerShell since it could be more portable and the syntax is better.
        • Kevin says many of these ideas came from the Node community. He's really enjoying the low overhead of working in vim. Scott agrees. Jon says he doesn't see Visual Studio delays, maybe because he's not using heavy add-ins. A border skirmish erupts. Kevin says that he thinks that .NET programming kind of requires Visual Studio. Jon like the new web tools stuff.
      • (44:27) Lightning Round!
        • K Scott asks if anyone cares about the S4 release. Nobody does. We're all kind of tired of smartphone releases.
        • K Scott asks what we'd recommend for teaching someone to program. Scott K, Kevin, and Jon all agree that they'd start with the web and JavaScript and talk about some of their favorite tools.
        • K Scott asks what everyone thinks about the new Rearden.js library with the Rearden Metal templating system.

    Show Links:

    • Greater Than Parts - Kevin's new "simple shopping for complex projects" site
    • ASP.NET Jump Start
    • Web Camps tour - Jon's post announcing the Spring 2013 tour
    • Blog post: Why are there no great Windows 8 apps? Because of WinRT. A developer's view
    • Google Gears
    • Tree Surgeon
    • Powering Down Google Reader
    • TheCadmus
    • scriptcs - Living on the edge in C# without a project on the wings of Roslyn and Nuget
    • http://scriptcs.net/
    • LiveReload
    • Codecademy
    • JS Bin
    • repl.it
    • ReardenJS
    • Vapor.js
    53 min

About Herding Code

From the publisher's feed

A technology podcast with Jon Galloway, Scott Allen, Kevin Dente, Scott Koon