« first day (2654 days earlier)      last day (2520 days later) » 

00:22
LOL
 
1 hour later…
01:51
wow! I just noticed that JetBrains has been sending me one coupon every month for members of the meetup I am organizing.
I guess I need to start handing these out more often.
02:14
First draft of my new blog post typed up, need to hear back from Tim / Eric if it's actually useful now lol
02:34
@MarkO'Sullivan link!
Not sure if it's going to be useful at all or not but I couldn't find anything online explaining how to do it
02:52
cool! I haven't used Realm at all yet
In fact, I haven't done anything Android for most of the last 2 years
03:05
I am half heartedly working on a web version of my baseball card app, including a rest API so that it can integrate easily with the mobile version
03:52
I will have a bronze badge in when the next update runs! And I have programmed a very minimal amount of C# in my life.
 
2 hours later…
user457812
05:59
Alrighty, just bought a whole bunch of stuff -- the ARM cluster experiment begins o_o
user457812
This will possibly go very, very poorly
06:13
file in which we specify REST methods, what do we call it? Client or Service?
@GET("something") Call getSomething();
Also, should it be class or interface?
 
5 hours later…
11:41
I wrote a blog on a recent code review job i had. medium.com/@raghunandan2005/…. Suggestions are welcome also pointers what can be included if you yourself are reviewing the code.
4
12:02
o/
 
2 hours later…
13:59
good review article, I learned something.
14:17
thanks. there is a lot i left out of otherwise it have been huge.
14:27
o/
14:42
@Raghunandan only getting to read over it now but I would recommend using 'I' instead of 'i', just a small thing
Ahhh so this is the app where the guy was using Realm?
yup. After the review they asked if i could work on their project.
Learning new stuff myself with this blog post, great work
14:58
thanks.
15:34
o/
Interesting article man. Good job.
thanks. i just took that job to earn a few extra bucks. But the app would need a complete re-do from scratch beside teaching the dev team on standard practices.
16:06
@Raghunandan Good job! (y)
thanks.
I have a question, based on your article
> I looked into the package structure next. They din’t have package by feature. So they had packages like activities, fragments, adapters and so on...
What's your preferred way of organizing that?
package by feature!
care to share an example?
16:20
Kinda like what you described
somewhat a mix between the two ideas
like ui > activities
hmmm. and then in activities you have a package feature wise?
say for search and displaying repository?
Hackathon starting this Thursday in Edinburgh, I can't see anything about prizes
and they're charging £25 to enter... wtf
sorry, I'm on pain rn I'll answer later
I generally package by feature but then have db, networking, utils, packages as well
16:50
I do package "activities / fragments" -> "features", but I acknowledged it's not really a good way of organizing
hmm right. I think this was discussed in the room some time back.
yeah, it's tougher to browse features when they're dispatched
 
1 hour later…
18:11
can there be multiple repositories in mvp?
does someone have an example with DataSource, Repository, Retrofit stuff? I can only find offline, or db dependent variations.
yo
anyone online?
coughmecough
18:33
Every datasource has its own repository
User repository, car repository, etc
Every Tim has its own Realm
Caught this sweet, older woman at the Women’s March responding to one of Trump’s tweets. I thought to myself, what could this sweet old lady be saying to him? 😏
I have 2 services. The first overrides onTaskRemoved and calls stopSelf() in it. The second is a bindservice which overrides onUnbind. If I delete the first service, onUnbind isn't called anymore when I remove the app from recents...why?
18:59
@Curio Can you create a mcve to illustrate? Code speaks louder than words.
@Curio you should flesh this out and post a question on the main site
@Code-Apprentice there is already a question about the same code without answers :/ stackoverflow.com/questions/48079754/…
19:55
@Reno that's the one
@Mauker old news
Not to me
:(
Yeah!
20:06
where's the party?
CA I might have to go back to the hospital :(
Jan 16 at 9:59, by WarrenFaith
49
Q: Thanks a million, Jon Skeet.

hairboatYesterday, Jon Skeet hit 1,000,000 reputation on Stack Overflow. A million rep. The achievement quite frankly boggles the mind. I've been thinking about this meta post for days, trying to figure out how to describe the enormity of this accomplishment. I can't really find the words, but fortun...

@Mauker sorry to hear that ;-(
Did you ever call that doctor?
Nope
I mean, I have a fiancee lol
Unless the doctor want something with both of us... hm...
Is your fiance into that kind of thing?
20:08
yes she is
we both are
routine can be terrible sometimes
@Code-Apprentice voted
@Mauker thanks
20:20
God this hurts.
Should we setOnClickLesteners in fragment's onCreateView(LayoutInflater, ViewGroup, BUndle) before returning View OR in onViewCreated(View, Bundle) after we get View object?
I always set them on onCreateView
I never had any issues with that, but I'm not sure if the alternative is better or not
I do it like this hastebin.com/atufuyuvoh.java do you see any obvious mistake?
it works, but I don't know if its right.
20:36
Yes, there is a mistake there
You're not using the ViewHolder pattern
every single time that code will inflate the XML again
wait, let me get a sample
thanks, do you mean I should check if view is null or not? like we do in Singletons.
yes, something like that
a sample would be helpful, please
But wait, sorry, I also made a mistake. I was thinking of Adapters, not Fragments
hmm I use ViewHolder pattern in adapters.
20:44
Disregard what I said, sorry :p
let me read the code again
do you think I should add nullcheck like this hastebin.com/wisarasulo.java
1
A: Button setOnClickListener onCreateView() or onActivityCreated() in Fragment

Krupal ShahBoth will have no effect as far as I know. Once the view is inflated you can put it anywhere either in onCreateView() or in onActivityCreated(). After all, for binding views and setting click listeners, onViewCreated() is a better candidate though, as it will be called immediately after onCreate...

I believe that could speed things up by a little tiny bit
@rupinderjeet I have never used onViewCreated(). I do all my initialization in onCreateView(), including setting listeners.
As it seems, it doesn't really matter
once the view is inflated you can do it anywhere
thanks
@Code-Apprentice is it because you didn't need it? or something's wrong?
20:50
Maybe it's just convenient
right. thanks.
I also do that myself
and I also check for null
hahaha
@rupinderjeet because convenience. I already have the View reference after it is inflated, so it is easy to immediately register listeners. I think this was how the tutorials where I learned about Fragments did it, so I kept with that pattern. In the end, it doesn't seem to matter as long as you know that the View is available in the Fragment lifecycle.
+1 ^
thanks, also, this approach matches with that of an activity.
20:58
yes, there is that, too
yo
Mauker1 \o/
Ugh
I hate that I had to put that 1 there
Cause "Mauker" was taken already
i thought you had a clone
21:00
This nickname of mine is rather old
So old that if you call me mauker on the streets I'll respond
oh
i thought your real name was Mauker lmao
nope haha
21:18
@Raghunandan Dude that code they gave you is FULL of weird design choices and have lots of mistakes. Congratulations on pointing them all out, and for the research you made on the topics you didn't know about.
^
@Mauker too late and repost
your response was also late lol
I already discussed that with CA
lol
how are your stones?
21:35
killing me
@TimCastelijns if rvAdapter needs to show a snackbar, should it do through contract or itemListener?
this rx and mvp stuff is too touch, my brain pipes are gonna bleed
Listener
Use a listener
which reminds me of one answer I gave
7
A: Showing a Snackbar from inside a Service

MaukerThe Snackbar needs a View to be displayed, so if you want to show snackbars on your app depending on the state of your Service you'll have to either bind it to your Activity or broadcast a message through the LocalBroadcastManager and show a message on your View. I don't think there's any other...

Contract is only for view and presenter communication
21:51
they just call each other to do stuff
view.onClick calls presenter to openTaskDetails(Task)
presenter calls view to showTaskDetailsUi(task.getId())
showTaskDetailsUi starts activity
Isn't "view.onClick -> starts activity" convenient and more readable?
22:24
JW's app is available for more than just Oreo now!
Anyone here has experience using tensorflow?
#100DaysOfCode #freeCodeCamp #js #code #JavaScript
7
hahahahahahaha
> This app is incompatible with all of your devices.
Your device is too old man. Carl old.
22:36
4.1 still works
simply minSdkVersion 16
Not that simple sometimes
some of my apps needs an API that's only available through higher API levels
For example, BLE
but wow. It requires Android 7+
22:53
@Mauker yah, the requirement is still pretty high. It used to be 8+ for the original release
23:14
@rupinderjeet yes but in Mvp the view is dumb. The presenter decides what to do when a button is clicked
23:39
Published a new blog post, would appreciate any feedback: medium.com/@markosullivan/…

« first day (2654 days earlier)      last day (2520 days later) »