473,804 Members | 3,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disadvantages of C#??? just curious

Hello every body ,
upto now i saw advantages of C# only,i am curious about what are the
disadvantages of C#..(because any programming language should have some
positives and negatives..)

Thanks

Chandu
Apr 12 '07 #1
34 8188
Hello chandu,

Can't be used in real-time systems as all .NET FW

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

cHello every body ,
cupto now i saw advantages of C# only,i am curious about what are the
cdisadvantages of C#..(because any programming language should have
csome
cpositives and negatives..)
cThanks
c>
cChandu
c>
Apr 12 '07 #2
Can't be used in real-time systems as all .NET FW

This is a limitation of the .Net platform, not the C# language.

I'm not sure that any aspect of the C# language could be called a
"disadvanta ge," although some of the enhancements in C# 3.0 seem to provide
the ability to write less-readable code, such as implicit types and lambda
expressions.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Michael Nemtsev" <ne*****@msn.co mwrote in message
news:a2******** *************** ****@msnews.mic rosoft.com...
Hello chandu,

Can't be used in real-time systems as all .NET FW

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

cHello every body ,
cupto now i saw advantages of C# only,i am curious about what are the
cdisadvantages of C#..(because any programming language should have
csome
cpositives and negatives..)
cThanks
ccChandu
c>

Apr 12 '07 #3
On 12 Apr, 13:35, "chandu" <nareshv_chan.. .@hotmail.comwr ote:
Hello every body ,
upto now i saw advantages of C# only,i am curious about what are the
disadvantages of C#..(because any programming language should have some
positives and negatives..)

Thanks

Chandu
Well, first of all it's a compiled language (with the pro's and con's
of that) as opposed to a script-language like Python. Secondly it is
compiled to Common Intermediate Language (CIL) so there is a second
"compilatio n": JIT (just-in time compilation). This makes it something
in between a script language like Python and a "native" language like
C - again this is comes with both pro's and con's. Python-people (and
others) tend to seem script-languages are faster for developing and
more flexible when updating parts of the system (no need to store
stuff in the GAC I guess). On the other hand I think complied
languages are little more robust and I guess faster since they are
compiled.

Since it is compiled to CIL you can pretty much extract your source-
code from f.x. an exe-file, a typical tool for this is Lutz Roeders
Reflector. This can be considered positive sometimes, and negative
sometimes.

An advantage of the CIL-stuff is that is can interface with all
classes and libraries of the .NET platform. As I see it this is the
main advantage of C# and any other .NET-language.

Since Microsoft is pretty much behind C# I fear, and at least some
people with me, that C# is a sort of "flavor of the decade" language -
meaning that in five to ten years it will be dead and replaced with
the next Microsoft "flavor of the decade". Compared to C that is a
very stable language that has been around for about 30 years and has
looked pretty much the same C# will not look like it does today in 10
years if it exists. (My personal opinion/guess/fear.)

Also, since I like conspiracies I think Microsoft is doing this to
make money (perhaps not only but at least partially), it must be nice
for them to force people to buy new stuff, reprogram that stuff and so
on at least once a decade. BUT: If you ask Microsoft they will reply
that they want to invent new stuff and lead in the technology race
instead of being second. And of course they are right. C#/.NET would
not be as excellent as it is if it had not been for the extreme effort
they have put into it. But still: I fear that C# will be a dead
language in 10 years (replaced with a new C-flavor), but that C will
still be running strong. (On the other hand the .NET framework seems
to be really important so I dunno really.)

When it comes to syntax you could perhaps prefer visual basic or some
other .NET-language, but that is a matter of taste (since C# and
VB.NET have (I guess) identical functionality).

HTH,

Per
--
Per Erik Strandberg
..NET Architect - Optimization
Tomlab Optimization Inc.
http://tomopt.com/tomnet/

Apr 12 '07 #4
"per9000" <pe*****@gmail. comwrote in news:1176381548 .652585.265900
@l77g2000hsb.go oglegroups.com:
Well, first of all it's a compiled language (with the pro's and con's
of that) as opposed to a script-language like Python. Secondly it is
compiled to Common Intermediate Language (CIL) so there is a second
"compilatio n": JIT (just-in time compilation).
Note that the "language c#" itself does not as such require that anything
is compiled to CLI code. Microsoft's C# does compile to CLI, but
technically anyone could write a compiler for C# which compiles to any sort
of executable.

