DEV Community

Corey Cleary profile picture

Corey Cleary

Tech Lead primarily working with JavaScript and Node.js

Six Year Club
Writing Debut
Five Year Club
1 Week Community Wellness Streak
Four Year Club
Three Year Club
Two Year Club
Fab 5
4 Week Writing Streak
One Year Club
Top 7
JavaScript
Learning a codebase by reading tests

Learning a codebase by reading tests

Comments
3 min read

Want to connect with Corey Cleary?

Create an account to connect with Corey Cleary. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Making test stub setup effortless using Sinon

Making test stub setup effortless using Sinon

3
Comments
5 min read
In what layer does request validation go in a Node REST API?

In what layer does request validation go in a Node REST API?

4
Comments
3 min read
What is the difference between Middleware and Controllers in Node REST APIs?

What is the difference between Middleware and Controllers in Node REST APIs?

2
Comments 1
4 min read
Multiple assertions per test may actually be OK

Multiple assertions per test may actually be OK

Comments
11 min read
Better test structuring using Mocha's context()

Better test structuring using Mocha's context()

1
Comments
4 min read
What is the difference between a job queue and worker threads?

What is the difference between a job queue and worker threads?

Comments
7 min read
Using a task queue vs. just not waiting for Promise to resolve

Using a task queue vs. just not waiting for Promise to resolve

Comments 2
8 min read
ExpressJS antipattern: making everything middleware

ExpressJS antipattern: making everything middleware

3
Comments
8 min read
Simplifying local dev setup with Docker Compose

Simplifying local dev setup with Docker Compose

7
Comments 1
5 min read
Should you use a logging framework or console.log() in Node?

Should you use a logging framework or console.log() in Node?

9
Comments
6 min read
Using the `debug` module to avoid polluting your application logs with logs from Node modules

Using the `debug` module to avoid polluting your application logs with logs from Node modules

10
Comments
6 min read
Awaiting multiple requests to finish using Promise.all

Awaiting multiple requests to finish using Promise.all

14
Comments 1
3 min read
Express-approved middlewares to use in your API

Express-approved middlewares to use in your API

64
Comments 2
5 min read
Do you always need to separate services and controllers?

Do you always need to separate services and controllers?

18
Comments 3
5 min read
Faking errors to test error scenarios in Express API's

Faking errors to test error scenarios in Express API's

9
Comments
3 min read
Is it possible to browse multiple tags?

Is it possible to browse multiple tags?

7
Comments 1
1 min read
Set up your Node project to run tests locally and on CircleCI

Set up your Node project to run tests locally and on CircleCI

6
Comments
3 min read
How to use `import/export` in Node without Babel

How to use `import/export` in Node without Babel

10
Comments 1
2 min read
Awaiting or just returning asynchronous values in JavaScript async/await functions

Awaiting or just returning asynchronous values in JavaScript async/await functions

16
Comments
3 min read
Possibly the greatest value in having tests for your code is...

Possibly the greatest value in having tests for your code is...

35
Comments 1
6 min read
Using functional programming to avoid intermediate variables and nested functions

Using functional programming to avoid intermediate variables and nested functions

55
Comments
5 min read
How to run a npm package from the command line

How to run a npm package from the command line

8
Comments
2 min read
How to run more than one command as part of a npm script

How to run more than one command as part of a npm script

9
Comments
3 min read
Lessen the pain of mocking/stubbing by writing smaller JavaScript functions for easier unit testing

Lessen the pain of mocking/stubbing by writing smaller JavaScript functions for easier unit testing

11
Comments
6 min read
Why would you download a Docker image vs. just building from the Dockerfile for local dev?

Why would you download a Docker image vs. just building from the Dockerfile for local dev?

10
Comments
4 min read
How to pitch your skills as a developer in a way that aligns with a company's needs

How to pitch your skills as a developer in a way that aligns with a company's needs

52
Comments 1
10 min read
A better way to sell your skills as a developer than just "hire me!" or mass applying

A better way to sell your skills as a developer than just "hire me!" or mass applying

616
Comments 20
8 min read
Understand how to approach designing queues in Node

Understand how to approach designing queues in Node

22
Comments
10 min read
Should you log the Express req object and external API responses?

Should you log the Express req object and external API responses?

10
Comments
5 min read
Executing arrays of async/await JavaScript functions in series vs. concurrently

Executing arrays of async/await JavaScript functions in series vs. concurrently

57
Comments 4
3 min read
Applying the callback -> async/await conversion process to a real-world example

Applying the callback -> async/await conversion process to a real-world example

11
Comments 2
4 min read
Why should you separate Controllers from Services in Node REST API's?

Why should you separate Controllers from Services in Node REST API's?

88
Comments 10
7 min read
What is the difference between Controllers and Services in Node REST API's?

What is the difference between Controllers and Services in Node REST API's?

109
Comments 4
6 min read
Why should your Node.js application not handle log routing?

Why should your Node.js application not handle log routing?

72
Comments 8
8 min read
Real world testing: Using business and technical requirements to know what to test

Real world testing: Using business and technical requirements to know what to test

16
Comments
9 min read
How to rewrite a callback function in Promise form and async/await form in JavaScript

How to rewrite a callback function in Promise form and async/await form in JavaScript

119
Comments 10
5 min read
expect(await fn()) vs await expect(fn()) for error tests with chai-as-promised

expect(await fn()) vs await expect(fn()) for error tests with chai-as-promised

8
Comments
3 min read
Why you should isolate Express from the rest of your Node application

Why you should isolate Express from the rest of your Node application

62
Comments 2
4 min read
Real world testing recipes: Node service that calls an external API

Real world testing recipes: Node service that calls an external API

49
Comments 1
9 min read
Explain JavaScript unit testing like I’m five

Explain JavaScript unit testing like I’m five

72
Comments 7
6 min read
Which of the 635000 npm modules do I choose?

Which of the 635000 npm modules do I choose?

86
Comments 4
11 min read
Project structure for an Express REST API when there is no "standard way"

Project structure for an Express REST API when there is no "standard way"

157
Comments 13
11 min read
Avoid manually prepending '/api' to every Express route with this simple method

Avoid manually prepending '/api' to every Express route with this simple method

52
Comments 2
2 min read
How to find the best open source Node.js projects to study for leveling up your skills

How to find the best open source Node.js projects to study for leveling up your skills

94
Comments
10 min read
Separating logic from Express routes for easier testing

Separating logic from Express routes for easier testing

57
Comments 1
5 min read
Tried TDD and didn't realize the benefits? Try it the next time you get writer's block

Tried TDD and didn't realize the benefits? Try it the next time you get writer's block

73
Comments 9
6 min read
Why isn't this unit test catching an error from this async/await function?

Why isn't this unit test catching an error from this async/await function?

44
Comments 9
4 min read
Know what to test using these recipes: Node service that calls a database

Know what to test using these recipes: Node service that calls a database

20
Comments
14 min read
loading...