News for hackers. Stuff that matters.
Re:Programmers are hipster librarians by ape4 on Friday September 19, 2014 @12:51PM (#8341281)

    frustration += 1
Should be:

    frustration++
Re:Programmers are hipster librarians by ritchiea on Friday September 19, 2014 @12:53PM (#8341290)
Not in ruby, which is the language he's writing the pseudocode in.
Re:Programmers are hipster librarians by cmdrfred on Friday September 19, 2014 @02:04PM (#8341632)
Correcting the syntax of pseudocode, you must be fun at parties.
Re:Programmers are hipster librarians by ape4 on Friday September 19, 2014 @03:25PM (#8342050)
You are going to kick sand in my face for being a nerd now.
Re:Programmers are hipster librarians by gaze on Friday September 19, 2014 @06:22PM (#8342798)
No, for being a pedant. An incorrect one, at that.
Re:Programmers are hipster librarians by EliRivers on Friday September 19, 2014 @01:25PM (#8341430)
In the C family, it should be ++frustration, for speed :p
Re:Programmers are hipster librarians by danellis on Friday September 19, 2014 @02:37PM (#8341817)
For an integer, if the pre-increment value isn't used, GCC at least will generate the same code, even with optimization turned off:

    int pre(int a) {                    int post(int a) {
      ++a;                                  a++;
      return a;                             return a;
    }                                   }

    pre:                                post:
    .LFB0:                              .LFB1:
        .cfi_startproc                      .cfi_startproc
        pushq   %rbp                        pushq   %rbp
        .cfi_def_cfa_offset 16              .cfi_def_cfa_offset 16
        .cfi_offset 6, -16                  .cfi_offset 6, -16
        movq    %rsp, %rbp                  movq    %rsp, %rbp
        .cfi_def_cfa_register 6             .cfi_def_cfa_register 6
        movl    %edi, -4(%rbp)              movl    %edi, -4(%rbp)
        addl    $1, -4(%rbp)                addl    $1, -4(%rbp)
        movl    -4(%rbp), %eax              movl    -4(%rbp), %eax
        popq    %rbp                        popq    %rbp
        .cfi_def_cfa 7, 8                   .cfi_def_cfa 7, 8
        ret                                 ret