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)

React Component and State Management - JSJ 526

React Component and State Management - JSJ 526

This episode is Part 3 of the Dan Shappir trilogy. Today, he’s laying out the deets on components and state management inside of React, plus some exciting developments coming later this year.In This Episode1) Why you ought to know the “ideal” situation for React components (and how to get there!) 2) These new “front-end paradigms” that are going to CHANGE how we approach React and others 3) SUPER exciting developments coming for React in 2022SponsorsTop End DevsCoaching | Top End DevsPicksAJ- Dash IncubatorAJ- Talks at GoogleFollow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcodeCharles- Dice Forge | Board Game | BoardGameGeekCharles- Top End Devs - for upcoming workshopsDan- Support UkraineDan- Interview with Senior JS Developer in 2022 - YoutubeSupport 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 Mars 20221h 8min

Supply Chain Security - Part 2 - JSJ 525

Supply Chain Security - Part 2 - JSJ 525

There’s always more to learn about security, especially nowadays. In this episode, the Jabberers continue their conversation with Feross Aboukhadijeh about supply chain security. You can never be too careful! (Well…maybe.)“The most important thing you can do is have a mindset shift around dependencies.” _ _- Feross AboukhadijehIn This Episode1) How the BEST way to keep your security tight is NOT done on the computer 2) Why we’re seeing a trend toward THESE kinds of packages in 2022 3) What you NEED to know about dependencies and their expiration datesSponsorsTop End DevsRaygun | Click here to get started on your free 14-day trialCoaching | Top End DevsPicksAJ- Download - The Go Programming LanguageAJ- xtz - npmFollow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcodeCharles- Pandemic | Board Game | BoardGameGeekCharles- Meetups | Top End DevsCharles- Get involved with your local communityDan- Uprooted by Naomi NovikDan- Interview with Senior JS Developer in 2022Feross- SocketFeross- WormholeFeross- Chakra UISteve- This Unicorn Changed the Way I Poop - #SquattyPottySteve- Girls Don't Poop - PooPourri.comSteve- Twitter: Dad Jokes ( @Dadsaysjokes )Special Guest: Feross Aboukhadijeh.Sponsored By:Coaching | Top End Devs: Do you want to level up your career? or go freelance? or start a podcast or youtube channel? Let Charles Max Wood Help You Achieve Your DreamsRaygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Top End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.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.

15 Mars 20221h 24min

Supply Chain Security - Part 1 - JSJ 524

Supply Chain Security - Part 1 - JSJ 524

Malware attacks are scary, so preparation is keys. In this episode, the Jabberers talk with Feross Aboukhadijeh, a developer who’s redefining malware detection to help you prepare for the next assault. “It’s awesome that such small teams can make complex code, but it’s not enough to just scan for vulnerabilities.” -Feross Aboukhadijeh In This Episode1) This SCARY trend in supple chain malware attacks (and how to prepare) 2) Why tools like Socket are VERY different from common malware detection 3) How companies in 2022 are addressing their security (and what they’re looking for in developers to help them)SponsorsTop End DevsCoaching | Top End DevsLinksSocket – protect your OSS supply chainFeross’s Talk at CascadiaJS 2021 “It’s a Jungle Out There! – Open Source Supply Chain Attacks”PicksAimee- Kubernetes Chaos EngineeringAimee- Normatec 2.0 Pro Legs | HypericeAJ- SocketAJ- BundlephobiaAJ- NPMGraphFollow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcodeCharles- 7 Wonders Board GameCharles- AirmeetCharles- Events | Top End DevsFeross- Node.js FetchFeross- Darknet Diaries – True stories from the dark side of the InternetFeross- Risky Business news recapSteve- passWORDLESpecial Guest: Feross Aboukhadijeh.Sponsored By:Coaching | Top End Devs: Do you want to level up your career? or go freelance? or start a podcast or youtube channel? Let Charles Max Wood Help You Achieve Your DreamsTop End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.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 Mars 20221h 15min

OAuth Explained - JSJ 523

OAuth Explained - JSJ 523

Is OAuth all it’s cracked up to be? In this episode, the Jabberers sit down with Dan Moore, an expert in the OAuth world. They discuss the GIANT perks of OAuth (even if you’re a beginner), how to fix OAuth’s biggest issues, and what you NEED to watch out for in OAuth if you’re a prospective client. “The end goal of OAuth is let someone else handle authentication, and based on tokens you get, you have the insurance that the authentication was valid.” - Dan Moore In This Episode1) The HUGE perks of using OAuth in 2022 (and how to get started) 2) What you SHOULD be looking for in OAuth as a client  3) How to resolve OAuth’s biggest drawbacks and feel confident in your securitySponsorsTop End DevsRaygun | Click here to get started on your free 14-day trialCoaching | Top End DevsPicksAJ- Otter.aiAJ- DashAJ- Elgato Stream DeckFollow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcode Charles- Tally Charles- GiveSendGo Charles- Encanto | Disney Movies Charles- Workshops | Top End Devs Dan- Descript Dan- The Leanpub Process Dan- Security EngineeringSteve- Twitter: Dad Jokes ( @Dadsaysjokes )Special Guest: Dan Moore.Sponsored By:Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Coaching | Top End Devs: Do you want to level up your career? or go freelance? or start a podcast or youtube channel? Let Charles Max Wood Help You Achieve Your DreamsTop End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.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.

1 Mars 20221h 11min

Front End Architecture - JSJ 522

Front End Architecture - JSJ 522

In this episode, the Jabberers sit down with Gil Fink, a Microsoft vet and Google developer who’s gonna convince why having front architecture is a no-brainer. They discuss what differentiates it from components, how “memory floods” are washing away developers (and why they’re causing them!), and the BEST way to move between architectures without losing your mind. “You need to understand all the moving parts in your architecture.” - Gil Fink In This Episode1) What makes front end architecture VERY different from components 2) The BIGGEST problems around “prop drilling” between your components (and how libraries really help) 3) How “memory floods” overwhelm developers…and why they don’t even realize they’re causing them! 4) The CORRECT way to move between architectures without screwing yourselfSponsorsVultrTop End DevsCoaching | Top End DevsPicksAJ- Sonnet Echo 5 Thunderbolt 4 HubAJ- WAVLINK Thunderbolt 3 to Dual DisplayPort 1.4AJ- Slipstick Stack-Its Desk LiftsAJ- The Cold, Hard Truth about const, let, varAJ- Webi (webinstall.dev)AJ- CreedsOfCraftsmanship.comFollow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcode Charles- Candy Land Board Game Dan- IndexedDB API information leaks in Safari Dan- Invincible TV series on Amazon Prime Gil- Chrome Recorder in Dev Tools Tab Gil- The BlacklistSteve- Twitter: Dad Jokes ( @Dadsaysjokes )Special Guest: Gil Fink.Sponsored By:Coaching | Top End Devs: Do you want to level up your career? or go freelance? or start a podcast or youtube channel? Let Charles Max Wood Help You Achieve Your DreamsTop End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.Vultr: Tired of explaining your absurdly high Big Tech cloud bills to your boss? Let me tell you about this cloud infrastructure company that’s the talk of the tech world. 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 Feb 20221h 13min

How to Become a Senior Developer with Shem Magnezi - JSJ 521

How to Become a Senior Developer with Shem Magnezi - JSJ 521

Want to know what makes a senior developer? We know a thing or two. In this episode, the Jabberers sit down with Shem Magnezi, a senior developer at Wilco who shares what he’s learned over his seasoned career. They talk about the do’s and don’ts of being a manager, why small and large companies share this ONE feature, and a HUGE mindset reset that will keep you ahead of the game. “It’s important for people to understand where they can make an impact.” - Shem Magnezi In This Episode1) The KEY differences between smaller and larger companies (and how to hedge your bets when applying) 2) What separates the novice from the expert in a company (and what managers are looking for!) 3) If you’re considering the managerial route, consider THIS risk before going down that road 4) Why THIS mindset shift will make your job easier AND make a larger impact on your companySponsorsVultrRaygun | Click here to get started on your free 14-day trialTop End DevsLinksTHE MYSTERIOUS JOURNEY OF BECOMING A SENIOR ENGINEER PicksAJ- Classless JavaScript (for real this time) with AJ ONeal (and Food!) | MeetupAJ- Creeds of CraftsmanshipFollow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcode Dan- The Wheel of Time TV series on Amazon Prime Dan- AJ's Tweet Dan- Old Man's War Series Shem- Thinking, Fast and Slow Steve- Twitter: Dad Jokes ( @Dadsaysjokes )Special Guest: Shem Magnezi.Sponsored By:Top End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Vultr: Tired of explaining your absurdly high Big Tech cloud bills to your boss? Let me tell you about this cloud infrastructure company that’s the talk of the tech world. 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.

