Sep. 26th, 2016

juan_gandhi: (VP)
All weekend she was asking for a password, even when turned off and locked.
Also, she does not allow you to switch radio channels. She does it herself. I mean, I manually roll it to 810AM (sorry), and after a minute she switches to 770AM, with some religious talk. When I switch to FM, she chooses 100.3, Recuerdo. ("durmiendo vivir, durmiendo, soñando vivir, soñando, hasta que tu regreses...")

That's about our RAV4 2012.
juan_gandhi: (VP)
В истории, когда этот деятель взял у Кобзона взаймы $25M, продул их в карты, и теперь за это посажен в тюрьму, меня больше всего восхищает это имя, "Вагиф Пейсахов". Как "Медея Лазаревна Мамедова", только с 25 миллионами.
juan_gandhi: (VP)
Оказалась Иркой из псковского педа.

Ну и хер с ней, много чести будет цитировать да картинки постить.
juan_gandhi: (VP)
демонстрируют какую-то жуткую картину массовой умственной болезни.

Даже и обсуждать ничего не хочется. Казалось бы - ну хотя бы в личной-то жизни они нормальные? Ан нет.

Вот эти "господа офицеры", которые, имитируя эякуляцию, поливают своей мочой фотографии детей...
juan_gandhi: (VP)
Ethnic cleansing
chicken jerky cutlets
plantar fasciitis
plantar warts
compulsive paper shredding
Scylla and Charybdis
special-interest money
gloom
pregnancy
FEMA trailers
juan_gandhi: (VP)
  /**
   * Returns a Seq of the children of this node.
   * Children should not change. Immutability required for containsChild optimization
   */
  def children: Seq[BaseType]

  lazy val containsChild: Set[TreeNode[_]] = children.toSet


Imagine, we override the class, but our children are not to be mutable. Why t.f. then not declare it val?!

Another masterpiece
object CurrentOrigin {
  private val value = new ThreadLocal[Origin]() {
    override def initialValue: Origin = Origin()
  }

  def get: Origin = value.get()
  def set(o: Origin): Unit = value.set(o)

  def reset(): Unit = value.set(Origin())

  def setPosition(line: Int, start: Int): Unit = {
    value.set(
      value.get.copy(line = Some(line), startPosition = Some(start)))
  }

  def withOrigin[A](o: Origin)(f: => A): A = {
    set(o)
    val ret = try f finally { reset() }
    reset()
    ret
  }
}


So, we have a static object that wants to do something with a context. (See withOrigin.) That's "dependency injection", Fortran style. And we can do without vars, because, well, it's ThreadLocal.

Who wrote all this... could they hire Scala programmers, I wonder...

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

September 2025

S M T W T F S
 1 2345 6
78 9 10 111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 15th, 2025 09:18 am
Powered by Dreamwidth Studios