2009-03-14

juan_gandhi: (Default)
2009-03-14 11:54 am

о будущем

У меня такое ощущение, что можно получить довольно достоверное представление о том, что с миром произойдёт в ближайший год если просто смотреть последние популярные фильмы и стараться понять тенденции.

Примеры, я думаю, приводить ни к чему, всё ж понятно.

Update:
Nixon
Milk
Slumdog Millionaire
juan_gandhi: (Default)
2009-03-14 09:33 pm

flyweight pattern, Java

The problem is this. We have interface Entity {...}; and we have, say, class EntityCollection {...}. An entity has several attributes, but we store the attributes somewhere in a differnt way in
EntityCollection
, e.g.
String[] firstNames
and
String[] lastNames
, something like that.

Now, there seems to be no way to have a method like getEntity(int i) without actually instantiating something or actually having an instance. Looks like a subtle defect to me: eventually all we need to do is use some methods from the virtual instance of Entity, and, generally speaking, we would not need any memory for that. I mean, in c with macros we could do this dirty trick, but with Java... everything seems to be so materialistic...
juan_gandhi: (Default)
2009-03-14 10:04 pm

ну дык чё, прогресс-то есть, или ещё 200 лет надо?

здесь такой изумительный паноптикум... может, действительно лучше бы было если бы в 91-м коммунистов вешали на столбах (как они того ожидали)? (нет, конечно, не лучше; было бы ещё хуже)