« first day (1512 days earlier)      last day (3662 days later) » 
00:00 - 20:0020:00 - 00:00

00:27
Hey guys. Is there any known way to re-use a variable declared via let in a LINQ query in other .Where() clauses down the line?
Before evaluation, that is.
I'm basically looking to rebind parameters of subsequent Wheres.
00:39
@vzwick not really, no, assuming you're talking about a different clause
the let is evaluated as a variable in SQL, not as a variable in C#, if I'm not mistaken
00:54
@Pheonixblade9 you're mistaken, I'm afraid - at least LINQPad says so ;)
 
4 hours later…
05:10
I think I got a Skype message from 14 hours ago, but I'm not 100% sure, because the time the message arrived is correct in the timezone of the sender. awkward
 
10 hours later…
14:57
@MoonOwlPrince Hey Moon, how you doing?
Hey @James I am great and yourself
Good myself, thanks
I have a question @James
Ok... I prob won't know the answer!
In your experience with C# the language what would you say is the one thing that you have found yourself repeating over and over again from project to project
15:03
I've only ever done one project so can't really answer that to be honest
And I learned early on about DRY so try to implement that where possible.
What is DRY?
DON'T REPEAT YOURSELF
yes
The repetition I am referring to is one whereby you find yourself following the same pattern over and over again
Oh ok, well I have no experience with that yet.
Ask me again in a year if I haven't given up!
@James you are not the type to give up
15:07
Haha, well see.
I am enjoying using Visual Studio a lot more than when I used Sublime Text and Dreamweaver for PhP and Javascript
It's far better at helping you write error free code.
@James you have seen the light. Welcome to the club
Any recommendations on a free source control that integrates well with VS?
I do have a GitHub account if I can use that some way
Learn what Git is about first
Understand how it works first before you follow any tutorial or read the reference
Let me fetch you a video Linus did that made me understand Git even though I had not invested in it
15:10
Ok, thanks,
It will convince you why you should tolerate Mercurial but refuse to work with Subversion ever
It was a Google Talk. My favourite part was: All of you are not good at writing code. I am better than all of you. The whole of Google. You don't know what you are writing
lol
Ha, let me have a watch
ok
@James you will learn why understanding things at a lower level that you are operating at is a good practice and how it reflects in the nature of projects that you produce
@MoonOwlPrince He's one cocky bastard :D
He is a smart git
15:23
hah yeah
@KendallFrey I have begun to realize something. HTTP/1.1 is actually a pretty good standard
He invented the best operating system and the best VCS
For file sharing
for file sharing?
wtf
Yes
That is what it is based on
15:25
It was designed for HTML
(It's in the name)
I am beginning to believe HTML was designed for HTTP not the other way round
But it is likely I am wrong
I think they were developed at the same time
I don't think so
Let me do a bit of Binging
Well shit
@MoonOwlPrince How are you going to find out about web standards on a porn site? :P
A porn site?
I am confused
15:28
Bing is the Google of porn
But I have only encountered an unexpected porn result when I was searching on how to mate dogs
It was one incident with Bing so yeah you might be right
Okay so HTML is the text format of HTTP. I think when someone says they are learning HTML they should learn the HTTP protocol as well
no, it doesn't work that way
How does it work then? What was bad about HTML tables and what led to the development of CSS?
You only need to know HTTP if you're writing a server or a client, not a website
HTML is beginning to make more sense and I think it is abused
15:33
in what way?
HTML was designed describe the resources we have at our website
Java applets are valid all of a sudden for the '90's
valid as what?
As an application technology for the web
Do you mean HTTP and not HTML?
Let me explain what I am saying
15:37
This guy is hilarious
I hope you now hate Subversion
Oh damn, this is getting personal at 22:00
Imagine what he could do if he was a bit more open-minded about working on non-Linux code
He's describing our work workflow
He does work on non-Linux code
15:38
Ha, and ours at my office (don't worry, I'm not part of the dev team there!)
Oh really? Ok, it just seemed like he is all in on Linux (did he help create it?)
He named his Unix clone after himself
He did not "help" create Linux
He created Linux
haha, ok.
That is why it is called Linux
dat ego
15:39
Haven't you noticed he kind of looks like a penguin facially
Look at the Linux logo and look at his fat face
He now is fat
Are you looking at the same Linus that I am?
15:42
28 mins is hilarious
!!Does Linus look like a penguin?
@MoonOwlPrince Frankly my dear, I don't give a dean
@MoonOwlPrince Yes!
There you go
CapricaSix knows everything
Can't you see the penguin face
15:45
No
!!Ask Kendall Frey how to display images in chat
@MoonOwlPrince Of course!
@MoonOwlPrince No
clearly not similar
@MoonOwlPrince That didn't make much sense. Use the !!/help command to learn more.
15:47
@MoonOwlPrince Information on interacting with me can be found at this page
16:24
1:08:40 TIL / mindblown
This is obviously a c# room, but does anyone here have experience of using a web service to connect a Windows app to your database?
That is just a relay
Though I am yet to implement that
@KendallFrey that is what made me settle on Git: It is not the file that matters. It is the content
I am not willing to learn Subversion
I use Git because I write open source software
There's simply no way to do open source with SVN
There is simply no way to do closed source with SVN
IOW there is simply no way to do source with SVN. Even Microsoft recommends Git
16:47
How can I change a property of XAML control on app load
For me it's not working.
What is "it"?
On load I am calling a function which changes the text of a textblock.
And by XAML control, do you mean WPF control?
Yes, a textblock
We do not have functions in C#
We have methods
16:48
The code doesn't produce any errors I just wanted to check if there is a special approach to coding something on load vs when the app is actually running
@MoonOwlPrince True, my bad.
@MoonOwlPrince I think that's a bit exaggerated
Math.Sin is a function, no questions
is x => -x a method?
I digress
This is the initialisation method:

public MainPage()
        {
            this.InitializeComponent();
            appTermInitialisation();
        }
@James so far so good
and this is appTermInitialisation() method:
public void appTermInitialisation()
        {
            var initiateOnLoad = new ViewModels.terms();
            var initialisationValue = initiateOnLoad.onAppLoad();
            termDescription.Text = initialisationValue.ToString();
        }
@KendallFrey in Julia a function is dispatched into methods
16:51
var initilisationValue just returns "Test String"
I have checked in the debugger that it works
@MoonOwlPrince Who said anything about Julia?
I like how it defines stuff
When I learn R and data mining, I will use my knowledge in Julia
@James What is the problem you are seeing?
Nothing in the errors list.
@James that same problem
16:52
But the text property of termDescription does not change to "Test String"
Though unrelated to the problem what is the type of inisitialisationValue?
I just set it with 'var', but it is a string.
@James After stepping over the line, check the value of Text in the debugger
Is it the new value?
That's the last line before it loads so how can I do that?
Just insert a line
16:54
ok
@James Step over it with F10
If it is a string why are you calling the ToString() method
Yes the .text in the debugger has the right value
I initially didn't have ToString() but I just added it in to make sure there wasn't an issue there.
What are you seeing on the screen?
16:55
Yeah
Are you sure you're setting the right control
Did you show the form
Are you sure you're not changing it again later?
What type is initiateOnLoad?
I am sorry I am being anal about types but I want to understand the flow of the app
Oh dear.....
16:56
@MoonOwlPrince That's pretty obvious ;)
I was being a total idiot
@James got it, huh?
All of yesterday I had been trying to do this but changing the content of a button instead of the text of a text block.
@KendallFrey I am a prenewbie remember?
I had then recoded now but when loading the app just been looking at the button!
16:57
@James
smh
@MoonOwlPrince WTF gave you that impression
The whole time the actual textblock had changed correctly.
@James lol
This is where I wear my dunce hat
is there a way I can create a variable that stores a new instance of an object and then call a method of that new object in one line.
i.e.
var initiateOnLoad = new ViewModels.terms();
            var initialisationValue = initiateOnLoad.onAppLoad();
not nicely
16:59
Can I make that one line?
Ah, ok.
Actually, you can't at all if you want to declare the variable too
but (thing = new Thing()).Stuff() would work otherwise, I think
Was just curious because I seem to be writing that pattern a lot but I guess it's necessary everytime you create a new object instance
You don't have to store the new value in a variable at all
You could do stuff = new Thing().Stuff()
Oh really? Ha, that would be easier.
I've seen code that has new Thing(stuff); as an entire statement
usually if you do that though, your object is designed wrong
static void Static()
17:05
Ah ok, well at least it's much simpler that I can initiate the new object and a method at once and store in the variable. Saves me 50% on variables
I'm so funny
By the way, I recommend reviewing your capitalization conventions. Public APIs usually use UpperCamelCase, not lowerCamelCase.
+1 @KendallFrey
17:22
So @KendallFrey it is a bad practice to use the constructor to do more than construction. And I get the impression I am a prenewbie because I have not yet started my coding career
You don't need a programming career to be an expert programmer
And prenewbie != newbie
But I am not yet qualified to be a beginner
a prenewbie is someone who has never heard of a function
35 mins ago, by MoonOwlPrince
We do not have functions in C#
You distinguished between functions and methods
That's postnewbie
That is a prenewbie thing to say
NO NO NO
54 secs ago, by Kendall Frey
a prenewbie is someone who has never heard of a function
BTW, I take it you don't have much experience. Where did you get your knowledge? University?
!!afk noms
17:42
*burp*
18:04
wheee
aaah kill it with fire
This is why work sucks. I don't get to do cool shit like this
18:26
hello guys! I'm completely new to C#, but I come with some knowledge of JS/C++
I was looking at some tutorials for this language, and couldn't find an explanation for how is this:
int[] ar = new int[] {1, 2, 3}
different than
int[] ar = {1, 2, 3}
if someone could explain it to me it'd be awesome
> When an array initializer is used in a field or variable declaration, such as:
int[] a = {0, 2, 4, 6, 8};
it is simply shorthand for an equivalent array creation expression:
int[] a = new int[] {0, 2, 4, 6, 8};
I think the former is known as an initializer, and was added to the language later to make the initialization of other collection types look like the initialization of arrays. Of course, it wouldn't have made sense to specifically exclude arrays themselves from being able to use that shorthand as well
@towc Short answer: It isn't. Long answer: It isn't. It's just convention.
@KendallFrey so, as a beginner I shouldn't care about it
@KendallFrey I don't know anything
It's not tremendously important
18:34
It is just general knowledge
@MoonOwlPrince Where do you get this bullshit?
You should, in that you'll recognise both as meaning the same thing. I think the convention is usually to avoid repeating the same symbol in a declaration when you can help it
@KendallFrey what bullshit?
Some of the stuff you say is stuff that most people with 1 year of experience have never heard of
Hey guys, I'm having trouble with FaultException in WCF
18:35
And yet you keep insisting you're an idiot
could somebody give me a hand?
I have a async call to a service method, which throws a FaultException
I have surrounded the client.callAsyncMethod in a try catch
but the try does not work
18:37
If it doesn't "work", what does it do then?
I get a message that the fault was unhandled
What does the message say?
Nothing else
The creator of this fault did not specify a Reason.
Literally "Nothing else"?
18:38
That's a strange error message
I have generated the Reference file
and it throws the exception at this line:
PhoneApp.RacerServiceReference.Racer _result = ((PhoneApp.RacerServiceReference.Racer)(base.EndInvoke("Login", _args, result)));
are you awaiting the result of your async call?
I have added a handler
inside the try
@BartlomiejLewandowski What kind of handler? Added it to what?
@KendallFrey I expect someone who is to have a certain prerequisite before learning code
@MoonOwlPrince wut?
@BartlomiejLewandowski So the answer is no
it's throwing the error when it returns, not when you call it
it's outside of the try block at that point
Ok, but putting the try inside the handler does not work too
it's throwing before the handler
You probably should use await instead of callbacks
nvm
Can I change the generated Reference file then?
Not manually
Why would you need to?
> The idea here is that CheckAccess and VerifyAccess are advances scenarios, that normal developers don't need.
How the fuck is that an excuse to hide them from Intellisense?
yaaaaaaaaa performance
19:10
@BartlomiejLewandowski I think you have to specify a FaultContract on the method (the OperationContract)
otherwise it doesn't know how to serialize the exception to a fault type
19:25
@KendallFrey HYou mean PascalCasing and not camelCasing?
In the C# community PascalCasing rules
Check out the wikibooks C# topic on naming conventions
Yeah i know, I was correcting the term UpperCamelCasing he used
@Jonhathon any tips to become a coder?
@JohnathonSullinger I used to think that too
But camel casing can refer to both, so I prefer upper and lower camel case to be clearer
who_hates_this_as_well and abbreviations like "fmt"
19:34
@MoonOwlPrince Serious question?
@KendallFrey In C#, it is always camelCase and never CamelCase according to MSFT docs
Other languages UpperCamelCasing and LowerCamelCasing apply, but not in C#
For a class, PleaseUsePascalCasing
In most cases
The .NET framework libraries are exemplary of naming convention
I know Hungarian notation was prominent with Windows Forms in the late 1990's with but what is so bad about it today? Is it the fact that it is being abused or it is inherently as evil as dynamic typing with extreme late binding and lazy evaluation
@JohnathonSullinger uh, camel casing is a language-agnostic term, how can it not apply to C#?
19:41
@KendallFrey Microsoft's naming convention states that camelCasing in C# is always first character lower case.
camelCasing is not "in C#"
@KendallFrey Which is why I said that in C# it is camelCasing and not CamelCase
What is the difference between a template function and a function template?
@KendallFrey Your missing my point
Maybe in their documentation camel casing refers to a lower first letter, in which case, it's good they clarified
@MoonOwlPrince In what context? C++?
19:42
What language the semantics apply to are irrelevent. I'm simply saying Microsoft's recommended naming convention is to always use camelCase and not CamelCase
I am saying that is what you are arguing
@Jonathan please provide us with evidence
And for the use cases on the kind of types applied
@JohnathonSullinger recommended naming convention for what?
the term camel casing?
Because there is no one umbrella naming convention in C#
@KendallFrey Yes
the term
that seems a bit ridiculous
19:43
@KendallFrey do you get him 'cause I don't
@MoonOwlPrince There is, Microsoft has docs on naming convention
The simple answer is that camel casing can refer to PascalCasing
That is why I always clarify
Does it matter what we call it. Unlike programming languages expect for those like C++, we deal with ambiguity
If we clarify, no
@KendallFrey I'm not disagreeing, I was just pointing out that when you ready camelCase in the Microsoft docs for C#, understand it as lowerCamelCase only
19:45
@JohnathonSullinger You are correct
That is the definition for the scope of MSDN
is there sOMEsTRANGEcASING?
wtf @towc
@KendallFrey That's all I was trying to get across
Does the ECMA335 specify any naming convention?
I think that would override what Microsoft says
Why would it?
It's not even the spec for a language, or at least not a textual one
naming conventions are not part of a language
19:48
@MoonOwlPrince Microsoft's docs you asked for msdn.microsoft.com/en-us/library/vstudio/…
your program will still work if you use bad naming conventions
@JohnathonSullinger merci!
@MoonOwlPrince That is the spec for the CLI and not the language
Individual languages have their own conventions
Which is an innovation
Doesn't the .NET framework have a prominent naming convention
That is persistent in the languages that target it
Microsoft has a recommended naming convention for C#, and probably one for VB
19:50
CLS Compliant code have naming conventions I believe
They may not match perfectly
Naming conventions kind of develop from the community
I UnDerStAND vB IS oK wiTH THis
I prefer C# naming conventions to the convention prominent in the Unix culture
One can easily tell what a class is for without referring to documentation
@MoonOwlPrince No, nobody is ok with that
@MoonOwlPrince What convention?
Unix doesn't have a naming convention
Unix culture
doesn't have a naming convention
19:53
But there is a common trend I have observed
which is?
In most Unix-bred languages, it is preferable to keep variable names short at whatever expense and Java was considered an abomination for not respecting that
I think short naming was mainly to save space and time, because they had less memory and intellisense back then
It's less of a Unix thing and more of an old thing
And Unix is old
19:57
Which is why Hungarian Notation was used
I asked a question regarding Hungarian Notation that is stupid but has me wondering: I know Hungarian notation was prominent with Windows Forms in the late 1990's with but what is so bad about it today? Is it the fact that it is being abused or it is inherently as evil as dynamic typing with extreme late binding and lazy evaluation
00:00 - 20:0020:00 - 00:00

« first day (1512 days earlier)      last day (3662 days later) »