043 JSJ Sinon.JS
JavaScript Jabber18 Tammi 2013

043 JSJ Sinon.JS

PanelChristian Johansen (twitter github blog) Joe Eames (twitter github blog) Merrick Christensen (twitter github) Jamison Dance (twitter github blog)
Discussion
00:45 - Christian JohansenTest-Driven JavaScript Development
Sinon.JS
Gitorious01:26 - Sinon.JS02:22 - Stubs, Mocks and SpiesMocks Aren’t Stubs: Martin Fowler
Mocha10:47 - History of Sinon.JS12:25 - XHR, HML, HTTP13:36 - Mocking the ClockSet Time Out
17:22 - Test-Driven JavaScript DevelopmentAndrea Giammarchi @WebReflection The Pragmatic Bookshelf Screencasts
21:43 - Test FrameworkBuster.JS
js-test-driver24:17 - Other Mocking Librariesmockjax
26:24 - Mocking Properties27:22 - Matchers30:46 - Sinon.JS Gotchas33:10 - State of Test-Driven Development in JavaScriptStrategies for Testing
PicksJack Reacher (Joe) Torchlight II (Joe) Effective JavaScript by David Herman (Merrick) Rdio (Merrick) Adventure Time (Jamison) How to implement an algorithm from a scientific paper: Emmanuel Goossaert (Jamison) Advanced Vim registers (Jamison) Emacs Rocks! (Christian) Simple Made Easy (Christian) LEGO Lord of the Rings (Christian) Testing Clientside JavaScript (Joe)
Transcript
MERRICK: Classy guy.[Hosting and bandwidth provided by the Blue Box Group. Check them out at Bluebox.net.][This episode is sponsored by Component One, makers of Wijmo. If you need stunning UI elements or awesome graphs and charts, then go to Wijmo.com and check them out.]JAMISON: Hello friends. Welcome to JavaScript Jabber. This is Episode number 43. Today, we have Joe Eames.JOE: Howdy!JAMISON: Merrick Christensen.MERRICK: Hey guys!JAMISON: And Christian Johansen. And also me, Jamison Dance. But Christian is the special guest today. Do you want to talk a little bit about yourself? Introduce yourself for those of us that don’t know you?CHRISTIAN: Yeah, sure. First of all, hi! I'm in Oslo, Norway up in the cold north. So, I wrote a book about testing JavaScript a couple of years back called ‘Test-Driven JavaScript Development’. And I've done a few open source libraries. Perhaps the one that most people know about is Sinon.JS. And currently, I work at Gitorious.org. So, that’s the brief introduction about me, I guess.JAMISON: Great! Chuck is gone today. He’s at CES, I believe. So, that’s why I'm filling in for him. I think we want to talk mainly about Sinon.JS today. Do you want to just give an overview of it?CHRISTIAN: Sure.JAMISON: For those who have never heard of Sinon.JS, what is it?CHRISTIAN: Sinon.JS is a stubbing and mocking library which means that when you're writing automated tests for your JavaScript, Sinon provides a tool kit to help you test functions and callbacks and stuff like that, to track how they're being used throughout the system. And then, it also provides some utilities to test asynchronous stuff through timers, like Set Time Out and Set Interval and those kinds of things.And it also has a fake XMLHttpRequest implementation. So, it allows you to test your client side JavaScript completely decoupled from the server and it gives you an API to mimic the role of the server in your tests. So, you can focus a test on how the client side reacts to various kind of behavior from the server.JAMISON: So, you talked about stubbing and mocking. And I think, that means we have to get into the hairy discussion of the difference between stubs and mocks?MERRICK: And spies.JAMISON: And spies, yeah. Do you want to explain that a little bit?CHRISTIAN: Sure. I can explain my take on it because I know there are more than just mine.MERRICK: Sure.CHRISTIAN: I'm using the terminology pretty much like Martin Fowler did and he has a famous article called ‘Spies are Not Mocks’ or something like that. So,Special Guest: Christian Johansen .

Support this podcast at — https://redcircle.com/javascript-jabber/donations

Privacy & Opt-Out: https://redcircle.com/privacy

Become a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Jaksot(733)

JSJ 455: Introducing and Understanding Svelte and Sapper with Mark Volkmann

JSJ 455: Introducing and Understanding Svelte and Sapper with Mark Volkmann

