Tuesday, July 6, 2010

About C / C++ / C#: My 1,000th Blog Entry

If you can't see this email, click here

About.com

C / C++ / C#

Fundamentals

Tips & Tools

Going Pro



From David Bolton, your Guide to C / C++ / C#
That was last week! The last four years have whizzed past and the next four will probably go just as fast if not faster. I've still got many tutorials to write as well. Have a good week!

Do Programmers Need College Degrees?
I read about a company called Zoho where they recruit programmers, i.e. those with an aptitude for programming without needing a degree. This is quite unheard of nowadays and you can read more about it on the O'Reilly website... I wouldn't have got a foot in the door of most (but not all) the jobs I've done without my degree but as I've said before, back in the 70s, when I went to college it was still possible to get a job. Since then many PHP developers and web developers have been self taught and got jobs so it's still possible. Back when I was a partner in a computer games business we took on programmers and artists who had a keenness and loved what they did. We knew them personally and some had been playing around and experimenting since the age 13 or 14 so were happy to give them jobs when they were 18. The problem is that many jobs need some form of certificate these days. My attitude is if someone can program, has taught themselves and is keen, then why not give them a chance?

MIT Notes on C Programming
The last programming course I did was 20 years ago, a week long introduction to Ada which was needed for the job I'd just started. Mind you I'd been at my job for three weeks by then and was already programming in Ada by the end of the first week so the course just filled in a few gaps. If you can't make it to MIT to do a Practical C Programming course, you can get the next best thing which is reading the full course notes plus assignments and final projects. These are only course notes, mind (14 sets of slides) not the full lectures but they are pretty comprehensive. The course orientation is Linux based as well. Enjoy!<

More on Two Out of Three are True
Kudos to RJ and others in the comments in an earlier post for the   return a ? (b||c) : (b&c)
Which is very elegant. Being so used to C# with its strict typing, I forget that in C++, the types Bool and int are similar to the point where you can add bools. In C (before C99) there are no bools. So this function in C++ bool AreTwoTrue(bool a,bool, b, bool c) {
   return ((a + b + c) >= 2) ;
}
is valid though it's not very good code. Mixing bools and ints in C++ will get a few compiler warnings plus the ints are truncated down to 0 or 1 so calling the function with these parameters below returns false because it evaluates to 0 + 1 + 0 = 1 which is not >= 2. (AreTwoTrue(false,6,false)) .
I've left the link to the original blog entry because there were some interesting entries in the comments. if you think you can do better, add yours....;

Code Library for C, Objective-C, C++ and C#
This is the code library with all examples, free downloads for this topic.

 


C / C++ / C# Ads
Featured Articles
Development Projects from Initial Design to Completed Code
Reviews of Software - Tools, Compilers, Editors etc
Book Reviews
Top Tools, Utilities and Resources
Glossary of Programming Terms
Never Programmed Before? Start Here

 

More from About.com

Plan a Unique Vegas Wedding
The minister, music and champagne are just the beginning -- why not get married aboard a helicopter or have a pirate swing in to deliver your rings? Arrrr! More>



Join About.com's User Panel!
Share your opinions and help us make About.com more relevant, informative and enjoyable to use. More>




This newsletter is written by:
David Bolton
C / C++ / C# Guide
Email Me | My Blog | My Forum
 
Sign up for more free newsletters on your favorite topics
You are receiving this newsletter because you subscribed to the About C / C++ / C# newsletter. If you wish to change your email address or unsubscribe, please click here.

About respects your privacy: Our Privacy Policy

Contact Information:
249 West 17th Street
New York, NY, 10011

© 2010 About.com
 


Must Reads
Programming Challenges
About C, C++ and C#
C++ for Beginners
C++ Programming
Intro to OOP

Advertisement

No comments: