[Macro error: Can't call the script because the name "linkToRss" hasn't been defined.] Clarence Westberg's Radio Weblog
Clarence Westberg's Radio Weblog : No matter how cynical you get, it is impossible to keep up
Updated: 5/9/2003; 10:45:17 AM.

 
Computer
Hobbies
Sports
Links

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Google
Search WWW Search radio.weblogs.com

Wednesday, February 26, 2003

More on reflection...

So I tried

object o = Activator.CreateInstance("MVC","MVC.Controller"); and it worked! I tried this before but it has never worked because all documentation I have seen says do it like this

object o = Activator.CreateInstance("MVC.DLL","MVC.Controller"); (note the .dll!)

 


4:18:38 PM    Clarence Westberg's Links & Comments

GetType and Namespace.

If I do Type.GetType("MyClass") it doesn't work, that is it doesn't find the class.  If I do Type.GetType("MyNamespace.MyClass")  it works but only if I am in MyNamespace. If I have a using statement and a reference it doesn't work either Type.GetType("MyOtherNamespace.MyOtherClass").

How do  I get the type of a class not in my namespace?


3:36:56 PM    Clarence Westberg's Links & Comments

C# Delegates

O'Reilly Network: Understanding the Nuances of Delegates in C# [Nov. 04, 2002]

A nice set of delegate examples.


2:32:59 PM    Clarence Westberg's Links & Comments

3Degrees.

Yoz Grahame rips apart the 3Degrees beta with deft skill. I'm more or less compulsed to post any review that uses the words "metric arseload". It's an illness, I know... now go enjoy the show!

[The .NET Guy]

I downloaded this beta. At least I got it to work, but it took about 2 hours to get all of the code and updates. I guess when it is reall they must be planning to make it part of a new XP release or something because real humans don't want to go through this much. The wink feature is like the singing fish plaques, cool for a few minutes then it really sucks. You can exchange pictures but not files. We were able to get a file accross by giving it a .gif extension then renaming it in the other side. Kind of stupid, you would think college kids would need to exchange files as well as music and pictures.


1:31:33 PM    Clarence Westberg's Links & Comments

Testing - kids get it. I haven't taught the Smalltalk class in a couple of weeks - the snow storm last week blew away a class, and if the snow keeps up the way the forecast calls for, tomorrow's class will be off as well.

In the meantime, I was very impressed with what happened last time around. I decided to introduce them to some rteal coding - with a browser. We took a very simple example - a simple "calculator" application that could add numbers. So we defined a class:


Smalltalk defineClass: #Counter
superclass: #{Core.Object}
indexedType: #none
private: false
instanceVariableNames: 'counter'
classInstanceVariableNames: ''
imports: ''
category: 'Calculator'


We actually use Squeak, since it has a lot of cool things for introducing programming - the Alice stuff in particular. Anyway, they stumbled through the creation a bit - but they got the basic class/instance split more quickly than I thought they would. Once we implemented the ' ' message, a light clicked - they got it!!. They they ran off and did subtraction, multiplication, and division - the biggest question they had was what sign to use for multiply - they were not familiar with the asterisk notation.

But they got it. Very impressive, and lots of fun. [Cincom Smalltalk Blog - Smalltalk with Rants]
10:47:54 AM    Clarence Westberg's Links & Comments


© Copyright 2003 Clarence Westberg.



Click here to visit the Radio UserLand website.

 


February 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar

Clarence/Male/51-55. Lives in United States/Minnesota/Bloomington/West, speaks English. Spends 80% of daytime online. Uses a Faster (1M+) connection.
This is my blogchalk:
United States, Minnesota, Bloomington, West, English, Clarence, Male, 51-55.