9 posts found

Performance killer: Disk I/O

Many people think of "performance tuning" as optimizing loops, algorithms, and memory use. In truth, however, you don't get the huge performance gains from optimizing CPU and memory use (which is good), but from eliminating I/O calls.

Read more...

Clojure - cross platform, fast, concurrent, concise

I recently ran across this video on Clojure... Very compelling presentation.  I originally thought of lisp as being interpreted.. It's easy to build a simple lisp interpreter. Clojure, however, is compiled lisp - but still quite as dynamic, and it supports edit-and-continue.

Read more...

Use 'scripting' languages when possible

Are you guilty of subconsciously regarding 'scripting' languages as inferior? Do you think real programming means using C, C++, C#, or Java? Does your conscience accuse you of laziness when you feel tempted to use a truly high-level language for your app?

Read more...

Regular expressions are mandatory

I admit that regular expressions (regexes) are intimidating. I avoided them like a disease for six years. I wasn't quite sure what they did, but seeing stuff like this was enough to make me lose interest quick: <(?[\\w:-]+)(?\\s+(?\\w[-\\w:]*) (\\s*=\\s*\"(?[^\"]*)\"| \\s*=\\s*'(?[^']*)'| \\s*=\\s*(?<%#.*?%>)| \\s*=\\s*(?[^\\s=/>]*)| (?\\s*?)))* \\s*(?)(?:(?/>)|> (?s:(?.*?) (?i:\\s*>))) Whenever I did string parsing, I usually ended up with masses of loops and indexOf calls.

Read more...

Command chaining

Even if you're still stuck using a non-dynamic language (Java, C#, etc), you can steal a trick or two from the other side. Command chaining is an easy practice that can really simplify your code. It's easy.

Read more...

The Query String

The query string is handled differently from the rest of the virtual path. It is neither URL decoded or case-normalized before it reaches ASP.NET, although each name-value pair is URL decoded before being stored in the Request.QueryString collection.

Read more...

Designing URIs

One of the most critical steps in designing a web site is choosing your URI structure for the site. Clean, friendly URIs make visitors more comfortable and help them keep track of where they are on the site,

Read more...