« first day (1620 days earlier)      last day (2529 days later) » 

3:04 AM
A question regarding wpf - MVVM twoway binding, the interface INotifyPropertyChanged will notify the property changes to the UI elements. Who is responsible for/ who will notify the changes in UI elements to the properties.
 
 
7 hours later…
10:09 AM
@un-lucky WPF uses your property setter for modifying the bound properties, so you can do all the necessary updates there
 
11:02 AM
@Borgleader Sorry about this late reply - just caught up on transcript over weekend.. EFCore is meant to ease this stuff and has a fresh sqlite driver as first class citizen. If you're writing a fresh app, I'd highly recommend checking out EFCore (Entity Framework Core) instead of EF6 .. EFCore isn't an upgrade from EF6 but a port.
 
11:37 AM
@KristopherRuzic While I'll echo Johan's comment about mutable properties without notification as a bad idea - I'd say you should remove mutability from the equation as a habit. With ObservableCollection<T> { get; } = new ObservableCollection<T>(); is the way to go, for example. There's no reason to modify this property - just use Collection.Clear() when you want to freshen it.
Morning Alex
 
Morning, all
 
:) think it's only you and me right now
 
No worries
 
11:52 AM
@Maverik Thanks, I'll take a look at that (definitely a fresh application I started a week ago)
 
you're welcome.. Microsoft's been aggressively demoing EFCore Sqlite driver in a bid to convince folks that they're serious about cross platform
you'll likely need to read one of their UWP samples to see it's code in action
also, EFCore has interchangeable drivers.. so unless you're writing some driver specific sql / code -- you can create stuff on something easier and then deploy to other.
Also regarding your question on schema versioning: EF & EFCore have excellent support for it via Migrations
Up() & Down() in each migration give bi-directional change control and though they're initially generated by tool by auto comparing your schema changes, you're free to tinker with them if you feel the need
@JohanLarsson I left you a PR on github for Gu.Reactive's Readme -- strangely I can't see it anymore neither can I see the changes committed - any idea what happened?
nvm - my bad .. I noobed out and PR'ed against my own fork >.>
jeez..
reissued PR against correct repo now :)
 
Awesome, thanks!
It is broken on appveyor, I have a huge hack for simulating dispatcher.
Gonna be painful to fix I think
 
12:09 PM
Yea I noticed the broken build badge but since this is only readme change, I figured I can offer the change anyway
 
I merged it blindly, you are operating in full trust :)
 
lol thanks.. it should be fine :) the links I fixed were working when I issued the commit
main change for them was updating title to match link like from FilteredList to ReadonlyFilteredList
 
oh, yeah I dumbed that one
 
np.. I assumed you refactored and forgot to update the link
 
12:12 PM
was a trivial fix.. so happy to PR :)
 
I generate TOC using ^ (a hack tool)
 
O.O Nice
well that'd explain why some of the links were making sense xD
 
but remember now I did not generate after last update
 
all your <T> were broken mainly because --t isn't working
github is only taking stuff before <T>
 
@Maverik Not exactly nice if you read the code, written full ad-hoc style
 
12:13 PM
no the fact you wrote a tool to do a job for you .. that's neat :)
sadly very few have this attitude and it feels good to see the exceptions :)
 
doing it manually is not much fun
 
i can imagine.. no the tools done a pretty good job imho
 
It is actually pretty nice, just open the readme and click refresh after each change
Then paste the generated markdown
or generate it once after editing the readme
 
here's an idea: add command line option to it for refresh and add it to your pre-commit hook on git
no need to remember it yourself
 
:)
not a bad idea at all
 
12:20 PM
i'd apply it in .git/hooks/pre-commit
that way you can see updated readme as you're about to commit
actually no.. pre-commit makes more sense
 
1:09 PM
'morning-ish
@Maverik All your <T> are belong to us?
 
I think the brits are gonna want some t
 
1:29 PM
i just had some coke - does that count?
@LynnCrumbling power overwhelming ;)
@SteffiKeranRaniJ if you don't mind bleeding edge they run EAP builds every now and then that have their own independent trial time and it extends from build to build (and generally only stops once the EAP version has ended only to begin again normally month or two later)
they're also very responsive on their sales channel and offer huge discounts when you discuss your circumstances with them
 
2:01 PM
JohanLarsson: what do you think about asking github to render the markdown and using that to create links?
 
Not sure how you mean
There is ^
 
right now you're doing manual parsing I'm guessing to do create the links
 
IIRC I chatted with mads and suggested adding a feature for toc
@Maverik yep, huge hack there
Just ad-hoced case by case
 
