Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 PROGRAMMING


  Selling Yourself: Why? and How!

I know many good developers who are under the impression that they either don’t have to sell themselves, or selling themselves is wrong, but is that really true?First let me clarify by defining what I mean by “selling yourself”. I don’t mean “selling out”, I mean marketing yourself, what you’re doing and what your skills are. Especially to your organization.I don’t need to sell myself, my code speaks for itself.Really? Do you think your pristine code says enough about your skills especially to a non or semi-technical person? Think back about ...

2,762 0       DEVELOPER SKILL SELL SHOW RESUME CV


  Greedy and Nongreedy Matching in a Regular Expression

By default, pattern matching is greedy, which means that the matcherreturns the longest match possible. For example, applying the patternA.*c to AbcAbcA matches AbcAbc rather than the shorterAbc. To do nongreedy matching, a question mark must be added tothe quantifier. For example, the pattern A.*?c will find theshortest match possible.COPY// Greedy quantifiersString match = find("A.*c", "AbcAbc"); // AbcAbcmatch = find("A.+", "AbcAbc"); // AbcAbc// Nongreedy quantifiersmatch = find("A.*?c", "AbcAbc"); // Abcmatch = find("A.+?", "AbcAbc"); // Abc// Returns the first s...

3,698 0       REGULAR EXPRESSION PATTERN MATCH GREEDY


  The Singular Secret of the Rockstar Programmer

Before all the laws of software, before the purpose of software, before the science of software design itself, there is a singular fact that determines the success or failure of a software developer. This fact makes the difference between the senior engineer who can seem to pick up new languages in a day and the junior developer who struggles for ten years just to get a paycheck, programming other people’s designs and never improving enough to get a promotion. It differentiates the poor programmers from the good ones, the good programmers from the great ones, and the great ones from the...

3,775 0       PROGRAMMING TIP GREAT DEVELOPER ROCKSTAR


  template function in class in C++

We can define template function in a class, but one thing we should pay attention to is that the member function template definition (in addition to the declaration) should be in the header file, not the cpp, though it does not have to be in the body of the class declaration itself.Example //Sorter.h#pragma onceclass Sorter{public:    Sorter(void);    ~Sorter(void);    template <class type> static void qsort(type arr[],int start,int end);};template <class type> static void Sorter::qsort(type arr[],int start,int end){    in...

2,655 0       C++ TEMPLATE FUNCTION CLASS DEFINITION D


  10 Tips To Make Your C Program Effective

The beauty of any code lies not only in finding the solution to a given problem but is in its simplicity, effectiveness, compactness and efficiency( memory ). Designing the code is harder than actually implementing it. Hence every programmer should keep a couple of basic things in mind while programming in C. Here we introduce you to such 10 ways of standardizing your C code.1. Avoid unwarranted function callsConsider the following two functions:view source print?1void str_print( char *str ) 2  3{ 4  5    int i; 6  7    for ...

2,787 0       TIPS C EFFICIENT SPEED INCREMENT RECURSI


  Simplicity Oriented Programming

After few years on Warsztat (a Polish gamedev site) I’ve noticed an interesting phenomenon. Every now and then there are Compos (programming competitions) organized in two different flavours. Some compos are single-run events that last only few hours, others are long-term (several days/weeks). And as an extra catch, the former are usually restricted to basic APIs (SDL, OpenGL etc) while the latter are free-for-all (all sorts of engines, UDK/Unity allowed).Now, results are somewhat shocking. Much more people participate in short compos than the long ones. But the best part is that qualit...

2,622 0       PROGRAMMING RESEARCH ADVICE TIME EFFICIE


  Programming: the benefits of taking a break

This post lists several benefits of taking a break during programming.You work smarter, not harder. Once, I worked really hard on a feature. For two weeks, 12 hours a day, I put in a lot of effort. After those two weeks, I took a break and came up with several ideas that made much of the work unnecessary.You think more clearly. Being tired has a similar effect as being drunk. At the end of a day, I often kid myself that I’ll just get this one thing finished quickly to have a fresh start the next day. In reality, I usually need to clean up yesterday’s messes then. If instead I fin...

3,262 0       PROGRAMMING TIPS BREAK TIRED


  Are older people better programmers?

Peter Knego states something interesting: “It's official: developers get better with age. And scarcer.”. He uses reputation and other metrics from StackOverflow to corroborate his point.His summary is:Number of coders drops significantly with age. Top developer numbers, at age 27, drop by half every 6-7 years.Developers in their 40s answer roughly twice as much and ask half the questions compared to colleagues in their 20s. It seems younger generation learns and older generation teaches.Quality of posts, i.e. upvotes earned by post, only slightly increases with age.Seniors earn the...

2,605 0       PROGRAMMING SKILL AGE EXPERIENCE ADVANTA