tag:blogger.com,1999:blog-17087850.post1594114999252321744..comments2008-03-21T16:00:09.883-04:00Comments on Factor: a practical stack language: New slot accessors merged; future direction for Fa...Slava Pestovhttp://www.blogger.com/profile/02768382790667979877noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-17087850.post-40592716402258928572008-03-21T16:00:00.000-04:002008-03-21T16:00:00.000-04:00definitely got a problem with links. here's a bett...definitely got a problem with links. here's a better link <A HREF="http://atagunov.blogspot.com/2008/03/singleton-free-jre.html" REL="nofollow">my post on the desired programming language support for modularization and unit-testing</A>Anton Tagunovhttp://www.blogger.com/profile/04903035827978774750noreply@blogger.comtag:blogger.com,1999:blog-17087850.post-5988937572414774182008-03-21T15:55:00.000-04:002008-03-21T15:55:00.000-04:00> Factor singletons don't have state,> they're jus...> Factor singletons don't have state,<BR/>> they're just symbols which can be dispatched on.<BR/>> They don't hinder unit testing at all.<BR/><BR/>Slava, thanks for you reply!<BR/>Good to hear this.<BR/><BR/>Getting deeper into Factor to find out myself what's good and what can be bettered is still no my looongish TODO list. However today I'd decided to write down my long waiting ideas on language modularization and unit testability.<BR/><BR/>The text may not be worth anybody's attention but since I feel it may be relevant, here's the link<BR/>http://atagunov.blogspot.com/2008/03/singleton-free-jre.htmlAnton Tagunovhttp://www.blogger.com/profile/04903035827978774750noreply@blogger.comtag:blogger.com,1999:blog-17087850.post-77640374231979414142008-03-21T15:00:00.000-04:002008-03-21T15:00:00.000-04:00Factor singletons don't have state, they're just s...Factor singletons don't have state, they're just symbols which can be dispatched on. They don't hinder unit testing at all.Slava Pestovhttp://www.blogger.com/profile/02768382790667979877noreply@blogger.comtag:blogger.com,1999:blog-17087850.post-33575986410065561242008-03-21T09:14:00.000-04:002008-03-21T09:14:00.000-04:00Hi,singletons are evil.They are in the way of prop...Hi,<BR/><BR/>singletons are evil.<BR/><BR/>They are in the way of proper unit testing.<BR/>Just like global functions.<BR/><BR/>For instance I can not mock up System.currentTimeMillis() in Java which prevents LOTS of unit testing.<BR/><BR/>Any chance a new language could do better?atagunovhttp://people.apache.org/~atagunov/noreply@blogger.com