Since Microsoft is pretty much behind C# I fear, and at least some
people with me, that C# is a sort of "flavor of the decade" language -
meaning that in five to ten years it will be dead and replaced with
the next Microsoft "flavor of the decade". Compared to C that is a
very stable language that has been around for about 30 years and has
looked pretty much the same C# will not look like it does today in 10
years if it exists. (My personal opinion/guess/fear.)
But note that while C# may indeed have been developed at Microsoft it is
now an open standard, so not controlled by Microsoft. That is not to say
they won't make their own "extension" . I think they did something like that
with C++.

Apr 12 '07 #5

"chandu" <na************ *@hotmail.comwr ote in message
news:eE******** ******@TK2MSFTN GP04.phx.gbl...
Hello every body ,
upto now i saw advantages of C# only,i am curious about what are the
disadvantages of C#..(because any programming language should have some
positives and negatives..)
Support for small integral types is horrendous. Example:

byte a = 5;
byte b = 6;
byte c = a & b; // error!

Obviously, the bitwise and of two 8-bit numbers is also 8 bits. Except in
C#, it's 32 bits and you need a cast:
byte c = (byte)(a & b);

You can't even complement a byte:
byte d = ~a; // error
byte d = (byte)~a; // accepted

Absolute stupidity, if you ask me. (And yes, I know that local variables
could easily be made into ints... but when you're filling a byte array you
just can't get around the perpetual casting).

Oh, and the fact that it uses C-style casts. C++ introduced new,
specialized, self-documenting casts because the C-style ones tend toward
buggy code. Why should unboxing, query interface, and upcasts all use the
same cast syntax?

Lack of typedefs. Lack of free functions (there ought to at least be a way
to introduce a static class into name resolution).

And finally, the big one: lack of templates. .NET Generics can't express
certain constraints, so many things aren't possible.
Apr 12 '07 #6
Kevin Spencer wrote:
>Can't be used in real-time systems as all .NET FW

This is a limitation of the .Net platform, not the C# language.

I'm not sure that any aspect of the C# language could be called a
"disadvanta ge," although some of the enhancements in C# 3.0 seem to provide
the ability to write less-readable code, such as implicit types and lambda
expressions.
Yes, any new construct in a language offers the opportunity to write
less readable code, but correctly used it also adds the opportunity to
write more readable code. :)

--
Göran Andersson
_____
http://www.guffa.com
Apr 12 '07 #7
On 12 Apr, 15:45, Peter K <xdz...@hotmail .comwrote:

<snip>
Since Microsoft is pretty much behind C# I fear, and at least some
people with me, that C# is a sort of "flavor of the decade" language -
meaning that in five to ten years it will be dead and replaced with
the next Microsoft "flavor of the decade". Compared to C that is a
very stable language that has been around for about 30 years and has
looked pretty much the same C# will not look like it does today in 10
years if it exists. (My personal opinion/guess/fear.)

But note that while C# may indeed have been developed at Microsoft it is
now an open standard, so not controlled by Microsoft. That is not to say
they won't make their own "extension" . I think they did something like that
with C++.
INDEED, the MONO-project http://www.mono-project.com/ is an excellent
example of C# (et. al.) being used in under GNU FDL. I fear/suspect
that C# + MONO will outlive C# + Windows and that the two might
diverge soon. It should be technically impossible since, as you say,
C# follows a standard not governed my Microsoft.

BUT: Microsoft has a tendency to ignore standards and create formats
that are "close enough" and call those formats standards (like their
new image format). This will most likely be done by, in five years or
so, stop shipping/supporting C# compilers with SDK's and use compilers
for Cw (http://research.microsoft.com/Comega/) instead. By doing this
they sort of work around the C#-standard and after another five years
or so they let someone else govern the language specs for Cw and start
working on what I guess will be called C*.

STILL: If this is the case then C# + MONO will live on in the GNU-
world and might somehow be abandoned by the .NET framework, causing MS-
people to stop using C#, buy Visual Cw Studio ya-di-da and rebuild
their root-finding bisection algorithm in a new language (like buying
the white album from Beatles on LP in the 1970's, MC in the 1980's, CD
in the 1990's, DVD in the 2000's, etc. etc.).

AGAIN: this is my conspiracy theory and I might be completely wrong -
perhaps this message should be posted in alt.comp.lang.c sharp
[:)]-|--<

