tag:blogger.com,1999:blog-8055871.post7834337169564611731..comments2024-03-20T02:54:54.722-04:00Comments on Blatherberg: Final Thoughts On: A Symbolic Puzzlerkonberghttp://www.blogger.com/profile/04616226121996611123noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8055871.post-39447838273959838382009-11-06T16:42:41.760-05:002009-11-06T16:42:41.760-05:00Hello, Paths.get!
I am pleased to see the comment...Hello, Paths.get!<br /><br />I am pleased to see the comment below, yet I wonder how many people will understand it, and still make it utterly impossible to refactor their code:<br /><br />"Note that while this method is very convenient, using it will imply an assumed reference to the default FileSystem and limit the utility of the calling code. Hence it should not be used in library code intended for flexible reuse. A more flexible alternative is to use an existing Path instance as an anchor, such as:<br /><br />Path dir = ...<br />Path path = dir.resolve("file");"konberghttps://www.blogger.com/profile/04616226121996611123noreply@blogger.comtag:blogger.com,1999:blog-8055871.post-67573690737339828352009-11-06T16:39:21.694-05:002009-11-06T16:39:21.694-05:00Jep, Path.get is gone. Now say hello to Paths.getJep, Path.get is gone. Now say hello to <a href="http://openjdk.java.net/projects/nio/javadoc/java/nio/file/Paths.html#get(java.lang.String)" rel="nofollow">Paths.get</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8055871.post-88209611944131586002009-10-22T14:23:24.712-04:002009-10-22T14:23:24.712-04:00A coworker pointed me to his internal blog today w...A coworker pointed me to his internal blog today where he had a completely different problem with caching and python's regular expressions. His summary is much better:<br /><br />Caching is evil. Either don't do it, or be really careful that you get the details exactly right. (One of my CS profs once said "Half of the problems in computer science can be solved by caching. The other half are the result of caching.")konberghttps://www.blogger.com/profile/04616226121996611123noreply@blogger.com