Category Archives: C++

The Windows Store opportunity for C++ developers

One of my colleagues sent this statement my way and I quote him “The advent of Windows Store combines a great app-development infrastructure with a reach of 250 million people and counting. This is a great opportunity for seasoned and new app developers alike. While Microsoft has published great examples, tutorials, and help, a more detailed and focused resource like the book, “Modern C++ and Windows Store apps” is a fantastic contribution to help developers profit from this opportunity.”

Many thanks Mike Wehinger

-Sridhar

It’s time to move away from Turbo C++

You might be surprised to hear that a good number of colleges (at least in India) still rely on using the ages old Turbo C++ package to teach aspiring students C++. With a new language standard and great library support, it is now time to bid goodbye to Turbo C++. I answered a few questions about Turbo C++ and Modern C++ in this month’s edition of PCQuest (Thank you Hiren Mehta and other good folks from PCQuest). Attaching the Q&A below.

201306-PC Quest-Sridhar

 

While Visual Studio 2012 is a great tool for developing Windows apps using C++, there are also similar utilities for other platforms that support the C++11 standard. These include, but are not limited to, GCC, Clang etc. We owe it to aspiring students and should teach and train them on the latest language standard. In case you have not checked out Modern C++, I urge you all to check out the new language and you will be pleasantly surprised at the changes!!

 

-Sridhar

 

Getting started with C++

How does one get started with C++? Where should an aspiring developer start? What books should they read? These are some questions that do the rounds of many developers who want to dip their toes in the magical world of C++. This post is an attempt to address some of the questions while also trying to provide my own perspective. If you find the links and my suggestions useful, please do let me know. If you do not find them useful, kindly ignore.

C++11 a.k.a Modern C++ is a new language. It feels different from the old C++ (C++98) and places great emphasis on developer productivity enhancing facilities, focus on runtime performance, writing safe, efficient and portable code. Hence it is very, very important to learn the nuances of Modern C++ v/s trying to learn the old C++ and attempt to fit the old in the new.

Here are my recommended books.

  1. C++ Primer by Stanley Lippman et.al. The latest edition has been completely re-written for the C++11 standard.
  2. The C++ Programming Language 4th Ed by Bjarne Stroustrup. The 4th edition has been revised and updated for the C++11 standard.
  3. The C++ Standard Library, 2nd Ed by Nicolai Josuttis. The 2nd edition has been revised and updated for the C++11 standard. This book focuses on the Standard Library that is part and parcel of the C++ programming language.

These books are by no means exhaustive but will allow you to start learning C++. One can begin with C++ Primer and then move to the other books to understand and learn about advanced topics.

Having said that, reading in no way substitutes for actual coding practice. Spend as much time as possible writing code. You can start with simple programs that are discussed in the books above and slowly work your way to adding functionality and features to those programs. Or you can also start writing your own programs. Either way, know your tools and write as much code as possible while applying the concepts you learn.

A lot of coding problems have probably been already solved. The technology world is a rich source of learning from one another, provided one learns to ask the right questions in the proper format. Hang out on sites such as stackoverflow.com, codeproject.com, MSDN forums etc and learn from fellow developers. If you know the answer to a problem, help your fellow colleagues from the industry. Participating in community activities helps you build confidence in your tools, your craftsmanship and ultimately your own abilities. Think of this as an investment for your own good and the benefit of all.

In addition here are a few links you should regularly visit to keep yourself updated with all major events and happenings related to C++.

  1. http://www.isocpp.org
    The Home Page of Standard C++.
  2. http://www.stroustrup.com/ The Home Page of Bjarne Stroustrup, the designer of C++.
  3. http://herbsutter.com Herb Sutter on software, hardware, and concurrency. He has also begun an updated series of Guru of the Week Questions based on C++11 and will be updating his famous Exceptional C++ series of books with C++11.
  4. http://scottmeyers.blogspot.com/ Scott Meyers is one of the world’s foremost experts on C++ software development. He offers training and consulting services to clients worldwide.

Again, no means exhaustive but good starting points from where you can learn C++. Once you learn the basics of standard C++, you can then move to learning platform specific extensions like C++ /CX and develop cool Windows Store apps!

-Sridhar

A short interview on Why is C++ still the answer?

Preemptive snarky comment: What is the question? J

A few weeks back the awesome folks from the Microsoft Careers group and I had a short conversation about my book, how I ended up in the technology world and why I strongly believe that C++ is still the answer to some of the big challenges we face in the technology industry. They have published the interview in a Q&A format via multiple social networks. Pick the one you are associated with and enjoy!!

FACEBOOK

