Re: C # and C ++ learning curve

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On 20 Jan 2007 20:20:25 -0800, "Deckarep" <deckarep@xxxxxxxxx> wrote:

One thing I like about C# is the fact that if and when you need to jump
into other languages they are many that look/feel like c#.

For example Java, ActionScript( Flash ), JavaScript, PHP and others.

To be honest, Java, JavaScript, PHP, etc. were all invented *before*
C#.
(However, C# has several improvements over Java.)


They all borrow from the family of C languages but more languages like
C# are offering memory managed environments therefore making C# (in my
opinion) the better choice.

Java offered garbage-collector memory management *before* C#.
If I recall correctly, also Visual Basic 6 offered automatic memory
management (but I'm not sure about this).


Companies are looking for rapid development over speed and control. I
mean, imagine programming a Web Application in c++. Of course it can
be done but the C# team will pump it out faster.

I like C and C++, but you're absolutely right here.

Languages are tools, and one must choose the best tools for the given
job.

For web apps, I think the way to go is C#.
(And for some web development, also PHP would be OK, and PHP is much
simpler than C#.)


True, they may not
understand data structures,

C++ has STL, so also a C++ programmer "may not understand data
structures".

But I think that basic understanding of data structures (lookup speed,
sorting, etc.) should be a common denominator of all programmers
(whether they use C# or C++ or other languages)


hardware, and memory management as much as
a c++ programmer would but in many settings rapid development is
favored over those things then if need be performance is squeezed out
by moving to the lower level (read: c++).

Moreover, the WWW and Internet have some latency, so some clock cycles
that a C++ .exe may save on a local machine are absolutely irrelevant
in this context.

And there is the problem of security: it is possible to cause buffer
overflows with C++ arrays (not if one use std::vector with at()
method, however). While C# (and Java) arrays are bounds-checked. This
is very important to build secure software.


MrAsm
.



Relevant Pages

  • Re: which is faster, php or javascript?
    ... Javascript takes about 0.05 seconds. ... If you compare the speed of JS and PHP, ... I too would wonder why two languages are apparently so hugely ... therefore any comparison between them is meaningless. ...
    (comp.lang.php)
  • Re: which is faster, php or javascript?
    ... Javascript takes about 0.05 seconds. ... If you compare the speed of JS and PHP, ... I too would wonder why two languages are apparently so hugely ... therefore any comparison between them is meaningless. ...
    (comp.lang.php)
  • Re: which is faster, php or javascript?
    ... Javascript takes about 0.05 seconds. ... If you compare the speed of JS and PHP, ... I too would wonder why two languages are apparently so hugely ... String.fromCharCode, that's a meaningless comparison? ...
    (comp.lang.php)
  • Re: which is faster, php or javascript?
    ... Javascript takes about 0.05 seconds. ... If you compare the speed of JS and PHP, ... I too would wonder why two languages are apparently so hugely ... therefore any comparison between them is meaningless. ...
    (comp.lang.php)
  • Re: Object Oriented PHP vs Java
    ... > PHP vs Java? ... brought several nice features into the world of programming, ... different languages have chosen different sets of features, ...
    (comp.lang.php)