1. About.com
  2. Computing & Technology
  3. C / C++ / C#

Latest Programming Tutorials

About C, C++ and C# brings you tutorials for C Programming, C++ Programming and C# Programming; part works built up week by week. Choose C, C++ or C# or all three.

Latest Programming Tutorials
C / C++ / C# Spotlight10

A couple of Notes Incl Challenge 54

Friday January 27, 2012

There was a slight bug in tracks.txt which I've amended so hopefully it will be a little bit easier (the track join without a switch at line 10, column 47) and because the month end isn't on a Sunday, the deadline is extended to the Sunday after. That's February 5.

C++ Working Draft

If you want a copy of the current ISO standard you have to pay a few hundred Swiss Francs. However the draft of the next one (Look for the N3337 link) is similar and can be downloaded free.

Developer with Exemplary Customer Service

Thursday January 26, 2012

One of my favorite Apps for my iPhone is Next Bus which uses the published London bus movement data. Many bus stops in London have a digital display showing how far away the next buses are. Having this information improved the service when it first came out because though they couldn't make buses run faster or more frequently, knowing that the bus you need is just three minutes away is very handy. "Have I time to nip into a nearby shop etc?"

Last year this data became publicly available and several iPhone Apps appeared. I bought Next Bus for 69p (about $0.99). Living two minutes walk away from a bus stop and now knowing exactly how long I have to lie in has improved my life and it's a easy to use App but it has a slight bug. It can use location services to identify the nearest bus stops but if those services are disabled it puts up a few error messages. As I have my favorite bus stops marked (the App lets you do that), I keep Location Services switched off and get the error messages each time. That's a little tedious.

So I emailed the company who put put Next Bus suggesting an improvement and within ten minutes got a nice reply from the developer. The developer then found the bug, fixed it and has submitted it to the App Store all within 30 minutes of my first email. That impressed me so kudos to Jeevan Takhar of nextbusapp.com. If you look at their website you can see every London bus stop on a Google Map and see the live times by clicking any bus stop.

Supporting customers can be a pain but get them on your side with good service and they can be very effective sales people for you by word of mouth. I got great service and felt it deserved a mention...

Linq Tutorial Five Published

Wednesday January 25, 2012

And still they come! This tutorial looks at ElementAt(), use of Where() for subqueries, the not too useful Range and Repeat, All and Any for checking if a condition is true plus the four set operators. That's all in Linq tutorial five.

One thing stands above all else, if you understand the filtering ability of Lambda Expression, you'll pick up Linq fairly easily. It's just handy for doing a loop in a line to filter one sequence into another. For example if you have a sequence of integer numbers and use this Lambda Expression in the Where(n => n%2 ==0) that will only include those numbers n, where (n % 2 == 0) (i.e. the even numbers) in the sequence.

There's still one or two more tutorials to come. Aggregates, joining, grouping and one or two more.

Is nginx The fastest Web-Server?

Monday January 23, 2012

Pronounced Engine X (It helps if you say it with a Russian accent!), in four years nginx has gone from hosting 2 million websites to over 22.2M and has just overtaken Microsoft IIS to be the second most popular webserver used in active sites according to Netcraft, including blogging giant wordpress.com.

Written in C by Igor Sysoev, nginx originated in Russia. It has a different architecture to Apache. and is faster at serving static files. It's also very powerful being able to be a load balancer and reverse proxy that hands off requests to other servers. Though predominantly used on Linux systems it can be configured to run under Windows and that is a tested OS (Windows XP/Windows server 2003). It can run php via fastcgi and even ASP.NET.

If you have your own Linux box (or Windows) you can download nginx and have a play. There's plenty of documentation to get you started including both a faq and wiki.

Discuss in my forum

©2012 About.com. All rights reserved. 

A part of The New York Times Company.