« first day (844 days earlier)      last day (4106 days later) » 

user142019
12:00 AM
There are 20 pages in the standard about name lookup alone, and they contain a lot of references to other sections. :P
 
user142019
@LewsTherin C# also has UB!
 
@dotToString Gaining experience in college? Lol
@Zoidberg Really? Example?.. and certainly not as much!
@Zoidberg Where is the link to the standard? I'm pretty sure the link I have is not the standard.
 
user142019
unsafe {
    int* x = stackalloc int;
    Console.WriteLine(x); // uninitialized value: UB!
}
 
Ah come on.. xD
It's unsafe code.. of course you can have UB :)
 
user142019
@LewsTherin there is a free draft here. It's very up-to-date.
 
user142019
12:03 AM
You can only have UB in unsafe code in C#, but it's still C#.
 
user142019
In my implementation I want to experiment with language extensions.
 
C# without the unsafe code? People rarely use that I think
Oh and also the lack of worrying about sequence points
 
check out jaimie king's yutube channel ayone new to threading, delegates and events, linq. he is awesome and sounds like phillip seymour hoffman lol
 
@Zoidberg What do you mean? Like running Ruby code or JS?
 
user142019
Unsafe code is really only used for interfacing with unmanaged code or for performance reasons.
 
12:04 AM
@dotToString Link?
 
user142019
@LewsTherin no.
 
user142019
I mean adding stuff to the language that's not standard.
 
not link, linq. language integrated query
 
user142019
For example, multiple inheritance.
 
@dotToString No I mean link link? Youtube link..
@dotToString I know what Linq is :P
 
user142019
12:06 AM
LINQ is awesome.
 
oh lol. hold on!
 
@Zoidberg Right, let me know how it goes :P
@Zoidberg Completely! It makes SQL less boring
 
linq is my new favorite thing! list<> lover!
 
Still boring though
 
user142019
I used LINQ today to extract data from an XML file. xD
 
12:07 AM
Nice :P I haven't messed with an XML file yet :(
 
user142019
I need to find a good way to design the abstract syntax tree.
 
@dotToString List doesn't have anything to do with LINQ, lol.
 
^
I thought that also
 
user142019
It's IEnumerable!
 
12:09 AM
Ew.
 
first vid in delegate playlist. subscribe! he has lots of playlist.
 
they are related! linq queries list<> and array, etc.
and other data objects too of course
 
Does he go into complex linq queries?
I think I know the basics by now
 
pretty decent, yeah. like 22 vids on linq i think. even goes to IL andcompiler info on delegates events and linq
 
user142019
12:12 AM
Oh heh. Good guy C# standard has appendix with BNF notation of the entire language. Handy dandy.
 
@dotToString Class.. ty again!
 
great instructor. Prin, prin! lol
 
@Zoidberg Boyce Normal Form? wtf
 
user142019
Backus
 
Right, because that didn't make sense ha.. now wtf is Backus?
Backus Naur format
:O I just learnt something new rofl
 
12:15 AM
no problem! my fav teacher
 
hehas c++ linear algebra too...blech!
 
I'm off to have nightmares about my results tomorrow
Night
 
string firstMatch = (from c in collection
where c.firstName == "John"
select c).First();
 
Wait before I go to bed
 
12:20 AM
wrap a whole query and query that. i love linq
 
collection.First(c=>c.firstName.Equals("John"))
I think that should work as well ;)
LINQ is starting to make sense to me.. I want to know more complex LINQ though..
 
i like that too, but i find the query syntax more readable usually
 
intellisense via linq extensions is a lot better
 
expression syntax with lambdas buried inner to outer is annoying and ugly
 
@dotToString If it is too complex it sucks yeah
@drch Linq extensions?
 
12:22 AM
ie Lews' syntax
 
Oh Linq method?
I'm not sure what the terminology is..
 
user142019
One language extension I really want is free functions.
 
Linq method syntax it seems
@Zoidberg What's that?
So much for a shut eye
 
user142019
using System;

namespace Foo {
    // Look! No class!
    public void Main(string[] args) {

    }
}
 
he shows how to write extension methods pretty thoroughly
 
user142019
12:25 AM
I.e. functions that aren't in any class or struct.
 
look ma, no class!
 
@Zoidberg Oh I call them stand alone functions..
How are you doing this?
 
intellisense is awesome for that actually...
 
ARUGH
NO BODY HAS ANSERED MY QUESTION!!!
6
Q: Search for all chat messages by a particular user?

JezIs it possible to search for all messages by a particular user in the chat search, at http://chat.stackexchange.com/search? I tried searching with the 'search for' field empty, but got no results... and with '*', the same.

 
lol! the mask!
 
12:27 AM
@Zoidberg If you switch to IL...
 
functions, no class or struct? f#!
 
user142019
@KendallFrey huh?
 
IL doesn't require methods to be in a type.
 
@dotToString Or C
 
am i right that is funcional proggng right?
 
12:28 AM
Yeah
@KendallFrey Orly
 
@dotToString No.
 
:S
F# isn't a functional language?
 
Yes, I think so.
functional != procedural
 
Anyone care to challenge my list of rooms I am in?
 
user142019
@KendallFrey Ah I see.
 
user142019
I'm compiling to machine code though.
 
user142019
Or well, to LLVM IR, and LLVM compiles to machine code.
 
F# is a functional language.. like Haskell and what not. I think Haskell might be harder though. Definitely not procedural
 
Haskell ain't procedural.
 
user142019
Haskell! <3
 
12:30 AM
I don't think F# is either.
 
