« first day (2412 days earlier)      last day (2537 days later) » 

1:04 PM
@Bhargav In a transaction block: ream.where(AppConfig.class).findAll.deleteAllFromRealm();
 
lol
womp with the panda army
tim is quite silent today
 
(yesterday i didn't remember at the time of the conversation but.... i do have a panda plushie)
 
what is a plushie?
 
I am in meetings since 10am :(
 
nothing you missed except one of my friend landed in amsterdam
 
1:12 PM
that's a plushie
 
you have friends?
 
whoa there
friends?
 
@W0MP3R so a soft toy
@TimCastelijns :|
 
i remember someone saying he is always nice
huh
 
1:17 PM
savage tim
 
yeah savage
 
yeah, a soft toy :3
 
why?
 
what why?
 
@Mauker lol, somebody starred my fork of your library
 
1:22 PM
must be Marker
 
Oh man the start of this is hilarious: youtube.com/watch?v=osVpqz10UP8
3
 
damn half the world is not even on lollipop
watching it mark!
 
@MarkO'Sullivan here is some important data. I think you'll agree. LOL
 
1:37 PM
:D
@TimCastelijns Tim support 4.4+ the best version to support with most devices
 
what do you lose compared to supporting 5.0?
 
material design
 
all the material stuff is backwards compatible right
 
yes
 
so you don't lose it
 
1:39 PM
mostly
 
it's just more work to implement
 
naah just replacing imports
and some work here and there
 
and even in 5.0+ you use appcompat everywhere anyway
 
yes
 
4.4 alone covers like 35% of all devices worldwide
 
1:41 PM
yeah that is why i said support 4.4+
i support 4.0+
gonna ditch 4.0 soon
 
too much bugs to support
 
4.0 to 4.4 is about 20%
 
4.0 to 4.3 is 9.9%
and 1% 2.3
with 4.4+ you get 89.1%
 
i support 4.4.3+
and i'm soon to ditch it
too many bugs
when spain usage of 5+ gets over 80
 
1:45 PM
i am not ditching 4.1+ anytime soon
like 2 years
 
why tho
 
lots of market share
 
but only peasants
 
my app is compatible 2.3+ anyway
why ditch support
 
you cannot keep supporting people who are 6 years behind on updates
I mean I would not
of course you can
 
1:47 PM
i will not
you keep a crappy phone, you don't get my apps.
hell, even my crappiest oldest app has less than 2% of < 4.4.3 users
 
as long as i get money i dont care which version i receive from
 
but supporting more versions means spending more technical money
more bugs - more time to fix - less features - les new users -less cash
 
naah as i said all my apps were already 2.3+ compatible
 
@ColdFire why would you support bugs?
 
1:49 PM
i ditch 2.3 because of too less share and bugs
my internet is too slow today :/
 
yay
 
"bugs", as in your app needs doesn't work in those versions or bugs in 2.3 android?
 
in android
 
damnit, my R key is having issues. brand new mbpro13
:(
 
1:53 PM
mine is 2 1/2 old no issues at all
mac keyboard is awesome
my windows keyboard sucks tho
 
my mbp 2016 (13") is doing fine
no issues so far
 
brb
 
it heats up a bit when doing heavy rendering
but it's fine
 
omg that Chet Haase video is killing me right now
 
who?
what video?
 
2:02 PM
If nothing else, just watch the first six minutes.
 
lol
i have been struggling with as for 10 minutes
"could not expand bla bla bla"
chmodded the whole project to 777
works perfectly
 
@McAdam331 lol that sounds awesome
 
ahmad's portrait is the comic version of my portrait.
looking from quite far away atleast
 
2:17 PM
tristan is back
to pink
 
why not another hypehacks tho
 
Because I have too much to do lol
 
like direct a musical about hackatons?
XD
how's uni preparation going?
 
Yep
and meh, fine
 
2:27 PM
why meh?
already picked a uni?
 
Yeah lol
 
where?
 
University at Buffalo
 
no europe? sad react.
 
:D
 
2:34 PM
:D
What the fuck Trump - reuters.com/article/…
"Trump tells Duterte of two U.S. nuclear subs in Korean waters: NYT"
 
lol
 
lool
your president sucks
 
holy crap that might be my new favorite cat gif
 
2:57 PM
Droidcon NYC tickets go on sale Tuesday, May 30th! I will be there if anyone wants to meet up. I met the infamous and original circle Nana last year! :D
 
@CptEric thanks, we didn't know
 
3:34 PM
this is my answer to all these gifs and other inadequate image formats
I guess that picture was animated but I'm not seeing it, haha
this makes Web a lot more readable tbh
 
we can use APNG or WebM
 
3:52 PM
Can you guys see your location marker on an emulator's Maps app?
I'm wanting to check the location the emulator is saying I'm in to see if it matches what our app is showing in lat lng
 
back
 
o/
@McAdam331 do they sponser tickets?
 
Hmm I'm not sure. I don't think they have in the past, not sure if it's changed.
 
the site shows even the event is not free
meh flights cost around 50k :(
 
4:10 PM
o/
 
MHacks just posted their signup for more info page! mhacks.org
 
\o
 
Yo Ahmad!
 
yo
 
@TristanWiley wtf trump is so stupid
I think it's the dementia
 
4:16 PM
Yeah, I know
 
can someone suggest me a functional language for making something like cmd?
 
cmd?
 
command line prompt
in java, i am only thinking about if-elses
 
why do you need a functional language for that
 
4:18 PM
lots of them
to learn something new in the way
 
oh
hmm
I'd say you can use kotlin
 
here comes the Tims
 
kotlin has a lot of functional paradigmes built in
and then there are libraries like github.com/MarioAriasC/funKTionale
 
@ColdFire Yeah the event is not free lol. You end up spending a lot of money on conferences once you include travel and lodging as well. Ask your employer if they'll pay for it?
 
I already started programming in kotlin, but yeah! this might be a better approach to learn
 
4:20 PM
@McAdam331 naah there is no way in hell they will be
 
:(
 
paying
:(
the flight tickets are so costly
 
I never saw an airplane live.
as in front of me. on ground
 
i started traveling from flights since last year november
 
have you never travelled by air?
 
4:24 PM
not going back to bus or train \o/
 
I might go to DroidCon, we'll see
 
also rupinderjeet: if you really want to learn crazy shit then use haskell instead
 
Tristan.... droidcon....
 
<3
 
4:25 PM
<3
 
Oh, that one too. Thanks, had it on my list, but didn't have any time to learn it until now.
 
hmm New Delhi to New York 32k
looks cheap
 
@TheWanderer APNG animation will be prevented by the same setting. and for videos, I have autoplay disabled as well :)
functional programming is not the most important aspect of kotlin. it's actually doable in Java as well. but the real killer is coroutines
and they might be actually useful on Android btw, because they make non-blocking sequential code possible
 
I just made a class that hasn't been touched for awhile 70 lines shorter by formatting. Holy cow was it awful
Now it's...less awful
 
nice
must have been written by you
 
4:36 PM
I need to learn about coroutines
 
@SargeBorsch what do you want to say in the end?
 
it's not implemented in kotlin yet is it? @sarge
 
coroutines are implemented but with experimental status
tried them today, it's not a rocket science from the user's side
 
they are a lot cheaper memory wise than threads right?
 
they have little in common with threads and used for different problems
 
4:38 PM
that's their main benefit if I understood it right
oh, really? damn I'll need to read up
is there some reading material you could recommend
 
kotlin documentation
in a nutshell, imagine a generic technique on top of which things like yield and async/await in C# are implemented
 
gotcha
will try it out
 
oh nice
 
coroutine is just some way to execute code which can call "suspending" functions
it can use another threads, event loops, or nothing at all, it depends on specific implementations
 
CF, it was written by me :P
Quite awhile ago though so I'm ok with claiming it
 
4:44 PM
quite expected
 
I have a 70 line method to set values for a spinner o.O
 
what
 
Ah, but it's also doing some shit that it shouldn't, I guess
 
Yeah probably
 
Didn't help that I was working with complicated food safety procedures and didn't fully understand them at the time
 
4:49 PM
a real life example is a non-blocking I/O function which uses callback to give results.
coroutines allow to use it as if it was simply returning the result. regardless of which mechanisms does that function use to call that callback (is it using some threads or some OS-level "magic", it doesn't matter).
compiler in this case just automatically rewrites "suspending" code into state machines, so poor humans won't have to do this by hand.
 
70 line 0_O
 
so I was adding shit randomly as I learned how it was supposed to work
I had to check the line numbers 3 times to make sure I was seeing it correctly
 
Lua had coroutines since long time ago, the concept is pretty much similar
 
damn that's a lot of stuff to read up on
the kotlin docs describe coroutines as light weight threads
 
Gooooooooooooooooood Afternoon Everyone!!! :D
 
4:52 PM
o/ womp
 
o/ wompanda
 
my spinner code is almost 70 lines too
do you reduce it by android:entries
 
How's everyone!!! :D
 
evening womp
 
4:56 PM
threads are bad analogy for coroutines, although they have something in common.
btw, the coroutine execution in Kotlin depends on "CoroutineDispatcher", and it can jump across different threads when passing a suspension point, if the execution context dictates so
 
rup, depends on the code I guess
 
just moved dialog builder outside of it, and made a method to hold off rest of 17 lines. Called the method in onItemSelected()
doesn't seem like I am cheating someone
new spinner : 9 lines
 
nice
 
if you press it with hydraulic press, it will be just 1 line
 
I plan to submit a couple talk proposals to Droidcon NYC. Do you guys have ideas of useful topics (that you think I might be able to discuss)? Before anyone says Kotlin, I don't want to do just another Kotlin overview. I want to do a deep dive and explain how Kotlin can make [insert process here] easier.
 
5:11 PM
Kotlin. Like...a broad overview.
 
^ how to use NDK to avoid horrors of GC and lack of value types, but not shoot in the foot while doing this
looks like this topic is not explored as much yet
 
hmm good call but I don't know NDK at all lol
 
lol
 
How about just a generic "Kotlin can make these processes easier" such as making/displaying lists or anything that requires a ton of boiler plate code in Java but not so in Kotlin?
 
difference between kotlin and java
 
5:14 PM
Hmmm
 
more like benefits of kotlin
 
That's interesting Marc. A deep dive into how Kotlin's standard lib simplifies processes like filtering, list instantiation, etc...
 
I'm just imagining that's the stuff all the new people want to see, not "Here's the Kotlin language".
 
^ that would be boring because this is nothing new
 
I have a proposal for an Android Wear talk that I want to give already written, so I'll probably tweak that too
 
5:16 PM
Professionals use different languages all the time
 
Well it's still new to a lot of people. But every conference has an intro to kotlin talk and I don't want it to be intro.
 
comparison with java is even more pointless for anybody who is capable of reading the docs
 
It's only boring to people who already use Kotlin.
 
@McAdam331 you should read my blog post on optionals. I took a look at your ToDo-Kotlin project and there's some weirdness going on there.
 
Since Google just officially adopted it, more people will want to look at it now.
 
5:17 PM
Yeah. I want to do a deep dive into something you can do with kotlin, but in a way that I know it's significantly easier than Java so people can draw on that, too.
 
@Marc or one of 10s of languages which are not Java but can express these concepts too
they exist since 1980s or something
 
@trevor-e I read it, but I'm not quite sure which parts of my todo list you're calling out. Feel free to PM me or post it in here, I'm open to constructive criticism.
 
little things like var adapter: TaskAdapter? = TaskAdapter()
 
what is wrong with that?
 
Point is, just talking about the Kotlin language and how it works syntactically isn't very interesting. As someone new to Kotlin, I want to see how I can do my typical things I do everyday done in Kotlin.
 
5:18 PM
Hmm yeah that's a good point. If I'm giving it an initial value it shouldn't be reset to null ever. Especially since that's a field that's not getting reassigned by any Java code (that could null it out).
 
@Marc pretty much the same way as possible in Scala, with some (mostly)cosmetic changes
 
If I have values I know get passed to Java, I try to make them nullable to match the type system there, but if I know it's only getting used in Kotlin I should be more careful. That's a good catch. Thanks, Trevor.
Were there other types of mistakes, or is it mostly just "using optional where it's not necessary"?
 
adam explain
 
This one is more controversial, but val recyclerView = findViewById(R.id.task_list) as? RecyclerView should be non-optional too imo, I'd rather crash if the RecyclerView isn't found
 
Yeah, I thought about that, too.
 
5:20 PM
oh got it now
 
I don't want to learn Scala to learn Kotlin, you funny man! I want to jump straight to Kotlin!
 
CF - basically, I made a field optional even though I know that it would never get reassigned to null, so there's no point to make it optional at all.
 
looks pretty good though, nice job
 
you could already know Scala by this time, it's 2017
and Scala is quite old now
 
Would you believe I don't use Scala?
 
5:21 PM
yeah
 
Thanks. 😃 I'll probably update the code, but also update the corresponding blog posts to call out the difference. Not with TaskAdapter, but with the RecyclerView portion. Just to reiterate to the reader what the difference is so they can make the decision on which to use.
 
not sure if it's the case for Kotlin, but Optional is a monad in Swift which makes it really powerful
 
Hmm that's a good point I don't know how optionals work under the hood in Kotlin.
 
Sarge, I'm lost. I don't know what your point is, if there is one.
You're just kinda...dragging this convo out
 
Going back, I wonder if a talk on optionals alone would be a good Droidcon talk. Nullability in the type system is a core difference between Kotlin and Java, and not a lot of users will know how to handle it. It's the kind of talk that could help people understand what they mean, and not just use "?." or "!!" to satisfy the compiler.
 
5:24 PM
yeah, I'm basically trolling this conversation
 
classic sarge
 
ie someOptional.flatMap { doSomething(with: $0) } is the same as calling if let unwrapped = someOptional { doSomething(with: unwrapped) }, the main benefit being you can use flatMap as part of a chain of calls.
eh probably not worth a talk by itself, idk
 
yeah idk if I can fill 40 minutes with it
but, if you wouldn't mind, I'd love to do my own deep dive into Kotlin optionals and write a similar blog post to yours. I noticed some things in yours that (I believe) were specific to Swift, and didn't exactly copy over to Kotlin.
 
of course, go for it
 
I have mixed feelings about that being a talk. I think I should spend some time doing the research I mentioned first. In either case a blog post can come of it. /shruggie
 
5:28 PM
Swift is made after Kotlin, not the other way round btw
Swift's first appearance is 3 years later
 
Yeah exactly. I always troll people on Facebook who say "Kotlin is a swift-like language".
 
this is a true and verifiable fact
 
As opposed to an alternative one?
 
so it's rather fun to see when some people say that a feature was "taken from Swift"
it's like saying that C is a Java-like language or it took syntax from Java
 
Or when people think you can do JavaScript because you're familiar with Java. That's the biggest red flag that exists in programming.
 
5:32 PM
Not once have I ever encountered somebody that really thought that.
These people exist?
 
Yes, they do. They're typically called "recruiters".
 
Oh.
 
LOL :P
 
Something that bothered me a lot was when I applied for a job that wanted an "Android developer" and I get to the interview and they want Xamarin
and THEN they write me off because I didn't have Xamarin skills.
 
You're lucky, do you know it?
 
5:35 PM
I got a job that wanted me to learn Xamarin. I'm now certified and now I know that the people turning me away for not knowing Xamarin, but knowing native Android, are ridiculous.
It's the easiest thing
 
@TimCastelijns lmao
 
Now the boss is talking about using react native instead because he thinks it will save us money
 
user image
2
 
why not just do the whole thing in JavaScript?
it will save even more money
because JS programmers are very easy to find
 
That's what react native is, essentially
 
5:40 PM
hmmm I don't get it, how is it native then?
I mean just use one webview
this is more cheap
 
because it compiles down to byte code and is indistinguishable from any other app because it IS an app. React native uses the platform specific controls
yeah, one webview. right
I'd quit
 
but the user won't see it, right? :D
 
lol
You and I are similar. We delight in realizing people's worst fears.
 
maybe the boss doesn't even use Android himself?
and doesn't know how to tell a proper design from a bizarre copy of iOS?
 
um, iOS copied Android
and Oracle invented Java
and...other inflammatory remarks
 
5:43 PM
Sun, not Oracle
Oracle just bought what was left from Sun
 
Kotlin copied features from Swift...
C is a Java-like language
 
These phrases must not be so close to each other
because it would be a critical mass
it can start a chain reaction
 
@Marc isn't that backwards?
 
... ... ... Apple is an innovative company....
 
So is the statement before it
he's trolling
Yeah, I can definitely tell he's a troll after calling Apple innovative.
5
 
5:47 PM
Sorry I started reading from the last page
 
lol classic Mauker
 
I'm a spoiler junkie
:p
Classic marker
<classic>mauker</classic>
 
@Marc starting from some moment, it's actually not far from truth. iOS didn't have multitasking, copied from Android later. iOS didn't have an analogy for implicit intents, copied from Android too. I don't remember everything, probably there's more.
and of course it all was presented like innovation
 
I remember hearing about their intents
I was like "Android has had that FOREVER"
actually, that WWDC was pretty much all "Android has had this..."
 
Word
 
5:55 PM
This WWDC, you think they're gonna innovate some kind of screen that you can touch and interact with? Like if they took their idea for the touch bar and applied it to the screen?
That'd be new and different
 
posted on May 24, 2017 by Android Developers

.post-content img { border: 0 0 0 0; margin: 0 0 0 0; padding: 20px 0 10px 0; max-width: 100%; } .stars { color: gold; text-align: center; } .use { font-style: italic; font-size: 8pt; text-align: center; } Posted by Rahim Nathwani, Product Manager, Google Play Localizing your app or game is an important step in allowing you to reach the widest possible audience. It helps you increase do

 
Hiya graeme!!
 
Hi W0mper
 
$50 seems fairly cheap
IIRC, the service we used cost somewhere around $0.70 per word for just the strings xml
 
@McAdam331 yeah got it already
hey graeme
 
6:11 PM
I am so happy I got AWS Cognito login working on mobile
 
@Mauker lol
 
.NET SDK*
 
o.o?
 
o_o
@codeMagic closed
 
good job, team
no upvotes for my comment? what a sad world
 
6:16 PM
lol
 
check again
 
Sarge, way to be a team player
Just found a variable named displaystring. It's of type int
That one wasn't me
 
how do you know that?
 
1) That part of the code was here before me
2) I don't write in all lowercase. Never have
3) I WOULDN'T ADD 'STRING' TO THE END OF AN INT VARIABLE
 
6:37 PM
@Mauker lmao
 
:O
 
:o
 

« first day (2412 days earlier)      last day (2537 days later) »