Jan. 21st, 2019

juan_gandhi: (Default)
Usually people are worried about girls not choosing the programmer's profession and doing other things instead.
Okay, this is weird, yes.

But where are the middle-aged female programmers? This looks totally strange to me. They would not be afraid to be intimidated by young assholes (they usually don't care), they would have knowledge and experience. Where are they?

A disclaimer. Back in the USSR, my team mostly consisted of female programmers over 30 (and 40); and I pretty much know their advantages. Reliable readable software, not prototypes that young male hackers tend to slap together (prototypes are okay, if we know they are prototypes, not production-level software).

So, what happened?

 

 

сяу

Jan. 21st, 2019 02:40 pm
juan_gandhi: (Default)
Что разъебанные Израилем в Сирии российские комплексы С-300, во-первых, были муляжами, во-вторых, были еще не развернуты, в третьих, были под управлением неопытных арабов.

Ну это все объясняет, конечно.

juan_gandhi: (Default)
Если у вас есть Амазон прайм, так там до хрена хорошей музыки! Бесплатно! Я не ушел обиженным! Наслаждаюсь! Сейчас мне Лунную играют, например. Ура, ура, ура. 
juan_gandhi: (Default)
Basically, I have two, e.g. GraphMorphisms, and I want to compare them. This theory is supposed to be equational, right? Is it?
In short, I could not figure out.

So I decide, let me take a look, how do they compare two typed sets in Scala? Here's how:

  override def equals(that: Any): Boolean = that match {
    case that: GenSet[_] =>
      (this eq that) ||
      (that canEqual this) &&
      (this.size == that.size) &&
      (try this subsetOf that.asInstanceOf[GenSet[A]]
       catch { case ex: ClassCastException => false })
    case _ =>
      false
  }


So there. Maybe it's not equational, after all. I mean, in my case.

How do they do it in Haskell then? This is how:


instance Eq1 Set where
    liftEq eq m n =
        size m == size n && liftEq eq (toList m) (toList n)


Typeclasses seem to beat classes. Fuck...

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 67
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 06:36 am
Powered by Dreamwidth Studios