« first day (3075 days earlier)      last day (1890 days later) » 

8:01 PM
I don't know that was my concern. But I guess if I didn't want to let someone know View exists.
CF before I share in Kotlin slack can you verify this looks right? gist.github.com/AdamMc331/2f391dfc023d935fc02e928a09a1f208
 
yes
 
I'll report back
 
thanks
 
There is nothing broken
 
@ballBreaker nope pennsylvanian
 
8:04 PM
but you made ChildInterface
 
You can access whatever you'll possibly need to access
 
right but in Java you wouldn't need that boiler plate of making ChildInterface
 
^
adam forget the concern as i said i am more interested to know why it actually doesn't work in kotlin
 
I suppose hiding the parent class is the only reason you would want this, right?
 
probably i guess
 
8:06 PM
yeah. I wonder if they had this exact conversation and decided there was no use case for it so they didn't support it? I've asked.
 
i can't say but there could be other reason :thinking:
 
well i just mentioned a usecase
 
I can't think of one. Because you ahve a way to reference the interface and get the behavior you want, the only difference is the naming convention really.
but why does it matter if they know Main exists? If you make all the important classes private, it won't.
 
won't that make that interface also inaccessible?
 
8:07 PM
I don't see any problem :( damn the chat is too long to get up to date :(
 
@RaymondArteaga Try changing this: muh(Child.ParentInterface
Yes, I get that it's weird, but Java allows it and Kotlin doesn't and that's the confusion.
 
Ok you made a SO question, is that thing?
 
Nah, I just posted in Kotlin slack but maybe I will post on SO too
 
@AdamMc331 exactly and now i can't make main private since with that the interface is not accessible at all
so ...
 
If Child.ParentInterface doesn't exists, how am I supposed to reference it?
 
8:10 PM
Raymond do you have AS open?
Go try and reference TextView.OnClickListener
 
it will work
 
No it doesn't -_-
 
lmao
 
Oh but it does work from java! OMG! Java sucks!
 
8:13 PM
java doesn't suck inherited class inherit everything from base and so does the interface
 
How would someone want to reference a non existent thing?
 
oh wait
I can only call it from Java you're right. I can't do this in Kotlin.
Even in Kotlin I can't do TextView.OnClickListener
 
yes and that is the issue we are discussing?
genius adam
 
Alright I'm changing my mind this isn't a bug Java is stupid
 
o/
 
8:14 PM
??? Is that an issue?
 
Nah. I think Java is wrong to allow it IMHO
 
lol
 
You get my star and my respect Mr. Adam
 
i didn't said its a bug lol
 
8:15 PM
Out of purely professional curiosity I followed through with a question: stackoverflow.com/questions/55229374/…
 
Why would be a template inheritable?
Unless of course, you do it explicitly, which is wonderfully supported by kotlin
 
I don't know
 
Java do is stupid
 
xD
btw take a look at this one : stackoverflow.com/questions/52411341/…
 
Yeah I knew about that
it's hard to follow but, when you remember that Kotlin just gets compiled to the same byte code as Java, it made sense.
 
8:17 PM
that was the one i was mad about
 
wow I got downvoted
wait nope
was looking at the wrong tab
have I ever told you I'm an idiot?
 
lmao yes
 
You're not an idiot. you're a human being, we make mistakes.
3
 
@AdamMc331 i wish i could answer your question lol
 
grrigore I appreciate the wholesomeness <3
 
8:19 PM
yeeaaa spread the positivity
 
grr he is just kidding
 
👍👍👍
 
That's the spirit @ColdFire ...
 
Nah I was gonna correct him and let him know that we're all idiots around here but it was too nice
I'm not the designated dream crusher
 
lol
 
8:21 PM
i think both of those issues maybe connected to how kotlin handles inherited class? :thinking:
 
could be.
One way is to look at the java byte code for the sub class and the java byte code generated by the kotlin sub class to see the differences, but I'm way too lazy for that
 
@grrigore I always wanted to tell Adam & Mauker to stop calling themselves that but I was scared of looking like I wasn't minding my own business XD
 
Kotlin is obviously right -_-
 
@MehdiB. Together we can do it!
 
"If programmers are a cynical bunch, it's because we are reminded, constantly, of human fallibility. Our lives are a cycle of grand idea and skilled implementation followed by failure to build, failure to run, failure to work. We're smart people, and we never get it right the first time. We spend less time creating than we do finding and fixing the things we've done wrong. We cope with that by becoming either laid back and cynical or neurotic and cynical."
6
 
8:24 PM
nice
 
nice
 
nice
 
even though the "skilled implementation" is debatable :D
 
Carl what is that from?
 
@AdamMc331 me
 
8:25 PM
XD
 
lol
 
well shame in him for not crediting you lmao
 
hahaha
 
hehe
 
he crushed the grr dreams
 
8:26 PM
@AdamMc331 a blog post from 2004
(not mine)
I've posted it a few times but it keeps being relevant
 
was it joel? Seems like the timeless kinda thing he would say
 
GUYS
Mircea Eliade anyone? :D
He's my fave of all time
 
@AdamMc331 here is the source.
 
Thanks. :)
How have you been Carl? I've been so busy to start off 2019 I feel like I haven't caught up with anyone.
 
