« first day (3791 days earlier)      last day (1140 days later) » 

4:55 AM
@Squirrelkiller hey man! @orgg, need any help? Just ping :)
 
5:21 AM
Good morning
 
mr5
6:14 AM
Does anyone find it much harder to communicate or develop relationship among your new colleagues in WFH setup?
 
 
1 hour later…
7:32 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
8:25 AM
Good morning
@mr5 Fortunately I stayed with the same company, but I can imagine the complications.
 
mr5
8:39 AM
it's so awkward lol
or maybe it's just a cultural thing
I think westerners have it easy since you guys are very talkative or can express clearly the message.
 
meanwhile in western civilization: "I aint got no time for no shit."
while (true) {
    try {
        message.convey()
        break
    }
}
 
8:54 AM
@mr5 It helps if your society isn't very hierarchical
 
mr5
9:17 AM
A lot of tick marks here
I'm kinda individualistic person though. I'm so not fit in collectivism
Individualistic/selfish kek
 
@mr5 It depends on how an organization is structured, and the size of that organization. A non-hierarchical organization doesn't necessarily mean there's no individualism; on the contrary. Playing to every individuals strength and forming a team around that works well.
 
9:44 AM
Anyone know if JSON.NET or something has a short hand for string.Equals(JsonConvert.SerializeObject(input1), JsonConvert.SerializeObject(input2))?
Like, I just wanna compare two way too deeply nested objects
 
@Squirrelkiller DeepEquals?
JToken.DeepEquals(a, b)
 
Ah nice, thanks
Wait no that doesn't take objects
 
mr5
get the persistent hash code of the strings and compare those instead?
 
Then I still have to make the strings myself
 
mr5
yeah. at least you didn't compare it "by string"
 
9:56 AM
I hoped there'd be something like JsonConvert.CompareObjects(input1, input2)
What's the downside of comparing by string, aside from international problems?
 
There isn't any if you serialize both under the same rules.
 
I'm just trying to figure out why out DTO seems to have the exact same data structure in two different places
Like
{
  "HouseHold":
  {
    "Customer": {data}
  },
  "Customer": {data}
}
So at some point I can go "why the fuck do we send the costumer twice?"
 
mr5
Is the JSON generator EF?
maybe because of those reference needed to build the relationship during OnModel<something>
 
The Json generator here is Newtonsoft
JsonConvert
 
mr5
newtonsoft?
 
10:04 AM
...has newtonsoft already been forgotten?
 
mr5
lol maybe just me
try passing a json settings:
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
but its from DTO
so it must be the query at fault
 
...fault?
What fault
I just want a short hand so I don't have to write JsonConvert.SerializeObject myself
twice
 
mr5
oh
I thought you are referring to the duplicate customer here:
8 mins ago, by Squirrelkiller
Like
{
  "HouseHold":
  {
    "Customer": {data}
  },
  "Customer": {data}
}
 
24 mins ago, by Squirrelkiller
Anyone know if JSON.NET or something has a short hand for string.Equals(JsonConvert.SerializeObject(input1), JsonConvert.SerializeObject(input2))?
The duplicate customer is because our codebase has been growing since 2006 and sometimes people just add another property here and there so now it's a clusterfuck
Client is in AngularJS, so the JS is where the most clusterfuck originates.
 
@mr5 although, comparing by string is probably still faster
and more reliable
 
mr5
10:13 AM
yeah
how does case sensitive & encoding sensitive comparison works?
if the if logic is much complicated than this one: stackoverflow.com/a/5155015/2304737
then persistent hash string would be faster
 
C# strings are all UTF16 so encoding is not an issue
Pretty sure the default just goes myString.SequenceEquals(myOtherString)
 
Lol that's some magic code there microsoft
 
mr5
ah no, string comparison is still much faster
since on the first time it will find a difference, the loop will break, whereas, hashing it would be linear time
 
the default also compares the length first, which solves most cases of inequality
 
mr5
10:27 AM
ah
they finally figure out the solution for inequality!
 
10:45 AM
@mr5 Woah, finally.
 
mr5
peson1.length != person2.length // inequality!
we riot!
 
