« first day (3155 days earlier)      last day (1793 days later) » 

1:00 PM
@MwBakker Here is my suggestion and what I would do in your case. First, consider if you really really need multiple threads to do the work. I would rather create a Thread() in a separate class, keep it alive using a while loop, create a runnable, put your for loop in it and post it to that thread
 
your code is faulty btw. It's gonna return an empty list always
 
Also, you would be facing callback hells with Threads()
So a no no for me
 
that stage of summer where i need a coffe to keep me awake and a lemonade ti refresh me
 
@TaseerAhmad that is the issue, if I work with notifyAll() I probably won't
@TimCastelijns which code do you mention? Mine does not return empty
 
createStorageUIList
if that does not return an empty list then the executor is running on the main thread
or some side effect is happening
 
1:04 PM
This happens in the viewModel
storageRepository.getStorageUnits(executor).observe(owner, storageUnits ->
        {
            storageListAdapterObsv.set(new StorageListAdapter(storageUnits, mainViewCmdHandlerCallBack));
        });
Executor creates a new thread so I dk what you mean "running on the mean thread"
 
4 mins ago, by Tim Castelijns
createStorageUIList
this guy does not wait for the executors to finish, it returns immediately
 
Does not executors only run on the thread that called it?
IF UI thread called it, it would work on that thread?
 
idk I don't use any of these primitive apis
 
primitive? What would you use then?
@TimCastelijns ok I am going to see how I can make it wait for it to finish
 
"caller`s thread", which would UI in your case...right?
 
1:10 PM
I would use either rxjava or coroutines
 
I shouldn't have asked, I have no time to transform all the processes to that anyway
 
@MwBakker don't spend much time on it. If you say it already works and does not return an empty list, fine just keep it that way
 
it no longer works as it should now I added count values to it
It works 50/50
I get half a list or no list or a full list now
Unless I put the executor.execute inside the for-loop but this does not feel right
@TaseerAhmad I don't get it, without the use of executor I get the message "doing X on the main thread may potentially lock the UI waiting for ..." so it then creates a new thread I assume
 
