« first day (830 days earlier)      last day (3319 days later) » 
00:00 - 21:0021:00 - 00:00

9:22 PM
hello guys
 
heyo
 
how you doing today NETscape
 
good. good talk today
@BradleyDotNET which one is that?
 
as in you attended one, or gave one
 
in here. talking over design
 
9:24 PM
ah
 
how are you
 
im alright
finished up lik e80%+ of that WPF app
you guys helped a ton
 
wow that was quick
i'm jealous
 
lol it wasnt overly complicated
I just did a GUI really
 
ahh
 
9:27 PM
the business logic stuff was all in the core, which I didnt have to write
 
not bad not bad
 
yeah, there are only two outstanding parts to it... but im not sure how I wanna proceed
I need to do more research... kinda find myself outside of my comfort zone again
 
@NETscape Oh, Mike posted it, Kendall just tore it apart
It was this:

private int GetClassRoomArea(Int32 StudentCount) {
  return ((int)(Convert.ToInt32(StudentCount)) * 2 / 1000);
}
 
@ReedCopsey does it make sense to do ReadOnlyNotifyCollection<T> : IEnumerable<T>, INotifyCollectionChanged?
 
wtf is that.....
 
9:32 PM
haha
I'm glad it took me awhile to think of something "stupid"
and i'm hoping it took the person that wrote that awhile to write that, because i couldn't come up with that even if i tried
@BradleyDotNET maybe you could answer that question also. Basically looking to push notifications to UI for readonly collection
 
what language is that?
 
Both are C# :)
@NETscape In theory, the collection is read-only, so it shouldn't really need notifications
since it wouldn't be changing
 
so maybe that's not what I need. I was thinking IEnumerable<IProjectItem> Items { get { return Project.Items; } }
in my VM
so AddNewFolderCommand would call AddNewFolder, which would call Project.AddFolder(____) rather than Project.Items.Add(___)
 
And you can't make it private since you need the binding
Thats a bit of a problem...
Well, still, if you expose it as an IEnumerable then the only way to modify it is through "Project"
so you would still be OK
 
right, if I add it through Project, I still need to notify UI of change, right?
 
9:42 PM
If its an OC inside, you're already fine
Doesn't matter what adds the item
 
@NETscape There is already ReadonlyObservableCollection<T> in the framework
Wraps an ObservableCollection<T>
I think I prefer it over exposing an OC as IEnumerable in a vm
Clearer intent imo.
 
Yeah, but you can't, you know, change it later
 
But I have not read much of what problem is being solved
 
He just wants his class, and only his class, to modify it
 
@BradleyDotNET You can change the inner collection
 
9:46 PM
Oh, I see. That would work then
Reading the remarks on MSDN, slaps head
 
idk why but the use of var instead of declaring the type irritates me
seems lazy
or when people do some giant linq expression on the right side of an =
 
I use var more an more
 
that pisses me right off, because it makes it impossible to debug through whats happening
 
var innerCollection = new ObservableCollection<int>();
for ^ it is a nobrainer imo. Having the type twice is just redundant.
 
9:51 PM
yeah thats what brought it up, I seen your code
its a personal preference
I dont like using var
 
C# flame bait = "To var, or not to var"
 
lol
 
Guaranteed fun reactions from all sides!
 
I think it looks nice with a column of vars. Aligned.
Reed vars.
 
lol
 
9:52 PM
I personally dislike them. Its obviously a preference thing
Though Reed has some good arguments
 
XD Im not alone!
 
for methods returning stuff I used to prefer explicit type
but I use var in most places now
I read a good discussion about var/explicit somewhere. Don't remember where.
 
I would like to read that
so I can hear all of the arguments from the people who are wrong
so im prepared next time I hear them
 
ok I'll look for it
 
lol
you guys know any text to speech API's for .NET?
 
10:04 PM
They must have one for Cortana
I don't think/know if its in the framework though
 