Another question, about automapper
So, we have way too many too big automapper configs, and now I have to deal with it
There is a config basically going dto->model, then another one let's say customerDto->customerModel, with the dto/model having a property of customerDto7customerModel
So two maps: <Dto, Model> and <CustomerDto, CustomerModel>
Sometimes though there is no customer, so the CustomerDto has a property "Exists" set to false
Can I tell automapper in the <CustomerDto, CustomerModel> map to just make a null if CustomerDto.Exists is false?
 
For now, I'm doing this: stackoverflow.com/a/35293514/4364057
Ah nice
The condition call is better
Thanks
 
11:03 AM
ew, automapper
 
or just not use a generic mapper
 
mr5
highly customizable
 
It sounds great in the beginning "they have to build the API as we tell them, so the DTO's will always be the same as our business models anyway!" And now look what I have to do :/
 
we just use extension functions
 
11:05 AM
Yup me too
 
PersonDto.ToModel()
Person.ToDto()
assert personDto.ToModel().ToDto() == personDto
implementations just invoke the constructor of Person and PersonDto classes
if you add/remove/change a property, it just throws a compilation error
if you are missing a function, it throws a compilation error
if you failed to implement either functions correctly, you get a unit test error
if it builds and is tested, it works
and you only use technology that is already common knowledge
invoking functions, invoking constructors, assigning values
not wrapped around a new abstraction layer defined by some weird library
 
@d4rk4ng31 Hey! Yeah, I could use a few pointers still for using session variables - all examples online seem to use HttpContext which I can't get working ("session" does not exist.. "httpcontext" does not contain a definition for "current"). I thought about using DI and creating a session service - is that the right approach?
 
mr5
11:26 AM
what the heck is this unit
which is more high quality than the two?
600x300 > 1200 though
mathematically
it looks like its 1200
since it's taking slower
 
600x300dpi wtf
Time for a bug report
 
mr5
oh god.
it's taking too long
for 7 minutes, 1/8 of the page has only been printed.
 
mr5
this printer sucks
I need to sell it
 
11:42 AM
Depends. How often do you print?
If you print like once a month, fuck it
 
mr5
yeah, I only bought this because I need hard copy of the documents I'm going to deliver to my new employer
 
Fuck it then. Get a coffee, do other stuff, take your finished copies in an hour.
 
@mr5 "could you please print your 90 page essay and hand it to me tomorrow?"
"uhm... you see... there is a problem with that... it takes 40 hours to print it :)'
 
mr5
lol
actually, they requested the documents 2 weeks ago
and I'm only printing it now
ha! they better wait :D
it's printing fast when I set it to 600x300. I just got curious what 1200 dpi looks
 
12:10 PM
I mean, 1200dpi is pretty damn much
 
12:32 PM
@mr5 you probably wont notice the difference
300 vs 1200 would print 16 times faster, I think
 
 
2 hours later…
2:44 PM
୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ cap or riot ୧༼ಠ益ಠ༽୨
period !
 
2:59 PM
Jack, kys
 
Roberta Arcoverde on March 03, 2021
In order to get the most performant site possible when building the codebase for our public Stack Overflow site, we didn’t always follow best practices.
 
who cares
!~shiba
 
I'll free you !
!~shiba
 
3:06 PM
good
 
Good job
Now put him back in
!~shiba
 
He doesn't konw where he's going
 
hes on a rampage
only cap can save us
 
mr5
which is better: Novel Practice or Best Practice?
 
3:24 PM
Best Practice
 
cats
 
Per definition, best practice. There can be no better than "best".
 
yeah. Basically Ham Vocke and Jarrod Dixon say they are too L33T to use best practices. They are above that, so they have to come up with a new name better then best
 
mr5
💯lit practice
 
4:12 PM
man I feel like I've dealt with dictionaries wiping themselves clean before, but mine's doing it again 🤪
hell ya I fixed it
 
13:37
!~shiba
 
not again...
 
ummmm
 
(yes, that's a dictionary wiping themselves clean)
 
4:47 PM
holy fug I've had this one project basically done for over a year now and it STILL isn't considered "complete" because the dept head wont' look at it 🙃
 

« first day (3791 days earlier)      last day (1140 days later) »