Since you can`t reverse, do it the dirty way then. Create a thread and put that for loop in it
 
@TaseerAhmad this creates 50/50 results, either half a list, a full list or empty
Putting it inside the for-loop works, but may use too much resources of the device
 
1:15 PM
don't worry about resources
 
@MuratKaragöz he's jacked!
 
I can't have an app that uses 90% cpu or 80% RAM
 
Not in your control
 
you're gonna put this app away soon and never look at it again, unless you want to force sick days
 
A shit cpu will likely work at its max freq
Just make it work, you can learn the cleaner development when you write your own apps
 
user443346
1:17 PM
Every CPU works at it's max freq tho.
 
@TimCastelijns this app will be used in a company and I won't throw it away I still have weekends or evenings
@TaseerAhmad I can die by a bus tomorrow, why wait?
This sounds like my school "don't care about the product bro, just get your grades"
Can't sadle up my employer with instability
 
he's not your employer
 
@Jordy Nope, that depends on the kernel config used. But in usual unconfigured devices, a shit cpu, say dual core has max 600 Mhz freq. The kernel will make the CPU run at max freq most of the time to do work because the CPU is trying hard to create a smooth experience
 
also depens on CPU's governor
 
1:20 PM
or would that fall under "kernel config" I think so
 
do focus on functionality now, and if you have spare time at the end, improve performance
 
Test it yourself, play a game on a shit device, see how much heat it generates compared to a premium device thats running the game on its pinky
 
user443346
@TaseerAhmad I know :P but that doesn't change the fact that every CPU does work on max freq
 
@Jordy Tldr ; Depends ;)
 
@TaseerAhmad Or use a custom kernel and set the type of governor yourself on depending situations
it's how I was able to use my Xperia Pro for years after fashion ruined phones
 
1:24 PM
I already modified my device to its full extent
 
what is the next issue mw?
 
performance
Component_overview is barely useable when it has < 10 items
 
@MwBakker Ofcourse, you hook them with a just working version they would be most probably happy
 
I also get a lot of "skipped x frames! your main thread is prob doing too much work"
The counting part of the items, since I did no longer include those in the sql queries, now require an extra call to the db thus it makes me use executor a lot and that is worrying me
 
o/
 
1:28 PM
My app also consistently says 32-33 frames skipped on every app start even though all the heavy/mild work is done on background threads, I suspect it could be because of UI generation
 
@TaseerAhmad ??
The fact devices now can handle more does not mean I should not care about efficient use of resources
I mean all of you take this in consideration too, I may just be a student but still
 
@MwBakker The fact that you have not started the newer way of development means you should least care about resources :P
 
it does mean that you don't have to care as much as 20 years ago
 
Focus on getting the things done, you are already ahead of dead lines
 
sure but the only thing I could still learn from this entire thing was MVVM and best practises
 
1:32 PM
What it is
 
@MwBakker Thats improvement, now apply the learnt practices + learn newer stuff in your own app
I learnt Android on a notes app, I am still working on it since last 9 months
Now I am cleaning off the debris created while learning
So, focus on getting things done, that should be the priority especially when you are learning
 
everybody's first app is garbage, don't worry about it
 
^
Well, I will go out for a "Le big mac"
bye \o
 
user443346
My first app was blyatiful. It contained Realm so it was perfect.
 
@TimCastelijns this isn't my first app
My first app was a Xamarin.iOS app
Second was a C# Forms app, both still in use
And that thought alone motivates me
 
1:38 PM
ok your first android app then
 
But why should it be garbage if I can try to prevent becoming that
 
because it's inevitable
 
I solved the issue by putting executor.execute inside the for-loops setting the count values of the object
 
it's not a realistic expectation to make an app that looks good in both UI and code on your first try. You basically know nothing, how are you supposed to learn everything in 1 go
 
@TimCastelijns but I used databinding, MVVM and all kinds of quite recent manners of architecture I don't get it
 
1:41 PM
> I used databinding
:)
 
I have rebuild this app from the ground off at least 3x now, hence the huge delay I have and loss of motivation
I refuse this to end as 'garbage' I rather catch a bullet
 
then get rid of it already and start something new with everything you learned
 
let me rephrase then. It's not garbage, it's a playground
 
It's going to be used, it's going to be operatble.
 
why did you finish this sentence with a dot?
 
1:43 PM
I think he just asserted dominance
 
another way to say your are stupid
 
dot intended
 
@TimCastelijns that's how I perceived it as well, it shook the whole open space where I'm sitting
 
"you are stupid" "first app is garbage" what exactly is going on here
 
> It's not garbage, it's a playground
 
1:44 PM
😂😂😂 mwb is back on protest mode
 
It's reasoning why performance and usability is important for this since it's going to be used
 
Mornin babes
 
sup bb
 
Mornight folks
 
@MehdiB. At my first two internships I heared the exact same thing, it all doesn't matter you get paid but deliver whatever. It doesn't work that way to me. Result is they are still happy about the product I delivered
 
1:48 PM
fair enough, but how do you know what the usability is like, they haven't seen the app or given feedback yet right?
 
not much, hung over today v_v saw the basketball last night at a bar and ended up not getting home until around 1
 
If I followed that "advice" of either school or friends they would have not had such product but I would still got the money. Makes no sense to me
 
got rejected by two girls while there
was fun
 
@TimCastelijns Straving for it, that is the playground part. Not saying it can be perfect but at least it should be doing its job and be used for at least longer time than the development process it took. I thought everybody on this room had that mindset
 
@MwBakker realistically, on an internship these are the ordered priorities: Learning - Having a working product - Having a stable and production ready product
 
1:51 PM
Exactly
 
no one expects the latter from an intern mwb
 
But why is going for all three creating this resistance, making me a "protestor" or such
 
because you're risking your ultimate goal of graduating
 
because it is (fairly) unrealistic to expect to do all 3 on your first try
 
btw the execuor issue is actually harming the retrieval of the List, putting it in the for-loop does not seem to solve it after all
@MehdiB. I am, but if at least the app is being used I can look back at that positively
at least that, no basic electronics, -500 euro extra college money loss, no money from the internship.. but at least the product is being used
You see why I am so stubborn in it? It's the least I have on this loss of time
 
1:55 PM
I do not see. Basically you are paying them to let you make that app
 
it now comes to that yes
 
@MwBakker actually I disagree on the approach, for me, if I had this "not so good" list, I would try to minimise the damages and stop that asap, instead of appending failure to graduate on that list
 
they don't care about you, why would you care about them?
 
What is the tl;dr
 
@MehdiB. I promised and app, and I did not want to break that promise
@TimCastelijns integrity
 
user443346
1:57 PM
Sounds like you putted too much hay on your fork
 
@MwBakker no offense, but no one expects so much from an intern, unless: 1- you have no experience on projects and how IT delivery works 2- you're an abusive exploitant boss
 
I know, I don't blame anybody else but myself ofc
 
don't let me hanging
 
He won't
That's apparently the issue here
He also won't leave the company hanging
Guess we'll find out if he likes the company more than he likes you, Murat
 
?
 
2:02 PM
!
 
anyway the app is nearly done, I already showed it to the company and he was happy about it all just had to add the counting part
 
nice
 
By tonight or tomorrow I'll hand over the entire thing (inc report) to school
and then on the hunt for the graduation internship asap
Then I have 3 apps and a website being used, enough motivation again for me to finish everything
 
I didn't even know you were in school still
aren't you like 30
(not actually)
 
we are all, in the school of life
 
2:08 PM
u shut ur mouth tim!
Timothicles the Wise
 
Our interns are some of our strongest performers
 
user443346
I really want to flag your comment in revenge to all the people who've flagged me
 
But then, we get the best interns
 
@Jordy me?
 
user443346
Yes, being rude to my Realm God.
 
2:10 PM
Dont be a dirty little snitch bro
Tim knows I was kidding
(I hope)
 
user443346
That's an assumption
 
user443346
1 thing we learned at the office, never make those
 
I actually thought you were serious bb, and I therefore flagged it
 
welp
I tell all the people I like to shut their mouth
It's a really endearing quality I've heard
 
@ballBreaker 25
 
2:13 PM
@MehdiB. I probably shouldn't assume things within my tight circle of friends IRL is universal lmao
@MwBakker yeah that makes sense
 
@MuratKaragöz thought you were my bro, bro
 
@ballBreaker No, 25 is pretty old to be still in school here
 
@ballBreaker are you trying to convince us that you have actual friends IRL?
 
Okay makes sense
@MehdiB. FLAGGED FOR RUDENESS
I have proof
 
2:14 PM
@MuratKaragöz "another way" which other ways :(
 
@ballBreaker FLAGGED FOR SHOUTING AT ME !!!
 
I meant that the dot positioning was a way of saying you are stupid, but not writing it out
 
I graduated at 26
 
most of my colleagues have graduated at 28
 
@TimCastelijns WO or HBO?
 
2:16 PM
Look how many friends I have
 
@MuratKaragöz still hurts
 
Damn guys, I graduated at 21
lol
 
It makes me sad to think I'm 27 in a few weeks and I've been working for almost 6 years
 
I will also graduate at 26, bday in September
 
2:18 PM
I worked fulltime from 19-21 though
 
@ballBreaker same, but many countries have different systems, and they prolongate happiness of their people by delaying them from the professional word as much as possible :D
 
Yeah I jelly of that
I miss school
 
look how messed up you are :/
 
(sort of)
 
@TimCastelijns ah ok, I only worked one year full time. Furheron I worked sidejobs
 
2:19 PM
(i'm just kidding bb)
 
@MehdiB. It's okay, I go cry now
 
not in front of your colleagues, you'll look weak
 
@ballBreaker protesting is more fun
 
2:31 PM
@MehdiB. I cry in their faces to assert dominance
 
        executor = Executors.newSingleThreadExecutor();   is like Schedulers.single() on RX am I correct?
 
as the name indicates, newSingleThreadExecutor creates 1 thread, not a pool and therefore no multithreading
 
But that would be 1 single thread + the main thread running parallel
How is that not multithreading
 
yeah I was talking on the context of the Executor not android
 
Schedulers.single(): Returns a default, shared, single-thread-backed Scheduler instance
 
2:39 PM
@MehdiB. but so in my context I do perform multi-threading
 
yeah, you're basically using a fancy way of doing new Thread.start
 
yes
I think what Tim said about the list not waiting but delivering is spot on to my problem
Although in ComponentsOverview the list comes to show two seconds after the activity is started (with > 10 items)
 componentRepository.getAllComponentCategories().observe(owner, uiComponentCategories ->
I guess the observe method waits?
 
it observes
 
^
on the bang timmy
 
of whom
 
2:56 PM
@TimCastelijns I know but I always get a list there, while nothing waits for anything. So its just because the adapter recieves a notication?
 
I'm starting my first german lesson tomorrow
 
user443346
Gutentag freund!
 
user443346
Could give you lessons for free.
 
you speak german?
 
user443346
Aber naturlich
 
3:01 PM
das ist gut! lucky you
 
user443346
Not sure if that's lucky
 
it's always positive to have multiple languages
 
user443346
Not if it's German :(
 
user443346
 
user443346
This might be the most fucked up image I've ever seen xD
 
3:08 PM
Ahh good tendy
Gotta keep the ratio high
When it comes to kids, gotta keep the save/goal ratio high and the KDR
 
3:25 PM
there's even a post about it
6
Q: Did Oliver Kahn deny children's penalty goals and thus, charity money?

OddDevThere is a claim on Reddit, originally from Twitter, stating that Oliver Kahn denied all penalties from children, even though every goal was worth charity money. Original transcription: Currently reading 'Tor!' which is a book about the history of German football. Discovered that Oliver ...

 
I am back
 
Nice
I wonder if his kill death ratio is as high as his parry ratio against kids
 
user443346
RIP OLIVER
 
@MehdiB. irl leeching
 
3:31 PM
Do abortions count towards your IRL kill death ratio?
:thinking:
 
user443346
Not in my opinion
 
Does the manner of which the abortion is performed change that opinion
Or like what if the baby gets popped out and the second it's out you roundhouse kick it across the delivery room
Does that count?
 
user443346
xD
 
user443346
that's murder you idiot
 
lol
 
3:33 PM
At what point is abortion considered murder then
Is it post-crowning?
 
@MuratKaragöz we should go sometime :D
 
If a baby gets born and you push it back in, and then abort it, is that murder
I mean, I'm genuinely curious
 
@MehdiB. darf ich dann auch dein(er)(em)(en)(??) Klasse mitmachen?
 
absolut!
 
Apr 16 at 11:50, by Tim Castelijns
Jan 23 at 14:41, by Tim Castelijns
Dec 11 '18 at 11:04, by Tim Castelijns
Apr 19 at 21:21, by Tim Castelijns
Aus bei mit nach zeit von zu
 
3:42 PM
I still have a few words I never got the chance to use, under my sleeve: ausgang, eingang, allest ist gut, scheisse, [redacted]
 
> fick dich
#flagged
 
scheisse you got me
 
oh man I didn't even know what that translated to when I said that
lmao
 
m`lady
 
