Arc Forumnew | comments | leaders | submitlogin
3 points by stevecooperorg 6094 days ago | link | parent

C#3 and ASP.NET, using my own library;

    var what_the_user_types = new PageVariable();
    PageSequence
        .define_page_sequence("said")
        .with_an.input_field(what_the_user_types).and_a.submit_button
        .Then_a_page.with_a.link.saying("click here").to("")
        .Then_a_page.with_a.paragraph("you said: ", what_the_user_types);
        
Some of these code points do nothing, and are just to see how close I can get to typing the spec straight out. Once you remove 'with_a' and 'and_a' code points, you get;

    var what_the_user_types = new PageVariable();
    PageSequence
        .define_page_sequence("said")
        .input_field(what_the_user_types).submit_button
        .Then_a_page.link.saying("click here").to("")
        .Then_a_page.paragraph("you said: ", what_the_user_types);
Which is 24 code points, I think?