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.
 
  • Locked thread
LP0 ON FIRE
Jan 25, 2006

beep boop
did someone screw up writing it this way and just say "welp, too late now! need to keep it as is!"?

Adbot
ADBOT LOVES YOU

Space-Pope
Aug 13, 2003

by zen death robot
getElementBySuperego

LP0 ON FIRE
Jan 25, 2006

beep boop
they could have at least added the grammatically correct function name and just have it execute the same function as the old one

Ericadia
Oct 31, 2007

Not A Unicorn

Space-Pope posted:

getElementBySuperego

pram
Jun 10, 2001
stop posting op

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮

Space-Pope posted:

getElementBySuperego

^

Sweevo
Nov 8, 2007

i sometimes throw cables away

i mean straight into the bin without spending 10+ years in the box of might-come-in-handy-someday first

im a fucking monster

lmao camel case

LP0 ON FIRE
Jan 25, 2006

beep boop

Sweevo posted:

lmao camel case

haha

i like camel case, but you still should capitalize both the "I" and "D" for the abbreviation of "identity" or "identifier". Id is the abbreviation for Eid, which is a muslim festival. it's also the doom game company.

flakeloaf
Feb 26, 2003

Still better than android clock

three letter words need abbreviations

Space-Pope posted:

getElementBySuperego

akadajet
Sep 14, 2003

just use jquery, op

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮

LP0 ON FIRE posted:

haha

i like camel case, but you still should capitalize both the "I" and "D" for the abbreviation of "identity" or "identifier". Id is the abbreviation for Eid, which is a muslim festival. it's also the doom game company.

don't forget the lube

LP0 ON FIRE
Jan 25, 2006

beep boop

Space-Pope posted:

getElementBySuperego

ha! that's some #freudianhumor right there


akadajet posted:

just use jquery, op

um, i'm actually a purist. no need for terrible libraries

N.Z.'s Champion
Jun 8, 2003

Yam Slacker

Space-Pope posted:

getElementBySuperego

overeager overeater
Oct 16, 2011

"The cosmonauts were transfixed with wonderment as the sun set - over the Earth - there lucklessly, untethered Comrade Todd on fire."



Space-Pope posted:

getElementBySuperego

sometimes a '0' is just a 0

flakeloaf
Feb 26, 2003

Still better than android clock

Vlad the Retailer posted:

sometimes a '0' is just a 0

TRUE

qntm
Jun 17, 2009

Sweevo posted:

lmao camel case

meanwhile, there's the absolutely indefensible XMLHttpRequest

Space-Pope posted:

getElementBySuperego

ee hee hee

MrMoo
Sep 14, 2000

qntm posted:

meanwhile, there's the absolutely indefensible XMLHttpRequest

Well the reason for that is obvious:

quote:

XMLHttpRequest was originally designed by Microsoft and adopted by Mozilla, Apple, and Google. It's now being standardized at the WHATWG.

exe cummings
Jan 22, 2005

XMLHTTPRequest

exe cummings
Jan 22, 2005

yard salad posted:

XMLHTTPRequest

no thanks, i'll stick with the idiosyncratic camel case rules that reward someone in the know, and clever, like myself. like wheat from chaff

LP0 ON FIRE
Jan 25, 2006

beep boop

yard salad posted:

no thanks, i'll stick with the idiosyncratic camel case rules that reward someone in the know, and clever, like myself. like wheat from chaff

the "ML" is capitalized but the "ttp" is not. not as camel case as you'd probably want it to be!

Bloody
Mar 3, 2013

ExtensibleMarkupLanguageHyperTextTransferProtocolRequest

exe cummings
Jan 22, 2005

Bloody posted:

ExtensibleMarkupLanguageHyperTextTransferProtocolRequest

foxy boxing babe
Jan 17, 2010


Bloody posted:

ExtensibleMarkupLanguageHyperTextTransferProtocolRequest

shitface
Nov 23, 2006

LP0 ON FIRE posted:

did someone screw up writing it this way and just say "welp, too late now! need to keep it as is!"?

in your case the d is always small

Yaoi Gagarin
Feb 20, 2014

Vlad the Retailer posted:

sometimes a '0' is just a 0

what if it's a big-O?

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

Bloody posted:

eXtensibleMarkupLanguageHyperTextTransferProtocolRequest

JewKiller 3000
Nov 28, 2006

by Lowtax

Bloody posted:

ExtensibleMarkupLanguageHyperTextTransferProtocolRequestFactoryBean

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord

LP0 ON FIRE posted:

i like camel case, but you still should capitalize both the "I" and "D" for the abbreviation of "identity" or "identifier".
what about if you have a word coming after an all-caps abbreviation or acronym? then it'll start with a capital letter and it'll look like it's part of the same thi-

qntm posted:

XMLHttpRequest
:barf:

Bloody
Mar 3, 2013

JewKiller 3000 posted:

ExtensibleMarkupLanguageHyperTextTransferProtocolRequest theRequest = AbstractExtensibleMarkupLanguageHyperTextTransferProtocolRequestFactory.GetExtensibleMarkupLanguageHyperTextTransferProtocolRequestFactory().CreateExtensibleMarkupLanguageHyperTextTransferProtocolRequest();

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
tbf in javascript that would just be

JavaScript code:
var theRequest = AbstractExtensibleMarkupLanguageHyperTextTransferProtocolRequestFactory.GetExtensibleMarkupLanguageHyperTextTransferProtocolRequestFactory().CreateExtensibleMarkupLanguageHyperTextTransferProtocolRequest();

p much the only time dumb typing would almost be good

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
but when I type http in my address bar it's lowercase

Breakfast All Day
Oct 21, 2004

http actually stands for "hit up", as in "hold on a second, let me hit up google"

it was latter backronymed to "here to troll post"

hth

Dr. Honked
Jan 9, 2011

eat it you slaaaaaaag
op here is your answer

https://www.youtube.com/watch?v=IYFr3UyVpRA

Sniep
Mar 28, 2004

All I needed was that fatty blunt...



King of Breakfast
gently caress u op i clicked this link for the D in quotes and am terribly disappointed

Ericadia
Oct 31, 2007

Not A Unicorn

Sniep posted:

gently caress u op i clicked this link for the D in quotes and am terribly disappointed

"d" indeed

cowboy beepboop
Feb 24, 2001

camel case is gross

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord

my stepdads beer posted:

uppercase is gross

qntm
Jun 17, 2009

Breakfast All Day posted:

http actually stands for "hit up", as in "hold on a second, let me hit up google"

it was latter backronymed to "here to troll post"

hypertext helps

Sweevo
Nov 8, 2007

i sometimes throw cables away

i mean straight into the bin without spending 10+ years in the box of might-come-in-handy-someday first

im a fucking monster

HTTP actually stands for He Thumped The Pussy.

it's promoting sexual violence and should be boycotted. please sign my epetition

Adbot
ADBOT LOVES YOU

emoji
Jun 4, 2004

qntm posted:

meanwhile, there's the absolutely indefensible XMLHttpRequest


ee hee hee

It's defensible because it looks better and is more readable. You will always see this pattern for adjacent acronyms because keeping all of them all caps removes information on which letters belong to which. Adhering to the 'rules' and reducing clarity makes no sense because the 'rules' are there to provide clarity, not satisfy OCD tendencies. Hope this helps.

  • Locked thread