CSharp

  • Thread starter Thread starter Mark Campbell
  • Start date Start date
M

Mark Campbell

I need help for a problem regarding CSharp. Could anyone tell me what it is?

(e-mail address removed)
 
I need help for a problem regarding CSharp. Could anyone tell me what it
is?

This forum, like all the Microsoft technical support peer-to-peer forums, is
visited by lots of people, most of whom have a great deal of knowledge about
the subject of the forum... in this, case, C#. They will all be glad to try
to help you...

However, as far as I am aware, most of them aren't psychic.

All you have to do is, er, actually ask a question...

Go on - give it a go! It's really easy...
 
Mark said:
This forum, like all the Microsoft technical support peer-to-peer
forums, is visited by lots of people, most of whom have a great deal
of knowledge about the subject of the forum... in this, case, C#.
They will all be glad to try to help you...

However, as far as I am aware, most of them aren't psychic.

All you have to do is, er, actually ask a question...

Go on - give it a go! It's really easy...

Perhaps the question is "What is CSharp?" It's a programming language very
similar to Java.
 
Perhaps the question is "What is CSharp?" It's a programming language
very similar to Java.

Is it...?

In what way(s) is C# "very similar" to Java...?
 
PS said:
If it's similar then aren't C# programmer already programming in both?

No. "Similar" doesn't mean "the same".

I'd agree that the two languages are very similar though. Anyone
competent in one will find that the biggest hurdle in moving to the
other isn't the language, but the framework.
 
I need help for a problem regarding CSharp. Could anyone tell me what it is?

(e-mail address removed)

People don't get the joke because your ironic troll is too similar to
many of the serious questions that get posted to this group. I don't
really know how could satirize them, honestly -- they're already the
perfect self-parody!
 
Jon Skeet said:
No. "Similar" doesn't mean "the same".

I'd agree that the two languages are very similar though. Anyone
competent in one will find that the biggest hurdle in moving to the
other isn't the language, but the framework.

The orignal post was "very similar" which implies to me "almost the same".
This I would have to disagree with. I would tend to say "somewhat similar",
like Spanish and Italian.

PS
 
PS said:
The orignal post was "very similar" which implies to me "almost the
same". This I would have to disagree with. I would tend to say
"somewhat similar", like Spanish and Italian.

Natural languages make unclear analogies.

I would say that Java and C# are more similar than Wirth's original Pascal
and ISO Pascal.
 
Mark said:
Is it...?

In what way(s) is C# "very similar" to Java...?

Language syntax. And some of the basic libraries.

A Java console program and a C# console program
doing the same is often very identical. Moving the
start curly brackets is one the biggest
tasks in a conversion between two such.

Arne
 
Arne said:
Moving the
start curly brackets is one the biggest
tasks in a conversion between two such.

How do you mean? Aren't indentation and "where you put the braces"
merely a cosmetic and personal preference in both Java and C#?

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
 
Dylan said:
How do you mean? Aren't indentation and "where you put the braces"
merely a cosmetic and personal preference in both Java and C#?

Both SUN and MS has published coding conventions.

I follow SUN coding concvention for Java and MS coding
convention for C# (unless told otherwise).

So I move the start curly brackets when I convert
code between Java and C#.

And sometimes that take longer time that actually
getting the code to compile.

And the point is that sometimes the conversion effort
is very small.

Arne
 
Arne Vajhøj said:
Both SUN and MS has published coding conventions.

I follow SUN coding concvention for Java and MS coding
convention for C# (unless told otherwise).

So I move the start curly brackets when I convert
code between Java and C#.

There's a lot of point in following *naming* conventions when writing
your own code, as it means it fits in well with the rest of the
framework. Brace position, however, is more of a private matter IMO.
It's good to have consistency within a project, but it makes no
difference otherwise.

(Personally I can't stand the "opening brace at the end of the line"
style.)
 
(Personally I can't stand the "opening brace at the end of the line"
style.)

Me neither...
 
Jon said:
(Personally I can't stand the "opening brace at the end of the line"
style.)

I used that convention until only a week or so ago. Then for some reason
I decided that I couldn't stand it and went back to putting the opening
brace on the next line, without a tab, as I had been told to use about
seven years previous.

Luckily, being the only programmer at work, this means I am free to
change my coding style whenever I feel like it[1], but even then it can
be a pain to change old code to conform to this week's whim :)

As luck would have it though, Visual Studio is nice enough to force
specific formatting on your code when you have set the correct options
in the preferences menu. This meant that, in the above situation, all I
had to do was open up my projects, then delete and re-write the final
brace in each .cs file, and VS formatted all my code nicely.

_____
[1] Which is generally never. I tend to write down exactly how I will
format the code in my projects right at the outset, and then stick to it
vigorously. I'll only make changes to my style if I find that some other
style is actually better than my own. Saying that, I did download a few
coding style guides back when I started learning C# and haven't deviated
much from them since then.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
 
Jon said:
There's a lot of point in following *naming* conventions when writing
your own code, as it means it fits in well with the rest of the
framework. Brace position, however, is more of a private matter IMO.
It's good to have consistency within a project, but it makes no
difference otherwise.

It is not particular funny for maintenance programmers if
half the code uses K&R and the other half Allman.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top