A JeDi Journey (there is no certainty, only opportunity)

yesterday padawan will become tommorow jedi

Posts Tagged ‘.net

learning c# thru java part 1

with 2 comments

i found out very interesting facts while learning basic c#.

It took me about half an hour to identify what was wrong with my code below. It just that the main function problem.

namespace ConsoleTest //java guys: in java we call this thing packaging
{
    class Intro1
    {
        static void Main(string[] args) //java guys: watch out the main!!!! in c# its capital M
        {
            System.Console.WriteLine("hello worlds");
        }

    }
}

this is also a valid code as shown below

namespace ConsoleTest //java guys: in java we call this thing packaging
{
    class Intro1
    {
        static void Main() //java guys: huhu no argument from command line
        {
            System.Console.WriteLine("hello worlds");
        }

    }
}

Yeahh multiple main entry for 1 source file also permitted. Except when u compile the source file. U need to give extra information to the clr. As shown below.
example: csc filename.cs /main:whichClass.cp

namespace ConsoleTest //java guys: in java we call this thing packaging
{
    class Autobat
    {
        static void Main()
        {
            System.Console.WriteLine("autobat...transform");
        }

    }

    class Decepticon
    {
        static void Main()
        {
            System.Console.WriteLine("decepticon..kill em all!!!!");
        }

    }
}

And u should know that the exe file produced by the clr its not the same with other old exe files. This new exe file compiled by the clr needs the .net platform to run.
Also u cannot compile class with out the entry point (the main function). U need extra parameter to compile it.
example: csc /target:library namafile.cs

If u want, u can also have the same class name but in different namespace in the same source file. Also i learned that c# support alias which i doubt its usefulness.

Like java, c# can also have multiple class declaration in 1 source file. But java only permitted only 1 public class declaration for each class.

Written by peysal

April 26, 2008 at 6:59 am

Posted in SofTware DevelopMent

Tagged with , ,

core web .net tech part 1

without comments

This weekend i spent most of my time doing revision on core web tech. Next week i got advance class to attend. Instead of blurring all the time, it should be more productive if i understand what the instructor will be teaching me.

Just finish chapter 1. I’m not sure whether I really slow or maybe the instruction on the book too long, it took me about 3 hours just to finish 1 chapter. Anyway as long i understand its worth while.

Basic knowledge in asp.net require u to know

  1. Controls in asp.net terminology. U have button, hyperlink, label , textbox and so on.
  2. Page model use by the .net . It can be further break down into

No code example for this post. With visual studio drag and drop will teach u to code less.

Written by peysal

April 19, 2008 at 1:31 pm

Posted in SofTware DevelopMent

Tagged with ,

go cert

with one comment

Banyak betul belajar dalam masa 2 minggu nih. Eventhough training nih banyak memperkenalkan produk michaelsoft utk software development, tapi aku merasa agak puas belajar sesuatu yang baru. Antara benda aku belajar:

  1. core web development dengan michaelsoft visual studio 2005
  2. core windows forms development dengan michaelsoft visual studio 2005

Skang aku dah ader 2 cert official dari michaelsoft. Secara jujur benda nih ko takleh compare dengan orang yang berpengalaman buat system pakai michaelsoft punya product.

cert = alaa macam zaman u gak. Belajar dengan lecturer ngajar kat depan. Then ko buat exercise. Dalam kes aku pasal training nih workshop so banyak laa hands-on.

experience = pengalaman laaa…hahaha. Lagi mantap dari semua cert yang ader kat dunia nih.

Cert nih buat lawa resume ko jer time interview. Tapi most company kat mesia nih recognize prof cert. Hopefully chances aku dapat keje baru yang aku nak meningkat. InsyaAllah.

go michaelsoft

Written by peysal

April 18, 2008 at 11:23 am

Posted in SofTware DevelopMent, career

Tagged with ,