ah ok - well I'm just thinking about this Class<T,T1> situation.. i was thinking why bother
you can do POST /markdown/raw -- document text to have github do it for you
 
yeah, that would be nicer
 
2:05 PM
I also noticed you commented out pulling file over http(s) - any specific reason?
 
where is that?
The proxy at work does not like https
 
oh ok - well you throw NotSupported so I was wondering
 
link?
 
sure i'll have to grab one from github.. i'm reading from local clone
I could potentially overhaul it but then it'll be quite a few minor changes.. shall I do it?
For example, I'd refactor this into PropertyChanged listener callback: github.com/JohanLarsson/GithubToc/blob/master/GithubToc/…
I know you use resharper - so oddly resharper is complaining about style issues -- do you have a style export somewhere so I can import it in and stick with existing style of code
 
@Maverik If you feel like it.
You will have high likelihood of merged PRs
That is just a 30 minute hack as it is now.
The download from github looks like a scrapped idea that was not cleaned from the code properly :)
 
2:20 PM
yea but I need your resharper style before I can do anything.. otherwise my resharper will create some major noise
 
If you decide to do a cleanup it would be awesome if you do that in one commit
And then commit actual changes in other commits.
 
i much prefer big commits over manageable ones :)
lol yea no small clean up one xD
 
No biggie but I try to do that as mcuh as I can, to have less noise in the commits that change logic.
 
yup makes sense - i actually have one PR already
i changed your nuget source to v3 and added framework restriction to paket so it stops pulling million dlls for dotnetcore
but I wanted to talk to you before I open a PR
 
just keep the PRs coming, ping me if I don't merge within five minutes
That means I have not seen it
 
2:23 PM
hehe ok
 
That is where a test for the Class<T,T1>situation would go I think
should be moved to class per file also, not pretty
 
yea I'll update the test once I'm done - tests will break because they're not producing correct markdown link right now from generics
 
i'm just gonna outsource it to github - the rate limit is 60 documents per hour per ip (unauthenticated) which should be more than enough
 
also, sry about the things you are seeing in the code :D
Don't think there is any part of that that is not a nasty hack
 
2:27 PM
its fine :)
 
Do you have a better name for the app?
 
nope but don't think it matters too much :)
your name states it's purpose.. sort of
 
discoverability would be the only reason
 
to make it clearer it'd need to be an even longer name
 
if it could help others
 
2:28 PM
Markdown-ToC-Generator ?
 
yeah, better
 
since the app has nothing to do with github except it's code is hosted there
and it's not using GFM
which makes me wonder if we can offload markdown processing to a nuget
 
doesn't github have its own markdown flavor?
 
not in readme
 
2:30 PM
GFM only operates in issues and commit messages
 
2:52 PM
wow I just discovered this little nugget (not misspelled!): docs.microsoft.com/en-us/sql/linux/…
 
So it becomes a mini Management Studio
Nice
 
3:05 PM
@Maverik did you pr your own branch again?
 
no Johan, I haven't done anything yet
too much multi-tasking >.<
I'll do a big PR
 
ok, no rush, was juct checking as it sounded like you had something
did not want to slow you down
 
yea i did - but then i thought bothering you with tiny PRs over and over is bad idea
 
ok.. exposing ignorance... PR?
 
so I'll just do one - and if you want something removed, i can always do a reverse commit and as a bonus i'll fix conflicts too
 
3:12 PM
Public Relations is prolly not right.
 
PR = Pull Request
 
Oh, right.
duh. :-/
 
open source is starting to happen in the channel!
much awesome
 
well i wouldn't call it open source happening .. its more just the clean up crew poking in :)
 
3:14 PM
I wish we had a set of simple MVVM examples that we could throw at people.
Like what this guy wants to do.
-2
Q: wpf need to transfer info from one textbox to another

ibo herzallahi guys im trying to create a button which can take my information from one textbox to another but i the informationer is in Contactformula.xaml and i need it over to Mainwindow.xaml hope u understand what i mean here is the code... Mainwindow.xaml.cs namespace debug { publ...

Self-contained, minimal examples.
 
yeah, it would be nice
 
I've thought of that multiple times - especially in Gjallarhorn context
while a blog post is great to raise awareness - its not enough to get people going.. given it breaks away from traditional mvvm approach - we need more hand holding to get started >.<
 
yeah, cloning a repo with a sample is a good way to learn
then change things and break it and revert
 
^ it's how I got started with a LOT of your toys
 
you've been playing Johans toys? :)
hope you left them back in pristine order :P
 
3:20 PM
should we create a SoWpf account or org on github?
could e fun writing samples and review them
 
we already have one on Gitlab :)
 
ok, that is the one then
 
