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 462: The Ultimate Guide to JavaScript Testing with Lucas da Costa

JSJ 462: The Ultimate Guide to JavaScript Testing with Lucas da Costa

Testing JavaScript Applications by Lucas da Costa (Coupon for 40% off: podjsjabber19)Lucas da Costa literally wrote the book on testing JavaScript. He's also maintainer on ChaiJS and Sinon. The podcast follows a three part structure for testing: Entrance tests, integration tests, and structural tests. These form a pyramid of testing that has the entrance tests at the base and the structural and system tests at the top. The episode also covers TDD and approaches to different kinds of JavaScript testing.PanelAJ O’NealAimee KnightSteve EdwardsGuestLucas da CostaSponsorsAudible.comRaygun | Click here to get started on your free 14-day trialLinksTesting JavaScript Applications bookLucas' WebsiteLucas' Terminal GuideWhy Flat Earthers are Bad at QAPicksLucas - HiDPI (Retina) on any displayLucas - RDM:Lucas - Quartz Debug (XCode Additional Tools)Aimee - Vanilla-todoAJ - iTerm2AJ - Fish ShellAJ - Cloud Encabulator linkSteve - https://www.youtube.com/watch?v=BRupqYXNUVwLucas - The Sense of Style by Steven Pinker (Audiobook)Lucas - On Writing WellLucas - Actionable Agile Metrics For Predictability: An IntroductionLucas - https://github.com/neovim/neovimTesting JavaScript Applications by Lucas da Costa (Coupon for 40% off: podjsjabber19)Special Guest: Lucas F. Costa.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.

8 Joulu 20201h 10min

BONUS: Adding a Content Engine to Your App with a Headless CMS with Jake Lumetta

BONUS: Adding a Content Engine to Your App with a Headless CMS with Jake Lumetta

Go Check Out ButterCMS to Add Content to Your Apps!Do you need to add a content engine like a blog or podcast to your product’s website? Don’t want to maintain a separate WordPress installation? Why not use a Headless CMS?Jake Lumetta from ButterCMS joins Charles Max Wood to discuss how Headless CMS’s work and how they can add functionality to your application with a minimum of effort and very little maintenance. They also compare Headless CMS’s to the alternatives and explain when one choice is better for a team than the other.Go Check Out ButterCMS to Add Content to Your Apps!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.

4 Joulu 202023min

JSJ 460: The Things Every JavaScript Developer Must Know, Part 2

JSJ 460: The Things Every JavaScript Developer Must Know, Part 2

The panel continues its discussion of various JavaScript programming topics, and whether or not they are required knowledge for JavaScript programmers. This time the debate gets even more heated with topics such as promises and async / await, regular expressions (regex), the DOM and Service Workers. Ultimately we conclude that some you must indeed know to be successful at JavaScript development, but some you just need to know enough about to know to stay away from them.PanelAJ O’NealAimee KnightSteve EdwardsDan ShappirCharles Max WoodLinksJSJ 449: The Things Every JavaScript Developer Must Knowhttps://stackoverflow.com/a/1732454/151312PicksAimee - The MarkupAimee - Yasso Frozen YogurtDan - picks Steve Edwards (volunteer firefighter) for his service and saving livesAJ - XKCD DependencyAJ - YC’s How to Start a StartupAJ - https://webinstall.dev/arcAJ - https://webinstall.dev/un7z (still not working)AJ - HarakaAJ - EmkeiAJ - MxtoolboxAJ - Mail-tester.comAJ - https://blog.codinghorror.com/so-youd-like-to-send-some-email-through-code/Steve - https://blog.logrocket.com/new-features-in-vue-3-and-how-to-use-them/Charles - https://brendon.com/podcast/Charles - https://stimulusjs.org/Charles - https://github.com/alpinejs/alpineSupport 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 Joulu 20201h 12min

BONUS: How to do LARGE Volumes of HIGH Quality Work - While Spending Fewer Hours Working

BONUS: How to do LARGE Volumes of HIGH Quality Work - While Spending Fewer Hours Working

Get the Black Friday/Cyber Monday "Double Your Productivity by 5pm Today" Deal Coupon Code: "DEEP" for a GIANT discountMani provides us with strategies and tactics to get Deep Work time and how to get our minds into that focused state for hours at a time.He has read hundreds of books that have taught him the secrets to getting more done by getting into this state.He starts by telling us how he was passed over for a promotion at Qualcomm in favor of someone younger and less experienced and how that inspired him to figure out what the other guy was doing differently. He learned that he needed to get more done with the time he was spending on his projects.The trick? Deep Work!Deep Work is the ability to spend uninterrupted, focused time on a task to bend your entire mind toward the goal.Other developers call it "Flow" or "the Zone."Mani provides us with strategies and tactics to get Deep Work time and how to get our minds into that focused state for hours at a time. Get the Black Friday/Cyber Monday "Double Your Productivity by 5pm Today" Deal Coupon Code: "DEEP" for a GIANT discount 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 Marras 202047min

JSJ 459: Codota Tabnine and the Rise of Ai-powered Developer Tooling with Kyle Simpson PT 2

