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

Javascript is made of dicknipples

Name: Anonymous 2007-03-11 22:36 ID:IccGOldJ

When my photographer brother-inlaw found out i made it through university and could could code he demanded that i design him a website.
Having no idea how to even begin to explain to his dumbass that the terms "webdesigner" and "coder" are not interchangable i gave up and agreed, I mean come on. How hard can it be to set up a script to dynamicaly print images on a stupid page?
A couple of arrays and a few loops and voila it should be awwwright.

Im just now beginning to see the error of my ways, my ego has shafted me yet again (im surprised at just how often this seems to happen)


Ive never came across anything as patently insane as this excuse for a scripted language, it has no standardised execution, it behaves altogether too erraticaly to even begin to be usable and dont even get me started on the syntax.

for (i = 0; i < galleries.length; i++)
in a sane language this would check the number of files in a gallery and increment the value.

It appears to increment in prime numbers however :/ when the next button is clicked it jumps from 1 to 2, 3, 5, 7, 11, 13 etc.

I DEMAND AN EXPLINATION FOR THIS FAGGOTRY

details on a superior scripting language thats easily handled by a browser greatly appreciated.

Name: Anonymous 2007-03-11 23:01 ID:Heaven

you mean if (i < galleries.length) i++;
for is a looping construct.

Name: Anonymous 2007-03-11 23:18 ID:IccGOldJ

you mean
function showGalleryImage(gallery_id, img) {
    debug('Image = ' + gallery_id);
    for (i = 0; i < galleries.length; i++) {
        if (galleries[i].id == gallery_id) {
            imageID = randomListVal(galleries[i].featured_images);
                for (j = 0; j < photos.length; j++) {
                    if (photos[j].id == imageID) {
                       
                        img.src = 'images/' + photos[j].thumbnail;
                        img.width = photos[j].thumbnail_width;
                        img.height = photos[j].thumbnail_height;
                       
                        break;
                    }
                }
            break;
        }
    }
    }
is wrong?!?!?!?! this is my problem? changing for (i = 0; i < galleries.length; i++) to for (i<galleries.length)i++ will restore sanity?

Name: Anonymous 2007-03-12 6:30 ID:/8/M4xYi

JavaScript the language >>>> Java and most things you've used
JavaScript's standard library = 0 < anything you've used

Name: Anonymous 2009-01-14 13:28

I just ordered another copy of SICP

Name: Anonymous 2009-03-06 9:45


Increment immediately so no   calling some magical   toupper function or   a macro with   the shape of   the container unchanged   In Haskell syntax   like learning effective.

Name: Sgt.Kabuﱅkiman䧣◗ 2012-05-28 23:12

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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