Off topic – a very addictive little game for Windows, Mac and Linux…
June 29th, 2010 Posted in Uncategorized | No Comments »http://www.hemispheregames.com/osmos/
Very chilled out…
http://www.hemispheregames.com/osmos/
Very chilled out…
So given the above, the forces I am trying to balance are
Next I’ll talk about how the default setup I use to do, in-memory, out of container testing.
Now for some web specific whys/values I do the in-memory acceptance testing…
All of these forces / values / beliefs drive me to solve the problem of web testing in a very different approach from most people. It is about an alternative holistic approach to web architecture, testing and productivity.
So now I have expressed some of the forces / the whys, I will try cover the hows and whats.
(Previously on TWSDEV)
As the “crazy” guy behind the in-memory / out-of-container acceptance testing on a number of java/.net projects, I think it’s important I explain to people the “Why” and the forces / constraints I am trying to balance. But first I want to quickly lay down my beliefs and values:
Wow Dyson have done it again: http://www.dyson.co.uk/technology/airmultiplier.asp
Interestingly they talk about the fact they had to do “Hundreds of iterative tests” to get the design right:
http://www.dyson.co.uk/insidedyson/default.asp#Air_Mult_Tech_Dev
If you have met me or worked with me in the last 15 years or so, you will know that I am pretty mad about the web as a platform, HTTP as a protocol and HTML as a state engine. Add to this the last 6 years or so practising agile techniques while building highly scalable websites and you tend to find that I have fairly unusual views in the field about how to build and architect web applications.
A lot of people say to me, Dan, you must write about X as the industry seems to be doing Y
and while I find it very easy to talk in a face-to-face conversation or even a mailing list, writing an article or post has always been a challenge due to the one way nature of the conversation. Anyway after some gentle nudging by Sarah Taraporewalla, Christian Blunden and Martin Fowler I have decided to jump in head first and try and create a series of articles that will hopefully open a few peoples eye’s to some alternatives.
So enough with the why and onto the what I’m planning to cover in the series:
So I noticed an issue with Google Chromium and it not updating the cached entry with new headers on a HTTP 304 response. So I logged the issue last weekend and bang! 6 days later the issue is resolved and I have a new version of the browser on my desktop.
Not only was the process super fast but I watched the fix being discussed then applied. I looked at the code change and the unit tests being updated all as it happened. Needless to same I am very impressed.
Interestingly I noticed the same issue with Opera and logged an issue with the exact same details on the same day, unfortunately Opera’s bug tracking system is private and so I have no idea if the issue is even being looked at. When they do eventually fix the issue I’ll still have to wait for sometime as they don’t have a public build server for me to download and try the fix before an official release.
So after rediscovering the distraction free editors to write reports, it seemed mad not to use the same environment to update my blog. I really like the fact that the editor only supports plain text and didn’t want to reduce the readability of the plain text by having lots of unneeded markup all over the place.
What I needed was a simple tool to convert my semi structured text into html and then I could just upload that to my blog. Ideally the tool would be a command line tool so I could easily automate the two steps.
I looked at a few different tools but in the end chose to use stx2any as it seemed to be a fairly close fit to the type of plain text I normally use, and also produced the cleanest html.
Then I started to look at tools to upload html into my Wordpress blog, I was expecting there to be quite a few but can honestly say I didn’t even find one. I find this a bit wierd as blogs where originally just html and before that text (remember finger). So I started to look at Python scripts that interacted with the MetaWeblogAPI but as my Python is fairly limited I thought I could probably do it quicker in Scala (as thats what I’ve been mainly working in lately).
And so an hour or two later html2blog was born. And here is how I tied it all together:
stx2any --link-abbrevs --make-title off -T html $1 | tidy -asxhtml -qc -w 0 | java -jar html2blog.jar
Currently html2blog is very limited in that it always creates a new draft, so the next step will be to make it update an existing entry. I’d also like to get images working at some point.
So many moons ago I was reading about a fullscreen editor for Mac called WriteRoom. The basic premise is that it is a very limited editor that actively aims to block out all distractions from writing. It achieves this by:
Anyway I have been running Ubuntu for a number of years, and had often ran Nano fullscreen in a Gnome Terminal but was curious what might now be available. So a few moments googling and this was the list:
After trying each one, I decided that I actually really liked the q10 version and even though it runs perfectly on Linux via Wine, it just takes way to long to startup (2-3 seconds). Mean while the PyRoom version starts in less than 200ms, so after upgrading to 0.41 I was able to get PyRoom looking very similar to q10 with the following settings:
The only thing I am missing is it remembering what file I was last editing, maybe it’s time I brushed up my Python skills.
One of the pain points we see on web projects is the divide between client side and back end development. This pain might show itself in a number of ways:
Now ideally all your developers should be poly skilled and understand javascript / CSS / HTML just as well as they understand java / C# / ruby but often the reality is not quite so rosy.
So if we are working in a world where we don’t have the ideal but still need to get the job done what can we do to reduce the pain?
Well the technique I have used on a number of teams is to come up with a “HTML contract”. An example might be as follows:
Some more general tips that I find help:
I post some examples in my next post