« first day (3228 days earlier)      last day (1945 days later) » 

00:31
Ribbit ribbit
 
1 hour later…
01:41
Ribbit
02:33
No.
 
2 hours later…
 
3 hours later…
Zoe
Zoe
07:18
@TaseerAhmad not my type of music
08:15
@Ahmad i hope no hard feelings bro. Was just supporting my indian army. I do understand people concerns. Will keep this topic off chat from now on. Hope i have not hurt anyone's feelings here.
anyone here used diffutl payload method?
08:34
i have used diffutil long time back once. but don't remember it now
whats the problem
@TaseerAhmad i found this article very useful proandroiddev.com/diffutil-is-a-must-797502bc1149
I have gone every single article, in fact implemented that method a little better than most articles
hmmm. so did you face any problem?
The problem I am facing is that, this getChangePayload() method runs on main thread
areItemsSame and areContentSame run on a background pool threads
So my question is that, should I worry about getChangePayload() being run on main thread?
if you read the article i linked the article indicates that for large lists diffutil might run slow so you need to run that on a thread there is an example of how that is done with rxjava in the linked blog
I am using ListAdapter, which basically serves as a wrapper around AsyncListDiffer
So the list calculations are already on a background thread
I don't think I should be worried about it being run on the main thread, after all, with partial binding, I would be mostly dealing with views
08:47
getChangePayload() why would this alone run on ui thread
if all your diff calculations run on background thread
I have no idea
just log the current thread and check your calculations for huge list should go into background thread.
if that's the case there is nothing to worry about
Yes, I have logged every callback, list calculatios are being done on a background thread, only getChangePayload() runs on main thread, I suppose that it should run on main thread, since we have a possibility of touching even 1 view, so the operation would not be costly at all
If you are using listadapter then there is nothing to worry
Quoting RecyclerView.Adapter base class for presenting List data in a RecyclerView, including computing diffs between Lists on a background thread.
ok 👍
09:05
o/
09:53
@TaseerAhmad nope thats by design, only main thread can touch the views, and its just a callback with the diff
so nothing to worry about
different thing thats costly about diff utils is that you have to supply different object of the list every time you want diff to be run
if you supply same (but modified) instance of the list, diff is not going to work, which means you will have to copy the entire list
which is hard if you have paging or you want to move or remove the item from very long list
so as i said before, if you need anything more than simplest usecase, you will find diffutils to be not useful at all
10:28
Greetings, temporary but efficient disappointments
11:11
Ribbit
 
1 hour later…
12:22
o/
 
3 hours later…
15:13
it's actually pretty good theoretically: youtube.com/watch?v=2k8x8V77CrU
I like the concept of predetermined navigation graph
Greetings, ancient one
@MehdiB. concept is good, implementation is very poor
Greetings, less ancient but still somewhat historical one
Actually, I'm not entirely clear on the relative ages of you two
So might want to swap the greetings around
27 actually
:)
sup?
Working, consuming coffee
What of you guys?
15:20
more or less the same
migth play some games tho
Sounds lovely
@RaghavSood hello bud :D
I'm the same as Ivan, we already blossomed :D
Interesting
@IvanMilisavljevic I'm just discovering it, I wouldn't be unhappy about implementing the concept myself (I mainly dislike code generation)
Why do you dislike code generation?
A good code generator is worth its invocation cost in litecoin
15:30
because those things are unmaintainable when you patch or extend them, if left as is no issues, but as soon as you try to actually adapt them to your need, you suddenly break any future compatibility in case the generated code change with new APIs
I mostly only use code generators that I write
i really like it tho
Or at such a low level that an API change is the least of my concerns if it is happening at that level
15:32
or for templates generation to save time when bootstrapping a new project
> create services Users
and you get 5 empty but ready to use classes for each http methods get/delete/put/post/head etc...
I've taken to defining http services using protobuf service definitions
Then I can generate server/client stubs for both gRPC and HTTP gateway APIs for most languages
Along with model definitions etc.
Then have a few more generators to tie the models to the databases, and to do database migrations
Takes about 30s to add a new endpoint
It's great
@RaghavSood what is a protobuf service definition?
Protobufs let you define a schema for various models/objects/datatypes in your application
For example, you can do message User {string name = 1;}
And then you can further define a grpc service
isn't grpc like soap then?
15:41
Which can say that the function getUser(int32 id) returns (User)
And then you can add on an HTTP interface to that RPC, and specify that a GET /user/{id} endpoint should call the previously defined RPC function
so like the wsdl in SOAP
basically a remote definition of your endpoints, right?
Not really
It's a schema, the definition itself is not hosted (afaik)
You can use this to run grpc generators and grpc gateway generators
Which will turn your schema into servers and clients in various languages
I'm not too familiar with SOAP tho, but it is somewhat different
It is similar in that sense, yes
But likely a fair bit more efficient
yeah probably, soap is terribly inefficient because it adds a bunch of layers on top of every message
I have to read about grpc
15:45
gRPC at its core is very efficient, since it it designed around protobufs, which are a fairly efficient data exchange option
Adding the HTTP gateway naturally loses a lot of that to an additional layer of JSON conversions, but it gives us a ton of flexibility in how we want to consume the service, so it is worth it
And it's really just one bash command to add that support, so why not
how do you deal with various java versions between the serializer / deserializer?
Well, I don't use Java, for one
For another, it won't matter - protobufs are backwards and mostly forward compatible, and you can probably select which java version you want to generate a client/server for
And different generated clients will be able to talk to servers/clients of other languages since the underlying system is compatible
We run a go server and client, and then additional clients in C# and Ruby
Works fine
Once you get writing it's just a service interface, the language etc. is not really relevant
do C# and Ruby deserialize the actual blob or do they receive a json/text response?
Same as consuming an HTTP API or TCP or UDP or whatever
C# and Ruby deal with JSON since they interact via the HTTP gateway
Go client connects via gRPC directly
But the "blobs" here are just protobuf messages
Which have a well known serialization process
And implementations in all common languages
So a protobuf message created by a Java codebase will decode just fine in a Go or Ruby or Dart or whatever client
And vice versa
Protobuf is just a binary encoding protocol - same as JSON is a text based one, and others using XML or whatever
I see, that's very interesting, I'm just starting protobuf after lots of reading I decided to ditch the Serializable interface for new projects
15:53
It was specifically designed to efficiently pack data for networked applications, as opposed to JSON which wastes a ton of space for the whole readability stuff
You can (98% of the time) pack the same data into a JSON or XML or protobuf message
Barring a few limitations on each protocol (JSON and numbers, for example)
> Protocol Buffers are not designed to handle large messages. As a general rule of thumb, if you are dealing in messages larger than a megabyte each, it may be time to consider an alternate strategy.
Well, if you're passing huge stuff around you probably don't want to use JSON either
After a point it makes sense to get specific
Hence the various audio and video and image and whatever formats
yeah, I was just thinking about images etc... just to understand the usual use cases of protobuf
Any place you'd use JSON right now, you can use protobuf, essentially
If you'd use a content specific format, you probably don't want to use protobuf
Understood
I'll do some reading tonight after the "new" (what happened in the last 2y) android features
15:59
Joke's on you, it's already Monday here
how does it feel to be isolated from the rest of the world in your online activity?
Jokes on you, I'm isolated irl as well so it makes no difference
exactly, so you're isolated in both
that must be awful tbh XD
I don't mind
It's not like it's hard to find people, just a walk away if I need to socialize
But historically I've been happy to just work on stuff
16:05
Excellent
Means I'm less likely to run into people trying to socialize
Vastly improves isolation efficiency
hahaha
@MajdAlbaho You need a 4:3 q:a ratio or better to get access here, try answering some more questions
I was thinking about the content of the message, relying on technology is nice but undermines our brain development :D
Damned new age room owners, can't live without their bots
Back in my days, we typed out each message by hand
looks like I skipped a step there, I directly went from sending postal letters to using a bot
16:15
Maybe you can send postal letters for access control too
Just reply to access requests with "You will receive a decision for your application in 3-5 business days"
or... I send them to your address in NZ and you act on them?
Sure
It's a sparsely populated country
posted on August 18, 2019

