C# - web or winforms?
-
In C++ there are many ways you could do this depending on what framework your using (MFC, ATL, WTL, Qt, etc…). Some would be just as short and easy to understand. There’s no rule that says you have to use straight Win32 API.
Steve
Stephen Hewitt wrote:
In C++ there are many ways you could do this depending on what framework your using (MFC, ATL, WTL, Qt, etc…). Some would be just as short and easy to understand. There’s no rule that says you have to use straight Win32 API.
Yes, but there are also things such as properties, indexers, delegates(easier and more functional than raw function pointers), iterators with foreach and creation of enermable classes with the yield keyword. There are also things such as cross language interoperability, metadata, reflection. It all adds up to be a great tool to develop your applications on, even with C++. I'm not really saying C# is better, I'm saying that the CLR is a great foundation to build upon in any language.
█▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██
-
Stephen Hewitt wrote:
In C++ there are many ways you could do this depending on what framework your using (MFC, ATL, WTL, Qt, etc…). Some would be just as short and easy to understand. There’s no rule that says you have to use straight Win32 API.
Yes, but there are also things such as properties, indexers, delegates(easier and more functional than raw function pointers), iterators with foreach and creation of enermable classes with the yield keyword. There are also things such as cross language interoperability, metadata, reflection. It all adds up to be a great tool to develop your applications on, even with C++. I'm not really saying C# is better, I'm saying that the CLR is a great foundation to build upon in any language.
█▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██
I've got nothing against dotNET in general or C# in particular. There is little doubt that may programmers find life easier with these tools than with C/C++. On the various language features such as, “iterators”, “foreach” and what have you note that C# and C++ have a different philosophy here. In C# such things are first class language features but C++ goes down a different path: make the language flexible enough so that such things can be implemented in libraries and have a standard library which contains the most generally useful. Third parties can also produce such libraries as can the programmer himself. For example, the STL has a well developed iterator concept and the Boost library provides a foreach[^] construct you can use to iterate over collections. C++ is a very flexible langauge in that respect.
Steve