Basic C# Examples

I was thinking last night, all posts here are very great, and made by all those smart people. But why is it that my fellow students hardly read them? Or why don't you hear them a lot?

Some of my possibile conclusions were:
  • It's too hard, most of the posts here require background or understanding, which we as students don't have that much yet.
  • No real basic examples. There are snippets, there is a lot of code being posted here, but the target audience here isn't the beginning programmer, we mostly write for people who already know a lot.
  • ...?

And because of that, and because I want to raise interest among the people I know, I decided to ask them for questions they had about C#, and try to answer them by example.

I'm gathering subjects to write on, very basic subjects, appealing to students as well. And I'll try to create an application that answers their question and provides code they could extend.

Hopefully I can keep this up, because I'm learning a lot from it as well. It helps you to think of subjects you wouldn't have tought of otherwise. And I have to check out docs and examples as well to write an article about it from scratch.

The first article is about 'How to get on IRC with C#'. I created a basic Console IRC Bot along with some comments. The example uses tcp connections, streams and events. Source code is provided as well.

I hope other students like the idea... (not only students by the way, everyone can use samples!)

Let me know if this is a good plan. (Or if you have negative comments, go ahead as well ;))

5 Comments

  • i think it's a very good idea, in this way we (= fellow students and other persons) can learn from examples, which is, I think, the best way to learn something

  • Well, what do you think I think of this plan? :-p



    It's a genious idea,...



    Didn't I tell someone It would be cool to make an IRC-bot with C# ;-), just kidding.



    If I can find some new subjects to work on, and subjects that aren't too hard, because, I can't ask you to write an Operating System, or could I :-p...?





    (This isn't necessary, there are plenty of OS'es, and plenty left to try)

  • C# is for mental ill peoples:)

    better leave it..

    it will die by itself soon

  • how can c# die when microsoft made it and its part of a vs.net package very nicely done. what microsoft makes the public wants.

  • using System.Windows.Forms;

    using System.Drawing;



    class MyForm:Form{

    public static void Main(){

    Application.Run(new MyForm());

    }



    protected override void OnPaint(PaintEventArgs e){

    e.Graphics.DrawString("Hello World!", new Font("Arial", 35),

    Brushes.Blue, 10, 100);

    }

    }

Comments have been disabled for this content.