Saturday, May 15, 2004

Chat with a C# newbie (Convert)



xxxxxxx: you're using C#?

onawoleco: Yeah! and its sweet

onawoleco:

onawoleco: what would u recommend?

xxxxxxx: recommend?? how do you mean???

onawoleco: I was wondering y u asked if I used C#

onawoleco: So i thot u had another language in mind

xxxxxxx: you need to use what you "think in".you see i was trying to learn C# but i

onawoleco: So what do u think in?

xxxxxxx: but i need to know its advantages b4 moving in...

onawoleco: What do u "Think In"

onawoleco: It has all the advantage of Java

onawoleco: its smoother and simpler

onawoleco: but better features

onawoleco: and soon Generics will be introduced which is a better implementation of Templates in C++

xxxxxxx: actually "C++"

xxxxxxx: but i suspect there is a very strong similarity b/w them. thats why i am considering it

onawoleco: I do think in C++ too but commercial product always have stringent deadline of which C++ is not appropriate

onawoleco: There is

onawoleco: Same syntax

xxxxxxx: very much like visual c++ (i suspect)

onawoleco: Only u cannot will miss some features in C++

onawoleco: though most has better replacement in it

onawoleco: Not really

onawoleco: VC++ -> MFC is trying to give C++ an OOP look

onawoleco: everything in C# is an object

onawoleco: there is nothing like primitives

onawoleco: like u can say 3.ToString()

onawoleco: This is impossible in C++

onawoleco: but in C# numerics are classes too

onawoleco: Sorry objects too

xxxxxxx: what is my fastest way of learning C#?

onawoleco: Get a book on it

onawoleco: Thinking in C# could be okay

onawoleco: read from the numerous articles on the internet

onawoleco: I learnt a lot thru that way

onawoleco: and join a .Net user group

onawoleco: I am starting a very strong one in Naija soon

xxxxxxx: like which group?

onawoleco: Check www.gotdotnet.com

onawoleco: U will find numerous leads

xxxxxxx: or which website has good tutorials?

onawoleco: read articles from www.codeproject.com, www.theserverside.com

onawoleco: Gotdotnet supports MS passport

onawoleco: all u will use is ur MSN/Hotmail ID

onawoleco: The other is quite easy to get one

xxxxxxx: so C# creates stand-alone applications just like MFC does?

onawoleco: Better and Quicker than MFC

onawoleco: .Net compiled codes are not in Binaries like C++

onawoleco: and MFC alike

onawoleco: C# compiled codes are in IL

onawoleco: which is more like Java bytecodes

onawoleco: but better than Java bytecodes 'cos it is in itself OO

onawoleco: This what the .Net CLR understands and execute

onawoleco: it actually uses JIT

onawoleco: Just-In-Time compilation

onawoleco: which is an optmized compilation anyway

onawoleco: so u may experience the running slow the first time u execute

onawoleco: subsequent time, its faster

onawoleco: The IL made it possible to have language agnostics on .Net

onawoleco: which means it is language neutral

xxxxxxx: this will only run on systems which have .Net installed?

onawoleco: U can program in any language as long as there is compiler to compile to IL

onawoleco: Sure on systems with .Net framework

onawoleco: Just as u cannot run a java code without a JRE

onawoleco: This gives u lighter exectables

xxxxxxx: what is IL?

onawoleco: Intermediate Language

xxxxxxx: .Net can be installed on Win98?

onawoleco: Sure!

xxxxxxx: i will start off tonight! have some kind of tutorials which i save on my notebook about five weeks ago

onawoleco: C# also comes with a garbage collector

onawoleco: better than Java GC

onawoleco: Gooooooooooooooooo

onawoleco: Feel free to ask any que. Will sure like to help

onawoleco: and u can join my group

xxxxxxx: i have never understood that concept.. "garbage collector"

onawoleco: I will even need u to enter Ife well

onawoleco: as soon as I have the draft plan

onawoleco: I will let u see it

xxxxxxx: is it like clearing up unallocated memory?

onawoleco: In C++ u have what u call destructors

onawoleco: yeah it clears unused memory

onawoleco: U sure know what u used destructors for

onawoleco: but sometimes, developers get careless

onawoleco: and forget to clear up allocated memories

xxxxxxx: i mean like freeing allocated memory after use?

onawoleco: which leads to memory leakage

onawoleco: Not immediately after use

onawoleco: at specific time determined by the system

onawoleco: The concept of pointers make momory leakage even more on C++

onawoleco: which is y C# and Java avoided pointers

onawoleco: Though C# provided a workaround under the unbrella of DELEGATES

onawoleco: thats another powerful concept in C#

xxxxxxx: then i will start up with c#, one has to update with time

onawoleco: Sure

onawoleco: thats y I made the decision sometimes ago

onawoleco: even though I still code in VC++ and VC++.Net