background preloader

Programming

Facebook Twitter

The 5 types of programmers « Steven Benner's Blog. In my code journeys and programming adventures I’ve encountered many strange foes, and even stranger allies. I’ve identified at least five different kinds of code warriors, some make for wonderful comrades in arms, while others seem to foil my every plan. However they all have their place in the pantheon of software development. Without a healthy mix of these different programming styles you’ll probably find your projects either take too long to complete, are not stable enough or are too perfect for humans to look upon.

The duct tape programmer The code may not be pretty, but damnit, it works! This guy is the foundation of your company. When something goes wrong he will fix it fast and in a way that won’t break again. The OCD perfectionist programmer You want to do what to my code? This guy doesn’t care about your deadlines or budgets, those are insignificant when compared to the art form that is programming. The anti-programming programmer I’m a programmer, damnit. The half-assed programmer. S | Go Parallel | Parallel Programming & Parallel Computing Information and Resources. The C Library Reference Guide. Flex/ActionScript/C++/Scratch/Alice/C#/Java/JavaScript/XML Programming, by Richard G Baldwin. C++ Programming/Exercises/Iterations. Iterations[edit] Solutions requirements Solutions must: Use only standard C++.Be compilable.Be in accordance to general coding practices.

(no esoteric demonstrations are required) and should: Handle error situations, even if behavior is not defined. Please do not add solutions that are 99% similar to another that is already present, if it is an improvement just add it to the existing solution. EXERCISE 1[edit] Write a program that asks the user to type an integer and writes "YOU WIN" if the value is between 56 and 78 (both included). Int main() {int i; cout << "Type all numbers between 58 and 73: " << endl; cin>>i; if (i>=58 && i<=78) { cout << "YOU WIN" << i << endl; else cout<<"YOU LOSE! " EXERCISE 2[edit] Write a program that asks the user to type all the integers between 8 and 23 (both included) using a for loop.

Solution Alternative solution by Bartosz Radwanski Alternate solution Solution in C Another alternate solution Failed solutions (correct them as an extra exercise) EXERCISE 3[edit] Dive Into Python.