JSJ 459: Codota Tabnine and the Rise of Ai-powered Developer Tooling with Kyle Simpson PT 2

Imagine a world in which your editor / IDE can actually write some of your code for you. Where you're able to produce software faster and more efficiently because your development environment "knows" what you want to do, based on code you've written before. Turns out you can start experiencing this in the present using the free TabNine editor extension by Codata. In this episode Kyle Simpson, Codata's Lead of Developer Empowerment, joins the panel to describe how they use Machine Learning to enhance and accelerate software development. Kyle explains what's already possible in the present, and what ML technology promises to enable in the future for developer experience.PicksAimeeTerraform cost estimation: https://github.com/antonbabenko/terraform-cost-estimationDanhttps://www.se.rit.edu/~tabeec/RIT_441/Resources_files/How To Write Unmaintainable Code.pdfKylehttps://medium.com/nmc-techblog/introducing-the-async-cookie-store-api-89cbecf401fAJ3-Wolf Moon: https://amzn.to/3dGkRE6Watchexec: https://webinstall.dev/watchexecDotenv: https://webinstall.dev/dotenvSpecial Guest: Kyle Simpson. 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.

24 Marras 202045min

JSJ 458: Codota Tabnine and the Rise of Ai-powered Developer Tooling with Kyle Simpson

JSJ 458: Codota Tabnine and the Rise of Ai-powered Developer Tooling with Kyle Simpson

Imagine a world in which your editor / IDE can actually write some of your code for you. Where you’re able to produce software faster and more efficiently because your development environment “knows” what you want to do, based on code you’ve written before. Turns out you can start experiencing this in the present using the free TabNine editor extension by Codata. In this episode Kyle Simpson, Codata’s Lead of Developer Empowerment, joins the panel to describe how they use Machine Learning to enhance and accelerate software development. Kyle explains what’s already possible in the present, and what ML technology promises to enable in the future for developer experience.SponsorsRaygun | Click here to get started on your free 14-day trialAudible.comCacheFlyPanelAJ ONealAimee KnightDan ShappirSpecial GuestKyle SimpsonLinkstabnine AI autocomplete with Vim (REACTION)How To Write Unmaintainable CodePicksAimeeTerraform cost estimationAJ3-Wolf MoonWatchexecDotenvKyle SimpsonIntroducing: The Async Cookie Store API Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Kyle Simpson.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.

17 Marras 202057min

JSJ 457: Career Transitioning with Laura Harvey

JSJ 457: Career Transitioning with Laura Harvey

This week the panel talks with a UK boot camp student about her decision to switch careers and learn to program. They discuss unique challenges such as being part of an underrepresented group and entering the field during a pandemic. Additionally, they discuss technology choices and overall, seek to gain a deeper understanding of the state of JavaScript for new developers.SponsorsRaygun | Click here to get started on your free 14-day trialAudible.comCacheFlyPanelAimee KnightDan ShappirSteve EdwardsSpecial GuestLaura HarveyPicksAimeeGoReleaserhttps://www.purpose.jobs/blog/hiring-tech-jobs-has-increased-in-midwestern-citiesDanTechnical Tweetstwitter.com/kentcdodds/statusLaura Harveyhttps://www.youtube.com/channel/lauracharveyhttps://dev.to/lauracharvey Follow JavaScript Jabber on Twitter: @JSJabber Special Guest: Laura Harvey.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.

10 Marras 202057min

JSJ 456: Developer-First Security and Security Tooling For Developers with Liran Tal & Brian Vermeer

JSJ 456: Developer-First Security and Security Tooling For Developers with Liran Tal & Brian Vermeer

Liran Tal and Brian Vermeer from Snyk join the panel to discuss development of secure software in general, and secure JavaScript and web dev in particular. They explain what developer-first security actually means, and the types of security vulnerabilities to watch out for when using modern tools to develop websites and web apps. They also present several Open Source tools that developers can use to improve their code right from within their favorite development environments and IDEs.SponsorsAudible.comCacheFlyPanelAJ ONealAimee KnightDan ShappirSpecial GuestsLiran TalBrian VermeerLinksHttps://www.webpagetest.orghttps://snyk.io/security-scanner-vuln-cost/https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-costPicksDanadd Alt Texts when tweeting code on twitter as an image,https://www.goodreads.com/series/46817-demon-cycleAJZalgohttps://www.cnet.com/news/the-shirt-with-the-most-incredible-amazon-reviews/The Friendly, Interactive ShellTomorrow Night Theme (Terminal, iTerm2, VSCode, vim, etc)Dracula Themehttps://github.com/JacksonGariety/toy-chest-themeJeff BezosLiran Talhttps://starship.rs/https://vuetifyjs.com/en/Pact frameworkhttps://docs.pact.io/https://en.wikipedia.org/wiki/RemoteAccessBrianhttps://carbon.now.sh/https://en.wikipedia.org/wiki/The_Umbrella_Academy_(TV_series) Follow JavaScript Jabber on Twitter: @JSJabber Special Guests: Brian Vermeer and Liran Tal. 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.

3 Marras 20201h 6min

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