« first day (2509 days earlier)      last day (2662 days later) » 

user7480455
with this command correct
Steve.
user7480455
@Styles.Render("~/Content/style.css")
Steve!
STEVE
STEEEEEVVVEEEEEEEEEEEEEEEEE
20:00
You can add a command to a css file that tells the browser to load in another css file.
That's what "import" means.
user7480455
my guess is that was it as I added that to the _layout files...
user7480455
what a mess
user7480455
but it seems to work thanks guys
@Steve'saD STEEEEEEEEEEEEEEEEEEEEEVEEEEEEEEEEEEEEEEEEEE
user7480455
I will make a note of this in the comments for the future for sure
20:02
STEVE"D
michael
the liar
Danger Zone
kendall frAy
GOD! I KNEW I saw that coming
20:02
s/fr/g/
his last name is actually pronounced fry
i think he should just change his name because it's clearly misleading
not sure if serious
i am 100% serious
that's....
that's
never mind
about his name being pronounced that way, not changing it, i was just being goofy
20:04
lol yep
user7480455
Hey was it kendall or mike that texted about underscores yesterday?
I heard a great one the other day. It's better with the context, but the punchline was "Greasy Freys are better."
user7480455
well it looks like C# also has underscores so
user7480455
more points to vb :)
20:05
@007 I was referring specifically to the underscore being used to continue a line
C# doesn't require that
@007 wasn't me
C# can have underscores. It doesn't need them
And where does C# have underscores as part of the language?
user7480455
oh ok
var _underscore = false;
obviously
user7480455
20:06
I just typed that because I had to eded a file called_layout
posted on August 29, 2017 by Scott Hanselman

The .NET team has built a linker to reduce the size of .NET Core applications. It is built on top of the excellent and battle-tested mono linker. The Xamarin tools also use this linker so it makes sense to try it out and perhaps use it everywhere! "In trivial cases, the linker can reduce the size of applications by 50%. The size wins may be more favorable or more moderate for larger application

Udderscore?
That has nothing to do with C#, it's just a variable name
user7480455
that is why I typed that but you guys are saying the underscore was not required so..
I don't even think it's a variable name
20:06
obviously i was kidding
whewwwwwwwwwwwwwwwww
It's a filename
@Steve'saD does kidding mean making kids? if so, congrats
user7480455
ah ok I was wrong... but VB.net is better
user7480455
:)
I'm confused, the compiler is the piece of tool that builds the code to an understandable machine file (my definition) and the tool that checks the code in developing mode and ensure it's written the right way is the compiler too. aren't those different tasks that doesn't relate to each other?!
20:08
I had a cool dream last night. I was going to the wedding of two chat regulars.
which regulars
steve and steve's hand
Badger Cat and copy
i don't believe in marriage, we're ust friends with benefits
> You naturally prefer companionship, but I guess there's a lot worse things than playing a little one-man couch hockey in the the dark.
NH.
NH.
20:16
@MohamedAhmed no, the reason that the code checks are related is they are errors in parsing the source code for the purposes of turning it into something meaningful that the machine can understand
Hi all, I have a model called UserLog

public class UserLog
{
public int Id { get; set; }
public ApplicationUser Customer { get; set; }
public DateTime LogDate { get; set; }
}

Currently the row customer shows up as Customer_ID in the database. If I remove ApplicationUser from the declaration and rename it to Customer_Id will this delete the column and recreate it as well as removing the FKconstraint, or will it just delete the constraint? I am using code first
NH.
NH.
at a fundamental level, without valid source, you can't even compile it, so checking for validity is a side-affect of assuming it is valid and trying to work with it.
@Skullomania database, what database? this isn't a Redis chat
I wish to just remove the constraint
NH.
NH.
or mongo or SQL or whatever you are using
oh
SMSS
sql
I didnt think it mattered since I was using c# code first
20:19
@NH. is that mean that while I'm writing the code something like "Build" action takes place behind the scenes ?
NH.
NH.
that's all good and fine, but I don't see the part of your C# code that relates that object to SQL columns.
its MVC
I should have been more specific...sorry brah
NH.
NH.
@MohamedAhmed no, the linker doesn't necessarily run, but it still trys to parse the source code. Also these days they also have some other parsing for the purposes of warnings (which aren't strictly necessary)
 
1 hour later…
21:35
Say I have a method Class1 myMethod(Class1)
I want to preserve equality, i.e. when A == B I would like myMethod(A) == myMethod (B) to also be true. The only way I can think of doing this is for myMethod to handle A in such a way to produce the same result with the same A. This would mean that I will have to avoid using the new keyword. Is there a name for this kind instance manipulation? I want it so that when a method is applied to an instance it always gives the same result (instance).
An easy one to do would be Class1 myMethod(Class1 a) { return a; }
@AliCaglayan what are you trying to do
I guess how much can I play around with a to produce a unique value?
@Skullomania I might be taking it too literally
I essentially have some type and a function which returns that type. I just want the same objects passed to give the same objects
I suppose I could override equals and put a proper equality, one that would ignore differences in instance and just look at the data in the class.
are you using a dbcontext or lambda expression?
can you post a code snippet
ok I think I just solved my own problem
for example:

T f(T t);

There is no guarantee that if t1 == t2 then f(t1) == f(t2)
I think I can guarantee this by overriding Equals
That still doesn't guarantees that f(t1) == f(t2) if t1 == t2
user7480455
21:45
bye all
👋
bool f(Foo f)
{
    return new Foo(random.Next())) == f;
}
22:18
@mikeTheLiar Learn you a Haskell for great good.
I'd like one Haskell please
@AliCaglayan If f returns the same value it's passed in, and T is a reference type, then yes, this will work
now, if you're looking for how would you guarantee this for arbitrary function at a type level, well, you can't; use Haskell instead
(tl;dr: reflection ruins parametrization)
now, if you're looking for some unique identifier type which will uniquely identify an object while it's alive, you can't have that either; an address of an object won't work, since GC may copy objects around for performance
@milleniumbug References will work fine, though, since the GC transparently updates them
transparently? I don't think that's the right word
automagically
NH.
NH.
always the right word :)
22:31
ba-ba-ba-bird bird bird
NH.
NH.
@KendallFrey is that supposed to be in a minion voice to the tune of Barbra Ann? Or did I completely miss the reference?
NH.
NH.
!!bird
@NH. That didn't make much sense. Use the !!/help command to learn more.
@AliCaglayan oh, and if you're looking for the word which describes a function, that given the same values for parameters, will always return the same value, then it's usually called a "pure function" or "referentially transparent function"
22:34
Or just a "function" in Haskell ;P
and if you're looking for a term that describes a single parameter function that returns the parameter, it's "identity function"
NH.
NH.
22:51
@KendallFrey worst video ever. Couldn't even hear it because the sound was so quiet and there was dripping sounds in the foreground.

« first day (2509 days earlier)      last day (2662 days later) »