(don't star it please - it's already starred and got lost among other links)
you can use your github account to login if you don't already have an account
(drop me a line if you request group membership once you have the login)
for anybody wondering why gitlab - cos private repos are free from start there while they weren't on github
 
user7442629
Wait
 
user7442629
@Lynn Crumbling
 
user7442629
3:34 PM
Something like the Easy MVVM example
 
user7442629
Let me get a link up
 
is that link still alive?
 
user7442629
That was all I needed to understand MVVM after countless searches for MVVM examples, I never really knew what it looked like in terms of code
 
I doubt a new user reading "VS2010" is going to have a lot of faith in example
nevermind the dependency issues
 
user7442629
3:37 PM
Yeah it's just a download for a project and you can see the executable in action, then see the code to understand what is behind the scenes
 
yea I just downloaded - but I'm sure we can do one lot better - thanks for the link share though :)
 
user7442629
Well it's perfectly functional in my opinion
 
user7442629
I made something similar yesterday but I only went as far as the first example
 
Ok what samples do we want?
 
Aleksbgbg - i'm not aware of your experitse level in WPF but let me start with something immediate: the example has multiple windows - we don't suggest multi-window setup in modern era
 
user7442629
3:39 PM
Could you elaborate as to why
 
I'll write a really simple binding example
 
the example also uses thread-unsafe invocation of propertychanged
while we certainly know how to fix it - a new person may not
 
user7442629
I'm 2 months into C#, about 1 month into WPF, a week into MVVM
 
How should we name things? BindingSample
 
giving them bad practice in a hello world sample is bad idea
Johan - if we're thinking samples -- i was thinking One project with branching
something that we could build up and take the user with us..
 
3:40 PM
I'm thinking multiple small repos, perhaps noisier but simpler
 
like Step 1 - Step 2 branch structure
multiple small repos - i'm not sure thats good for a hand holding sample scenario - there's plenty of those on web
 
user7442629
Wait so doing 'PropertyChanged(this, new PropertyChangedEventArgs(prop));' is bad?
 
Yes ^
 
branches can be nice for C#6, C#7 etc.
 
umm i wouldn't care about that.. folks coming to us generally aren't on prehistoric compilers
 
user7442629
3:42 PM
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property)); is good?
 
and we assume they have c#6 at least
yes Aleksbgbg - because it's atomic
 
user7442629
Alright then I've been doing it correctly
 
@Maverik I'll write a small one for binding, we can always throw it away
The samples are gonna be just minutes to write
 
user7442629
If I wanted to override an operator and add some logic in a class, can I do it in a Model? For example like DateTime, except when you do DateTime++ it's the same as doing DateTime.AddDays(1)? Or a ViewModel somehow?
 
Johan: i just don't want you wasting time - lets talk this through and make a plan rather than make throw away stuff
it could be our complement to reed's blog series
Aleksbgbg: no thats a model thing
Also Aleks: you shuold look into WeakEvent - which is how we prefer property change notifications now
again.. something you wouldn't find from a random google search probably.. since these are things we've refined over the years and no one place has all the good stuff (its certainly available scattered all over the web as long as you know what to look for)
 
user7442629
3:48 PM
So if DateTime was the model, I can overload the operator and add extensions such as AddDays(this DateTime input) inside it? Not breaking MVVM?
 
should we use nuget.exe or paket.exe?
 
yes because you're still operating on raw data... it has nothing to do with how it's represented (view)
 
user7442629
By the way these examples you guys are cooking up sound useful, MVVM has given me a lot of trouble due to lack of examples
 
user7442629
Thanks
 
Johan i'd stick with nuget.. if its as basic as I'm thinking
 
3:49 PM
ok
 
what we really need is a blog series - we can easily get that via so-wpf.gitlab.io
 
I'm thinking maybe better to point beginners to better tools :)
 
yea but you gotta remember they're already overloaded with information
 
yeah, nuget it is
 
adding commandline based tools isn't helping them adopt
thus we need something that starts from a gradual hello world app that is still properly structured with minimals
and then we can create improvements on top - perhaps through forks?
Hello World -> Fork - Switch to Weak events?
 
user7442629
3:51 PM
Speaking of NuGet
How can one execute nuget commands? I want to generate a nuspec file for a dll but I don't know how I'm meant to run a nuget command, I downloaded some nuget executable but I'm not sure what it does as it just opens a CL window and closes
 
you can point nuget to your csproj and it'll generate the nuget that way too
erm nuget.exe is a command line tool so you need to give it commands ;)
 
user7442629
Oh right thanks a lot
 
user7442629
That was stupid on my side
 
no worries :)
 

« first day (1620 days earlier)      last day (2529 days later) »