@avibryant how do you feel about this code?
-
-
-
@chadfowler as always with Scala: implementing frameworks is miserable. In return your users can write nice clean code, yet safe and fast. -
@chadfowler on the one side, Java and the JVM. On the other, Ruby-like user code. No interpreters allowed. So: horrors lie in the middle. - 1 more reply
New conversation -
-
-
@avibryant Could that be an indication that DispatchedLearner is doing too much? Would it make any sense to break it out into más classes? -
@ryanlecompte yeah, that seems likely but it's not entirely clear to me how. Pull requests to Brushfire very much welcomed :) -
@ryanlecompte (speaking of which, a Spark driver should be easy and would make a lot of sense).
End of conversation
New conversation -
-
-
@avibryant looks like a combinator on a kind of Either3. You could possibly simplify by doing two applications of Normal Either? Too slow? -
@posco yes, that's exactly what it is. I'm not worried about the performance of Either[Either[A,B],C], just about being awkward to use. -
@avibryant@posco shapeless has got your back on this one. See coproduct.
End of conversation
New conversation -
-
-
@avibryant why do people name variables intelligently then use the least descriptive names for types? :( -
@jco@avibryant because people who use lots of types like that, where it isn't obvious what they mean, are from the math side of CS. -
@sampullara@jco to be clear, that's my code, and although I hate how opaque it is, it seems to me to be idiomatic scala. Suggestions? -
@avibryant@jco it is idiomatic scala. or even Java. most of the generic type stuff comes from category theory. in math, vars are 1 letter. -
@avibryant@jco naming them well can be even more confusing since you then can't tell they are generic types rather than real ones. -
@sampullara@avibryant@jco The best part is where we go next with further type specialization. Just repeat the letter - AA <:< A, BB <%< B -
@softprops@sampullara@avibryant I know it's idiomatic but I don't know. A type called "A" seems like a bad idiom. Hm. -
@jco@softprops@sampullara@avibryant I took the habit of using more descriptive names (but still short) and keeping them all caps. - 3 more replies
New conversation -
-
-
@avibryant LOLOLOLOLOLOLOLOLThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@avibryant You mixed up a E for X on line 10.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.