May, 2004

  • Cyrus' Blather

    First Day of Tech-Ed

    • 3 Comments
    Dear god it's early! This is a bit of a change from my normal routine of waking up in the afternoon and working until the wee early morning hours. Going to go to the Keynot and then try to spread some Whidbey love amongst the developers out there...
  • Cyrus' Blather

    Dark+Light

    • 5 Comments
    Watched The Ring tonight with Luke to help pass the time before I get on my flight (at 6:30 am) to San Diego. He went back to his apt and now I'm completely freaking out. I've turned on all the lights and I'm going to start watching the PowerPuffs movie...
  • Cyrus' Blather

    At Tech-Ed this coming week

    • 2 Comments
    I'm going with the C# team to Tech-Ed 2004 in San Diego. I'll be in the Vistual Studio.Net and Visual Studio 2005 booths and hopefully getting enough time to check out many of the breakout sessions. You'll know if I'm there because I'll be the one in...
  • Cyrus' Blather

    How do you test nondeterministic code?

    • 6 Comments
    Jay posted some of the code we wrote on the lazy loader and weak references. An astute reader pointed out that there was a flaw in my implementation. Specifically I was messing up how I interacted with “null” and “None<A>.Instance”...
  • Cyrus' Blather

    New Reference type for use with the lazy loader

    • 3 Comments
    Theo and I were talking about places where you might use lazy loading and the singleton pattern. We were thinking about WeakReferences and how they were valuable but didn't allow you enough control over when the reference might be released. An example...
  • Cyrus' Blather

    Theo builds up. Operation "educate-cyrus" about to commence.

    • 4 Comments
    Theo posted a short article on singletons and difference ways to achieve them in C#. It's a good preface and shows why encapsulatin ghtat logic in something like a lazy loader can be beneficial so you dont' end writing the same boiler plate code repeatedly...
  • Cyrus' Blather

    Considering renaming my blog to "Why C++ makes Cyrus something something"

    • 3 Comments
    Go crazy? Don't mind if I do! BLEAGHLEIGW)(#@QDLKJW*@( &$@$ @(*&# I have so rarely ever dealt with something so clearly designed to make you as unproductive as possible. Ughhhhhhhhhhhhh. Ok, back to fighting with ref counting and other fun...
  • Cyrus' Blather

    Defining Equals on an interface

    • 17 Comments
    I was wondering today if ICollection should declare an Equals method on it and state what the semantics of it would be. This came around because I currently have 3 implementations of ICollection: ArrayCollection (an ICollection backed by an array...
  • Cyrus' Blather

    Internal and External Iterators

    • 10 Comments
    I've updated ICollection<A> in the following manner: public interface ICollection <A> : IEnumerable <A> { /// Previous stuff /// <summary> /// Iterates over the members in this collection applying 'p' to each...
  • Cyrus' Blather

    Theo schools me on OO over functional programming

    • 3 Comments
    I just got back from dinner with another friend ( The-oy ) who schooled me on the OO mistakes I made in the lazy loader . The problem stemmed from the fact that I was trying to conver the following functional type into an OO one. # type 'a optional...
  • Cyrus' Blather

    Is it possible to get java's '==' semantics in C#?

    • 16 Comments
    Prelude: Here's what my current array based implementation of ICollection looks like. It builds upon a lot of suggestions as to the tradeoffs of perf vs. memory and uses delegates to place control in the person who creates the collection for how certain...
  • Cyrus' Blather

    ATHF

    • 8 Comments
    Sorry for the poor quality (formatting wise) of the post last night. I was enjoying writing it but then Aqua Team Hunger Force came on on Adult Swim and totally sucked me in. I didn't even both to see what it looked like after I hit “post”...
  • Cyrus' Blather

    Untying unnatural bonds

    • 2 Comments
    Didn't get to work on any of the Unit-testing/Collections work today. Instead I worked on redesigning a design pattern (which i have no name for) into something reasonable. It's hard to describe but it involves several objects (lets say 3 for example...
  • Cyrus' Blather

    Issues posting from my mac

    • 3 Comments
    Kinda frustrated trying to blog from home. Firefox tends to get caught in infinite loops and Safari crashes. Luckily safari has a good system where crashes get sent back to apple. So i am confident that these will get fixed. However, i'm not sure how...
  • Cyrus' Blather

    Jay mentioned me

    • 3 Comments
    Jay linked to me from his blog and had some nice things to say. Unfortunately, I'm new to this blogging stuff and already I'm running into issues balancing the needs of work versus the desire to communicate and discuss. Note: this is a problem even...
  • Cyrus' Blather

    Mike chews me out for including optional operations on an interface

    • 17 Comments
    Mike, another dev on the C# took issue (aka slapped me around) with the way my current interface is being built. He doesn't approve of an Add method that can possibly fail. He thinks that if the interface declares it then it's something that should be...
  • Cyrus' Blather

    Where extensible formatting breaks down

    • 10 Comments
    Imagine the following bit of code: public void ImFeelingStandardToday( int i, int j, int k) { } public void ImFeelingWhimsicalToday ( int i, int j, int l, int k ) { } The first is the method as formatted by the standard...
  • Cyrus' Blather

    Extensible formatting model

    • 2 Comments
    One of the issues with our formatting engine is that it isn't really extensible. This is because we've done the following: We've gone through and marked all the places where you have a formatting choice and we've defined a (unmodifiable) set of...
  • Cyrus' Blather

    Formatting intro

    • 9 Comments
    Anson and i were discussing formatting last night (at around 1 am). He'd received some feedback from some customers about the new formatting engine Kevin has written for Whidbey. The issue that the feature (like many others added in whidbey) tends to...
  • Cyrus' Blather

    First stab at the basic ICollection interface done.

    • 7 Comments
    Ended up with the following for my ICollection interface: namespace Testing.Collections { public interface ICollection <A> { /// <summary> /// Attempts to add an element into this collection /// </summary> ...
  • Cyrus' Blather

    New language innovation from MS research

    • 3 Comments
    Anson and I chatted last night about the very interesting work done my MS research to advance langauge theory and incorporate recent innovations into our process of designing software. These include the ASML project and Polyphonic C# (most likely iwth...
  • Cyrus' Blather

    A fun algorithmic problem

    • 4 Comments
    Gunnar posted a very interesting problem . I gave it two mental stabs before running into walls. So I'm going to break out a good pad of paper and see if I can get it.
  • Cyrus' Blather

    What can/should Pre/Post conditions do?

    • 15 Comments
    In the last post i dicussed the issue of interface invariants. I'm currently enforcing interface invariants by writing them up in code and then running the concrete implementations of that interface against those tests. However, that seems somewhat clunky...
  • Cyrus' Blather

    Should an interface declare invariants that it can't enforce

    • 10 Comments
    I was thinking about the clear method on my ICollection interface. i.e: /// <summary> /// Removes all the elements contained in this collection. /// </summary> void Clear(); Now, it's interesting that that method takes no...
  • Cyrus' Blather

    New core delgate added

    • 1 Comments
    Just added the following delgate: delegate bool Authenticator <A>(A a1, A a2); It's purpose is to take two obejcts of type A and return if they are equal or not. Of course, this is equivalent to: Function <A, Function <A, bool >>...
Page 2 of 3 (73 items) 123