« first day (3463 days earlier)      last day (1468 days later) » 

4:18 AM
hu
@mr5 yesterday Im found new highest value
The factorial operation
8115!
this will be the highest I think
factorial operation = n!
n! = 8115!
= 8.51905825e+28201
 
4:33 AM
@mr
@mr5 i have a question with re mvvm and service layer
 
5:32 AM
Buenos dias
Are you people still talking about your sticks?!
MVVM is awesome
 
 
1 hour later…
6:35 AM
Gud Morgon
:)
 
 
1 hour later…
7:59 AM
where is everyone?
 
8:28 AM
At home.
 
I've created a new local git ranch , made some changes and then checkedout the other branch and found the changes applied on it!
is it a bug in VS or I'm missing something in how git works?
 
8:46 AM
At home and not in chat.. tsk tsk
 
i am
ahoy mateys o/
 
@CaptainSquirrel \o
 
9:06 AM
@mshwf Depends. If you committed changes, they are then part of your branch. If you now make a new branch from that one, the new branch will also have all commits from your former branch.
Ahoy Captain O7
Your local repository is indeed a full copy of the remote repository, except you don't usually copy all the branches to your lcoal repository but just the ones you're working on.
When you commit something, it is then a full part of the repository. Push only means copy it to the server's repository.
 
@Wietlol thank you
Also anybody could tell me the difference between lock(this) and lock(object), because with lock(this) my program works as expected, yet when i substituted it with lock(object) it breaks
 
9:25 AM
With lock(this) there is a chance "this" is being used in another lock. While with lock(object) a private reference to an object could be used, ensuring your lock wont be blocked from somewhere else.
 
ok, but why there is a difference from a functional standpoint, if I substitute lock(this) with lock(locker) where locker: private readonly locker = new object();
i get very different results
 
I'm not sure, it's difficult to say wihout seeing the surrounding code but I would guess something else is calling lock(this) resulting in a deadlock
 
thanks
Also should you use two different lockers for two different lock statements or can you reuse them
 
It depends on the context of what you are doing but generally I use one lock object for one section of code. But again it really depends what you are doing
No worries
 
I usually use one lock object per type of lock I'll need, but it's usually just the one
It's nice to know you could add more later without having to factor in the removal of lock(this)
 
9:39 AM
Thank you guys
I really appreciate the help
 
No problem. Yep I would def avoid lock(this)
 
I have a collection in a class. I have an event handler triggers if the collection is changed. Is it possible to get the parent class object from the event handler ?
 
@Sakthivel depends on the parameter being passed to the event handler if it contains a reference to the collection
generally yes, you get a reference to the instance which caused the event to happen
 
class Foo
{
    ObservableCollection<int> SomeIntCollection {get;set;}
    Foo()
   {
      SomeCollection.CollectionChanged += OnCollectionChanged;
   }
 }
 
9:54 AM
ok well what's the signature of the delegate?
is a parameter passed?
 
OnCollectionChanged event's sender is ObserverableCollection<int>. and the notification event argument has oldcollection items, new collection item, index and the action performed.
@Neil no i am not passing any parameters
 
well you want the sender don't you?
or do you mean you want a reference to the instance which made the change?
 
yes, i am receiving a sender the Collection<int>
 
then I'm not sure I understand your question
 
yeah i want the Foo reference in which the collection is being changed
Let's say i have a student class with list of courses. everytime the course collection changed, in the event i only get the course collection and not the student whose courses are changed
 
9:58 AM
You could add a CoursesChanged event to the student
 
ah did you just turn a light bulb on my mind ?
please give me a sec lol
 
yeah, seems like it would be reasonable to have a Student class with a delegate for that
then you'd listen to the student, not the list itself (student class would do that for you)
 
<o
 
hola
 
10:02 AM
hallo
 
@Neil Yeah, I am rewriting the event handler with a delegate with the different parameters ! thanks
Guten morgen @Hans1984
 
Guten Morgen ;)
 
10:32 AM
Morning lads
I'm actually in my office for once
 
hopefully alone
 
Not so
But social distancing was already strong in my office anyway
There's at least 5 meters between me and the only other person in here
 
yes, we programmers are fragile creatures
 
indeed
 
mr5
10:47 AM
what does slump means?
 
context?
 
mr5
"Right now I'm in a depressed slump and..."
 
decline
 
mr5
right now I'm decline?
 
"Right now I'm in a depressed decline"
 
mr5
10:49 AM
it's referring to feelings right?
 
"as in, my happiness is at an all time low"
 
mr5
ohh
that's it
why not just say depress
fancy fancy
@Sakthivel how is the project going?
 
good morning
 
mr5
morning
what's good in the morning though
I wish to have the motivation to update my CV
and create an online portfolio
 

« first day (3463 days earlier)      last day (1468 days later) »