Css Reset, nice and easy.

Posted in development by Kris Gray on November 16th, 2007

In development lately, I’ve been including the CSS Reset stylesheet from Yahoo as just a basic setup of my page. It super simple as you can just link to the one on their development site.

<link rel=“stylesheet” type=“text/css” href=“http://yui.yahooapis.com/2.3.1/build/reset/reset-min.css”>

The idea being that you shouldn’t need to write excess CSS just to eliminate different browser defaults. The browser defaults have a purpose sure, but they just aren’t needed anymore in todays day and age of CSS.

Another option to consider is Tripoli which tries to make the defaults even a bit elegant, though I haven’t used it yet so I can’t vouch for it.

1 comment

On what planet are these jobs?

Posted in development by Kris Gray on November 2nd, 2007

So not to get on Bill’s case or anything, but why are people out there neglecting to put the location of the companies when they are advertising positions?

Such as these Netflix jobs

Or his friend Sean Kane for getlisted.com here

Or say my money management site Mint.com

I may be missing it, but I just cannot find where these companies are located and was just curious. Yet it seems like a pretty important factor into whether a person would be interested in taking your job.

Anyway, now that I’ve mentioned it hopefully the trend of neglecting the location of your home office on your website will be abandoned.

3 comments

Smarter, Faster, Easier way to build web apps

Posted in development by Kris Gray on November 2nd, 2007

With the book from 37 signals!

Getting Real: The book by 37signals

I’m not to far into it yet, or I’d have more to say.

While reading some stuff of Bill Scott’s I found this wonderful post about a talk from the guy who wrote the aforementioned book.

He again re-iterates that you want to limit un-necessary communication, and even goes to say that meetings are evil and should be avoided.

No comments

Assert Class for JSUnit

Posted in javascript by Kris Gray on November 2nd, 2007

We use JSUnit at work, and I hate its assert methods.

assertEquals(comment, val1, val2);

YUK, the comment first? Coming from a C# background, this is about as ugly as you could imagine. So for eProject I wrote this simple class to get back to the norm.

var Assert = {
“AreEqual”    : function(val1, val2, comment) { assertEquals(comment, val1, val2) },
“AreNotEqual” : function(val1, val2, comment) { assertNotEquals(comment, val1, val2) },
“Fail”        : function(comment) { fail(comment); },
“IsTrue”      : function(val1, comment) { assertTrue(comment, val1); },
“IsFalse”     : function(val1, comment) { assertFalse(comment, val1); },
“IsNull”      : function(val1, comment) { assertNull(comment, val1); },
“IsNotNull”   : function(val1, comment) { assertNotNull(comment, val1); },
“IsNaN”       : function(val1, comment) { assertNaN(comment, val1); },
“IsNotNaN”    : function(val1, comment) { assertNotNaN(comment, val1); },
“IsUndefined” : function(val1, comment) { assertUndefined(comment, val1); },
“IsNotUndefined”: function(val1, comment) { assertNotUndefined(comment, val1); }
};

If you hate it too, then by all means, feel the love of the Assert class.

No comments

« Previous Page