system.speech evidently
 
10:19 PM
wow
that voice is horrible
lol but it works
 
@JohanLarsson Only thing I don't like is that collection implements ICollection<T>, which means it has Add members, etc
@MarkW Why does it make it harder to debug? You can always highlight over the variable to see the type
@MarkW (and I'm happy to go over why I prefer var vs. not using it, any time :) )
 
lol well I worked for a company a while back, and one of the programmers there in particular had a habit of writing var = ...... where this code was some giant linq expression to select from some dataset, using various variables and whatnot
while in the dubugger... that was a single step
 
@MarkW btw - the voice is pluggable - you can buy better sounding voices
 
thank god
 
@MarkW Yes, but the fact that it's var doesn't change that...
 
10:26 PM
lol its pretty crazy
no I was saying I hated both
meaing the use of var
and the use of crazy linq on the right side of an =
not that they were related
minor preferential gripes I have
 
you'd rather have lots of temporary variables? all typed?
 
maybe maybe not
 
the "single step" argument is pretty useless - because it's all going to be deferred anyways (so nothing executes in either form)
 
depends on whats happening in the statement I suppose
and im 100% sure you would kick my ass up and down the block with any arguments related to linq or the use of var
 
hehehe
 
10:29 PM
and am totally willing to concede the argument here, but reserve the right to mutter derisive things about you under my breath
lol
 
you're always welcome to mutter things about me :)
and, to be honest, I'm getting less and less happy with bit LINQ statements, but I suspect that's for completely different reasons than yours ;)
 
lol good
 
@ReedCopsey At least it is explicit implementation. I agree it is not very nice.
 
then someday you can enlighten me why being on the darkside is correct
but its quitting time now! so cya gents!
 
What exactly is a "bit LINQ statement"?
was that just a typo?
 
10:37 PM
you should be able to add gotoregion hyperlinks
i guess F12 kinda works, but could be better
 
@BradleyDotNET big - sorry - was reply to earlier comment
@NETscape goto region?
 
10:58 PM
@ReedCopsey yeah, so lets say you group code in whatever way, and you often jump to another section of code which is enclosed in a region. It'd be cool if you could add a hyperlink which when clicked would jump to another region/section in the same file or in a different file
 
simple solution - just don't use region ;)
j/k (sort of)
 
I don't like regions either.
 
yeah, even region asside
 
kills ctrl+m+o
 
right click a function > Generate hyperlink > copy to clipboard > paste hyperlink somewhere in code
similar to F12, cept not for definitions
 
11:01 PM
VS has bookmarks. I accidentally added one once.
 
ehh not bad.
except I don't want to have to "save" my bookmarks
lets say in a year I come back to code. and everytime i use to look at a class, I would always refer to another class in another file--same project. I rather just keep a link in a spot where I would always end up having to navigate to the other class.
that way I don't have to save/manage bookmarks
 
Like R#'s "Goto Everything" functionality? jetbrains.com/resharper/features/navigation_search.html
that seems like a better alternative to what you're describing
 
11:22 PM
fine then, shut me down :p
 
11:37 PM
@ReedCopsey my profiles will either have a Socket connection or SerialPort connection. In my model I ICommMaster _connection;. I will use that to communicate depending on what the link is. basically _connection.Request(data);
what I'm wondering, is how I should store that information in the model.
I initialize _connection by doing CommFactory.CreateMaster([SerialPort | TcpClient | IStreamResource] info)
all of which return Master
so the flow of the application goes,
1. Click Create Profile, opens new window, windows DataContext is CommMgrVM
2. Choose connection type [Serial Port] or [TCP]
3. Show appropriate settings
4. Once finished, and OK is clicked, create CommProfileVM and CommProfile
5. Add CommProfileVM to CommProjectVM.Items
 
00:00 - 21:0021:00 - 00:00

« first day (830 days earlier)      last day (3319 days later) »