Zum mitten zum Titten zum Sack tak tak
is "cheers" translated in German
 
3:53 PM
o/
 
lol 400 new messages
are you guys doing anything or just chatting all day
 
latter
 
4:09 PM
geister
 
well it's a chat room ivan, we should put it to use
 
did i miss anything? :)
 
I googled it, but I think I have the search term wrong, why is above not allowed but below is in my gist?
 
those new line brackets -_-
 
@IvanMilisavljevic I can't give you a TL;DR because frankly everything that was said was so good, we wouldn't do justice to all the messages we wouldn't have included on the TL;DR
 
4:16 PM
@IvanMilisavljevic I talked about the philosophy of abortion for a bit
 
@IvanMilisavljevic I cried a little when Murat said I was being stupid
 
did you get the reference Tim?
 
Tim is not a pointer
 
haha epic, i guess il have to read all 400 :()
@MwBakker how do you mean its not allowed
 
@MwBakker Dont work on giving your school a 'perfect' app, dont let them take the credit
 
4:20 PM
@IvanMilisavljevic won't build
@TaseerAhmad it's for the employer
 
@MehdiB. I got it and I loved it
 
nice job Olav :D
 
@MwBakker would this.uiCompany make any difference?
Oh wait, nvm I thought the top wasn't allowed
 
