ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Why I Stopped Coding and Why I'd Start Again
Subject:   Naming and CRC
Date:   2007-01-27 11:14:07
From:   JohnNilsson
I don't think there is a need for a namespace. Just do what Lins did for git, base IDs on a hash of the data.


This way code can be fetched from DHTs and it can be cached by the OS, even reused for multi user systems.


If upgradable libraries are required import an interface and let the runtime pick a suitable implementation based on the users policy settings.


Even interfaces can be named by hashes.



import org.google.webapi.blah <SHA-1:2fd4e1c67a2d28fced849ee1bb76e7391b93eb12> as blah