It is currently Sat Apr 27, 2024 10:22 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post Post subject: So yeah last night
 
Offline
Godlike Poster
Godlike Poster
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Sun Oct 16, 2005 9:42 am
Posts: 8798
Karma: 17

Location: Imagine in your mind a posh country club
Steam Login Name: azcn2503
I was just talking to a few people about how efficient my code was on my site.

Then I realised I was running the same function 18 times over!

/facepalm

_________________
Follow your heart and live the dream <3


Tue Jan 18, 2011 5:17 pm 
 Profile E-mail  
 
 Post Post subject: Re: So yeah last night
 
Offline
GO GO POWER MODERATOR!
GO GO POWER MODERATOR!
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Mon Sep 12, 2005 1:36 pm
Posts: 5034
Karma: 8

Location: Coruscant
Steam Login Name: rct2100
Smooth Aaron, real smooth :/

One of our lecturers was running a function twice for no reason earlier... We asked him why and he said "Cause I can" :/

_________________
Image
Steam ID: rct2100 360 Gamertag: DHR107 Contact me for Wii/DS Friend codes
Resident Scrooge/Grinch :)


Tue Jan 18, 2011 5:47 pm 
 Profile E-mail  
 
 Post Post subject: Re: So yeah last night
 
Offline
Godlike Poster
Godlike Poster
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Sun Oct 16, 2005 9:42 am
Posts: 8798
Karma: 17

Location: Imagine in your mind a posh country club
Steam Login Name: azcn2503
Hehe. It wasn't causing any errors, it was just... slowing it down by a millisecond or something.

_________________
Follow your heart and live the dream <3


Tue Jan 18, 2011 5:54 pm 
 Profile E-mail  
 
 Post Post subject: Re: So yeah last night
 
Offline
Eagle Eye (Mod)
Eagle Eye (Mod)
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Fri Oct 14, 2005 7:15 am
Posts: 2128
Karma: 20

Location: On the Internet
Steam Login Name: kyhas
Unacceptable, when we cut funding you'll have wished those 18 actions were bringing in the money!

_________________
Image


Wed Jan 19, 2011 9:20 am 
 Profile E-mail  
 
 Post Post subject: Re: So yeah last night
 
Offline
Godlike Poster
Godlike Poster
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Sun Oct 16, 2005 9:42 am
Posts: 8798
Karma: 17

Location: Imagine in your mind a posh country club
Steam Login Name: azcn2503
Hehe.

It was some code to scan through all the child nodes of a certain element on the page and make them interactive. It's just I had the code inside a loop. It was looping over 18 times because it pulled down 18 records from the database. So, it added 1 element and made it interactive; it added 1 more element and it made the 1st and 2nd element interactive. Then the third and 1, 2 and 3 interactive again... lol. To be fair I was getting tired.

Update: I don't use that code any more.

_________________
Follow your heart and live the dream <3


Wed Jan 19, 2011 9:45 am 
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y