This week the panel is joined by Mark Volkmann to discuss Svelte and how it compares and differs from front-end frameworks such as React and Angular. Mark has written a book and has given talks about Svelte and also about Sapper, an application framework built on top of Svelte. He explains to the panel how Svelte components are defined differently than other JavaScript frameworks, and how they are actually compiled into the production code, which isn’t dependent on any external libraries. He also explains why and how Svelte forgoes the use of a virtual DOM, using direct DOM manipulations instead. Finally he describes Sapper and explains how it can be used to quickly and easily create Web-apps that use SSR, static pages generation and dynamic routing.SponsorsFaithlife | Now Hiring Software DevelopersRaygun | Click here to get started on your free 14-day trialAudible.comCacheFlyPanelAimee KnightDan ShappirSteve EdwardsSpecial GuestMark VolkmannLinkshttps://github.com/sveltejs/svelte/issues/2546https://mvolkmann.github.io/blog/https://objectcomputing.com/resources/publications/mark-volkmannhttps://www.manning.com/books/svelte-and-sapper-in-actionPicksSteveKey Largohttps://gbdeclaration.org/AimeeLow Level AcademyTerraform Up and RunningDanMy daughter enlisting in the Israeli Militarywww.amazon.com/The-Boys-Season-1Mark Volkmannhttps://www.meteor.com/https://mvolkmann.github.io/blog/ Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Mark Volkmann.Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

27 Loka 202056min

JSJ 454: Mongoose, Mongo and Object Document Mapping (ODM) with Valeri Karpov

JSJ 454: Mongoose, Mongo and Object Document Mapping (ODM) with Valeri Karpov

We talk about the Pros and Cons of using a database directly vs using an abstraction layer, common mistakes, optimistic concurrency, and a nice tangent into programming concurrency models to top it off.SponsorsFaithlife | Now Hiring Software DevelopersAudible.comCacheFlyPanelAJ ONealAimee KnightCharles Max WoodSteve EdwardsSpecial GuestValeri KarpovLinkshttps://en.wikipedia.org/wiki/Aspect-oriented_programminghttps://mongoosejs.com/PicksStevehttps://cesf.us/AimeeThe Cloud Girl Sketch NotesAJGraphQurlAPC UPS with USBCyberPower UPSGoogle Lighthouse overstepFrog ChessWSL (Windows Subsystem for Linux)Chuckhttp://podcastgrowthsummit.co/http://podcastplaybook.co/mostvaluable.devStormlight ArchiveValeri Karpovhttps://masteringjs.io/ebooks/mastering-mongoose-javascript-jabberhttps://www.npmjs.com/package/archetypeamazon.com/Cryptonomicon-Neal-Stephenson Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Valeri Karpov. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

20 Loka 202054min

JSJ 453: Debugging Third Party JavaScript with Ben Vinegar

JSJ 453: Debugging Third Party JavaScript with Ben Vinegar

Podcast: Play in new window | Download Many websites these days have to deal with the reality of incorporating third-party scripts. These could be tracking scripts or analytics or monitoring, or even scripts that add explicit features to a site, such as chat. Regardless of the purpose, such scripts add complexity and overhead, and can interfere with the proper operation of the site. In this episode Ben Vinegar, VP of engineering at Sentry, joins the panel to discuss the complexities and implications of third-party scripts, both from the perspective of website developers, as well as from the perspective of the developers creating such scripts.SponsorsFaithlife | Now Hiring Software DevelopersRaygun | Click here to get started on your free 14-day trialAudible.comCacheFlyPanelAJ ONealAimee KnightDan ShappirCharles Max WoodSpecial GuestBen VinegarLinksETAG Cookieshttps://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elementsPicksAimeehttps://github.com/hwayne/awesome-cold-showersAJAJQuery v2.0https://webinstall.dev/sdDropbox PaperWoody Zuill on Mob Programming and Influencing Change | Healthy Developer Interview #4Charles Max WoodScythehttps://www.thecreepyline.com/Ben Vinegarhttps://workers.cloudflare.com Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Ben Vinegar.Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

13 Loka 202016min

JSJ 452: Caddy 2 Web Server with Matthew Holt

JSJ 452: Caddy 2 Web Server with Matthew Holt

Today the panel talks with Matt Holt who works full time on the Caddy Web Server. The panel discusses things such as how it compares to other popular tools as well as lessons learned while working on it.SponsorsFaithlife | Now Hiring Software DevelopersThe Complete Software Developer’s Career Guide – Grab a Copy TodayAudible.comCacheFlyPanelAJ ONealAimee KnightCharles Max WoodSpecial GuestMatthew HoltLinkshttps://www.papaparse.com/OSI modelhttps://apilayer.com/https://github.com/mholtPicksAimeeCloud flare ball indication sectionLearning about other culturesAJhttps://webinstall.dev/caddy/https://webinstall.dev/serviceman/https://insights.stackoverflow.com/survey/2020https://www.beyondcodebootcamp.com/CharlesMost Valuable Programmer (MVP Program)https://podcastplaybook.coLightbringer seriesMatthew HoltSourcegraph Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Matthew Holt. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

6 Loka 20201h 12min

JSJ 451: Are Software Bugs Inevitable with Ran Levi

JSJ 451: Are Software Bugs Inevitable with Ran Levi

