/dev/null

“Programming is a constructive art.” (Niklaus Wirth)

May 29, 2009

mcdonaldsumsonst.com

Tags: — 19:01

Sehr geehrter Herr Mayer,

vielen Dank für Ihre E-Mail.

Wir möchten Sie informieren: Zwischen McDonald’s und dem IFG Institut besteht keine Kooperation. Die Internetseite ist uns bekannt und wir gehen dem bereits nach.

Gegen die Umfrage an sich können wir jedoch nicht vorgehen.

Haben Sie noch Fragen oder Wünsche? Dann schreiben Sie uns einfach eine E-Mail: Wir sind gerne für Sie da.

Beste Grüße aus München

Mandy G.
Customer Service

McDonald’s Deutschland Inc.
Drygalski-Allee 51
81477 München

Putpat rocks!

00:23

putpatJust got my beta account for putpat.tv approved after just 52 minutes. Yes, this site is cool. It plays all your favourite music videos, just like M-TV or Viva did a couple of years ago, but based on what YOU like (last.fm integration *yeah*) and without ads for mobile phone ring tones. The only bug I found so far, is that the default gender is female - an empty field would be less confusing maybe. Also a fast internet connection is required probably. My 32 MBit line does not make any trouble of course.

Some newspaper wrote that putpat is the next revolution after youtube. Might well be, after what I’ve seen. Basically people go to youtube and click one video after another. Putput selects the right videos for you and there’s no interruption between the clips. Very convenient :)

See for yourself!

April 4, 2009

Busy

01:19

Minus One

No time for friends, while it’s time for bugfixes. Stay tuned. Enjoy your day.

February 19, 2009

JavaScriptMVC 1.5 released

Tags: , , — 12:34

A new stable release of the JavaScriptMVC framework was released yesterday :) Justin Meyer developed it, while working with us on a new Web application. Some features like the new custom events are direct results of this project. He did an excellent job!

New features include:

  • Env.js/Shrinksafe based compression: A custom env to simulate the browser. As the browser encounters script tags, it adds them to a collection and then compresses them. This means instant file concat and compression from the command line with no extra work.
  • Env.js Testing: Prior to 1.5, tests ran in the browser only. With Env, the same tests can be run from the command line. Great for projects where you need a quick way of checking if functionality works before check-in.
  • Documentation:New JavaScript based documentation library split between JSDoc and NaturalDocs.
  • Code Generators: Added code generators and made building custom ones easy too by using EJS.
  • Scaffolding: Helps you develop iteratively by connecting to default Rest services and providing an easily expandable CRUD interface.
  • Engines+Plugins: Added a command line plugin and dependency installer. So, if a developer wanted a jQuery plugin, he can install it from the command line, and it will also grab jQuery.
  • Custom Event Delegation: Besides improving event delegation to cover all the cases that even live doesn’t do, they’ve expanded it to include custom events such as drag+drop, lasso, hoverenter, mousenter. Developers can have the benefits of event delegation with these complex events.
  • Easy Update: JavaScriptMVC can update itself from the command line.

February 18, 2009

Do not

Tags: — 15:50
    reverse_and_create : function(files){
        var sorted = [], instances =[];
        for(var id in files){
            sorted.push(files[id])
        }
        for(var i = 0; i < sorted.length; i++){
            if (sorted[i].id) {
                instances.push(this.create_as_existing(sorted[i]));
            }
        }
        return instances;
    },

    do_not_reverse_and_create : function(files){
        if(files != undefined){
            var instances =[];
            for(var i = 0; i < files.length; i++){
                if (files[i].id) {
                    instances.push(this.create_as_existing(files[i]));
                }
            }
            return instances;
        }
    } 

What a shame!

January 6, 2009

Mauritius Silvester 2008/2009

Tags: , , — 11:36

The pictures taken during my recent trip to Mauritius island are online now :)

Validation in the MVC design pattern

Tags: , — 00:38

Hello Martin,

your article on Notification implies that validation should be done in
the Model layer. There are numerous voices that see the need for
validation in the Controller, as it receives user input in the first
place. I argue that actually both should be done in Web applications:

- First you want to make sure that data integrity is given. You should
not outsource this essential task to the Controller or the View. If
integrity is not maintained by the database anyway, it MUST be done in
the model. An exception is an acceptable way to respond to invalid
data that is passed to the model.

- For usability reasons, you also want to have validation on the
controller level. This however should be mainly for usability reasons,
especially as the naming and number of model properties must not match
form fields in every case. In a form, an email address might be split
up in two input fields, whereas the model just uses one data field to
store the email address. The user expects feedback on whether the
username or domain part of the address are not valid. Also a modern
web form should be able to list multiple validation error at one
(which does not work that well when working with simple exceptions
that are thrown by models).

In (fat client) Rich Internet Applications, you might not just access
models in server-side controllers but you want to expose the model API
to your client side JavaScript models (which is then a web service).
If validation would be done in server-side controllers only, this
would lead to a security risk or you would need to create a controller
action per API function, which is basically repeated code.

Do you agree?

Merry Christmas and a happy new year,
Michael Mayer

Broadly yes. The domain model should be fundamentally responsible for validation, but presentations often need validation too. We need to support usability without introducing duplication.

For years now, I’ve been intending to capture and write about validation patterns. They are still on the horizon, although sadly distant.

Martin Fowler
http://martinfowler.com

December 25, 2008

Merry Christmas!

Tags: — 15:45

November 17, 2008

Quadcore processors are useful for Web developers

Tags: , — 23:44

Every now and then you read, that the maximum you need on a desktop are two cores and that quadcore mainly is a nice marketing idea. That’s probably true, if you use Word or Games mainly. For Word, even an Intel Atom processor is enough. As a Web developer which usually has some batch jobs running, a database, memached, Eclipse, Firefox and VMware with Windows to do tests, you will see that the four cores are worth the money, however!

This screenshot was taken during a work session:

November 5, 2008

Congratulations, Obama!

Tags: , — 22:14

After 8 lost years, the US might finally be back on track. As one of my colleagues in the US put it:
“:) I woke up today thinking things are going back to normal”
Another one said:
” I certainly hope there is anything but normal! Obama inspires people to be better. It is time for the US to be less selfish, and more global citizen. I cannot wait! :)”

Older Posts »

Powered by PHP, Memcached, Suhosin, MySQL and WordPress