The Artima Developer Community
Sponsored Link

Agile Buzz Forum
line noise in languages

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
line noise in languages Posted: Aug 23, 2003 11:49 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: line noise in languages
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
Ted Leung links to some interesting comments on the amount of 'line noise' in various programming languages. Doing a Smalltalk comparison took a small bit of effort:
  • We don't look at code in file-out notation, so the eextraneous bangs would pump up the noise
  • We don't look at the code in VW's XML format either, which would also be noisy.
  • The noise program classifies any non-alphanumeric, non-whitespace character as noise. First, that's a very rough measure. Second, in Smalltalk, a lot of those are methods, so classifying them as noise is unfair.

In looking at the example, I grabbed 25 or so lines of Smalltalk from a few methods, and created a small noise filter - #($# $^ $! $( $) $[ $] $: $; $.) are 'noise' in the sense of the comparison here. Running over a small bit of Smalltalk code, I came up with 35. Now, the question is, is the colon really noise in Smalltalk - since it conveys semantic information? I don't know. to some extent, the measure is poorly done for all these languages, but there's the value I came up with.

Read: line noise in languages

Topic: more speculation on the power outage Previous Topic   Next Topic Topic: Yes Virgina, Whales do fart

Sponsored Links



Google
  Web Artima.com   

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