« first day (2720 days earlier)      last day (2229 days later) » 

9:00 PM
from where do you call these functions? Presenter?
 
from his house
 
More or less. A ViewModel in this particular case.
 
@CarlAnderson my guess was his office
 
nah carl I don't WFH this job hasn't consumed me yet
aand Dave beat Carl. Witnessing history today folks.
 
might I suggest abstracting the Response away from the viewmodel
 
9:02 PM
user image
3
 
sharing that with my team
 
GitHub trivia of the day: GH gives up counting commits in a pull request if there are more than 250.
 
I don't think I can. The viewmodel references the repository, which gives me an Observable<Response<FBAlbum>> and then inside the viewmodel I do stateObservable = repository.getAlbums().map(fbMapper.mapAlbumResponse) (psuedocode)
 
does throw Throwable("Error fetching albums") clobber Retrofit errors? forget how Retrofit handles errors.
 
Nah it's eventually handled by the error handler on the observable chain and then I handle it in onError
 
9:04 PM
you don't want your repository to leak retrofit classes into the viewmodel is what I mean
map the response before you pass it to the viewmodel
 
so should I have this in the repository, or have another middle man between the repository and the viewmodel
Also what's antipattern about retrofit classes in the viewmodel? I'm not disagreeing with you, it kinda makes sense, but is there a concrete reason?
 
Have you considered a suppository?
 
I guess to me, the viewmodel is strictly just tying data to the view, and in this case it's doing logic that is irrelevant
 
I'm not calling it an antipattern, it's just that your viewmodel shouldn't give a crap about how the repository fetches the data. By passing Response back to viewmodel, you make it aware of the impementation details of the repository
 
right
hmm okay I'll keep it in mind and consider refactoring something.
 
9:07 PM
now, should you ever decide to change to volley (pls slap yourself if you do) you have to modify both layers
 
tim is right you know adam
viewmodel shouldnt be aware of how the data is fetched
 
I know he is
 
just wrap the response in another class
duh simple enough
 
so I should introduce another middle man right? Because the repository only cares about the response from the server, the viewmodel only cares about the state values, someone in the middle should map response -> state
 
yeah
 
9:09 PM
well idk because if I ever change the server side or the viewmodel, I end up changing this middle man anyways. So it sounds like my repository class is where I should put this mapping.
 
wait why?
anyway even if you dont wrap it , its fine i guess
 
well let's say I have a middle man that takes in Observable<Response<FBAlbums>> and outputs Observable<UploadState> right? If I ever change how upload state works, I might end up changing my viewmodel and the middle man. but I guess that's not always the case, I could just change this middle mapping class.
 
you should talk to joe about it. One important thing is to stay consistent with the existing code
 
also, an api call either fails or succeeds - it should be a Single
 
9:13 PM
adam what tim said ------------------------------------------------------------^
 
I'm slightly more inclined to write this the best way I can than be consistent with existing code. Maybe I set the new standard for what we should be consistent with?
That being said, even if it's not flawless, I might keep what I have for right now since it's working, finish the feature, and then refactor some of that logic out because I gotta get this done soon lmao
 
lol
 
I don't know what the policy is at OkC. I always discuss architecture with my senior
ok, understandable
 
he is the senior
 
haha well I've been reviewing portions of this feature with one of the other two devs (not my manager directly tho) and he's been giving me a lot of feedback. When I get a chance to talk to him next I'll bring it up. :)
 
9:17 PM
don't forget to call technicalDebt++ after you shove this under the carpet
 
lmao
gah I want to just do it now because I think it'll make my tests easier too now that we're talking about it
 
ok - don't mention you talked to me about it
I might have deleted 1 or 2 of his posts on SO
 
lmao
 
btw you're not a senior are you
 
Nope
lmao I can't tell if you asked out of curiosity or if that was subtly roasting my expertise by saying there's no way I got hired at a senior role lmao
 
9:21 PM
lmao
wait what adam has someone in his team who is on SO?
 
for his sake I hope so
 
May 8 '15 at 1:39, by McAdam331
Is anyone familiar with this book? http://www.amazon.com/Murachs-Android-Programming-Joel-Murach/dp/1890774715
those times when adam was a mac^
 
@AdamMc331 curiosity mostly. However also a little bit of the latter I guess. You and me both have a lot to learn before we should become seniors
 
The only difference between Adam and MacAdam is some rounded corners and an increased price tag
 
lol
 
9:25 PM
especially you
sorry man I couldn't help myself
 
lmao savage
 
in my defence, I have been serious all night
 
lmao
 
lol
 
Nah it's fair I definitely have a lot to learn. But I've learned more in my 5 weeks here than I have in the MONTHS prior. Which is really cool.
 
9:27 PM
cool
 
same for me
 
I felt the same way after leaving my old job
 
^ Yeah I worry this will plateau. Naturally that happens but the question is how soon haha
 
Honestly that's the nice but also exhausting thing about client work
always running up a steep learning curve
Now if only clients were always cool with a good budget and it'd be perfect
 
for me it was having much higher quality coworkers
 
9:40 PM
o/
 
uh oh
I found a really nice amazon bug
 
@trevor-e ditto. These two are good.
 
that I am intending to exploit
 
9:50 PM
How they picked me I don't fucking know lmao I'm an idiot.
 
I give you a lot of shit Adam but you're a fine developer, you give a shit and you're eager to learn. I wish I loved coding as much as you do. I can't bring myself to do it in my free time.
 
