The Artima Developer Community
Sponsored Link

Agile Buzz Forum
The Arc Challenge

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
The Arc Challenge Posted: Feb 6, 2008 8:47 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: The Arc Challenge
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Lukas Renggli demonstrates the ARC Challenge in Seaside - and you can run his example by following the link:


| something |
	something := self request: 'Say something'.
	self inform: 'Click here'.
	self inform: something

I like how he explains the solution:

Another important point is readability. Read the Smalltalk code from top to bottom. I reads like english prosa and it simply does what it says. Without bells and whistles. And - does your framework support the back button as well? Does it also prevent you from XSS attacks?

For comparison purposes, here's the Arc code:


(defop said req
	  (aform [w/link (pr "you said: " (arg _ "foo"))
	            (pr "click here")]
	     (input "foo")
	     (submit)))

I think Lukas' comment says it all. Here's the text for the challenge:

Write a program that causes the url said (e.g. http://localhost:port/said) to produce a page with an input field and a submit button. When the submit button is pressed, that should produce a second page with a single link saying "click here." When that is clicked it should lead to a third page that says "you said: ..." where ... is whatever the user typed in the original input field. The third page must only show what the user actually typed. I.e. the value entered in the input field must not be passed in the url, or it would be possible to change the behavior of the final page by editing the url.

Technorati Tags: ,

Read: The Arc Challenge

Topic: Cincom is looking for a another Smalltalker Previous Topic   Next Topic Topic: Knowledge Per Unit Time

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use