Best of Atomic SpinAugust 2024

  1. 1
    Article
    Avatar of atomicobjectAtomic Spin·2y

    Is Go Programming Language Worth Using on Your Next Project?

    Go, also known as Golang, offers a C-like syntax but with its unique take, such as reading declarations left to right and a garbage collector to ease memory management. Though it lacks features like exceptions (using 'panics' instead) and traditional classes, it utilizes structs and interfaces. Go supports concurrency through lightweight goroutines and channels for communication, making it highly efficient. Although not flashy, its simple syntax and efficient performance make it dependable and relatively easy to learn, especially for those familiar with other languages.

  2. 2
    Article
    Avatar of atomicobjectAtomic Spin·2y

    4 Tips for Writing More Testable Code

    Learn how to make your code more testable by choosing specific input types, avoiding object mutations, keeping complex logic out of the database, and creating new modules or services when needed. These practices not only facilitate easier testing but also improve overall code quality and maintainability.

  3. 3
    Article
    Avatar of atomicobjectAtomic Spin·2y

    Tips for Using React Testing Library to Write Unit Tests

    Unit testing ensures code functions as expected. Test-driven development (TDD) at Atomic Object involves writing tests based on code requirements first. This post offers tips for using React Testing Library efficiently, such as choosing the right query method (getBy, findBy, queryBy), avoiding multiple assertions in a waitFor, and using screen instead of destructuring functions from render. Also, using an ESLint plugin can help avoid common pitfalls.