« first day (3858 days earlier)      last day (1073 days later) » 

3:55 AM
@DuckLing, Thanks. Also, I need help debugging this
 
 
3 hours later…
7:15 AM
Anybody there?
 
 
2 hours later…
8:50 AM
 
9:02 AM
Hi all,
Do you know a book that teaches backend with ASP.NET Core?
 
[Captain Obvious] I don't know any programming books lol
 
 
2 hours later…
mr5
11:22 AM
o/
has anyone stumbled upon multiple properties of ViewModels and think it would be nice to convert all this properties into aggregate model
I would want to avoid to use a tall switch in this regard
observable.From(this) // 'this' is INotifyPropertyChanged compliant
	.On(it => it.PropertyName1, DoThis(it))
	.On(it => it.PropertyName2, DoThat(it))
	.On(it => it.PropertyName3, DoThose(it));
 
12:10 PM
what's the difference between Output directory and Publish directory?
i know they're result of different commands dotnet build and dotnet publish but I'm not sure of why... need to get basics right I guess
 
12:37 PM
[Captain Obvious] I'm not sure
[Captain Obvious] That seems reasonable though
 
 
1 hour later…
mr5
2:08 PM
observablePropertyChanged.Observe(this)
    .When(it => it.SelectedCountry, HandleSelectedCountryChanged)
    .When(it => it.SelectedRegion, HandleSelectedRegionChanged);
was thinking of changing the names like this
 
Hey @mr5! How's ye?
 
mr5
hey
 
:D Solved yesterday's issue. Pretty stupid bug XD
 
mr5
which one?
 
the one we talked about yesterday?
umm... it's d4rk4ng31. I changed my username😂
 
mr5
2:10 PM
ohh
 
lol
 
mr5
right
that's a cringey name. good that you changed it ^^
 
now off to an evening of headbanging (or maybe classical)
@mr5 I just didn't have the time to change it :D
 
mr5
did you name that account when you were teenager?
 
umm... yes😅 How did you guess?
 
mr5
2:12 PM
lol
are you attending a headbanging event?
 
you listen to music while coding?
 
mr5
nope.
I can't focus when listening on music
 
@mr5 nope. Never attended one actually. Though I do wanna see cannibal corpse live
@mr5 listen to music without lyrics. I listen to psychedelic or indian classical when coding. Helps you concentrate
What kind of music do you listen to anyways?😂
 
mr5
I don't really have any preferred genre. Any pop music or anything that's catchy would do.
 
that's like the opposite of metal
or even classical😂
 
mr5
2:15 PM
even if it's just instrumental I would be distracted.
 
oh! lol Ever tried any other genre?
 
mr5
I do also like those genres.
 
which?
metal and classical?
@mr5?
 
mr5
examples are canon, brahms (?), fantasie impromptu, ...for metal: cradle of filth, nirvana, ...
yeah
 
cradle of filth is the best symphonic/prog metal band
nirvana is good too
Ever tried one of the more extreme styles?
like maybe bloodbath or cannibal corpse?
 
mr5
2:20 PM
I think I have listened to some of their music but I don't really find them catchy.
or maybe I am just bias because I always like the songs I listened to when I was younger.
at least most of it.
 
Well, if you like horror, Tomb of the mutilated is a good album by cannibal corpse. It's from the viewpoint of a sick depraved serial killer. It's pretty well written (to the point where the singer begged the writer not to make him sing those songs anymore)
@mr5 oh! well, in my case, most of my music phases did not last more than a year. My exact journey is EDM -> pop -> kpop -> rap -> death metal -> power/heavy metal -> western classical/indian classical
 
okay, well to give an example, one song is about pedophilia. Know the worst part? The real horror is at the end, when we hear children. And what's more is that it's based on a true story.
I mean, how do those assholes even live with themselves??!!
 
mr5
wtf
is the song even published?
 
yeah, I know!
yes.
 
mr5
2:27 PM
no criticism?
 
