Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 69
  1. The tools we use as developers make us more effective (or at least hopefully faster) developers.

  2. A simple script: grep -rl '<search-string>' <search/dir> | xargs code -r Between two different directories: cd <first-path> && grep -rl '<search-string>' <search/dir> | (cd <second-path>; xargs code -r)

  3. ffmpeg -i video.mp4 -c:v libvpx -crf 30 -b:v 0 -c:a libvorbis video.webm

  4. c8 is my preferred package for calculating code coverage in Node.js testing and it is also apparently used by web-test-runner.

  5. Database Testing Setup

    Here's an example of an existing production application's database testing setup in a TypeScript, Node.js backend.

  6. What's in import.meta?

    If you look at the import.meta docs on MDN you'll notice that it says: The spec doesn't specify any properties to be defined on it, but hosts usually implement the following properties: [url, resolve] So what is actually in there?

  7. Node.js now has a built-in test runner, which I've now tried, and it's fantastic!

  8. ESM does not populate the __filename and __dirname variables frequently used in CommonJS.

  9. element-vir is a package for defining and rendering custom HTML web components.

  10. Web Components are reusable, native chunks of shared HTML, CSS, and JavaScript.

  11. PickDeep is a utility type that expands TypeScript's built-in Pick utility type to pick keys in nested objects.

  12. There are tons of options for test packages and frameworks within the JavaScript ecosystem, both on the backend and frontend.

  13. A collection of commands for use in PostgreSQL.

  14. todo.md

    Here's a super simple, low cost pattern for keeping track of multiple solo projects: just add a todo.md file at the root of each repo.

  15. How GraphQL Works

    This is intended to be a very basic high level overview of GraphQL, explained to a developer that already understands the basics of REST API design.

  16. If you're using TypeScript and ESLint in VS Code, wip files or legacy files can quickly explode into a sea of red squiggles, making it hard to know where to start or track what's going on.

  17. This blog is built using Docusaurus in blog-only mode.

  18. Docusaurus Problems

    Day 1 of using Docusaurus and I'm already pretty disappointed in it.

  19. Use {@link VarName} in JSDoc comments when referencing variables or types to get: "Rename Symbol" support in VS Code "Go to Definition" support in VS Code "Find All References" support in VS Code generated doc links to the original reference (in packages…