Articles

JavaScript Error Handler in the Browser and Nodejs

02/12/2012 05:53:07 PM

Wha!?!? I Can Capture JavaScript Errors?

Yep, most developers don't know or aren't using the window.onerror method. Its a global function that is fired whenever there is a JavaScript exception thrown. Its default value is null. With this handler, you can gain insight into when your application is throwing errors instead of waiting for a customer to tell you things aren't working right. A customer telling you something is wrong is the last thing you want, am I right?!?

Read more...

Nodejs String Building - Buffers, Arrays and Concatenation

11/21/2011 01:12:20 AM

Why you should care about how you build strings

In JavaScript, strings are immutable which means that you can't alter the original string. Instead, the old string is kept in memory (and likely abandoned) and a new string is created with your changes. Its important to know this because this method could eat precious memory and processing power.

Read more...

Node.js, ODBC and MSSQL Connection

11/12/2011 03:58:01 PM

Routes taken

In researching connecting Nodejs to MSSQL I found only a couple of solutions.

Read more...

Node.js vs ColdFusion Performance

11/06/2011 11:14:02 PM

The Showdown

Ok this isn't really a showdown. Both Nodejs and ColdFusion have their strong points and I didn't spend the time to go through them all. My question was simple, how much traffic can I ram down their throats and how quick will they respond. I incorporated a SQL insert into a local MySQL database. Now I will say, I had to use cluster to make it fair. Coldfusion will be using multiple threads along with Apache. Node running a single thread just isn't fair so I added one (1) worker per CPU for Nodejs. Also, I did verify that CF was able to process 10 simaltaineous requests. I left the default CF settings in-tact and of course, debugging was not turned on. **Note - I am using express to handle routes. My initial setup was using a good amount of configuration options which turned out to be very slow.

Read more...

Begin using JMeter for your testing!

11/04/2011 03:33:15 PM

JMeter - Powerful but Not Intuitive

I started using JMeter about a month ago. Creating a basic test plan was a cinch! I was all finished with my test and I ran it a few million times. Then I noticed that the variables weren't updating over each iteration... UH-OH... Back to the drawing-board.

Read more...

Cachet - JavaScript Object Caching at your fingers!

11/04/2011 03:08:46 PM

What is it?

A small collection of functions (get, set, is) that maintains name/value pairs for a duration of time. For each name/value stored, you can set an expiration date/time or pass in a float value that represents the duration of hours until expiration.

Read more...

Hold on to your Butts!

10/29/2011 11:23:13 AM

Hold on to your Butts

OK so why is this first article titled "Hold on to your Butts"? I've spent about a month (on and off) developing this site with the desire to become more social in the community. In that month, I've needed some Lorem Ipsum text to fill the gaps within the site. I could think of no other tool than the Samuel L Ipsum generator http://slipsum.com/. Tons of fun right?

Read more...