043 JSJ Sinon.JS

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.

Avsnitt(733)

JSJ 474: Things JavaScript Developers Should Know, Part 1

JSJ 474: Things JavaScript Developers Should Know, Part 1

Having done a three-part series on the things JavaScript developers MUST know, Dan now leads a panel discussion on the things that JavaScript developers SHOULD know. These are things that devs can get by without knowing, but that will improve their abilities if they do know and understand. Subjects covered include: passing functions args by value vs by reference, sparse arrays, property descriptors, event capture, and more.PanelAimee KnightAJ O'NealDan ShappirSteve EdwardsSponsorsDexecureDev Heroes AcceleratorLinksBubbling and capturingPicksAimee- Load balancing and its different typesAJ- Ethan Garofolo - YouTubeAJ- XMissionAJ- LuaJITAJ- rclone | webinstall.devAJ- USB-C Cozy for USB C Adapters AJ- xkcd: SecurityDan- Tel Aviv weatherDan- Axel RauschmayerDan- 2ality – JavaScript and moreDan- JavaScript for impatient programmers (ES2021 edition)Sponsored By:Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB 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.

9 Mars 20211h 22min

JSJ 473: The Elements framework with Chris Mather

JSJ 473: The Elements framework with Chris Mather

Steve and A.J. talk with Chris Mather, the creator of the Elements framework, a new monolith-style web framework for generating web apps. They discuss the reason for adding YAF (Yet Another Framework), the pieces that are used to build the framework, and how it all works together.PanelAJ O'NealSteve EdwardsGuestChris MatherSponsorsDexecureRaygun | Click here to get started on your free 14-day trialDev Heroes AcceleratorLinksElementsGitHub | elementscode/applicationPicksAJ- Ubiquiti - Simplifying ITAJ- UHD Friendly Blu-Ray LibreDriveChris- Having a babySteve- The COVID-19 Vaccines and God’s ProvidenceSpecial Guest: Chris Mather.Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB 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.

2 Mars 20211h 17min

JSJ 472: RedwoodJS Brings Full-Stack to the JAMstack with Anthony Campolo

JSJ 472: RedwoodJS Brings Full-Stack to the JAMstack with Anthony Campolo

Anthony Campolo joins the conversation to lead the discussion of RedwoodJS. RedwoodJS is a full-stack framework that provides a way of building a fast and secure front-end that JAMstack gives you with the power and flexibility of a backend.It doesn't have an official ORM, instead it uses GraphQL through Prisma. This discussion goes deep into the history and implementation of RedwoodJS.PanelAimee KnightAJ O'NealDan ShappirSteve EdwardsGuestAnthony CampoloSponsorsDev Heroes AcceleratorLinksFSJam PodcastA First Look at RedwoodJS - Complete SeriesPicksAimee- GCP Outpaces Azure, AWS in the 2021 Cloud ReportAJ- xkcd: File TransferAnthony- RedwoodJS CommunityAnthony- RedwoodJS - Bringing full-stack to the JamstackDan- State of JS 2020Steve- The Man Who Knew Too Much (1956)Special Guest: Anthony Campolo. 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.

23 Feb 202153min

JSJ 471: Things Every JavaScript Developer Must Know - Part 3

JSJ 471: Things Every JavaScript Developer Must Know - Part 3

In this episode, the panel discusses the final list of things that developers need to know and how and when they're important. These topics include:Duck typingTypeScriptVarious programming terms and concepts: recursion, garbage collection, MVC, etc.JS number and Math system (NaN, precision, BigInt, …)At least one frameworkAt least one testing frameworkA bundler (WebPack or Rollup or Parcel etc)PanelAimee KnightAJ O'NealDan ShappirSteve EdwardsSponsorsDexecureRaygun | Click here to get started on your free 14-day trialDev Heroes AcceleratorPicksAimee- 10 Powerful Life Skills for the New DecadeAJ- Epic React by Kent C. Dodds $300 React | Kent C DoddsAJ- Udemy $10 React | Stephen GrinderAJ- Zoom H1n ( Amazon )AJ- Zoom H1n ( Ebay )AJ- Apple M1 (MacBook) AirDan- Youtube | Chromium UniversitySteve- Greater (2016)Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB 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.

16 Feb 20211h 12min

JSJ 470: Fine Tuning Your Psychological Stack, or DevOps For Your Brain

JSJ 470: Fine Tuning Your Psychological Stack, or DevOps For Your Brain