15 Feb 20221h 14min

Web3 with Nik Kalyani - JSJ 520

Web3 with Nik Kalyani - JSJ 520

Feel like you don’t know enough about Web3? Don’t worry, neither do we. That’s where these podcasts come in! In this new episode, the Jabberers sit down with Nik Kalyani, the founder of Decentology and overall Web3 expert. The gang discusses the “big D” of Web3 (and why you need to understand it), how Web3 changes the game for blockchain and the like, and how Web3 is going to make gaming bigger AND more lucrative. “For developers, Web3 equals a green field of opportunity!” - Nik Kalyani In This Episode The “big D” that you NEED to know to understand Web3 (and why it’s about more than just the tech) The BIGGEST concern about Web2 that Web3 is trying to solve (and how it changes privacy for everyone) How to navigate NFTs, blockchain, and more buzzwords in Web3 The future of Java with Web3 (and why it’s easier than Web2!) How Web3 is changing the game for gamingSponsorsVultrTop End DevsCoaching | Top End DevsPicksAJ- Genetically Modified Skeptic (Rational Atheist)AJ- AJ's Litmus Test (Contact me you're looking for work)Follow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcodeCharles- Wavelength | Board Game | BoardGameGeekCharles- Charles is Hiring! Charles- Best Tasting Protein Bars | BuiltBar.comNik- CATAN - CATANNik- Halt and Catch FireSteve- Twitter: Dad Jokes ( @Dadsaysjokes )Special Guest: Nik Kalyani .Sponsored By:Coaching | Top End Devs: Do you want to level up your career? or go freelance? or start a podcast or youtube channel? Let Charles Max Wood Help You Achieve Your DreamsTop End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.Vultr: Tired of explaining your absurdly high Big Tech cloud bills to your boss? Let me tell you about this cloud infrastructure company that’s the talk of the tech world. 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 Feb 20221h 27min

Sorting through the Script (AJ vs. Dan Shappir) - JSJ 519

Sorting through the Script (AJ vs. Dan Shappir) - JSJ 519

Want to watch AJ and Dan Shappir do battle LIVE? You’re in the luck! In this episode, the jabberers go deep on the nuances of var, what we can all learn from C++ about coding, and Dan’s go-to remedies for keeping your Script nice, neat, and not-chaotic.In This EpisodeThe ONE rule you need know about var (and how it affects the future of JavaScript)Why C++ allows variables to execute the code while JavaScript doesn’t (and what we learn from this differenceThe biggest drawback to all of JavaScript’s recent changes (and how to avoid tripping over yourself)Dan’s go-to remedies for keeping your Script tidy and variables obedientSponsorsVultrRaygun | Click here to get started on your free 14-day trialTop End DevsPicksAJ- Mario Kart Live: Home CircuitAJ- Deku DealsAJ- Node.js Best PracticesAJ- webinstall.dev AJ- [CreedsOfCraftsmanship](CreedsOfCraftsmanship.com)Follow CoolAJ86 Live Streams: YouTube: https://youtube.com/coolaj86Twitch: https://twitch.tv/coolaj86Follow Beyond Code: YouTube: https://www.youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBATwitter: https://twitter.com/@_beyondcodeCharles- Scythe | Board Game | BoardGameGeekCharles- New development with TopEndDevs!Charles- Brisket Tacos Dan- Reversim conferenceDan- The 2021 Web AlmanacDan- Old Man's War SeriesSteve-  Is Atheism Dead? | Eric MetaxasSponsored By:Top End Devs: Learn to Become a Top 5% Developer. Join our community of ambitious and engaged programmers to learn how.Raygun: Raygun now offers Real User Monitoring of Core Web Vitals. Start your 14-day free trial now.Vultr: Tired of explaining your absurdly high Big Tech cloud bills to your boss? Let me tell you about this cloud infrastructure company that’s the talk of the tech world. 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.

1 Feb 20221h 10min

Populärt inom Business & ekonomi

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