Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bad coders

Name: !3LrT5NRVks 2009-07-20 21:27

The primary problem I have with the programming community is that most of you are bad at it.  I've come to realize that the vast majority of programmers are relative idiots.  Just like in life there are the alphas of the programming world.  The top 1% of programmers like me can code circles around the other 99%.  Language and tools don't even matter.  I could use C, Java, Lisp, python, perl, php you name it and still write better code with a tiny fraction of the effort it would take you to write the same thing.
I know what your thinking now.  Having the supreme arrogance of a typical code-monkey, how am I so certain of this?  Simply by coding amongst the unwashed.  In my large public college there were maybe 3 other programmers that I considered decent. 
Now I'm doing an internship at a software company where the average salary for full time is 90-100k.  I'm amongst programmers from MIT, CMU and other schools that I once considered elite.  My intern project that was supposed to be work for the summer was a joke to me. It took a couple weeks and 90% of that was dealing with bureaucracy.  The 'elite' CS schools are nothing but a farce, the majority of their programmers are mediocre at best.
I now realize that I can take a programming job, do an hour of work a day, surf the internet for a bit, then take 100K to the bank every year.
It doesn't matter how many times you read SICP, you guys will always be will always be scrubs.  Here is a parting FUCK YOU to all you so called coders out there.  The best of you code about as well as I did when I popped my cherry on TI-BASIC.

Name: =+=*=F=R=O=Z=E=N==C=H=E=F=*=+= 2009-07-22 12:30

>>36 Its seems leeke-a zee pege-a hed it iffffect. Bork Bork Bork!
I hupe-a yuoo injuy yuoor leeffe-a veethuoot thuse-a petruneezing,errugunt foocks rooeening zee ixpereeence-a. Bork Bork Bork!



______________________________
http://xs141.xs.to/xs141/09303/av992393.jpg
Zeese-a tests veell hefe-a nu iffffect oon yuoor gredes. Bork Bork Bork! Zeey merely determeene-a yuoor footoore-a suceeel stetoos und feenunciel sooccess...

Name: Anonymous 2009-07-24 4:55

wat

Name: Anonymous 2009-07-24 4:56

>>42

The noko thing doesn't work here?

FFFFFFFUUUUUUUUU-

Name: Anonymous 2009-07-24 4:58

System.out.println("FFFFFFFUUUUUUU-");

Name: Anonymous 2009-07-24 4:58

std::cout << "FFFFFFFFFUUUUUUUUUUU-";

Name: Anonymous 2009-07-24 5:20

>>45
Now you have two problems.

>>42-45
Incidentally, /prog/ has three.

Back to /b/, please.

Name: Anonymous 2009-07-24 11:10

[code]main = putStrLn $ replicate 20 'F' ++ cycle "U" ++ "-"

Name: Anonymous 2009-07-24 11:11

>>47
I FORGOT THE [/code] FFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU-

Name: Anonymous 2009-07-26 17:07

print 'I SURE WISH I WAS SMART ENOUGH TO FOLLOW THIS THREAD'


I SURE WISH I WAS SMART ENOUGH TO FOLLOW THIS THREAD

arent i clever?

Name: Anonymous 2009-07-26 17:34

10 IF CLEVER=1 THEN PRINT "I SURE WISH I WAS SMART ENOUGH TO SAGE THIS THREAD"
20 ELSE GOTO 10

Name: Anonymous 2009-07-26 18:50

>>47
cycle "U"
repeat 'U'

Name: Anonymous 2009-07-26 20:03

>>51

cycle "U"
repeat 'U'
['U','U'..]

Name: Anonymous 2009-07-26 20:26

>>52
う~

Name: Anonymous 2009-07-27 15:04

uuuuuuuuuuu-

Name: Anonymous 2011-01-31 21:09

<-- check em dubz

Name: tray 2012-03-14 15:47

you better be

Name: Anonymous 2013-07-01 3:38

>>1
Please don't double space between sentences. A single space is perfectly sufficient and much less distracting.

Name: Anonymous 2013-07-01 3:49

>>57
Way to bump a thread, especially that you reference the original post from four years ago, and that on a matter concerning a form nuance rather than the subject.

Though, I tend to agree that a single space between sentences is fair enough; still, the habit of using two has a long history, especially in America, and even though more and more sources seem to be deprecating it as of now, it may take some time to root it out. As for the original poster, that rule has apparently stuck with him.

Name: Anonymous 2013-07-01 6:47

Is my code good?

#include <stdio.h>
#include <string.h>
#include <unistd.h>

void delay(int value);
void print_blanks(int length);

int main() {
    char name[50];
    int columns = 93;
    int delay_value = 70000;
    int length, i;

    system("clear");
    printf("What is your name? ");
    scanf("%[0-9a-zA-Z ]s", name);
    length = strlen(name);
    printf("%s", name);

    while (1) {
        for (i = 0; i < columns - length; i++) {
            printf("\033[%dD", length);
            print_blanks(length);
            printf("\033[%dD%s", length - 1, name);
            delay(delay_value);
        }

        for (i = 1; i <= length; i++) {
            printf("\033[%dD", length);
            print_blanks(length);
            printf("\033[%dD", columns);
            printf("%s", name + strlen(name) - i); // print the last i characters
            if (i != length)
                printf("\033[%dC", columns - length);
            printf("%.*s", length - i, name); //print the first length -i characters
            delay(delay_value);
        }
    }
    return 0;
}
void print_blanks(int length) {
    for( ;length != 0 ; length--)
        printf(" ");
}
void delay(int value) {
    fflush(stdout);
    usleep(value);
}

Name: Anonymous 2013-07-01 7:05

>>59
Terrible!

Name: Anonymous 2013-07-01 7:13

>>59
That's actually very clever and short considering what it does. But it's not very well optimised code.

Name: Anonymous 2013-07-01 13:15

test

test

Name: Anonymous 2013-07-01 13:41

then take 100K to the bank every year
Don't give your money to the jews!

Name: Anonymous 2013-07-01 14:11

checkem 2n

Name: Anonymous 2013-07-01 15:55

>>59
Terrible!

int columns = 93;
int delay_value = 70000;

Use macros.

scanf("%[0-9a-zA-Z ]s", name);
You have two conversion specifiers here. The s specifier is unnecessary. Also, if the user inputs a string larger than 49 bytes, the behaviour is undefined. Include a field width (49 in this case), or, if supported by the target implementation(s), the m modifier with a pointer to char as the argument (note: allocated storage).

printf("%s", name + strlen(name) - i);
Why not use length instead of calling strlen again?

And a while loop would be less ugly in print_blanks.

Name: Anonymous 2013-07-01 20:43

Name: Anonymous 2013-07-01 20:48

Name: Anonymous 2013-07-01 20:53

Name: Anonymous 2013-07-02 0:17

Name: Anonymous 2013-07-02 0:17

Name: Anonymous 2013-07-02 0:18

Name: Anonymous 2013-07-02 0:23

Name: Anonymous 2013-07-02 0:29

Name: Anonymous 2013-07-02 0:34

Name: Anonymous 2013-07-02 3:56

spambegone

Name: Anonymous 2013-07-02 3:56

spambegone

Name: Anonymous 2013-07-02 3:56

spambegone

Name: Anonymous 2013-07-02 3:57

spambegone

Name: Anonymous 2013-07-02 3:57

spambegone

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List