Click here to Skip to main content
15,909,953 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: C++ Pin
TheGreatAndPowerfulOz25-Jul-14 9:37
TheGreatAndPowerfulOz25-Jul-14 9:37 
GeneralRe: C++ Pin
Nish Nishant25-Jul-14 9:39
sitebuilderNish Nishant25-Jul-14 9:39 
GeneralRe: C++ Pin
TheGreatAndPowerfulOz25-Jul-14 9:43
TheGreatAndPowerfulOz25-Jul-14 9:43 
GeneralRe: C++ Pin
Nish Nishant25-Jul-14 9:46
sitebuilderNish Nishant25-Jul-14 9:46 
GeneralRe: C++ Pin
TheGreatAndPowerfulOz25-Jul-14 9:48
TheGreatAndPowerfulOz25-Jul-14 9:48 
GeneralRe: C++ Pin
Manikandan1030-Jul-14 2:01
professionalManikandan1030-Jul-14 2:01 
GeneralRe: C++ Pin
TheGreatAndPowerfulOz30-Jul-14 3:14
TheGreatAndPowerfulOz30-Jul-14 3:14 
GeneralRe: C++ Pin
Eytukan27-Jul-14 20:02
Eytukan27-Jul-14 20:02 
To be honest here, Nish! Assuming the devs are just getting exposed to both the language at the same time. I'm sure C# attracts more. The simplicity of the language and robust .net framework behind the scene makes C# the preferred choice. Having said that, I truly loved every bit of C++ too. My first so many years of programming were only with C++. And I truly loved working with it. There were no complaints except for those unhumanly STL compiler error "messages". & some wired Syntaxes like the static variable "initialization" in Cpp files to name. I understand it's a language feature, but it's still not intuitive.

But once I got into C#, there was no compelling reason for me to try something in C++. And honestly, I never LEARNED C# by reading books or tutorials. One fine day, I simply started coding in C# Wink | ;) . I find it's one of the most intuitive language. Only when we talk about performance constraints, I might look back at C++. When I say "C++" , I mean the platform-independant , standard , stroustrup's C++. Microsoft's implementation gives me creeps D'Oh! | :doh:

Anybody wishing to learn C++ through MS implementation, I'm sure would run away. The arrow marks <^>^ pointing all directions makes the code less readable. To read it (Sample below!) like a love letter, you gotta be a bot like NISH! Poke tongue | ;-P
C++
emplate<typename Callback>
void ReadString(String^ fileName, Callback func)
{
  StorageFolder^ item = KnownFolders::PicturesLibrary;

  auto getFileOp = item->GetFileAsync(fileName);
  getFileOp->Completed = ref new AsyncOperationCompletedHandler<StorageFile^>
    ([=](IAsyncOperation<StorageFile^>^ operation, AsyncStatus status)
  {
    auto storageFile = operation->GetResults();
    auto openOp = storageFile->OpenAsync(FileAccessMode::Read);
    openOp->Completed = 
      ref new AsyncOperationCompletedHandler <IRandomAccessStream^>
      ([=](IAsyncOperation<IRandomAccessStream^>^ operation, AsyncStatus status)
    {
      auto istream = operation->GetResults();
      auto reader = ref new DataReader(istream);
      auto loadOp = reader->LoadAsync(istream->Size);
      loadOp->Completed = ref new AsyncOperationCompletedHandler<UINT>
        ([=](IAsyncOperation<UINT>^ operation, AsyncStatus status)
      {
        auto bytesRead = operation->GetResults();
        auto str = reader->ReadString(bytesRead);
        func(str);
      });
    });
  });
}


Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

GeneralRe: C++ Pin
Sentenryu28-Jul-14 0:42
Sentenryu28-Jul-14 0:42 
GeneralRe: C++ Pin
Eytukan28-Jul-14 2:18
Eytukan28-Jul-14 2:18 
GeneralRe: C++ Pin
Marc Clifton25-Jul-14 9:33
mvaMarc Clifton25-Jul-14 9:33 
GeneralRe: C++ Pin
Nish Nishant25-Jul-14 9:37
sitebuilderNish Nishant25-Jul-14 9:37 
GeneralRe: C++ Pin
TheGreatAndPowerfulOz25-Jul-14 9:38
TheGreatAndPowerfulOz25-Jul-14 9:38 
GeneralRe: C++ Pin
Marc Clifton25-Jul-14 10:45
mvaMarc Clifton25-Jul-14 10:45 
GeneralRe: C++ Pin
CDP180225-Jul-14 17:04
CDP180225-Jul-14 17:04 
GeneralRe: C++ Pin
Sentenryu28-Jul-14 0:46
Sentenryu28-Jul-14 0:46 
GeneralRe: C++ Pin
Eytukan28-Jul-14 2:30
Eytukan28-Jul-14 2:30 
GeneralRe: C++ Pin
Pete O'Hanlon25-Jul-14 11:04
mvePete O'Hanlon25-Jul-14 11:04 
GeneralRe: C++ Pin
PIEBALDconsult25-Jul-14 11:48
mvePIEBALDconsult25-Jul-14 11:48 
GeneralRe: C++ Pin
Pete O'Hanlon25-Jul-14 12:17
mvePete O'Hanlon25-Jul-14 12:17 
GeneralRe: C++ Pin
PIEBALDconsult25-Jul-14 12:41
mvePIEBALDconsult25-Jul-14 12:41 
GeneralRe: C++ Pin
PIEBALDconsult25-Jul-14 9:34
mvePIEBALDconsult25-Jul-14 9:34 
GeneralRe: C++ Pin
Nish Nishant25-Jul-14 9:38
sitebuilderNish Nishant25-Jul-14 9:38 
GeneralRe: C++ Pin
TheGreatAndPowerfulOz25-Jul-14 9:39
TheGreatAndPowerfulOz25-Jul-14 9:39 
GeneralRe: C++ Pin
PJ Arends25-Jul-14 19:50
professionalPJ Arends25-Jul-14 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.