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

The /prog/matic programmer

Name: Anonymous 2012-09-27 15:16

ANyways, so... I was reading The Pragmatic Programmer [1] and it occurred to me that we should probably boil these principles down for the novices amongst us. ITT things you want to carve into your colleagues' faces.

* KEEP IT FUCKING SIMPLE, MOTHERFUCKER!
* You're code is not ``clever'', it is autistic.
* Code is /not/ poetry or art. Go away! Fuck your OCD.
* This shit has been solved a thousand times over.
* You do not need to design with the latest and greatest in gang-of-four approved OOP design patterns, using infinitely scalable NoSQL solutions in hip new languages that compile down to JavaScript (srsly WTF?!), just to create a CRUD application.
* Not everyone gets off on code, some of us just want to make a living doing the least amount of effort that is required to deliver a consistent quality for an extended period of time.

I swear by god if I see one more AbstractControllerFactoryInterface

[1] http://pragprog.com/the-pragmatic-programmer, easily found online.

Name: Anonymous 2013-05-14 16:27

>>82-84
Yes, I have noticed that, but assumed the obvious.

Not forever, but RUBY AS FUCK I agree. So, taste this:

#include <stdio.h>

int main()
{
    char buf[4096];
    int line = 1;
    while(!feof(stdin)) {
        size_t i = 0;
        size_t j = 0;
        size_t n = fread(buf, 1, sizeof(buf), stdin);
        while (i < n) {
            if (j < n) fprintf(stdout, "%u ", line++);
            do {
                j++;
            } while ((j < n) && (buf[j-1] != '\n'));
            fwrite(&buf[i], 1, j-i, stdout);
            i = j;
        }
    }
    return 0;
}


:3

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