<3
 
you don't have to develop in your free time
you can still be good
 
I've gotten better about that. It's got a lot of positives but it's got some serious cons to it too.
 
of course
But anyone who codes in their free time pretty clearly has a passion for it
 
9:57 PM
@trevor-e for me it was having coworkers
 
when you combine that with blog posts and your real concerns about playing nicely with your co-workers code and a lack of arrogance
Those are all positive signs in a developer who should continue to grow and not contribute shit code
 
Yet he still finds a way
 
lmao
 
do you think having a masters in CS is worth it?
I'm considering one of those online programs
 
Only if it's in a specialty you really want to work in
 
10:00 PM
usually means instantly more $
 
I have until May to decide
 
what online program?
 
UIUC or GeorgiaTech
 
Both are good schools.
</UIUC Alum>
 
For the average developer experience is immensely more valuable than a second degree
 
10:04 PM
UIUC just announced a partnership with Coursera
I'd be doing it part-time while still working
 
I personally don't think value education highly. I am under the impression that I can teach myself much faster than a school can teach me
At this point in life
But I didn't graduate from high school so don't listen to me
 
oh wow I'd definitely do a online course at either of them
I'd probably do it at uiuc
 
yea that's what I'm leaning towards
is it true masters classes are easier than undergrad?
I was surprised to hear that
 
yes
100%
no pressure at all
 
wow
 
10:09 PM
a friend of mine did her masters in cs at oxford and her classes were 10 times easier than mine lmao
 
What is the cost?
 
^
 
and the theme of this blog article applies to teams in aggregate as well as to individual developers
 
10:13 PM
19k holy mama
 
Thanks for the kind words Dave, that means a lot. <3
Also I never considered going back for a masters and it hasn't limited me at all. I'm not sure if I could do even more with it, but it's not on my radar right now.
19k is about how much debt I still have to pay off lmfao
 
19 isn't that much for US schools
 
@AdamMc331 Not to mention you present at conferences. That tells me you know what your talking about. Or at least you can convince the organizers that you do.
 
wow
actually
I had no idea degrees like these existed
can anyone do them? or is there a selection process
 
like what?
 
10:16 PM
(granted you have a bachelors)
 
online?
 
Master degrees have been around for a while ahmad
 
yeah like this one
3 mins ago, by trevor-e
https://www.coursera.org/degrees/master-of-computer-science-illinois#overview
but online dude
 
yah, I saw that link
I didn't know Coursera provide fully accredited degree programs, either
I'm only familiar with their certificates. But it has also been a few years since I did much with Coursera.
 
I don't know. In a time where information is free to take on the web, I find it hard to justify paying an arm and a leg to have some institution pass me the information
 
10:19 PM
@Code-Apprentice I will in TWO WEEKS FROM TOMORROW AHHHHH
 
I don't know about online courses though
 
I have a meetup talk in 6 days too, to practice for the conference.
 
I should stop talking
 
@Ahmad The keyword is still have to pay off. I graduated with like 28k I think
 
lmao tim
that is still good adam
a friend of mine is at penn
and she has 280k in debt
literally 10-adam-degrees
 
10:23 PM
wow
 
that's nuts, no degree is worth that except med school
Georgia Tech's is only 7k
but their classes are super hard lol
 
wow those debts
luckily I am debt free
not like we have a culture of having debts here anyway
 
how do you know it's super hard?
I mean I can't complain
 
he took those classes maybe?
 
280k....
 
10:26 PM
my entire degree is 1800€
(yes you read that right)
 
fucking 280k is insane tho
 
you can buy houses for less than that
 
ikr carl? that's a decent down payment on a house
 
that's a decent down payment on a house in Seattle
 
^
yeah I meant to say that
that's definitely a house and then some in hamburg
 
10:27 PM
wow
what courses are that costly that gets a debt of 280k?
 
Dec 1 '13 at 19:10, by Code-Guru
What's coursera?
 
lol
@ColdFire they don't sell you the education
they sell you the "experience around it"
 
C-A did you ever find out? :D
 
@AdamMc331 Is that your first conference presentation?
 
yep
 
10:29 PM
ahmad i see still fucking costly
 
@CarlAnderson That was someone claiming to be a guru. I'm an apprentice.
 
i could retire rn with that amount
 
I heard the courses are hard by looking at user reviews
there's a big subreddit for GT's MOOC program
 
feels like you're moving from step 3 to 4 there C-A :D
 
10:35 PM
@CarlAnderson Did you notice that the Expert has a different gun than the First Timer?
 
I don't think it's intentional, TBH
 
10:49 PM
omg, this guy just assigned the 200 rep bounty to the guy who didn't help him
4
A: How to let EditText take as much space it needs, to be scrollable together with content above it?

Dave SYou should be able to achieve what you want by calculating the minLines based on the height of the screen. See the example activity and layout below. You'll need to type quite a bit of text to use up the minimum lines and grow beyond the height of the screen to start the scrolling behavior, but...

 
welcome to StackOverflow!
 
mistakenly assigned it
he meant to give it to me
and clicked the wrong one
 
Can a moderator do anything about that?
 
i don't know
 
10:57 PM
maybe encourage the OP to flag it and write a note to a mod
 
maybe we should just give that guy access to our chat now that he has enough SO rep
 
"Oh no I did it on the other person..." rofl
 
11:50 PM
my flag got declined, no bounty for me
 

« first day (2720 days earlier)      last day (2229 days later) »