too much work?
 
8:31 PM
Work, some traveling, General young adult in New York stress. The usual.
 
That don't let it set in it's very relatable...
 
@AdamMc331 I'm neurotic and cynical. Trying to get back to laid back and cynical.
 
Taking baby steps. I can appreciate that.
 
the more I work on Spark the more I realise how I know nothing about distributed programming
 
8:33 PM
@MehdiB. What's Spark?
 
this spark spark.apache.org
it's a distributed data processing engine
 
Hm, interesting :)
 
You cant have different interfaces for each child class in Java with the same name :')
So Java is stupid
 
have you ever met someone naming his 2 kids with the same name?
 
lol
 
8:35 PM
nah I got a hash collision
 
not to be rude, but this requirement is not the brightest
 
lol
@MehdiB. how is it?
 
yeah that's what I use at work to process data
 
@MehdiB. YAH
watch it
 
@ColdFire it's quite straightforward to use, the APIs are nice, but when facing a not so straightforward problem or when starting to get interested in the internals, I notice that it's a very interesting yet very complex project
@Ahmad I will :D
 
8:42 PM
Guys any idea how I can trick Firestore? I have a relation like this A donor has a donor's carnet. So I want something like this ` /donors/donorId/carnet/` but Firestore is collection.document.collection and so on
So I can't add data to carnet as it's a collection, not a document :(
Shall I use a reference?
 
yes you shuld
 
@MehdiB. hmm nice, same thing for me with kotlin i am learning all the voodoo stuff in kotlin , still a like /hate thingy
 
it will also decrease your costs
avoid nesting
 
So I should have references instead of nested objects
And lots of collections
 
8:45 PM
@ColdFire how is your experience so far? do you feel more productive?
 
nesting things will slowly kill you
 
@RaymondArteaga Thank you, little magic green frog
 
@grrigore always prefer a fkey instead of a list, so your model would be "carnet - donorId"
 
My pleasure to serve you
 
So back to restructuring my database...
 
8:46 PM
some features are awesome and not to worry about java 8 compatiblity is a big bonus , but there are some annoyance like the @jvmfield issue i just said to adam , default non nullable is kinda a miss for me
 
they're considering introducing kotlin in my department at work, so I'm considering learning it as soon as I feel productive enough in Scala
 
whoohoo! :)
 
Any tips for structuring a complex database in Firestore?
 
default non nullable is a personal choice imo some would love it
 
what do you mean default non nullable
 
8:49 PM
i mean var and val are non nullable by default
 
they're whatever type you give them
 
i would have prefer it the other way around
 
yeah I guess that's personal preference
 
i am not referring to the type i am referring to the fact that they can be nullable or not
 
no that's what I mean
val x = 5 is non nullable because you gave it a non null value
 
8:51 PM
val x = null // does not compile
 
ok I'm off to 2.5 hours worth of meetings, catch you later folks
 
Cya!
 
cya carl
 
well yeah, because the compiler can't infer anything from that
bye Carl
 
var test: String
if (condition) { test = "a" } else { test = "b" }
 
8:51 PM
type inference is hard to follow since Java didn't have it.
 
is this illegal in Kotlin?
 
val x :String= null // does not compile
 
It bothered me at first because I would want to do val myLong = 5 and I can't.
 
@grrigore use small field names
 
val x: String? = null // Compiles
 
8:52 PM
yes you have to specify that its nullable by ?
and that is exactly my point
 
@MehdiB. I don't think you can do this. They want you to do val test = if (condition) "a" else "b"
well it's a necessary evil right
 
@MehdiB. i doubt it will work
 
If you want null in the type system, you need a way to specify it
otherwise we just end up with Java again lmao
 
o/
 
makes sense
 
8:53 PM
Mauker!
 
Adam!
 
@AdamMc331 as i said i wanted it the other way, by default nullable and a way to make it non nullable
 
For the first time in ages I'm more active here than on Facebook lmao
 
maukerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
ah
 
8:53 PM
I'm forcing myself on Scala not to use "var" since they advise strongly to keeping everything immutable
 
lmao true
I've been away from r15 the past few days
also, migraines.
 
yeah. AS even highlights var in a different way
 
I think I will love Kotlin, the syntaxes seem quite similar
 
nope it doesn't val and var are highlighted same for me
 
@MehdiB. They are!
At least at first glance
jk, they're very similar
 
8:54 PM
I'm also forcing myself not to use loops, everything in recursive, sometimes feels a bit unnatural but who am I to debate :D
 
yeah i guess it took some inspiration from scala
 
CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
 
sup man?
 
oh sorry
it's that the var gets underlined
 
well, still fighting this freaking migraine
 
8:55 PM
Adam yes that is 1
 
No, it's an Int much better
 
@Mauker how long does a migraine last?
 
idk man
it keeps coming back
 
i thought it last for few hours at the max?
 
I think we should bring tech talks more often in the room, feels so peaceful :D
 
8:57 PM
nah it can last a few days
sometimes it goes away, but it keeps coming back
 
hmm
 
@RaymondArteaga thanks :)
 
I'm going to see a neurologist soon
to check why this is happening
 
@AdamMc331 check the comment on your question , its say its a legacy bug not fixed for backward compatibility , interesting
 
@eski ah well that's not tooo far then!
 
9:03 PM
hmm neat
 
i think java specification of inheritance must have something related
 
I'm actually moving to vermont soon
 
but he should refer to something in specs to prove he is correct
 
Switching jobs eski?
 
Ooo I heard vermont is pretty
 
9:06 PM
nice eski
 
no I'm gonna work remote
I'm buying a house there
 
Neat!
 
@eski Congrats! :)
 
Wow, that place looks nice :)
 
9:11 PM
Woah congrats
 
@Mauker I know a good remedy for migraines
Just hit your finger with a hammer
Guaranteed
 
that sounds like a remedy that would work on a frog and not a human
 
It doesn't work on frogs, we can get killed if someone tries to hit one of our fingers
 
You're just moving the pain
So you'll focus on the finger and forget about the head
In theory :D
 
-_- why so negative
It will work in practice
 
9:15 PM
I might give it a try next time
 
I've got the flu :(
 
The flu?
 
9:27 PM
anyone here do rust?
 
The game?
 
@Ahmad I think Raghav does
@grrigore Gripa
 
@MehdiB. Haha
Esti tare
 
I haven't learned a completely new lang in such a long time
I dunno why it's so difficult for me
 
@grrigore Multumesc omului, apreciez!
 
9:30 PM
omule* Google!! You're making Mehdi seem like he doesn't know ...
 
I can play the "autocorrect" card XD
 
hehe
 
@Ahmad because you've probably become outcome oriented because of work, better find a real use case from work
I actually just realized that romanian has a few words very similar to french @grrigore
 
Yes
 
same linguistic root?
 
9:34 PM
Well yes I'm not an expert
But I think both are Latin languages
 
apparently they both are "romance" languages, whatever that is
 
@MehdiB. L'amor (I don't speak french it's that ok?:))
Ah, l'amour*
 
close XD
 
Where are you from?
 
@MehdiB. that's true
 
9:39 PM
@MehdiB. romance languages are "sweeter" than others
I love you, he t'aime, te amo, ti amo
Contrasted with Ich Liebe dich
 
@grrigore from Morocco
 
And you speak french there?
@RaymondArteaga Te iubesc also
 
yeah, second language, ex-colony of france
 
That's nice... speaking a second language
 
@grrigore you are from Florina's town?
 
9:42 PM
She's from Bucharest?
 
until you realize that the business game is in english in our field, and you have to learn a third one
 
@MehdiB. haha true.
 
@grrigore she's Romanian, I don't now where Bucharest is.
 
@RaymondArteaga I think she's from Cluj-Napoca
 
9:43 PM
Bucharest it's out capital
I'm from Caracal
And now studying in Bucharest
 
10:09 PM
@MehdiB. morocco was colony of france?
is french a official language of morocco too?
 
france, spain and portugual ganged up on us, but the one "official" to whom the protectorate was given was france
it's called a protectorate but it's just a fancy word for "colonized while being nice at first"
 
I find the idea of colonization very stupid...
 
yeah, it's the second language not official one but you may as well put it that way, 1- "arabic & amazigh" are the official ones, 2- french
 
No respect for these people invading cultures and destroying everything for their own goods
@MehdiB. I hope you don't mind the following question, but the mobile apps there all have RTL support?
I might just confuse some things
 
hmm, not really, I mean highly depends on the targeted population
 
10:14 PM
I mean english versions don't have that RTL thing
Just the arabic ones?
 
everyone speaks / reads french, but some people still struggle with it or just prefer reading arabic
not sure about other RTL languages tbh
 
I am currently working on an app that as far as I remember need to be translated into arabic too and I have to implement RTL
 
I have never done it, but from what i've heard from developers who done it, that it's a bit painful :D
 
Well I don't think so
ASAIK you have to use Start and End instead of Left and Right
and maybe some extra attributes to the textViews, etc
 
right, I completely forgot about end/start VS left/right :D
 
10:20 PM
At least I hope so :P
I'm going to sleep rn, it's late and I have to work tomorrow
See ya
o/
 
o/
 
Cya!
 
@grrigore well it was , that is why it was scrapped
cya
 

« first day (3075 days earlier)      last day (1890 days later) »