It isn't.
They are both functional languages
 
But even if it is, it definitely isn't imperative
 
Isn't imperative another jargon for procedural or structural?
@Zoidberg Not really.. well for me ha
 
user142019
Yes really.
 
@LewsTherin No.
 
user142019
12:31 AM
I'm writing Haskell right now. :>
 
I think JS too is functional
 
It can be.
It's very diverse though.
functional, imperative, procedural, structural, object-oriented...
 
f# is def functional and not having afunction inside a type is a part of fujc progging. hence the func and action creating a stir about funcional progging in c#
 
@KendallFrey It is.. link incoming
In computer science, imperative programming is a programming paradigm that describes computation in terms of statements that change a program state. In much the same way that imperative mood in natural languages expresses commands to take action, imperative programs define sequences of commands for the computer to perform. The term is used in opposition to declarative programming, which expresses what the program should accomplish without prescribing how to do it in terms of sequences of actions to be taken. Functional and logic programming are examples of a more declarative approach. ...
Procedural programming is imperative programming in
@KendallFrey Yup, true that
 
procedural is imperative, but not vice versa
Many flavours of assembly are imperative bu not procedural
 
12:33 AM
fancy pants definition man
 
I think I'm gonna be gone soon...
 
@dotToString :D
 
graphics drivers installing...
 
@KendallFrey Yeah I'm out.. anyways ciao all
 
to the big gig in the sky or just off te chat?
phone is dying so ill be forcefully gone in 2 min lol
 
12:35 AM
last time i installed drivers, it completely took over my computer
 
@LewsTherin thanks! i jut listened to great lecture on .net rocks podcast about c# and funcional progging. really fun show
func, action, and lambdas! love te inline capabilities! c# just gets better everytime i turn around
god i gotta get outta schnucks supermarkets...
pushing steaks instead of keys :-(
 
@dotToString - don't forget generics and reflection
 
lo!
 
12:58 AM
Hy and sorry for newbie question.
Is there any way in example like A x = new B(), to call some method M(), like x.M()
where method M() doesn't exist in base class A? And if answer is "no" why not?
 
Not without a cast.
 
can you give me example?
 
void DoSomething(A a) { }
er
void DoSomething(A a) {
B b = (B) a;
b.M();
}
alternatively

void DoSomething(A a) {
B b = a as A;
if (b != null) {
b.M();
}

}
 
thanks :) what is the main reason something like that is forbidden (except cast)
 
because c# is strongly/statically typed.
You can't call methods on an object unless the compiler knows they are there. There are some exceptions (ie with the dynamic keyword) but generally that's the case.
 
1:09 AM
@drch, thanks a lot i get it:D
 
cool
 
1:40 AM
i love generics, but i havent dived into reflection
noob here on that one
anyone have a VERY simple (even contrived)
example of reflection?
by anyone i guess i mean drch and srle!
lol
lonely room....
 
@dotToString im hear
here*
but I am hearing things
LOL
 
lmao!
have any knowledge of reflection?
im pulling myself up by the bootstraps (no college, swing shift full time job prohibits)
JABFreeware stands for?
 
@dotToString hmm, no never had a use for it. If you have specific code problem I may be able to step through it
JAB are my intials
JABFreeware.com
 
@JABFreeware Im just trying to figure out all I need to know to get that first junior job
 
reflection definitely wont be a requirement
an example would be dynamically loading a .dll at runtime (ie, an optional plugin to your app)
 
1:50 AM
@drch thats good cuase I'll be looking for a job soon
 
If reflection isnt in the list, I'll move on. I realize it has something to do with runtime type modification. i think...lol
 
@drch well I can do that
 
ooooohh!
well that actually sounds quite useful
 
@dotToString Pinkvoke.net is your friend
when I comes to dynacimlaly loading dlls
 
what is that?\
 
1:51 AM
it*
@dotToString what is what?
 
well im using VS 2012 Express Editions
 
@dotToString oh, I languish in 2010 Pro Edition
not sure if metro apps can use DLLImport[]
 
I LOVE the new IDE. Really smooth and a pleasure.....but Express has its limitations when it comes to Testing, etc...
I wish Android would support C#
No Xamarin!
not that I could use it with express anyway....
 
@dotToString its support Java
Im learning it, and its close
 
Oh, I know
close, eh?
 
1:54 AM
@dotToString in syntax
 
ive heard that, but I also heard it is messy.
 
Im just learning it
 
in school?
age, occupation, exp?
 
@dotToString I bet you are thinking of Java Script
which is NOT Java
 
if its cool to ask
no, im thinking java
 
1:55 AM
@dotToString I dont share age with strangers online cause it narrows down my location too much
I am going to college though
 
JS ive heard similar things, but I really know nothing of either to be honest....so no judging lol
 
for a tranfer degree to a universtiy
I hope to get a CS degree
I have taught ALL the programming I know myself
 
i dont see how that is possible, but understand. just trying to get a feel for who you are and if you can answer certain employment questions
not trying to get up in your biz1
 
@dotToString oh I know...Its cool
 
Me too
 
1:57 AM
I like your user name
 
Well and through some school sponsored lectures online
 
I think your reasoning is off JAB
 
THANKS! first to say so!
how so?
 
hold on lemme look it up
 
@CCInc What the heck do you my reasoning is off!!!??
@dotToString My freind CCInc sometimes likes to bug me
 
1:59 AM
i think you two are neighbours
 
Are you a teenager JAB?
 
maybe the i dont want to say my age then say you are in college?? lol
 
<18?
 

« first day (844 days earlier)      last day (4106 days later) »