Android Weekly #375 📱 #outlook a{ padding:0; } body{ width:100% !important; margin:0; padding:0; } body *{ -ms-text-size-adjust:none!important; -webkit-text-size-adjust:none!important; } body,.wrapper{ background:#ffffff; color:#505050; font-family:Arial, sans-serif; font-size:12px; } table,table td{ border-collaps

People disappear without a trace all the time
Well, not that often actually, since there are such few people to begin with
But, you know, it's the implication that counts
I meant "act on the content of the letter -> giving access to user X and Y and Z listed on the letter" XD
16:18
Oh
Right, that makes more sense
Ignore the serial killing offers, nothing to see here
😂😂😂
Aha, my code works
Step one of the feature down, roughly forty to fifty more to go
Guess we can hit prod today
Unfortunately the coin I'm integrating now is written in C#
And follows a lot of M$ conventions
Seeing mixed snake case and inconsistent JSON keys is just playing annoying
16:51
Ribbit
Whatever
How are you Raghav
I've heard rumors about you writing working code
Any such rumours are blatant lies and should be reported to the Ministry of Truth immediately
Who are this ministry of truth members?
I'm afraid if you don't know, you aren't meant to
Their identities are a closely guarded secret to protect the integrity of what is shared with the public
It is for the good of the public, do not resist
16:57
(↼_↼)
@franiis Welcome! Please read, confirm reading, and follow the room rules before doing anything else: room-15.github.io
I have read and understood the rules.
Welcome
Hello, thank you for accepting.
17:57
@IvanMilisavljevic olddddddddddd
welcome
@RaymondArteaga Nein.
18:33
Hisssss
@ColdFire hah why?
18:57
I really have mixed feelings about the new stuff that were added on android
in one hand I wanna use them to be "up to date" with the android world, in the other hand, I don't want android dev to be boring
Like dark mode? Ya I feel ya
More on the sdk side
19:15
oh
Why is it boring
Because no more struggles and fighting against the SDK :D
19:37
LOL
in that case you don't need to worry lol
😂😂😂
19:55
@StephanS You need at least a 4:3 questions:answers ratio to get access to the room, try answering some more questions on the stackoverflow website and request again 👍
@IvanMilisavljevic jk man
20:11
@TariqMahmood You need at least a reputation of 80 in stackoverflow and a 4:3 questions:answers ratio to get access to the room, try answering some more questions on the stackoverflow website and request again 👍
20:56
@ColdFire its because of the beard :) one guy told me once i look like im 42
21:45
hmm gn o/
 
1 hour later…
23:06
Ribbit

« first day (3228 days earlier)      last day (1945 days later) »