Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Cs and Cpp (https://postpacific.loc-online.com/showthread.php?t=3029)

M-@-t-R-i-X 18.01.2006 14:35

Cs and Cpp
 
sorry for the post, i didnt know where to post about this, i'm learning cpp atm, and now as i saw you are coding la2 server in cs i need an advice and answers :?

1. why cs ?
2. cs is newer than cpp ?
3. what advantages does cs have ?

and fourth an advice:

what should i do? countinue learning cpp and then start cs or stat cs right away ? :?

i'm asking about this b'coz i really want to help you :)

again, sorry if this is wrong area to post topics like this!

navy 18.01.2006 14:44

.Net is the new platform, and will support by M$ Also have many good features such as GC (GarbageCollector) If you plan to help, so you may start with c# :)

Sindol 18.01.2006 14:48

Using C# over C++ is all personal preference for me, I've used C++ so much I just wanna try something different.

And yes C# is newer then C++, the advantages of C# is that its "managed", meaning I don't have to worry about keeping track of the memory I use in my applications. In C++, you have to worry about freeing memory you use or risk memory leaks, this is all taken care of by C#'s garbage collector. Another advantage of C# is it has retardedly simplistic syntax and is 100 times easier to use "out of the box" then C or C++. The disadvantages of C# is that no mater how much they refine it, it will never match the performance of C++ in terms of speed. But don't get me wrong, C# isn't that much slower then C++, but sometimes every little bit counts. Now I've matched the speed of C++ in a couple of my C# apps, but that was using unsafe code, but thats another matter all together. Another disadvantage is that despite any claims, its NOT supported 100% by anything other then windows XP. Win9x and Win2000 have good support (you'll still get the occasional NotSupportedException tho), but for Linux use you have to rely on Mono and its shaky support at best. You're typical app will work, but for critical apps, you're asking for trouble.

My advice, continue to learn C++ before C#. You'll want to be 100% comfortable with object oriented programming before diving into C#. plus knowing C++ will never hurt.

M-@-t-R-i-X 18.01.2006 14:48

pasiba :)

thnx :)

karioth 16.03.2006 01:00

C++ is an object oriented programming
C# is an object oriented way of thinking :)

Shawnmb 16.03.2006 16:14

That being said you're relying on Microsoft's work to manage your apps memory... Looking at the job they did with their OS I don't find them too reliable for that. Then again, I'm not really the one to talk, I have yet to spend an applaudable amount of time writing .NET applications.

X-Noise 04.04.2006 03:40

rus
В защиту технологий Microsoft могу сказать следующее:

Производительность приложений не сильно уступает аналогам, плюс выброшено много лишнего, не смотря на ущербность гибкости.

Небезопасный код позволяет решить некоторые проблемы в производительности, при всем при этом главный фактор удобство, не только в проектировании, но и в отладке, трасировке скомпилированного приложения. Не хотите полагаться на GC, не полагайтесь, применяйте API функции Windows.

Для .NET есть несколько проблем, на которые можно обратить внимание, но только ради интереса, в остальном за годы применения CS в своих нуждах, я не нашел в нем ничего отталкивающего.

Широкий спектр реализаций, прост как никогда:
Win & Web: Services, Applications, Libraries

Поэтому мой приоритет CS а не CPP.
rus

In protection of technologies Microsoft I can tell the following:

Productivity of applications not strongly concedes to analogues, plus is thrown out a lot of superfluous, not looking on problems for flexibility.

The unsafe code allows to solve some problems in productivity, at all thus a primary factor convenience, not only in designing, but also in debugging, trace the compiled application. Do not want to rely on GC, do not rely, apply API functions Windows.

For .NET there are some problems to which it is possible to pay attention, but only for the sake of interest, in the rest for years of application CS in the needs, I have not found in it anything repellent.

The wide spectrum of realizations, is simple as never:
Win and Web: Services, Applications, Libraries

Therefore my priority CS instead of CPP.


All times are GMT. The time now is 16:19.