You're working on planning and executing your professional and technical journeys, but what about your psychological journey? The reality is that without taking better care of yourself, you are potentially setting yourself up for failure, and potentially also putting your health and wellbeing at risk. We are joined by Wei-Ming Lam, a coach and Yoga Instructor who provides practical advice for constructing and tuning your psychological stack.PanelAJ O'NealDan ShappirSteve EdwardsGuestWei-Ming LamSponsorsDexecureDev Heroes AcceleratorLinksThe Middle WeiYoutube | The Middle WeiPicksAJ- As a Man Thinketh by James Allen AJ- Deep Work: Rules for Focused Success in a Distracted World by Cal Newport AJ- The Mind and the Brain: Neuroplasticity and the Power of Mental Force by Jeffrey M. Schwartz MDAJ- The War of Art by Steven PressfieldAJ- M1 Macbook AirAJ- PLEXAJ- EmbyAJ- webinstall.dev/syncthingDan- Covid-19 VaccineDan- Should The Web Expose Hardware Capabilities? by Noam RosenthalSteve- Tenet (2020)Steve- The Essential Compendium of Dad Jokes by Thomas Nowak Steve- Psychiatrist: Americans Are Suffering From ‘Mass Delusional Psychosis’ Because Of Covid-19Wei- Ming- Grit: The Power of Passion and Perseverance by Angela DuckworthWei-Ming- Whetstone Knife SharpenerWei-Ming- Blade Sharpening FundamentalsWei-Ming- Get a houseplant Special Guest: Wei-Ming Lam.Sponsored By:Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB 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.

9 Feb 20211h 21min

BONUS: Measuring Apps and Entrepreneurship with John-Daniel Trask

BONUS: Measuring Apps and Entrepreneurship with John-Daniel Trask

John-Daniel Trask, founder and CEO of Raygun, talks about his experience building a monitoring company and about how to measure the speed and quality of your code. 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.

5 Feb 202150min

JSJ 469: The Case for JavaScript Iterators and Generators, part 2

JSJ 469: The Case for JavaScript Iterators and Generators, part 2

This is the follow on to the episode first recorded regarding JavaScripts iterators and generators. Dan takes the lead and picks up from last time. The panel discusses how JavaScript uses and implements iterators and where people are likely to see them. Then they dive into generators and briefly discuss the concept and their uses.CODE:x = {[Symbol.iterator]() {let i = 0;return {next: () => ({done: i >= 10,value: i++})};}};for (const v of x) console.log(v);console.log([…x]);console.log(…x);function* g() {for (let i = 0; i < 10; ++i) yield i;}PanelAJ O'NealCharles WoodDan ShappirSponsorsDexecureRaygun | Click here to get started on your free 14-day trialNext Level MastermindLinksA Promise of a Bright Future With Async Iterators, Generators, and Pipes, Part 1Devchat.tv | JSJ 437: Inside the Brave Browser with Jonathan SampsonFlint 4kPicksAJ- Charles WoodAJ- 12 Rules for Life PosterAJ- Brave BrowserAJ- Need for Speed Hot Pursuit (Remastered)Charles- Devchat.tv | The Dev RevCharles- Most Valuable DeveloperCharles- Elgato Cam Link 4KCharles- Podcast PlaybookCharles- The Hero with a Thousand Faces by Joseph CampbellDan- Netflix Series: The Queen's GambitDan- Automating audits with AutoWebPerfSponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB 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.

2 Feb 20211h 18min

BONUS: How to Speed Up Your Website For Fun and Profit with Inian Parameshwaran

BONUS: How to Speed Up Your Website For Fun and Profit with Inian Parameshwaran

Use the code DEVCHAT at https://devchat.tv/fast to get double the capacity and traffic from Dexecure.Inian Parameshwaran is the CEO of Dexecure and an expert in speeding up websites. Inian walks Charles Max Wood through the intricacies of measuring website speed and explains which metrics matter and for which concerns. He goes over the benefits to SEO and user experience and then does a deep dive on how to begin speeding up your website so Google will rank it higher and your users don’t lose interest while waiting for a response from your application.Special Guest: Inian Parameshwaran.Sponsored By:Dexecure: Exclusive Offer For Javascript Jabber Listeners Promo Code: DEXJSJAB 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 Jan 202141min

Populärt inom Business & ekonomi

badfluence
framgangspodden
varvet
rss-jossan-nina
uppgang-och-fall
rss-svart-marknad
bathina-en-podcast
rss-borsens-finest
24fragor
lastbilspodden
svd-tech-brief
avanzapodden
dynastin
rss-kort-lang-analyspodden-fran-di
fill-or-kill
affarsvarlden
rss-dagen-med-di
borsmorgon
kapitalet-en-podd-om-ekonomi
tabberaset