Best of TDD2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    Advice for Junior Developers

    Writing tests is an example of a best practice, writes tests for everything. Do not use inheritance for code reuse at all when you are starting out. Write Object-Oriented code that is not STUPID.

  2. 2
    Article
    Avatar of devgeniusDev Genius·4y

    How to write maintainable JavaScript code in 2023 — Web or Node.js

    Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before implementing complex features. Use ESLint and Prettier together and you can focus on what your code does. If you use prettier, it will join multi-line breaks.

  3. 3
    Article
    Avatar of medium_jsMedium·4y

    6 Best Practices for Software Delivery

    The Testing Pyramid is a great starting point, and the Testing Pyramid to Fail Fast and Reduce Risk. The longer you leave feedback, the most costly it will become, you start having to interrupt people from other work, and after weeks/months pass by, it’s more likely that people and knowledge will leave.

  4. 4
    Article
    Avatar of hashnodeHashnode·4y

    Unit testing with Jest, React, and TypeScript

    Software testing is critical to lower the chances of our program failing by running tests with the end-user in mind. Testing-library/react is a testing utility tool that's built to test the actual DOM tree rendered by React on the browser. The goal of the library is to help you write tests that resemble how a user would use your application.

  5. 5
    Article
    Avatar of semaphoreSemaphore·4y

    When Microservices Are a Bad Idea

    Migrating from a monolith to microservices is not a simple task, and creating an untested product as a new microservice is even more complicated. A common reason developers want to avoid monoliths is their proclivity to deteriorate into a tangle of code.

  6. 6
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Test-Driven Development Tutorial – How to Test Your JavaScript and ReactJS Applications

    Test-Driven Development (TDD) requires you to pre-specify the output your intended program must produce to pass the test of functioning the way you envisioned. This tutorial will show you all you need to cd path/to/addition-calculator-jest-project Step 4: Create a package, Initialize a package.json file for your project. If your package manager is Yarn, run: yarn add jest --save-dev.

  7. 7
    Article
    Avatar of communityCommunity Picks·4y

    Why I Don't do TDD

    Test Driven Development is a very limited tool that has very specific use cases. It doesn’t fit into the type of projects I build and often hinders the fluid processes it’s supposed to promote. The Worse TDD focuses heavily on fast unit testing, which can run overnight on a TDD system.

  8. 8
    Article
    Avatar of hashnodeHashnode·4y

    TDD (Test Driven Development) Basics Tutorial with TypeScript/React

    The 4 steps are what I think are what are needed in learning TDD. In the previous test, I actually omitted some important setups. This example app uses "pseudo" API to call data. So it runs perfectly on testing environment.

  9. 9
    Article
    Avatar of medium_jsMedium·4y

    Introducing Jester ~ a foolproof solution for integration testing

    Jester is an open-source, low-code application for auto-generating all of your integration tests for your codebase. It uses a detailed algorithm stored on the server side that parses and interprets assertions inputted by the user.

  10. 10
    Article
    Avatar of communityCommunity Picks·4y

    Dependency Inversion Principle: How Google Developers write code

    You should provide Benz instance in order for CarUtil’s drive() method to function. Before refactoring, ProductCatalog was dependent on SQLProductRepository.

  11. 11
    Article
    Avatar of stackabStack Abuse·3y

    Testing Node.js Code with Mocha and Chai

    The basic premise of test-driven development (TDD) is writing your tests even before you start coding. To make this whole process a lot easier, you can resort to easy-to-use and powerful testing and assertion frameworks, such as Mocha and Chai. Chai is an assertion library that provides both the BDD and TDD.

  12. 12
    Article
    Avatar of communityCommunity Picks·4y

    2022 Minimalistic Web Developer Self Care Kit

    The Odin Project is one of my favorite resources to learn web development. The Frontendmasters Frontend The Odin Project Reactiflux Tailwind Jamstack LearnWeb3DAO The Web Developer Bootcamp is the community discord for the udemy course the web developer bootcamp. Ask Questions: Is there anyone that knows React here?

  13. 13
    Article
    Avatar of communityCommunity Picks·4y

    The truth about Test-Driven Development (TDD)

    Customers feel like they are being cared for Conclusion Test-Driven Development is awesome and I love it. It is really fun to do when you're fixing a bug because you can reproduce the bug in the test, make sure it fails, and just focus on fixing the bug.

  14. 14
    Article
    Avatar of communityCommunity Picks·4y

    Node.js debugging: all you need to know

    Node.js is a runtime environment that runs on the Chrome V8 engine and takes JavaScript out of the browser. It is cross-platform and runs on different OSs like Windows, MAC, and Linux. Debugging doesn’t only save development time, but it also helps software developers trace errors back to their source.

  15. 15
    Article
    Avatar of communityCommunity Picks·3y

    TDD in Practice: Tips and Best Practices for Success

    TDD in Practice: Tips and Best Practices for Success Test-Driven Development (TDD) is a software development methodology that involves writing tests for your code before writing the code. Each test should test a specific aspect of your code, and it should only include the minimum amount of code necessary to make the test pass.

  16. 16
    Article
    Avatar of communityCommunity Picks·4y

    Why Every Developer Should Employ Test Driven Development

    Test-Driven Development (TDD) has gained popularity because it works to resolve the speed vs quality dilemma. Using TDD for software development is a more balanced approach emphasising three primary tasks: coding, testing, and designing. For each feature, I write 20-25 tests to cover all possible use Alternative option: a test framework abstracted.

  17. 17
    Article
    Avatar of testdrivenTestDriven.io·4y

    Python Type Checking

    Python is a strongly typed, dynamic programming language. With it being dynamically typed, types are dynamically inferred, so you can set variable values directly without defining the variable type. Strong and dynamic means that types are inferred at runtime but you can't mix types.

  18. 18
    Article
    Avatar of inPlainEngHQPython in Plain English·4y

    Test-Driven Development in Python

    Test-Driven Development is one of the eXtreme Programming paradigms created by Kent Beck in the late 90s. It allows us to express intent in the form of a test. We apply unit tests and integration tests to get clean and correctly working code. Performing these tests with TDD logic will deliver Let’s include membership: We have also passed the second test.

  19. 19
    Article
    Avatar of curiosumCuriosum·4y

    Testing React Applications

    React Testing Library is a handy utility that adds APIs for working with React components. Next.js doesn't come with them out-of-the-box yarn add. It runs your testing scenarios inside a browser, which means that you can easily test your application as a whole. Cypress tests require having your development server running in the background, thankfully package named start-server-and-test does it automatically. Cypress and Playwright offer very similar functionalities.