« first day (2707 days earlier)      last day (2256 days later) » 

6:03 PM
lmao dave
 
Hello, Android!
lunch time!
 
wow that is new
 
which?
I eat lunch every day, so not so new
5
 
back~~ :D
 
lol i mean that message is catalan style
wb womp
 
6:16 PM
He says that almost every day lol
 
i dont see that in the transcript
 
Dec 26 '12 at 21:00, by Code-Guru
Hello, Android!
Since 2012
 
i mean the lunch message :/
i know about the hello, Android thingy
 
hellos!
 
6:23 PM
Anything new going on in Room 15 today?
 
found a cool article today
for any of my sketch friends, Supernova Studio is a design-to-code platform/app looks pretty powerful :
https://blog.prototypr.io/introducing-supernova-studio-35335de5044c
(might help you get points with your designers too)
 
interesting
so designers will steal our developer jobs?
 
nah...you'll still likely have to fix that shit on samsung
2
and integrate it and write tests
why react tho, I'm firmly in the vue js camp
if anyone has experience with react and likes it, please chime in. I'm interested in your thoughts
 
nice link petey
 
ty CF!
 
6:28 PM
@petey we've had a lot of success with React for web apps
 
yea???! why do you like it?
 
but we've also never tried vue
 
:)
 
I found it pretty easy to create state driven web apps with almost no javascript experience
makes sense to me
you have your hooks, your state and your render from the state
and action bindings etc
 
I like vue cuz after I get used tot he whole magic getter/setters and leveraging it as dev principle, I can spend less time writing boilerplate/ceremony and a simple implementation is all that remains. (less is more/less to maintain sort of thing)
 
6:30 PM
React kinda "feels" object orientated
you say here's my "Home page" container and that container has components which can be comprised of even smaller components
so it's very modular
you write your text input logic once and re-use it easily
 
yea... reuse is awesome
 
pretty in depth comparison of the major js frameworks
 
@petey I use react for work. I enjoy it but I haven't used any other frameworks for a real comparison.
 
my company is apparently going all in on Angular5
 
our senior front end guy who used angular before he came here, suggested we tried react and is firmly in the react camp now
 
6:39 PM
supposedly Angular5 will be a big change from previous versions
 
Has anyone ever found the solution to "my mac sounds like it's about to blast off into space when I'm building in Android Studio" thing?
because I'm sick of this thing overheating lmao
 
lmao mac overheats like anything
try to give it some space for heat to get out
it mostly happens to me when the space is not there for heat to go out
 
yeah sometimes I dointentionally make sure it's not right on my lap but it doesn't help
also the stand at my desk doesn't cover the hinge so heat can get out there. I guess I just have to live with it lol
 
@AdamMc331 Use a PC
You're welcome
 
lol
 
6:43 PM
I call it Spaceship-mode
 
6:58 PM
so we just embrace spaceship mode got it
 
you should wrap your mac in a blanket to keep the heat in
then get a PC when it fries
 
No.
 
Wrap it in Ice to cool it down
 
^
 
Oh, Or sit in a fridge while you code.
One of those big walk in ones
 
7:11 PM
o/
 
@AdamMc331 you could also cool it down with the cold shoulder you just gave Graeme
4
o/ Tristan
 
@DaveS Good one XD
 
lmaoo
damn
 
@RanjithKumar Welcome! Please read our room rules before participating.
 
7:26 PM
ok ok thanks
 
already not doing a very good job
 
me???
 
yes
 
why???
 
7:29 PM
I only asked one thing. :( I even said please.
 
ok I understand rules :)
 
ayy close enough
 
Close enough for me too. How are you Ranjith?
 
I have read and understood the rules
fine.. what about you Adam?
 
@AdamMc331 lol
well you have greeted adam wrong, "hello adam, are you ok?" is the way
 
7:36 PM
thanks Cold Fire.. I am not native English speaker..
 
It is okay they are just making jokes haha
I'm good. :)
 
sick avatar, @netpork :D
 
My room is pigsty
4
 
8:08 PM
lol
 
lol
 
lol
 
8:23 PM
posted on March 15, 2018 by Android Developers

Originally posted by Dave Kleidermacher, Vice President of Security for Android, Play, ChromeOS, on the Google Security Blog Our team's goal is simple: secure more than two billion Android devices. It's our entire focus, and we're constantly working to improve our protections to keep users safe. Today, we're releasing our fourth annual Android security year in review. We compile these repo

 
you still around @Graeme ?
 
Yes
Just
Sup hommie?
Got me a job there yet?
By that, I of course mean, got them to open a new office in Toronto for me yet?
Because damn, Seattle sounds to wet for me.
 
I emailed you some more questions
 
8:41 PM
I have the replied Senor
And now I'm going home. Catcha.
 
Omg @netpork you changed the avatar <3
 
8:57 PM
<3
 
<3
Speaking of which
I was playing MC the other day... then this happened:
Y U on drugs netpork?
 
Me is levitating
 
If I want a stack of a certain type, but I want a condition for which items can be added to it, I don't have a choice but to override the class myself do I?
 
yup
 
Like, super basic example, maybe I want a stack of integers but I don't want you to be able to add odds. I'd have to write my own EvenStack class?
ahjksdfhakjfhsa
Alright. Was worth a shot lol
 
9:11 PM
lol that typo
 
Depends on how you want to handle that
if you're working with Kotlin, you can create an extension function
 
I could, but I don't think that's what would help me.
 
You can handle the CRUD operations on an utils class
or... override the class
 
Another thing I was thinking is adding everything to the stack, and then calling .filter{} but the problem with that is it returns a List and not another stack.
I could write my own .filter{} extension that returns a stack.
 
in that case wouldn't you want something like Stack<EvenInteger>?
 
9:13 PM
yeah ^
 
since you're trying to represent the rule of even integers into a static type
 
but perhaps the rules are more complex
 
Yeah, I see what you're saying Trevor, but I oversimplified my example. I'm using a sealed class (works like an enum). And I want all but a specific enum type in my stack.

You know what, maybe I should put this in a gist
 
Stack<ComplexVar> lol
 
and you can tell me what you think is best
 
9:14 PM
just make an infinite loop on the ui thread that perpetually loops over the even stack and removes any odd values
4
 
gist it up
We have a winner
 
god damnit dave
 
But I think it would be best to divide by zero.
 
So consider this. Let's say I have an enum of states my fragment can be in. I have observables that make various network calls, and each time it emits the state. BUT, it also emits a "Loading" state when it starts.
So I end up with a stack like
Loading -> AlbumState -> Loading -> PhotosState
 
9:16 PM
You want to filter "loading"?
 
and when I want to revert a state, I can pop it, but I don't wanna go back to a loading state, ya know?
Right. But the problem with just filtering loading is like, what if I hit back while I'm loading?
 
pop twice?
 
^^
If I pop twice, that also breaks if I'm filtering loading. I mean, I guess I could have an if condition where it checks if it's a loading state pop once. If it's not pop twice? /shrug
 
cancel the call, and remove the loading
could be
also check if stack isn't empty
 
loading shouldn't be entangled with the data state, it's a transitional phase not a state
 
9:18 PM
true
but it's also a state that's emitted by the observable
 
like loading should be tracked internally by the fragment to show its own loading UI but otherwise forgotten
yeah
 
So that's also why I considered overriding the stack class to prevent me from adding loading at all. Or maybe I can just handle this in onNext() of the observable.
 
is it important for your use case to stack the loading state?
you should ask this before doing anything
 
If i was going to make it work while leaving the smallest footprint on an existing design. I wouldn't modify the way the stack tracks states
I would handle the use case where state is loading and pop twice
basically pop until not loading
2
 
yup.
 
9:22 PM
yup
 
Also, check for samsung. If samsung finish()
One of those questions that will never have an accepted state: stackoverflow.com/a/32141994/4070469
 
@DaveS unless your company gives you plenty of time to have fun and over-engineer stuff :D
 
No loading is irrelevant to this stack because I'll never want to revert back to a loading state @Mauker
I keep track so that when the user clicks "back", they go to the last state. BUT I gueass it does matter because if they press "back" while they are in a loading state, it will matter.
will pop until not loading
thanks Dave
 
So, loading is a "memoryless" state
 
I appreciate your shit, Dave.
6
 
9:28 PM
@Mauker give it enough time and you will get lots of upvotes for such an in-depth answer
 
it'll emit the state change, but won't record it
@AdamMc331 ewww
 
lmao adam
 
did I mention that our client is paying us for significant testing. We are finishing our second week of all-out testing.
 
@Code-Apprentice One day, one day
 
@Code-Apprentice this is awesome! seems like an educated client
 
9:30 PM
yes they are
 
oh nice!
 
we have written ~300 new tests and completely revamped ~10 test suites
 
I had a few clients that were like: "lol testing? forget this shit, deploy and fix later"
a.k.a. Test in production
 
man I remember the good times when we could write spaghetti code for UI stuff and not be judged
now it's view model this, presenter that
 
speaking of which
 
9:33 PM
Trevor XD
 
That reminds me of the freaking code challenge I did few days back
got rejected for that code :(
 
wait what
 
@Mauker what was wrong with it?
 
lol mauker
 
according to the reviewer, I mean
 
9:37 PM
> "He can definitely improve by studying and trying to incorporate into his work clean code concepts principles. The Clean Code book, by Uncle Bob, would be a great start. He can also read more about architectural patterns like MVP or MVVM"
 
wow
 
better start studying!
 
yup
 
what code challenge was this?
 
9:39 PM
Although I'd really appreciate a more in-depth feedback
would be easier to tackle the gaps
For a job
 
I'll loan you my copy of Clean Code
Do you have Kindle?
 
<3
I had a Kobo
stolen the same day as my mbp
 
I can read on the kindle desktop app
 
You can get the Kindle app
yah, or the mobile app
Do you know my old user name?
 
9:41 PM
I don't
I think I only saw it once lol
But I follow you on twitter
 
that's the same as my email
 
they didn't like your Presenter/View code?
 
DM me on twitter with your amazon user name and I'll see what it takes to loan an ebook to you
 
Guess they didn't
 
tbf your DetailActivity could maybe use some separation
 
9:43 PM
Although I'm not sure what is wrong with it
The Detail Activity could, yeah
But I didn't really apply it to that activity
I was focused on finishing what they asked for...
Perhaps that's what's wrong
I had two days to build that
 
they gave you a time limit?
 
The issues I created are the problems they gave me to solve
yup
So I didn't really coded the detail activity using MVP
I focused on doing that for the MainActivity, since it was what they asked on one of the issues
 
damn, we do take-home assignments too but are super flexible on time, that seems pretty brutal
 
it was.
If I had a little extra time I would've done that activity using MVP
but perhaps that's not even the problem. Idk...
And for me, that's the true problem
Idk where should I focus
Where my code went wrong
(Well, I do know a thing or two, but I delivered more than they asked for lol)
@Code-Apprentice DM
 
sounds like you were heading in the right direction, just need to be faster. maybe create some Android Studio templates to handle common boilerplate for you.
though they sound pretty demanding, maybe you lucked out on not having a stressful job.
 
9:51 PM
Indeed.
 
for MVP I would recommend starting out with it. It's not really something you should be doing after stuff is done
 
@trevor-e And hey, thanks a lot for that. I'm taking it as a compliment :)
@TimCastelijns They asked me to refactor
But yes, I agree
it's harder to refactor than to start right with it
 
do you want some random feedback?
 
Yup
 
> Currently, our BaseActivity is solely used to hold a reference to the api object. We don't feel this is a strong enough reason to have a BaseActivity and we feel this leads to some issues (e.g. each activity holding a different api instance even though they could share the same).
 
9:54 PM
Then I removed it
 
you can share object instance by making it static
 
and turned it to an object class
 
however you don't really want this. Activity should not know about api
 
which it didn't
after I refactored it
 
9:55 PM
the presenter knows about it
 
where can I see the latest state?
 
I would swap the commit message title and body
 
> endCall() is currently on the light greylist to enable continued usage in P (and beyond, until we have a public alternative). I'm keeping this bug open to track the need for that public alternative; in future releases, we'll post migration instructions if/when that alternative is launched.
\o/ Google replied that "endCall" is not at risk anymore :D
 
@Mauker got it. Will respond later tonight. I'm still at work and trying to finish up a task in the next hour before I go home.
 
10:01 PM
Hmm ok
 
nice mehdi
 
@Mauker shall I just ping you here with feedback?
 
Yes
Ping at will
 
@will
who is he
 
Lmao
 
10:05 PM
@Mauker api calls can be singles instead of observables
@Mauker HomeView should not import android stuff, currently this makes the presenter aware that it is running on android
@Mauker you have mixed naming styles for interfaces and their implementations
 
@Mauker
 
@Mauker presenter should know nothing about the lifecycle of the view, only when it is attached and detached. Same about importing android classes applies here. I know it can be difficult to work around it, but do if you can
@Mauker you have some sections of code with a header in javadoc (/**) format. I used to do it too because it looks cool, but it makes no sense because it is in fact not really javadoc
@Mauker don't put comments to explain what a variable represents, instead give it a more descriptive name
(in general, there can be exceptions of course)
@Mauker you have mixed initializations of empty lists in Cache.kt and Homepresenter.kt
= listOf<>() vs = ArrayList<>()
@Mauker you have some deeply nested methods in the presenter. Look into inverting if statements (also, 'returning early') and extracting pieces to separate methods
@Mauker your view var in the presenter is nullable. I don't think it has to be, it can't logically be null
@Mauker all the adapter stuff should be in the view not in the presenter. This comes naturally if you remove android imports there
@Mauker LOG_TAG in activity can be private const val I guess
@Mauker I think you can rewrite this with elvis operator github.com/Mauker1/ArcCodeChallenge/blob/development/app/src/… @adam confirm
@Mauker here github.com/Mauker1/ArcCodeChallenge/blob/development/app/src/… you do a null check and then if it is not null, there are still null checks :P with ? There might be a clever way to handle this
@Mauker presenter in activity probably also does not need to be nullable
that's all
do ping back if you want to discuss
 
10:33 PM
I will
I’m on mobile now
 
I just commented everything that came to mind. You can probably ignore half of it
 
it's a good feedback
and interesting
 
I loved it. Thanks a lot
@TimCastelijns as for this one. It can’t. Lint warned me about it
 
OK. Maybe lift it out of the companion object. Or use timber, then you'll never need log tags again
 
Good catch
 
10:48 PM
this is more general feedback. Having done a 2day project for an interview myself recently, I know you can't do everything the way you want
 
That was the main issue here
Also, I had to learn a thing or two
 
how do you like the take-home test style interview in general?
jw because we've had mixed feedback regarding it
 
@TimCastelijns used it for the syntax highlight
@trevor-e despite being rejected, I loved it. Learned a lot through it. It just was too tough
 
cool, I'm a big fan of it myself
we still do a mini round of in-person interviews for people who pass the take-home, but it's nothing super crazy.
 
Do you have any openings? Lol
 
11:06 PM
not at the moment for mobile
 
I would have passed you Mauker
but I guess it's all about the competition
if you were a good culture fit there's nothing in that code that would stop me from hiring you
 
That wasn’t the first stage. I passed two before it
 
the thing I don't get is that this stuff is easily teachable
like why pass over a candidate who's 90% of the way there
all of that is fixed with a couple code reviews
 
I learned some of the stuff while I was doing it
I never did mvp before the code challenge
Only mvc
 
my guess is either the competition was steep or the team lead just didn't like you
if the latter you're probably better off
 
11:18 PM
True
It would be a pain if it is the latter
I would have to move to get this position
 
their website is pretty snobby
"Insights from our big brains"
 
Also
There is some kind of prejudice related to my region. Guys from the south think we are morons
Perhaps that had something to do with it
@trevor-e they said they would review the code on the PR prior to giving me the final response. They didn’t
 
11:35 PM
I meant that this stuff could be fixed/learned through PRs once you're working for them
 
if you think there's discrimination based on where you're from, you can just change your address in your CV
 
Yeah I know. That comment just reminded me of what they said
@MehdiB. true.
It happens a lot
 
tbh you don't have to think about them too much, it's not a big deal, they're not the only company hiring
 
I don’t that much. I was just worried about the quality of my code
 
11:51 PM
that's the right mindset (y)
 
<3
 

« first day (2707 days earlier)      last day (2256 days later) »