Semantic Wave Blog
News feeds and commentary by Jamie Pitts

« Regular XML RDF | Main | PIKII »

May 17, 2004

Creative Namespaces and Syntactic Sugar

Tim O'Brian reminds us in Creative Class Naming to add some flair to the namespaces that refer to our in-code data and actions. I have used this technique on many occasions, especially for ideas which may be dificult to explain (or to remember!). By way of O'Reilly Dev Blogs.

You may not think that your company's fancy e-commerce system can afford to have an object named Bouncer, but I urge you to reconsider. Bouncer communicates the idea better that AuthenticationEnforcementObject or ServletSecurityFilter. Source
Amen to that.

Then there is syntactic sugar. Our friends =~ and && may not have a lot of flair, but help reduce the caffeine intake required to maintain a developer's interest in the task at hand. They add a lot of expressiveness to the code, not to mention compactness.

Let's invent some new characters.

Perl 6 has just about exhausted every combination of non-alpha characters, yet perl programmers want more. During one particularly long afternoon at Java, I was thinking about how unicode could be used to create new symbolic representations of the oft-used functions and classes in perl. Ok, I admit it. I was fantasizing about perl. It gets worse.

In text editors such as gvim, and instance of DBI could look like a stack of pancakes. The foreach would be represented by a loopy arrow. CGI, a spider web. XML::DOM, a who knows what. WebObjects Builder expresses this concept a bit in the page editor. This wacky, programmers-only character set could lead to quite an interesting keyboard (as if the shift key weren't enough trouble for some people).

| TrackBack

Small picture of Jamie Pitts When I talk about the semantic web, I feel a lot like Linus. No, not Linus Torvalds. I meant the other one. - JP


whoami?

Projects:
  Winnow My Bloglines Down
  Memecat
  Listgasm


Curently Reading

cover The Art of Unix Programming
Eric Raymond

Semantic People
Danny Ayers
Dave Beckett
Tim Berners-Lee
Tim Bray
Dan Brickley
Marc Canter
Paul Ford
Seth Ladd
Seb Paquet
Clay Shirky
Roland Tanglao
Dave Winer

Syndication:
 RSS Version 1.0
 RSS Version 0.91


Recent Entries
 Antibodies Against Bemes
 Pipes
 Micro APIs
 Rich Tags Project
 David Huynh's Exhibit

Categories
 AI
 Blogs
 Business
 Data Munging
 Development
 Formats
 How-To
 Ideas
 Languages
 Law
 Ontologies
 OWL
 People
 Products
 Projects
 QOTD
 RDF
 Research
 Social Software
 Standards
 Thinking Out Loud
 Trends
 Visualization
 W3C
 Web Services
 Wikis

Archives
 February 2007
 January 2007
 December 2006
 November 2006
 October 2006
 September 2006
 August 2006
 July 2006
 May 2006
 April 2006
 March 2006
 February 2006
 January 2006
 November 2005
 October 2005
 September 2005
 August 2005
 June 2005
 May 2005
 April 2005
 March 2005
 January 2005
 December 2004
 November 2004
 October 2004
 September 2004
 August 2004
 July 2004
 June 2004
 May 2004
 April 2004
 March 2004


Creative Commons License
This weblog is licensed under a Creative Commons License.

Powered by Movable Type

Copyright © Jamie Pitts