In the latest JobsBlog: Microsoft program manager, and recently published author, Sridhar Poduri describes his path to Microsoft and explains why C++ is the answer: http://bit.ly/15fGtwZ

          Feel free to tag the Microsoft Careers facebook page when sharing.

TWITTER

New on the @MicrosoftJobs Blog: Microsoft PM & author @sridharpoduri explains why C++ is the answer – http://bit.ly/15fGtwZ

 
 

LINKEDIN

In the latest JobsBlog: Microsoft program manager, and recently published author, Sridhar Poduri describes his path to Microsoft and explains why C++ is the answer: http://bit.ly/15fGtwZ

 
 

          Feel free to tag the Microsoft page on LinkedIn when sharing.

Modern C++ and Windows Store apps giveaway

BUILD 2013 is 9 weeks away. In anticipation of BUILD 2013, I am listing a giveaway for my book, “Modern C++ and Windows Store apps”. Every week leading to the BUILD 2013 conference, I will give out a copy of my book. Sounds interesting? Want a copy? Getting a copy is easy. All you have to do is put on your thinking caps and send me a mail about “What interests you about Windows 8 and Modern C++ put together to develop Windows Store apps?”

Each week I will select the best quote I receive, and send out a copy of my book to the person who has sent me the quote. I will also share the quote on my blog, twitter and Facebook feed. So, put your thinking caps on and send me mail at win8book at sridharpoduri dot com.

Please do not post your quotes as comments to this blog post as I will not be considering those. J

Rules and Regulations:

  1. Only one entry per person. I cannot verify duplicates but would expect everyone as professionals to be honorable.
  2. I reserve the right to select what I believe is best entry every week.
  3. I will share the best entry every week.
  4. I will not share the details of the person who sent the best entry (email address or any other personally identifiable details).
  5. After I post the selection of the best entry please look out for an email from me asking for your mailing address.
  6. I will bear the cost of shipment of the book to your address. You do not have to pay for shipping or the book cost. J
  7. Feel free to tweet or share this on your social networks!

Bring those interesting thoughts on!!!

Cheers,

Sridhar

[Updated with purchase and discount links] Modern C++ and Windows Store Apps – A book about Modern C++ and native technologies

Over the past few months, I have been writing a book on developing apps using C++ and the various native technologies shipping as part of the Windows 8 wave. Some of these technologies include: C++11, C++ /CX, native XAML, the Windows Runtime, C++AMP, Windows Azure Mobile Services etc. I am happy to announce that the Kindle version of “Modern C++ and Windows Store apps” will be available shortly for purchase via the Amazon website. A paperback edition will also be available soon.

For purchasing the paperback edition of the book, please visit this link. You can use the discount code 5C56GCKN to get 20% discount off MRP.

For folks interested in an electronic edition, you can purchase a Kindle edition on Amazon

A quick update: This is just me self-publishing the book thereby bringing the work to its logical conclusion.

For the benefit of everyone, I am listing some of the topics that await anyone who picks up a copy of this book. For the more adventurous amongst us who would rather prefer to play with code, the book samples can be downloaded from the Downloads section of this blog.

The new native API
What is a Windows 8 App?
Quick walkthrough of a Windows 8 App

Hello Modern C++
Move semantics
Welcome to the Component Extensions
The C++ /CX Type System
Asynchronous Programming in C++ /CX
Building a WinRT component using C++ /CX and ISO-C++
Guidance on the use of C++ /CX

Introduction to XAML
Hello World with XAML and C++ /CX
Basic XAML Syntax
Using Panels to Layout UX
Basic XAML Controls
Windows 8 Signature XAML Controls
Handling Events
Markup Extensions
Data Binding
Binding to a Data Model
Building a XAML custom control
Using Animations in XAML Controls

Introduction to XAML + DirectX
SurfaceImageSource
VirtualSurfaceImageSource
Design considerations when using SiS and VSiS
SwapChainBackgroundPanel
The DrawIt Application – C++, XAML and DirectX

The C++ AMP Library
The ImageEffects application

Playing by the rules of the Windows Runtime
Introduction to the Windows Runtime Library
Hello World XAML App using Windows Runtime Library

Getting Started with Windows Store apps and Windows Azure Mobile Services
Creating a simple Windows Store app with Windows Azure Mobile Services
Supporting Push Notifications using Windows Azure Mobile Services

And more….

I had a lot of fun writing this stuff and learning along the way. I hope there are concepts that you can apply to your work as you build apps for the Windows 8 Store using C++.

Please send feedback on the book contents directly to win8book at sridharpoduri dot com