vinniegarcia.com

Web and mobile developer in South Florida and Silicon Valley

Intro

This is my first post on hexo. I like it so far.

Here’s a contrived code test:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function assignUser(req, next) {
return function (err, usr) {
if (usr) {
req.user = usr;
}
next(err);
}
}
function loadUser(userId) {
return function (req, res, next) {
User.findById(userId, assignUser(req, next));
}
}

How do I look?

Vinnie Garcia

Vinnie Garcia is a web and mobile app developer in South Florida and Silicon Valley. Email to get in touch for your next project.

Proudly published with Hexo