Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

prefect posted:

Well, you kinda have to learn Javascript before you can use Jquery.
this is so empirically wrong its sad

Adbot
ADBOT LOVES YOU

Deus Rex
Mar 5, 2005

Gazpacho posted:

this is so empirically wrong its sad

people who write javascript for browsers without knowing anything about it or the dom are the loving worst

Squinty Applebottom
Jan 1, 2013

Deus Rex posted:

people who write javascript are the loving worst

double sulk
Jul 2, 2010

Deus Rex posted:

people who write javascript for browsers without knowing anything about it or the dom are the loving worst

maybe if people wrote quality books on the dom instead of waxing poetic about the prototyping system/structure of objects in js, it would be easier to use a language which was designed for the browser

that's why people just use jquery and $('.selector') everything because clearly almost no one knows how the gently caress to do anything else otherwise

wolffenstein
Aug 2, 2002
 
Pork Pro

prefect posted:

Well, you kinda have to learn Javascript before you can use Jquery.
not really, you have to learn dom before using js or jquery. most of the js code in my jquery functions are conditionals.

jony neuemonic
Nov 13, 2009

prefect posted:

Well, you kinda have to learn Javascript before you can use Jquery.

if you want to be a js programmer, sure.

if you just want to fling some divs around you can probably get away without it.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

wolffenstein posted:

not really, you have to learn dom before using js or jquery

nope, you just google the words your boss said with "jquery" and insert the code and make sure your html is exactly the same

if that doesn't work go ask on stack homeworkflow

if that doesn't worok find the same plugin for mootools and add another 100kb of that to the page

i worked at an interactive agency for a year, i know how poo poo gets done

wolffenstein
Aug 2, 2002
 
Pork Pro
thanks for the advice how!!

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
https://www.google.com/search?q=if+statement+in+jquery
https://www.google.com/search?q=declare+variable+in+jquery
https://www.google.com/search?q=create+array+in+jquery
https://www.google.com/search?q=define+function+in+jquery

Gazpacho fucked around with this message at 20:10 on Jan 4, 2013

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
i really wish i could find the homework overflow post where abez asked for how to do math in jquery and replied with jquery.arithmetic.js that he also wrote (abez is goddamn insane)

JavaScript code:
$.arithmetic(4).plus(3).minus(6)

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
to use jquery, you have to know what a css selector is and what a javascript function is so that you can do

$('.thread .post.userid94248').each(function(index, elem) {
elem.css('display', 'none');
});

which is 90% of your jquery code.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Wheany posted:

$('.thread .post.userid94248').each(function(index, elem) {
elem.css('display', 'none');
});

yeah its that stuff i dont care for

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Wheany posted:

to use jquery, you have to know what a css selector is and what a javascript function is so that you can do

$('.thread .post.userid94248').each(function(index, elem) {
elem.css('display', 'none');
});

which is 90% of your jquery code.

most jquery users don't make it that far, they want magic incantations, not functions and selectors

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
also you're bad at jquery, it's
JavaScript code:
$('.thread .post.userid94248').hide()

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
http://stackoverflow.com/questions/4715780/jquery-multiply-a-number-with-7-5
http://stackoverflow.com/questions/7799438/simple-maths-with-jquery-division
http://stackoverflow.com/questions/4098685/jquery-rounding-numbers-to-2-digits-after-comma

wolffenstein
Aug 2, 2002
 
Pork Pro

Cocoa Crispies posted:

also you're bad at jquery, it's
JavaScript code:
$('.thread .post.userid94248').hide()
no your bad
JavaScript code:
$('*').hide()

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

oh hey, that last one points to abez's

jony neuemonic
Nov 13, 2009

gucci void main posted:

maybe if people wrote quality books on the dom instead of waxing poetic about the prototyping system/structure of objects in js, it would be easier to use a language which was designed for the browser

that's why people just use jquery and $('.selector') everything because clearly almost no one knows how the gently caress to do anything else otherwise

this and then chapter three of this. the fact that it took me that long to remember the one good dom book i've found kind of proves your point, though.

jony neuemonic
Nov 13, 2009

Cocoa Crispies posted:

Timothy Goatse

mods etc.

double sulk
Jul 2, 2010

fidel sarcastro posted:

this and then chapter three of this. the fact that it took me that long to remember the one good dom book i've found kind of proves your point, though.

i've heard of the first one though i never read it, and saw the second on amazon but i guess that's just a small chapter

but yeah it's really sad

X-BUM-RAIDER-X
May 7, 2008
let's optimize our javascript

*installs noscript*

jony neuemonic
Nov 13, 2009

i know it's a good thing that looking over stuff i wrote just two months ago now disgusts me, but jesus why was i using nested if statements for everything.

Squinty Applebottom
Jan 1, 2013

fidel sarcastro posted:

i know it's a good thing that looking over stuff i wrote just two months ago now disgusts me, but jesus why was i using nested if statements for everything.

just wait until you see your posting from back then

jony neuemonic
Nov 13, 2009

polpotpi posted:

just wait until you see your posting from back then

this is why i refuse to pay for archives

Opinion Haver
Apr 9, 2007

i prefer subs to doms tbh

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp

fidel sarcastro posted:

i know it's a good thing that looking over stuff i wrote just two months ago now disgusts me, but jesus why was i using nested if statements for everything.

haha i do this and its hilarious

so bad


poo poo worked though :crossarms:

Dicky B
Mar 23, 2004

sometimes i look at code i have written in the past and i'm like "drat this is good code" :cool:

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Dicky B posted:

sometimes i look at code i have written in the past and i'm like "drat this is good code" :cool:

every time i think that i worry about dunning-kruger and if i only think it's good because i don't know any better

Toady
Jan 12, 2009

Cocoa Crispies posted:

every time i think that i worry about freddy krueger

tef
May 30, 2004

-> some l-system crap ->
shameless self promotion, but i've put another mechanically recovered post up

about spolsky

http://programmingisterrible.com/post/39726288528/hungarian-notation-security-by-anecdote

atwood, you're next.

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
"the law of leaky abstractions" is a trainwreck of naivete and ignorance, everyone please stop citing it

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
everything i needed to know about spolsky i learned by trying to use fogbugz

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

tef posted:

shameless self promotion, but i've put another mechanically recovered post up

about spolsky

http://programmingisterrible.com/post/39726288528/hungarian-notation-security-by-anecdote

atwood, you're next.

I once had a boss who wanted me to use Hungarian notation in Perl because he couldn't handle the idea that variables that started with @ were arrays.


Also, you need to add one of those G+1 buttons on your posts so I can tell the Internet that I approve.

ChiralCondensate
Nov 13, 2007

what is that man doing to his colour palette?
Grimey Drawer

rotor posted:

everything i needed to know about spolsky i learned by trying to use fogbugz
if (i = 1) print 'figbogz'
else print kddddddddddddddd

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
i want tef trading cards

FamDav
Mar 29, 2008

vapid cutlery posted:

i want tef trading cards

yo i gotta long haired first edition

FamDav
Mar 29, 2008
wanna trade?

cowboy beepboop
Feb 24, 2001

tef posted:

shameless self promotion, but i've put another mechanically recovered post up

about spolsky

http://programmingisterrible.com/post/39726288528/hungarian-notation-security-by-anecdote

atwood, you're next.

noice

Squinty Applebottom
Jan 1, 2013

i want the rare rookie card when he actually smiled for the pic

Adbot
ADBOT LOVES YOU

gabensraum
Sep 16, 2003


LOAD "NICE!",8,1
my tef cards came with bubblegum

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply