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

12:22 AM
LOL
 
 
1 hour later…
1:51 AM
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.
 
2:14 AM
First draft of my new blog post typed up, need to hear back from Tim / Eric if it's actually useful now lol
 
2:34 AM
@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
 
2:52 AM
cool! I haven't used Realm at all yet
In fact, I haven't done anything Android for most of the last 2 years
 
3:05 AM
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
 
3:52 AM
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
5:59 AM
Alrighty, just bought a whole bunch of stuff -- the ARM cluster experiment begins o_o
 
user457812
This will possibly go very, very poorly
 
6:13 AM
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 AM
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 PM
o/
 
 
2 hours later…
1:59 PM
good review article, I learned something.
 
2:17 PM
thanks. there is a lot i left out of otherwise it have been huge.
 
2:27 PM
o/
 
2:42 PM
@Raghunandan only getting to read over it now but I would recommend using 'I' instead of 'i', just a small thing
 
ok.
 
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
 
2:58 PM
thanks.
 
3:34 PM
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.
 
4:06 PM
@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?
 
4:20 PM
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
 
4:50 PM
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…
6:11 PM
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
 
6:33 PM
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?
 
6:59 PM
@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/…
 
7:55 PM
@Reno that's the one
 
@Mauker old news
 
Not to me
:(
 
Yeah!
 
8:06 PM
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?
 
8:08 PM
yes she is
we both are
routine can be terrible sometimes
@Code-Apprentice voted
 
@Mauker thanks
 
np
 
8:20 PM
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.
 
8:36 PM
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.
 
8:44 PM
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?
 
8:50 PM
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.
 
8:58 PM
yes, there is that, too
 
yo
Mauker1 \o/
 
Ugh
I hate that I had to put that 1 there
 
why?
 
Cause "Mauker" was taken already
 
i thought you had a clone
 
9:00 PM
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
 
9:18 PM
@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?
 
9:35 PM
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...

 
thanks
 
Contract is only for view and presenter communication
 
9:51 PM
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?
 
10:24 PM
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.
 
10:36 PM
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+
 
10:53 PM
@Mauker yah, the requirement is still pretty high. It used to be 8+ for the original release
 
11:14 PM
@rupinderjeet yes but in Mvp the view is dumb. The presenter decides what to do when a button is clicked
 
11:39 PM
Published a new blog post, would appreciate any feedback: medium.com/@markosullivan/…
 

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