I dk why the above should not be final
 
From ep1?
 
4:24 PM
yes
 
is it because if the class holds the field rather than the method, it has all the time to get assigned/filled ?
and if the method itself holds the field, the method may end sooner than the assignment?
 
I'm not sure how android works very well I'm not the right person to help
 
> - So tell me! Where have you been? What have you done? Any good stories? Any special moments?
- Lots of special moments. It wouldn't be fair to all the other moments if you should bring up just one. Because they were all so awesome.
 
@MwBakker you could go with bottom one if you declared uiCompany as final. Thats because anonymous classes get the copy of the local field and it has to be immutable to avoid ambiguity
to learn more about anonymous classes read this docs.oracle.com/javase/tutorial/java/javaOO/…
 
but why can a regular class field be immutable in that scenario?
 
4:42 PM
You should use Kotlin after this app
 
^
 
TL;DR
Anonymous class can access fields in its enclosing class
Anonymous class can;t access fields in its enclosing scope

You ask why?

In the first example anonymous class can use the reference of `uiCompany` because its lifetime is tied to its parent (`UICompany`) and it can be 100% sure its going to be there even after `setViewModelElements` returns.

In the other case `uiCompany` has local scope (meaning its going to be destroyed after `setViewModelElements` returns.

By making them final, compiler knows it can use those values (because they are more like constants in that scenario)
lol i really suck at explaining stuff
 
no you don't suck at that at all
 
Its been 23 hours and I am awake >.<
I think I have transcended above human needs
 
Thank you, I assumed the "it's lifetime is tied thus 100% sure that" but now it's even more clear
 
4:50 PM
my writings skills are a little bit dodgy thought
yeah no probs
 
Clear as day to me now
 
When you forge your weapon, you need 3 things. The right metal, temperature over 1400 degrees and someone to watch the kill...
 
btw you should really switch to kotlin. Its going to make your life 10x easier
@TaseerAhmad sounds familiar...
 
@IvanMilisavljevic Method man
 
I was wrong :D
 
4:57 PM
Well, I don`t know from where that is from as well, I was listening to a remix and at end a guy said that
I just post random shit
 
@IvanMilisavljevic project is nearly done now
 
Its the perfect time to rewrite everything from the ground up ;)
 

« first day (3155 days earlier)      last day (1793 days later) »