ALSO: I am not saying that this is necessarily a bad thing - I am just
skeptic about the motives behind it all.
Per

--

Per Erik Strandberg
..NET Architect - Optimization
Tomlab Optimization Inc.
http://tomopt.com/tomnet/

Apr 12 '07 #8
Hello,

There are some carriable ways to use C# as an object-oriented language
with COM support in "realtime" Systems.
For Example: the XILINX FPGA's
In many develobment-systems C# is/or will be
supported.
This is realtime.
Yes, VHDL is the better choise, but C# is an easy
to use/learn language.

For Example: Graphics
For fast products you have to use DX or OpenGL.
GDI+ is only useful for simple ouputs. (2.0)
Maybe in 3.0 it will is faster.

Andy
On Apr 12, 1:41 pm, Michael Nemtsev <nemt...@msn.co mwrote:
Hello chandu,

Can't be used in real-time systems as all .NET FW

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

cHello every body ,
cupto now i saw advantages of C# only,i am curious about what are the
cdisadvantages of C#..(because any programming language should have
csome
cpositives and negatives..)
cThanks
c>
cChandu
c>

Apr 15 '07 #9
chandu wrote:
upto now i saw advantages of C# only,i am curious about what are the
disadvantages of C#..(because any programming language should have some
positives and negatives..)
C# is pretty well designed so there are no big ooops's in it.

There are some things that are not part of the language and which
some people may want to have in the language:
- infinite size integers
- multiple inheritance
etc.

There are some things that is part of the language and which
some people may want to not have in the language:
- properties
- virtual/override
etc.

It can discussed forever whether curly brackets or begin end
is most readable etc..

I think only people with lack of imagination will not have
something to complain about but also that only people that
are whiners will not like the language.

It is well designed to doing all kinds of programming. It may
not be the best for everything (if you search back a couple
of months you will find someone that wrote an app in less
lines in F# than in C#) but good at everything or at
least everything I can think of.

Personally I like the fact that there are unsigned variants
of short/int/long and a signed variant of byte. This is
usually what is needed.

Arne
Apr 16 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
23181
by: Wilbur | last post by:
My company is considering using C# for a large project and it is a language I'm only just now becoming familiar with. For the most part I like it and that seems to be the most logical choice as far as future support. My question is: what are the disadvantages or limitations of using C#? So far I've seen very few people willing to mention anything "bad" about it, but every language has it's faults. We would be using C# in the .NET Framework...
3
41541
by: enchantingdb | last post by:
I have an exam tomorrow that covers the perceived advantages and disadvantages of object oriented programming, in particular polymorphism, inheritance and encapsulation. I know the advantages but am not clear on the disadvantages. I have had a look on the Web and in newsgroups but couldn't find much. As time is running out, I thought I would post here and hope that someone would reply. Thanks Rob
21
11217
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
54
6497
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications quickly and easly." I don't agree on what concernes ASP .NET Web Sites in VS2005. All what involves Namespaces in Web sites has been disappeared. I know you can still MANUALLY manage them, but not QUICKLY and EASLY. In a
12
2178
by: DC | last post by:
We are about to go online with an ASP.Net site. We have found that it is easiest for us to use windows-1252 content encoding, since that solves our problems with some special characters. Are there some general disadvantages about using this codepage (most sites I know use utf-8 or iso) - I am thinking of things like search engine incompatibilities - or should it be OK to use 1252? Thanks for any hint in advance, Regards
11
7339
by: GVN | last post by:
Hi All, Can anyone guide me when asynchronous method calls will be benificial? Are there any disadvantages of using asynchronous calls? Thanks,
1
9172
by: vumani | last post by:
what is the advantages and disadvantages of Ms SQL server and java servletts front-end on the clien end. what is the advantages and disadvantages of Ms Access on the server, connected via JDBC and java on the client end. what is the advantages and disadvantages of HTML on the client end,coupled with SQL server and ODBL on the server end.
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7626
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.