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

API vs Framework Programming

Name: DaDude !M4DXN3n8vw 2011-09-06 13:52

So, I fresh installed Ubuntu on a Win7 machine. Thinking, "Hey, Linux, there's a fresh idea to get away from shitty framework after shitty framework." Figured I'd try it out before I abandoned Windows on the side of the road like the spent whore she is.

The install was a cake walk. Started browsing around all these options for compilers, IDE's, and the like. Then started looking up API calls for basic programs (ie. createwindow, msgbox, windows API variants). WTF, people. Has Linux gone the way of MegaShaft Windoze. Hey check out Qt.. check out Gtk. Don't call APIs directly and know what the fuck your doing... no no no. Use this shitty framework with limited options so that your not spending anytime actually learning the system. Point... click... and bloat out your applications with a classes you probably don't even need, because your not going to use all of them.

Seriously people? Is it that programmers are too afraid to call what they need directly?

Don't get me wrong... I can see how having a framework sit around adjusting button sizes and window panels for you could, in fact, be convenient. However, past having something work out the UI for you, that still doesn't excuses programmers that actively make a point to not know wtf it is they're actually doing, what goes into their compiled code, determining the optimization of said code by a framework instead of a compiler and common fucking sense.

Oh yeah... before I forget:
inb4 "you don't understand _________ framework"
inb4 "try out __________ framework, it's easy"
inb4 "why the fuck wouldn't you use a framework" <---- since that dumbass didn't read the orig. post

Name: DaDude !M4DXN3n8vw 2011-09-06 14:03

Yes actually, they wind up being much faster and smaller than normal because I don't have to code in shit that I don't need events for.

Name: DaDude !M4DXN3n8vw 2011-09-06 14:12

>>4

come back in 2~3 posts, try trolling harder... we'll talk.

Name: DaDude !M4DXN3n8vw 2011-09-06 14:13

>>5

Dude, see.. you fucking rock.

Name: Anonymous 2011-09-06 14:16

>>4

Someone's jelly there's people out there that don't need a framework.

Name: DaDude !M4DXN3n8vw 2011-09-06 14:25

>>11

Q) What is, EVERY, Framework built upon?
A) Pre-existing API.

Name: Anonymous 2011-09-06 14:47

>>17

I maintain the base ability to read, being needed. Beyond that the near constant trolling that goes on... a bit trite.

Name: Anonymous 2011-09-06 14:53

>>18

LOL. So what your saying is that everything has to come pre-packaged and "NO ONE" can play with the raw building blocks?

Name: Anonymous 2011-09-06 14:55

>>18

Every square is a rectangle, not every rectangle is a square. Your Point?

Name: Anonymous 2011-09-06 15:09

>>22

So... your point is that framework developers can work with API directly, so they can make class structures and object libraries... but not the OP?

Name: Anonymous 2011-09-06 15:11

>>23

I'm thinking anon-22 doesn't want anyone programming with API beyond framework developers... he's mad.

Name: Anonymous 2011-09-06 15:12

>>22

Why you so mad?

Name: DaDude !M4DXN3n8vw 2011-09-06 15:18


>>26

So people... can, use API directly? Without you getting mad?

>>27

I believe... I did. Yeah.. yeah... I did.

Name: Anonymous 2011-09-06 15:18

>>26

Then why you so mad?

Name: Anonymous 2011-09-06 15:20

>>OP
>>29

Haters gonna hate.
True Story.

Name: DaDude !M4DXN3n8vw 2011-09-06 15:35

>>30

Yeah, your prolly right. Some people do want other people ignorant, and they hate you if your not.

Name: Anonymous 2011-09-06 15:55

See... >>32 is obviously an expert, he says so himself... that means no one, at all, ever in their life can program with API directly. No Exceptions.

Name: Anonymous 2011-09-06 15:56

>>32

Your 100% right, API programming is stupid. And only fucktards don't auto-use whatever Framework they're told about first.

Name: DaDude !M4DXN3n8vw 2011-09-06 15:59

>>32 your doing most of it... "expert".

Name: Anonymous 2011-09-06 16:00

>>32 is an expert... which is why he's trolling... seems legit.

Name: Anonymous 2011-09-06 16:06

>>OP

I told you. Haters gonna hate. No exceptions.

Name: Anonymous 2011-09-06 16:21

That 32 anon should come back in here and rage more over people using API instead of framework. Wait a sec:


#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>

Display *dis;
Window win;
XEvent report;
GC green_gc;
XColor green_col;
Colormap colormap;

char green[] = "#00FF00";

int main() {
    dis = XOpenDisplay(NULL);
    win = XCreateSimpleWindow(dis, RootWindow(dis, 0), 1, 1, 500, 500, 0, BlackPixel (dis, 0), BlackPixel(dis, 0));
    XMapWindow(dis, win);
    colormap = DefaultColormap(dis, 0);
    green_gc = XCreateGC(dis, win, 0, 0);
    XParseColor(dis, colormap, green, &green_col);
    XAllocColor(dis, colormap, &green_col);
    XSetForeground(dis, green_gc, green_col.pixel);

    XSelectInput(dis, win, ExposureMask | KeyPressMask | ButtonPressMask);
   
    XDrawRectangle(dis, win, green_gc, 1, 1, 497, 497);
    XDrawRectangle(dis, win, green_gc, 50, 50, 398, 398);
    XFlush(dis);

    while (1)  {
    XNextEvent(dis, &report);
        switch  (report.type) {
        case Expose:  
               fprintf(stdout, "I have been exposed.\n");
                XDrawRectangle(dis, win, green_gc, 1, 1, 497, 497);
                XDrawRectangle(dis, win, green_gc, 50, 50, 398, 398);
                XFlush(dis);
            break;
             case KeyPress:
                if (XLookupKeysym(&report.xkey, 0) == XK_q) {
                exit(0);
                }
            break;
        }
    }

return 0;
}



there, that should really piss him off.

Name: DaDude !M4DXN3n8vw 2011-09-06 16:23

>>38

LOL.

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