What is csharp?
> What in sam **** is csharp anyhoo?
Don:
http://msdn.microsoft.com/vstudio/nextgen/technology/csharpintro.asp
--
Phil Weber
dev-archive.com, Inc.
[184 byte] By [
Phil Weber] at [2007-11-9 18:20:51]

# 1 Re: What is csharp?
a) D-flat;
b) "Java" that Microsoft owns.
Regards.
"Phil Weber" <pweber@dev-archive.com> wrote:
> > What in sam **** is csharp anyhoo?
>
>Don:
>
> http://msdn.microsoft.com/vstudio/nextgen/technology/csharpintro.asp
>
>--
>Phil Weber
>dev-archive.com, Inc.
>
>
# 2 Re: What is csharp?
"Andrew Chalk" <achalk@magnacartasoftware.com> wrote in message
news:39754559$1@news.dev-archive.com...
>
> a) D-flat;
No, It's not "D-flat", it's "D_" -- get it?
# 3 Re: What is csharp?
Regaurdless of what you call it (C# - Db) I for one, am underwhelmed by all the
C like augmentation...
using System;
class Test
{
static void Main(string[] args) {
if (args.Length == 0)
Console.WriteLine("No arguments were provided");
else
Console.WriteLine("Arguments were provided");
}
}
And:
using System;
class Test
{
static void Main() {
for (int i = 0; i < 10; i++)
Console.WriteLine(i);
}
}
The use of braces, and semicolons, and even the syntax are all too much
like C for my tastes... Why should I ever want to put one character on a line?
I am very disappointed.
LFS
"Mark Burns" <mark@iolofpa.com> wrote in message news:397866e5$1@news.dev-archive.com...
>
> "Andrew Chalk" <achalk@magnacartasoftware.com> wrote in message
> news:39754559$1@news.dev-archive.com...
> >
> > a) D-flat;
>
> No, It's not "D-flat", it's "D_" -- get it?
>
>
>
# 4 Re: What is csharp?
> I am very disappointed.
So use VB.NET then.
Robert Scoble
###
# 5 Re: What is csharp?
"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:39805985@news.dev-archive.com...
> Regaurdless of what you call it (C# - Db) I for one, am underwhelmed by
all the
> C like augmentation...
>
> using System;
> class Test
> {
> static void Main(string[] args) {
> if (args.Length == 0)
> Console.WriteLine("No arguments were provided");
> else
> Console.WriteLine("Arguments were provided");
> }
> }
>
> And:
>
> using System;
> class Test
> {
> static void Main() {
> for (int i = 0; i < 10; i++)
> Console.WriteLine(i);
> }
> }
>
> The use of braces, and semicolons, and even the syntax are all too much
> like C for my tastes... Why should I ever want to put one character on a
line?
>
> I am very disappointed.
> LFS
Eh, sorry, is being like C in this part of the semantics a BAD thing? Those
braces makes it easy to read (with proper identation). You can of course
also put erverything on the very same line - the program will still
compile... From a code mainenance point of view, I think it would not be a
too good idea.
/Carl
# 6 Re: What is csharp?
> Why should I ever want to put one character on a line?
Larry: You do know that you don't have to?
using System;
class Test {
static void Main(string[] args) {
if (args.Length == 0)
Console.WriteLine("No arguments were provided");
else
Console.WriteLine("Arguments were provided");}}
Personally, I don't see much difference between having "}" or "End Function"
on a line. When I write JavaScript, I mostly get tripped up by the required
semi-colons and parentheses on if... statements.
--
Phil Weber
# 7 Re: What is csharp?
"Phil Weber" <pweber@dev-archive.com> wrote in message
news:398188f7@news.dev-archive.com...
> > Why should I ever want to put one character on a line?
>
> Larry: You do know that you don't have to?
>
> using System;
> class Test {
> static void Main(string[] args) {
> if (args.Length == 0)
> Console.WriteLine("No arguments were provided");
> else
> Console.WriteLine("Arguments were provided");}}
>
> Personally, I don't see much difference between having "}" or "End
Function"
> on a line. When I write JavaScript, I mostly get tripped up by the
required
> semi-colons and parentheses on if... statements.
What's wrong with semi-colons? Thanks to the parentheses you don't need that
"THEN"...
# 8 Re: What is csharp?
> What's wrong with semi-colons? Thanks to the paren-
> theses you don't need that "THEN"...
Carl: I didn't say there's anything *wrong* with them, just that omitting
them is my most common mistake when moving from VB to JavaScript.
--
Phil Weber
# 9 Re: What is csharp?
If you really want compact code, have a look at the programming language python
http://www.python.org/. Python uses indentation for statement grouping.
def invert(table):
index = {} # empty dictionary
for key in table.keys():
value = table[key]
if not index.has_key(value):
index[value] = [] # empty list
index[value].append(key)
return index
# 10 Re: What is csharp?
"Phil Weber" <pweber@dev-archive.com> wrote in message
news:3981fab6@news.dev-archive.com...
> > What's wrong with semi-colons? Thanks to the paren-
> > theses you don't need that "THEN"...
>
> Carl: I didn't say there's anything *wrong* with them, just that omitting
> them is my most common mistake when moving from VB to JavaScript.
Ok, I know that you mean, BTW... That's the problem when switching between
languages. It's fun to write a VBScript in ASP generating a J(ava)Script.
/Carl
# 11 Re: What is csharp?
Yes, I know the syntax can be re-arranged, and but for readability
it should be. I did not like having to use the braces, or the semicolons,
when a new line could have sufficed.
On readability, I saw one guy put it rather succinctly saying something to
the effect that the syntax, looks like so much line noise.
I wanted MS to come out with a new language. I was hoping for one
that was more or less a wrapper for the OS (IE being closely tied), but
I would have appreciated a compiled language with syntax that looked
more like Visual Basic.
As Bruce McKinney pointed out with his WIN.TLB, the OS doesn't have to
be a stranger, even in VB. Or, who said MS could not have included a data
type called Pointer? Or, more rather, a type qualifier in a form similar to:
Dim ptrX as Byte Pointer
Dim ptrY as Long Pointer
Or several other embellishments that allow a closer tie to the OS...
Don't get me wrong, I was not looking for VB7, but a completely new
language, developed from the experience gained in the field, to date.
Call me selfish ;) but I was hoping for something that would be simplified
like Basic, and involve less of a learning curve, for me personally...
Instead, it appears MS has (not surprisingly) gone where the money is
and catered to corporate america who largely agree that C++, Java,
et. al. is a better development environment.
LFS
"Phil Weber" <pweber@dev-archive.com> wrote in message news:398188f7@news.dev-archive.com...
> > Why should I ever want to put one character on a line?
>
> Larry: You do know that you don't have to?
>
> using System;
> class Test {
> static void Main(string[] args) {
> if (args.Length == 0)
> Console.WriteLine("No arguments were provided");
> else
> Console.WriteLine("Arguments were provided");}}
>
> Personally, I don't see much difference between having "}" or "End Function"
> on a line. When I write JavaScript, I mostly get tripped up by the required
> semi-colons and parentheses on if... statements.
> --
> Phil Weber
>
>
# 12 Re: What is csharp?
Larry,
>Yes, I know the syntax can be re-arranged, and but for readability
>it should be. I did not like having to use the braces, or the semicolons,
>when a new line could have sufficed.
Personal preference, of course. But I hate having to use the
underscores (_) when I want a VB line of execution to fall on multiple
source lines. The semicolon termination fixes that problem nicely. It
also allows for better cases of commenting. Why should I be unable to
do the following in VB?
Private Function LongParameterList (
ByVal sFirstParam As String, 'Now comment the parameter
ByVal sSecondParam As String, 'Add comment for this line
etc.
Much easier to read than the way I have to do it with line
continuation characters:
'Comment first line
'Comment second line
'etc
Private Function LongParameterList ( _
ByVal sFirstParam As String, _
ByVal sSecondParam As String, _
etc
I just find line termination characters much easier to deal with than
line continuation characters.
And if you don't like the curly brackets showing on a line alone, try
commenting them:
if (args.Length == 0) {
Console.WriteLine("No arguments were provided");
} else {
Console.WriteLine("Arguments were provided");
} //End If (Length == 0)
Looks far closer to what you're used to in VB.
Ciao, Craig
# 13 Re: What is csharp?
"Carl Nettelblad" <cnettel@hem.passagen.se> wrote in message
news:3982ada8@news.dev-archive.com...
> Ok, I know that you mean, BTW... That's the problem when switching between
> languages. It's fun to write a VBScript in ASP generating a J(ava)Script.
The real fun is writing VBS/ASP to generate JScript that generate HTML.
A simple double-quote becomes \"""
--
Truth,
James Curran
http://www.NJTheater.com (Professional)
http://www.NovelTheory.com (Personal)
http://www.BrandsForLess.com (Day Job)
# 14 Re: What is csharp?
"James Curran" <jamescurran@mvps.org> wrote in message
news:3986e381$1@news.dev-archive.com...
> "Carl Nettelblad" <cnettel@hem.passagen.se> wrote in message
> news:3982ada8@news.dev-archive.com...
> > Ok, I know that you mean, BTW... That's the problem when switching
between
> > languages. It's fun to write a VBScript in ASP generating a
J(ava)Script.
>
> The real fun is writing VBS/ASP to generate JScript that generate
HTML.
> A simple double-quote becomes \"""
Yeah, I forgot. In fact, part of that JScript I mentioned did just that, but
most of it accessed the data through the DOM.
/Carl
# 15 Re: What is csharp?
So I guess you dislike Java as well. What is so bad about taking the best of
several languages and combining those best features into one language?
DTL
"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:39805985@news.dev-archive.com...
> I am very disappointed.
> LFS
# 16 Re: What is csharp?
C Sharp is VB with curly braces. : )
# 17 Re: What is csharp?
Know C++ ?
If Java is C+- (plus minus) then C# is C-+ (minus plus)
SBC
"Don Manly" <spam@hotmail.com> wrote in message
news:3974a06c@news.dev-archive.com...
> What in sam **** is csharp anyhoo?
>
>
>
# 18 Re: What is csharp?
Ahhhh... philosophy..
My 2 cents:
C# is ...
..the next step up from MSIL assembler.
..the most powerful language that comes
free with .NET
..a very modern language with the best features
of most of the more modern languages that
system-type programmers are familiar with.
(like C, C++, Java)
The C# group at MS probably had to compromise based
on what the CLR group could deliver for release, and there
will be future releases with even more complexity... ;-)
(just a guess..)
To a large degree, learning .NET involves learning
various models, like the object model, the threading
model, the forms model.
The CLR is vast in it's built-in functionality, and it
is accessible from any .NET language!
--
Cheers!
Tom
------------------
See: http://VoiceBoards.Com
"FREE VOICE MESSAGING, why type"
------------------
"Supriyo Chatterjee" <chatterjeesb@home.com> wrote in message news:3bb77e2f@news.dev-archive.com...
Know C++ ?
If Java is C+- (plus minus) then C# is C-+ (minus plus)
SBC
"Don Manly" <spam@hotmail.com> wrote in message
news:3974a06c@news.dev-archive.com...
> What in sam **** is csharp anyhoo?
>
>
>
# 19 Re: What is csharp?
"SirTom@OwnMe.com" <SirTom@OwnMe.com-YADA> wrote:
>Ahhhh... philosophy..
>
>My 2 cents:
>
>C# is ...
> ..the next step up from MSIL assembler.
> ..the most powerful language that comes
> free with .NET
> ..a very modern language with the best features
> of most of the more modern languages that
> system-type programmers are familiar with.
> (like C, C++, Java)
>
>The C# group at MS probably had to compromise based
>on what the CLR group could deliver for release, and there
>will be future releases with even more complexity... ;-)
>
>(just a guess..)
>
>To a large degree, learning .NET involves learning
>various models, like the object model, the threading
>model, the forms model.
>
>The CLR is vast in it's built-in functionality, and it
>is accessible from any .NET language!
>
>--
>Cheers!
>Tom
>
>------------------
>See: http://VoiceBoards.Com
>"FREE VOICE MESSAGING, why type"
>------------------
>"Supriyo Chatterjee" <chatterjeesb@home.com> wrote in message news:3bb77e2f@news.dev-archive.com...
>Know C++ ?
>If Java is C+- (plus minus) then C# is C-+ (minus plus)
>
>SBC
>
>"Don Manly" <spam@hotmail.com> wrote in message
>news:3974a06c@news.dev-archive.com...
>> What in sam **** is csharp anyhoo?
>>
>>
>>
>
>
>
>
I want to know about the differences between alpha version and bets version?
gss at 2007-11-11 22:48:14 >

