Do you also consider functions to be syntactic sugar? Because you can also implement them in terms of a switch statement.
1,074 karma · joined March 31, 2008
Do you also consider functions to be syntactic sugar? Because you can also implement them in terms of a switch statement.
Saying that "yield is not about control flow, it's about lazy sequences" seems like saying "functions are not about control flow, they are about producing values".
y = m*x + b
where
m = calculateSlope()
b = getYIntercept()
I think this fits the literate programming style well.Not saying everyone should do this, but it works well for me.
On the other hand, the S&P 500 returned 8.25% annually between 1993-2006. Say you put 10% down ($8500) and spend $800/year total on taxes, repairs, etc. (probably low). If you'd invested in an index fund, you'd have made $42,000.
Anyways, it's really an unfalsifiable claim, isn't it? For any study that doesn't show a 10x difference, you could claim that it didn't have any truly "good" programmers.
The burden of proof should be on those who make the claim.
The Metronome GC from IBM Research (http://www.research.ibm.com/people/d/dfb/papers/Bacon05High....) also uses a read-barrier to fix up pointers to objects which have moved.
Although, I don't think it does marking in the read barrier.
Also, Fitts' Law says that the time to select a target is proportional to the distance and the size of the target. Putting the menu on the edge of the screen makes the effective size of the targets bigger, but in some cases it also means that they are much further away.
As I type this, the menu bar is about 4x further away than the top of my browser window.
mainFrame := JFrame new: 'Hello World';
add: label withAlignment: BorderLayout.CENTER;
addWindowListener: MainFrameListener new;
setDefaultCloseOperation: JFrame.DO_NOTHING_ON_CLOSE;
pack;
setLocationRelativeTo: nil;
setVisible: True;
yourself.
(The result of a chained method expression is the result of the last method call, thus the 'yourself' message at the end so that the object itself is stored into mainFrame.)Sigh...I miss Smalltalk.
BumpTop is definitely not for everyone, but that's fine. Not all software has to be designed for your 50 corporate users, because they certainly have different needs than the rest of us. A designer, for example, might really appreciate the visual and spatial aspects of the system, because it's more meaningful than a bunch of PSDs named icon-concept1, icon-concept2, etc.
Also, although the 3D and physics is the most noticeable thing about BumpTop, it's actually got quite a few very useful features that are completely orthogonal to the 3D/physical aspect. For example: type to find on filenames, thumbnails of several different document formats, seamless photo browsing, and icons that grow or shrink based on your usage of a document.
I'm not advocating cutting and pasting huge blocks of code everywhere, but a 1-line calculation duplicated in 4 spots is probably okay.