1991 man! Banned almost everywhere
@mr5 And the worst part being, it's based on a true story
anyways, gotta go to dinner now (Oh! thinking of turning vegetarian this month)
you there?
 
[Captain Obvious] oh snap I missed a convcersation
 
lol
nothing important if you don't wanna spend a sleepless night :D
 
[Captain Obvious] I just read back over it
 
lol
 
2:38 PM
[Captain Obvious] Nothing of value was lost
 
true that :D
 
mr5
fuuuuuuuuuuuuuuu
I published my library with a bunch of bugs
 
[Captain Obvious] Yeah and
[Captain Obvious] The day ends in a y, so what
 
mr5
3:01 PM
values.FirstOrDefault(errors => errors.Any(message => !string.IsNullOrEmpty(message)))
this is shit but at least it would fix the bug
 
 
1 hour later…
4:27 PM
@mr5 what library did you write?
 
mr5
property validator for MVVM
 
why not use something like Fluid Validation or the built in ones?
it's a genuine question btw
 
mr5
because I feel like writing my own. I actually didn't know that library existed but I'm glad I didn't since it might influence my design.
 
4:45 PM
fair fair
 
mr5
have you used that library before?
 
yeah, it's pretty neat
kinda resembles automapper
in the setup process
 
mr5
can you make a quick judgment/comparison with mine please?
I want some comments on how I can improve mine.
 
my memory is vague but sure, send it over
 
mr5
take note, mine only accepts model that is INPC compliant.
 
4:53 PM
i see, never used that interface as far as I know... is this a change detection result/form in xamarin or wPF or something?
 
mr5
yes
it propagates the changes from the property to an event
 
I don;t know how FV would work with that, I do web dev
so i guess I can't really tell
I kinda prefer the fluent syntax like
```
public CustomerValidator() {
RuleFor(x => x.Surname).NotEmpty();
RuleFor(x => x.Forename).NotEmpty().WithMessage("Please specify a first name");
RuleFor(x => x.Discount).NotEqual(0).When(x => x.HasDiscount);
RuleFor(x => x.Address).Length(20, 250);
RuleFor(x => x.Postcode).Must(BeAValidPostcode).WithMessage("Please specify a valid postcode");
}
```
bloody hell. i keep forgetting how to format code here
anyway
prefer the above over, say [...].AddRule(e => e.EmailAddress, new RequiredRule(), new LengthRule(100), new EmailFormatRule());
 
mr5
FV?
a button will appear in the text field if you make a multiline "Fixed font"
or you can format it manually by prefixing it with 4 spaces before posting your comment.
 
Fluent Validation
I do like the delay concept in your library
thoughtful
 
mr5
@DuckLing yeah FV syntax is more compact, like every details for the specific validation can be seen in a single line.
@DuckLing yay!
any negative feedback aside from the setup flow?
 
5:04 PM
XML comments but i see you already got that as an open issue
do you use StateModel?
or do you have to explicitly inject that validation service into your controller
 
mr5
what is StateModel?
 
that's a no. haha
 
mr5
it's meant to be injected though
 
I see
 
mr5
depends on the developer actually
 
5:11 PM
in asp.net web apps you can wrap your controller method with if(StateModel.IsValid) to control the flow
 
mr5
if they have IoC, it's better but it can be used without it.
 
that's built in
 
mr5
oh well, this is not built for ASP so it has no reference for that.
 
Fluid Validation is implicit. you set the rule for the model in a separate class (think Profile in automapper) and it plays along with the build in validation
 
mr5
and I doubt that is a good way to validate the state of the whole page.
 
5:13 PM
I can only compare to what I know, I'm much unknowing when it comes to mobile/desktop development and patterns used there
and I barely ever used delegates and events
 
mr5
@DuckLing kinda same with how my lib is behaving
oic.
I'm not sure if Blazor can use INPC, if so this library can be used there.
but for Razor, I don't think this will be useful
 

« first day (3858 days earlier)      last day (1073 days later) »