Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
P. Oscar Boykin
@johnynek
It is just a lot of fighting habit
Ghost
@ghost~54c6a0bddb8155e6700f1b4a
any idea of your WPM in qwerty vs vs colemak vs dovorak ?
P. Oscar Boykin
@johnynek
it is a nicer keyboard than Dvorak
probably all are shit now....
:) I expect another month to get up to speed
Ghost
@ghost~54c6a0bddb8155e6700f1b4a
Haha, well i suppose with fancy types and everything else you don’t need to type fast that often. Just better not write up any reports or similar
P. Oscar Boykin
@johnynek
But I loke that more of the keys and shortcuts are in common with QWERTY
Ghost
@ghost~54c6a0bddb8155e6700f1b4a
Yeah that aspect does look pretty nifty… too early to notice any real benefits over QWERTY i presume?
P. Oscar Boykin
@johnynek
ha. Yeah, actually coding does suck, because you want to use all your cognition for code, not distractions of typing.
But subjectively it feels more comfortable already
Ghost
@ghost~54c6a0bddb8155e6700f1b4a
ahhh interesting, hadn’t thought too much about the cognitive impact of it. I could see that breaking your train of thought and being frustrating
How’ve you been getting on with passwords, like logging in?
P. Oscar Boykin
@johnynek
Amazingly that's okay. I do use last pass and one password though
(stripe pass in 1password)
Ghost
@ghost~54c6a0bddb8155e6700f1b4a
Will have to give it a go on a slow day, i tried 10 seconds of it there, took that long to get 1 word out….!
Ghost
@ghost~54c6a0bddb8155e6700f1b4a
@johnynek with those PR’s, anything else we want to do before rls? Seems like not a binary compatible change for bijection. But not one that should also cause people issues really — inheritance changing of a class seems like a rare problem
but possible
P. Oscar Boykin
@johnynek
that's all I thikn is worth it to do, @ianoc . The size limit on class names might also break compat.
Shane Delmore
@ShaneDelmore
I am tech spiking on Finatra 2.0 today with Quill as the data access library for fun. Going alright so far but one bit feels boilerplatey and I was hoping someone here could help...
P. Oscar Boykin
@johnynek
what’s up?
Shane Delmore
@ShaneDelmore
Finatra wants Twitter Futures, Quill supplies Scala Futures. I am using Bijection to convert between them.
P. Oscar Boykin
@johnynek
ok
Shane Delmore
@ShaneDelmore
But I have to manually supply the types on the conversion. Is there a way to define a ScalaFuture => TwitterFuture that does not require me to manually supply the type of TwitterFuture?
I am currently doing this: twitter2ScalaFuture[List[Foo]].invert(temp)
P. Oscar Boykin
@johnynek
are you using the .as[ ] enrichment?
Shane Delmore
@ShaneDelmore
No I am not. Sounds like I should be.
P. Oscar Boykin
@johnynek
let me get a link
import Conversion.asMethod
then you can do:
scalaFut.as[TwitterFuture[List[Foo]]]
in the worst case
but, since there is type inference
you might be able to do:
scalaFut.as
and in some cases the type can be inferred
Shane Delmore
@ShaneDelmore
That looks cleaner. Experimenting now but it seems the type inference may not work for my case.
P. Oscar Boykin
@johnynek
only thing else I can say it type = ...
Sorry
Shane Delmore
@ShaneDelmore
Where do you import TwitterFuture from?
for the scalaFut.as[TwitterFuture[List[Foo]]]
P. Oscar Boykin
@johnynek
com.twitter.util.{Future => TwitterFuture}
Shane Delmore
@ShaneDelmore
Ahhh…neat.
Raviv Pavel
@raviv

Hi, Looking for an example of converting a scala future to twitter future.
The following fails, looking for ExecutionContext

     val sf:ScalaFuture[Option[String]] = ...
     val tf:TwitterFuture[Option[String]]= twitter2ScalaFuture[Option[String]].invert(sf)

Thanks :)

P. Oscar Boykin
@johnynek
@raviv sorry, just saw this. You need to import an Execution context with scala futures: http://blog.jessitron.com/2014/02/scala-global-executioncontext-makes.html
Benjamin
@bdparrish
Can anyone provide the code for a java implementation of SpecificAvroCodecs such that I can use a toBinary with a SpecificRecordBase object?
Injection<GenericRecord, byte[]> genericRecordInjection = GenericAvroCodecs.toBinary(schema);
byte[] bytes = genericRecordInjection.apply(type);
P. Oscar Boykin
@johnynek
@bdparrish it is a big ugly but I can talk you through it.
Benjamin
@bdparrish
please
P. Oscar Boykin
@johnynek
the implicit parameters are just normal parameters for java