RSS

Tag Archives: Software

Fluent Request Builder for Node JS

It’s on my github page, so get it from there.
https://github.com/cairey/FluentRequestBuilder

The http lib can be a bit low level sometimes, so why not make it simpler. Use like so:

var requestBuilder = require('./requestBuilder');

var data = JSON.stringify({ 'important': 'data' });

var headers = {
'Host': 'www.example.com',
'Cookie': null,
'Content-Type': 'text/plain',
'Content-Length': Buffer.byteLength(data, 'utf8'),
'Accept': '*/*'
};

requestBuilder.withHeaders(headers)
.withData(data)
.withPort(80)
.makeRequest('http://google.com', '/', function(body, response){
console.write(body);
});

 
Leave a comment

Posted by on January 25, 2012 in JavaScript, Node, Software Development

 

Tags: , , , , , , ,

UML and Visual Studio

Much to my disappointment and after about 6 hours of trying to get it to work, Visual Studio 2008 does not support UML (Unified Modelling Language). Visual Studio 2008 allows you to create a class diagram that will self generate all the classes in the project (of course you would have done all your class diagrams first, ahem), but this is not UML! Microsoft Visio has UML support, but it cannot generate it from classes or a visual studio project, unless you have the “uber apparently works edition”. Great, so there you are with this huge project and you need to document it, but VS2008 does not know what the hell UML is.

The good news is that there will be full UML support in Visual Studio 2010! Yippee! However for me that will be too late 😦

 
Leave a comment

Posted by on August 12, 2009 in C# Development, Software Development

 

Tags: , , , ,