Skip to content

Instantly share code, notes, and snippets.

View nitinreddy3's full-sized avatar
🏠
Working from home

Nitin Reddy nitinreddy3

🏠
Working from home
View GitHub Profile
@nitinreddy3
nitinreddy3 / index.js
Created June 21, 2018 16:12 — forked from joerx/index.js
Mocking S3 in Node.js using Sinon
var Aws = require('aws-sdk');
var sinon = require('sinon');
// Only works for 'createBucket', 'update' and a few others since most API methods are generated dynamically
// upon instantiation. Very counterintuitive, thanks Amazon!
var createBucket = sinon.stub(Aws.S3.prototype, 'createBucket');
createBucket.yields(null, 'Me create bucket');
// For other methods, we can 'assign' the stubs to the proto, already defined function won't be overridden
var listBuckets = Aws.S3.prototype.listBuckets = sinon.stub();
@nitinreddy3
nitinreddy3 / comment-example.js
Created July 15, 2018 01:56 — forked from brandongoode/comment-example.js
Dynamoose range and hash key example
var commentSchema = new Schema({
postId: {
type: String,
hashKey: true
},
id: {
type: String,
rangeKey: true,
default: shortId.generate
@nitinreddy3
nitinreddy3 / asyncAll.js
Created October 5, 2018 04:52 — forked from smellymonk/asyncAll.js
asyncAll example
/*
* A simple asyncAll example.
*
* Ignores any error handling and only returns the results to the done callback.
* Each task is expected to take a callback for its first parameter.
*/
// Example call:
asyncAll([doSomething, doSomethingElse], function (results) {
console.log('all done', results);
@nitinreddy3
nitinreddy3 / chart.js
Created October 23, 2019 05:12
d3 snippets
//

What Hiring Should Look Like

This is definitely not the first time I've written about this topic, but I haven't written formally about it in quite awhile. So I want to revisit why I think technical-position interviewing is so poorly designed, and lay out what I think would be a better process.

I'm just one guy, with a bunch of strong opinions and a bunch of flaws. So take these suggestions with a grain of salt. I'm sure there's a lot of talented, passionate folks with other thoughts, and some are probably a lot more interesting and useful than my own.

But at the same time, I hope you'll set aside the assumptions and status quo of how interviewing is always done. Just because you were hired a certain way, and even if you liked it, doesn't mean that it's a good interview process to repeat.

If you're happy with the way technical interviewing currently works at your company, fine. Just stop, don't read any further. I'm not going to spend any effort trying to convince you otherwise.