Ran Levy, a well known and prolific technology podcaster joins the show to talk with the panel about software bugs. Topics of discussion include the inevitability of software bugs – are they an intrinsic part of software development? Also, can they be minimized and their impact mitigated? And what can software companies, and the developers themselves, do in order to deliver properly working software.SponsorsRaygun | Click here to get started on your free 14-day trialThe Complete Software Developer’s Career Guide – Grab a Copy TodayFaithlife | Now Hiring Software DevelopersCacheFlyPanelCharles Max WoodAJ ONealAimee KnightDan ShappirSteve EdwardsSpecial GuestRan LeviLinksAre Software Bugs Inevitable?The Wix Engineering PodcastPicksDanThe Explosion of the Ariane 5Mars Climate OrbiterAJMagic Keyboard & Trackpad 2Final Fantasy 1GameCube + GBA + HDMIHomebrew GuideCharles Max WoodMUDList of MUDs Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Ran Levi.Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

29 Syys 20201h 19min

JSJ 450: Native Features Inside The Browser - Introducing Google's Project Fugu with Thomas Steiner

JSJ 450: Native Features Inside The Browser - Introducing Google's Project Fugu with Thomas Steiner

For Web apps to be useful and successfully compete with native applications, they need to be able to access device features, such as the camera, local file system, Bluetooth, and more. Obviously such a mechanism needs to be secure and respect user privacy. In this episode Thomas Steiner, a Developer Advocate for the Web at Google, joins to discuss Project Fugu, and the benefits and capabilities that it already provides, and will provide in the future. Thomas, who is actively involved in this project, explains the design and development process for this project, and how it’s being rolled out and tested.SponsorsRaygun | Click here to get started on your free 14-day trialThe Complete Software Developer’s Career Guide – Grab a Copy TodayAudible.comCacheFlyPanelCharles Max WoodAJ ONealAimee KnightDan ShappirSteve EdwardsSpecial GuestThomas SteinerLinksWICGWake LockChrome Origin Trials GatekeepingMicrosoft Origin TrialsWebOTPPicksAimee Knighthttps://github.com/lebinh/nginx-confSteveGod’s Battalions: The Case for the CrusadesAJwebinstall.dev/comrakThomashttps://excalidraw.com/xxx Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Thomas Steiner.Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

22 Syys 202053min

JSJ 449: The Things Every JavaScript Developer Must Know

JSJ 449: The Things Every JavaScript Developer Must Know

In this episode the panel discusses various programming topics, and whether or not they are required knowledge for JavaScript programmers. This includes topics such as scopes and hoisting, closures, the event-loop, and the behavior of this. For each such topic, the panel discusses whether or not JavaScript devs are required to know and understand them in order to write better code, or pass job interviews, or to understand existing codebases. Alternatively, if these are topics that JavaScript developers don’t need to know, and maybe should even avoid.SponsorsAudible.comThe Complete Software Developer’s Career Guide – Grab a Copy TodayCacheFlyPanelAJ ONealCharles Max WoodDan ShappirSteve EdwardsLinks10 Interview Questions Every JavaScript Developer Should Know – AKA: The Keys to JavaScript Masteryhttps://kentcdodds.com/blog/newspaper-code-structurehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/ClosuresYour Coffee Shop Doesn’t Use Two-Phase CommitPicksAJCrock on JS Follow JavaScript Jabber on Twitter: @JSJabberSupport this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

15 Syys 20201h 5min

JSJ 448: MongoDB Schema Fundamentals with Joe Karlsson

JSJ 448: MongoDB Schema Fundamentals with Joe Karlsson

MongoDB is a popular option for databases which provides objects that look and act like JavaScript Objects. We brought an expert, Joe Karlsson to clear up some of the confusion on how to arrange your data in MongoDB. Joe provides a rundown on how to think about your data with a smaller dataset, a medium sized dataset, and a large dataset. The panel also dives into how the database works and how things are managed and arranged by the MongoDB database engine.SponsorsThe Complete Software Developer’s Career Guide – Grab a Copy TodayCacheFlyPanelCharles Max WoodAimee KnightDan ShappirAJ ONealSpecial GuestJoe KarlssonLinksM320: Data Modelingdeveloper.mongodb.comPicksChuckLeadership in Turbulent TimesAimeeProsourceFit Acupressure MatAJAcupuncture MatSQL vs NoSQLChiron Beta Primessh-pubkeyArs Technica War Stories: Ultima Online (about sharding)Joe KarlssonStamped From the BeginningSpecial Guest: Joe Karlsson. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

8 Syys 20201h 8min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
psykopodiaa-podcast
rss-rahapodi
mimmit-sijoittaa
ostan-asuntoja-podcast
lakicast
rss-lahtijat
rss-laakispodi
oppimisen-psykologia
rss-bisnesta-bebeja
inderespodi
rss-neuvottelija-sami-miettinen
yrittaja
yrittaja-markkinoi
rss-yrita-oikein
rss-myynti-ei-ole-kirosana
rss-sensuroimaton-kukkonen-kausi-3
rss-paasipodi
rss-yrittajan-mindset
rss-metsanomistaja-podcast