« first day (1011 days earlier)      last day (3953 days later) » 

11:00 PM
50 DKP MINUS!!!
was it an array or an ienumerable
 
@drch what?
an array
 
[]
 
yeah thats kinda fuckin retarded
thats someone teaching against a fuckin answer key
 
probably someone who declares a byte array's size and then uses File.ReadAllBytes
:D
 
I would say that element position comes into play when there is no defined order of elements.
 
11:02 PM
@JABFreeware why are you in school during summer
 
@drch college. Okay she responded
 
i thought you were in high school
 
I’m not saying the documentation is wrong, I’m saying you are not interpreting it correctly.

It basically works like this:

The Using statement is called on an object
The object’s constructor is called
A new instance of the object is created and added to the Stack
You can now use the object in your code
If the object implements the iDisposable interface, then the call to Dispose is added to the Stack when the object goes out to scope (end of the curly braces for Using)
When all items on the Stack have been resolved, the Object is disposed.  The amount of time this takes is determined by th
there it is
 
dear teacher,
the using statement is specifically FOR manually closing your resources, you dumb cunt.
love, JAB
 
I will do that AFTER the final has been graded! :)
 
11:06 PM
> Some of these are things you will learn on the job but it helps to not develop bad habits in school you will have to unlearn later.
lolz
> And just as a note, your grade on the project was entirely due to the missing comments, not because of the open resource. I noted it because it was a problem but you should not be turning in work without documentation at this point.
oh burn
in my school, you wrote comments for part marks in case your code didnt work properly
 
@drch thats just to get me off her back. She doesnt want to loose, so she has basically said, if you keep aruging, its not over the grade, and are you sure you want to continue, considering the final is worth 30% of your grade? ;)
 
That article she sent was for .net 1
1
 
^^^^^^^^^^^^^^^^^^^^^^ Glad someone else noticed that
 
she's confusing using() { } with garbage collection
 
she totally is
She thinks that dispose is only called from ~Finalizer
 
11:10 PM
what do you mean?
 
"A word of caution before we start—the information provided in this article is only valid for the .NET Framework 1.1" from that document
 
@JABFreeware she thinks that a call to Dispose is being put on some magic stack that will only be actually called when the GC collects it
 
I mean that the finalizer would call dispose and possibly leak memory
 
@drch did you just become German?
 
however, that isn't happening
 
11:11 PM
@JohanLarsson not yet ;)
 
ok, when it is all CAPS the transformation is complete right?
 
/me headbangs
 
public class show
{
 ~show(){
  //FINALIZER CODE WHICH IS CALLED BY GC A LONG TIME IN THE FUTURE AND LEAKS MEMORY
 }
}
that is what she is thinking of
 
@TravisJ thought so
finalizers are memory leakers sometimes
sigh...I hate this
I just lost the argument
and she knows I won
but I cant keep arguing my point either, because there is no point
 
PS, if youre linking to an article, make sure you just quote the relevant parts in the email so they dont have to read the whole fuckin thing
 
11:14 PM
And just as a note, your grade on the project was entirely due to the missing comments, not because of the open resource.  I noted it because it was a problem but you should not be turning in work without documentation at this point.
I think its time someone write a song
about programmers and teachers who try to teach programmers
 
    class Program
    {
        static void Main(string[] args)
        {
            var resource = new SomeResource();
            Console.WriteLine("Before using");
            using (resource)
            {
                Console.WriteLine("In using");
            }
            Console.WriteLine("After using");
        }
    }

    public class SomeResource : IDisposable
    {

        public void Dispose()
        {
            Console.WriteLine("I am disposed");
        }
    }
it has nothing to do with 'scope'
Output:
Before using
In using
I am disposed
After using
in her world, 'i am disposed' would be output at some arbitrary time in the future
 
her world is NET 1.1
Windows 3.1
Vacum Tubes
1 Bit Processors
anything I left out?
 
punch cards and slide rules
 
@drch ahhh yes!
perhaps I should apply for her job
 
meh
in the future you will (hopefully) meet teachers who will actually be able to answer questions correctly and expose you to things you didnt know before
i imagine you aren't getting a whole lot out of this course
 
11:21 PM
@drch Oh I'm learning a lot
of
total bs mehness old school invoked crap
 
lol, I was working as a professional software engineer (intern, but I was writing production code) and re-taking CS101 for a better grade. I ended up with a 2.5/4.0 because the TA was such an asshole about comments
 
oh lawd
 
You mean this required a comment?
int i =0;
 
lulz, you don't need a constructor to have a using statement. What a fool...
@JABFreeware basically, yes
 
tbh, the world would be a better place if each method at least had a one-liner of what it did
 
11:24 PM
@drch agreed in general
 
IDisposable was released 2 years after that 2005 article.
 
but not every single line
 
fuuuuuuuuuuuu *2
 
it also has ABSOLUTELY NOTHING to do with how much time something is on the stack... oh god
 
I think I am going to puke
 
11:24 PM
fuuuuuuuuuu * 3, here is the article explaining that: msdn.microsoft.com/en-us/magazine/cc163316.aspx
 
when i was reading her reply, i thought she was almost going to make an accurate point
 
wait for the stack to clear? seriously, wtf???
 
x4: the link explaining explicitly how to use it msdn.microsoft.com/en-us/magazine/cc163392.aspx
 
@drch ALMOST
 
ie, if there was some benefit of keeping a reference to not use as many new objects (ie, less GC)
but alas, she only touched on that by accident
 
11:25 PM
I am going home. Ah teachers, I am so glad I am done with them.
 
@TravisJ Can't wait. Thanks
 
I am using an updatepanel, but when I click the linkbutton the page refreshes?
What am I doing wrong?| <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:LinkButton ID="lbOpenMessage" runat="server" CommandName="OpenMessage" CommandArgument='<%#Eval("MessageID")%>'>
TTT
</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
 
yeah, I'd say she's a bit touched, all right
 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:LinkButton ID="lbOpenMessage" runat="server" CommandName="OpenMessage" CommandArgument='<%#Eval("MessageID")%>'>

</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
 
@JABFreeware ?
 
11:31 PM
@TravisJ btw i think that linkedlist question is actually a question of finding the longest route in a directed graph from F-A
 
@xVizzi making your code readable is all
 
@JABFreeware ok thanks
 
computer - y u running so hot
itunes - y u use 12% cpu when nothing is even playing!?
 
nobody that can help me
 
@xVizzi I am still worked up about my crazy teacher
 
11:40 PM
@JABFreeware
?
 
11:57 PM
@TravisJ I LOVE refactoring switch statements to use Dictionary<key,Action>. Thanks for the tip.
 

« first day (1011 days earlier)      last day (3953 days later) »