Why you should validate

In writing the year it's almost 2010. HTML should be well known by most developers by now. Despite this; I do still see people ignoring validation errors. As late as today I talked to a developer who found it very odd that invalid mark-up do render different in different browsers. There is nothing odd about that. Each time I am confronted with this topic I always run this simple example to illustrate what is going on.
23.12.2009 01:56 - Posted by Trygve - Comments: 0 - Technical
Code sniplets – part I
I do collect sniplets of code. I have them all over the place. Almost every time I read about or bump into a technique, pattern, tests or new way of doing things I find useful of interesting I tend to test it out on my own. Mostly for my own curiosity but also because I learn and understand the concepts easier this way. These sniplets are small isolated bits of test code with comments more or less meant only for my self. Lately I've had some time to start to organize some of those sniplets and write a bit more out filling comments and tests on them than I usually do. Here are the first couple of sniplets.
31.10.2009 06:12 - Posted by Trygve - Comments: 0 - Technical
Pitfalls to watch out for when creating Edge Side Includes
When creating Edge Side Includes (ESI) there are - as pointed out earlier - pitfalls one can fall into. Falling into such a pitfall will definitely reduce the effects of applying ESI so it's important to try to avoid doing so. There are no strict rules for what defines a pitfall, but in this post I will try to give some example for what to look out for and how we can try to work around them.
21.10.2009 02:27 - Posted by Trygve - Comments: 0 - Technical
How to create a var attribute on scriptless tags
JavaServer Pages 2.0 have a feature called Scriptless tags. Scriptless tags are in a way traditional taglibs but written i JSP and they do provide a good feature to JSP. I must have written tons of JSP during the years and I am not gonna discuss JSP in general here but I've always found the JSP documentation kind of unintuitive and lacking good simple examples on some issues.
It might be my search phrases which are poor, but one such issue I've newer found a simple example on is the simple task of defining a var attribute on a scriptless tag. So here is my note to self example on creating a scriptless tag with a var attribute.
26.08.2009 01:44 - Posted by Trygve - Comments: 1 - Technical
What to think of when creating Edge Side Includes
In my previous post I wrote about Edge Side Includes (ESI) and how ESI can have huge benefits on the server side. The trick about ESI is to be able to serve parts of a web page as fragments and then let the ESI enabled proxy include these fragments into a whole page. One natural question when dividing a page into fragments is what should go into each fragment. There is no straight answer for this question and the answer will be different with each case, but I think there are some simple rules one should keep in mind when dividing a page into fragments for ESI inclusion.
16.08.2009 03:43 - Posted by Trygve - Comments: 0 - Technical
Edge Side Includes explained simple
Edge Side Includes, or ESI, are a technology which has been around for many years. Lately I've been working a lot with component based web development where ESI have been used and seeing the benefits ESI have on the server side, have made me wonder why ESI aren't more used. I do also find a lot of developers, specially web developers, go kind of whoooot?!? when mentioning ESI so in this article I will explain what ESI are and what the benefits it provides.
05.08.2009 12:28 - Posted by Trygve - Comments: 2 - Technical
Bootstrapping JavaScript functions
At the moment I am working on a small JavaScript project which does interact extensively with the DOM. One goal in this project is simple integration with the document it shall work on. The preferred way of injection will be to just include the script in the head of the document and then the script does its "magic". This requirement combined with extensively interaction with the DOM does provide some challenges. The main issue which needs to be challenged in such a combination is to be sure the DOM are ready before the script starts to interact with it. Another challenge in this project is that I cannot use any of the JavaScript frameworks around. I ended up writing a bootstrap script.
01.06.2009 02:09 - Posted by Trygve - Comments: 0 - Technical
Converting Web Slices to RSS
In writing, IE8 are just around the corner. One new features in IE8 which draws a lot of attention, if we listen to the IE team, is the Web Slices feature. I will not discuss if this will be useful for IE users or not, but when looking into the technology I did suddenly remember an old xslt published by our friends over at W3C. More specifically the xhtml to RSS xslt and it just hit me that Web Slices can be to great help in converting a web page into a RSS or ATOM feed.
17.03.2009 01:14 - Posted by Trygve - Comments: 0 - Technical
Moving a script? IE might hit you twice!
I have seen a lot of strange browser bugs during the years, but I think this one is one of the strangest. This bug is related to IE6 and IE7 only and occurs when a script tag linking to an external JavaScript file is moved on a page and the content of the external JavaScript file is of an certain nature. This condition can make IE6 and IE7 hit the server twice instead of one.
19.02.2009 01:07 - Posted by Trygve - Comments: 1 - Technical
Coyote - an Roller theme
When I started this blog I choose the Apache Roller blog application as back end. A couple of years ago I had the pleasure of evaluating several blog solutions for my employee and the Apache Roller blog did stand out in its architecture already then and now it's even more solid and flexible. It's easy to install, it's secure, it has a good architecture and it does scale (not that I think this blog will be that popular).
But, as all applications there are always small issues which you do not agree with or which are not working quite the way you would like it to. I was not perfectly happy with the default templates shipped with Roller so I ended up with creating my own template for Roller. This became the Coyote theme which you find here.
02.02.2009 10:42 - Posted by Trygve - Comments: 0 - Technical
About:
My name is Trygve Lie. I live in Oslo, Norway where I deal with web technology. You can read a bit more about me here.
Search:
Categories:
Links:
Feeds:
Tags
- atom
- blog
- components
- css
- dom
- entitys
- esi
- html
- ie6
- ie7
- ie8
- java
- javascript
- jsp
- jstl
- performance
- roller
- saxon
- scriptless
- selectors
- structure
- theme
- validation
- varnish
- webslices
- welcome
- xalan
- xhtml
- xml
- xslt