« first day (1013 days earlier)      last day (4160 days later) » 

15:00
Like, give your kids false perceptions about how sex feels like, or how you need to behave in certain situations, and watch as their lives burn.
I'll make the popcorn
I really do not like when I get PSD that I think are not nice :(
better than getting PTSD
@Zirak I love how messed up you are. :D
3
And now I have to google what a PTSD is
Oh ok
Post Traumatic Stress Disorder
15:03
!!what's PTSD?
@Zirak PTSD Initialism of post-traumatic stress disorder.
lrn2bot
Which is still better than having PMS
!!what's PMS
@dievardump PMS Performance management system, performance measurement system or performance monitoring system [Note that these are NOT synonymous, but are used in the same field, so intended usage should be confirmed if important.]
15:03
Totally.
And still better than any STD
Hahaha
@Loktar I just want you to know I wrote a paragraph question for you and answered it in my own question..... you're helpful even when you are not :P
lol
15:05
Octavian Oh, yeah. But I have something to tell you... I know it will somewhat disappoint and probably astonished you, but I have a penis and therefore, am not subject to PMS
!!what's potatoes
@Shmiddty potatoes Plural form of potato
@dievardump I know, that's what I meant. You'd have a problem if you'd be subject to PMS.
Oh yeah sure
Boil em, mash em, stick em in a stew
15:06
It wouldn't change the PSD aspect though
You can blind yourself
Yea, I have no idea what we were talking about, I just joined the conversation to be all cool 'n stuff.
LITE BRIGHT
I want to test this
15:13
> Internet Explorer 11 continues our vision of providing the best Web experience across the full range of Windows devices and screen sizes.
uh, yeah. no.
the new developer tools is said pretty good
@FlorianMargaine ie10 is pretty good.
I'm all for giving MS the benefit of the doubt
@dievardump "the best"
@FlorianMargaine that's going to be a disappointment then if they're just planing to continue it.
@FlorianMargaine "across the full range of Windows devices and screen "
It it was not of dev tools, I would probably use ie10 on my windows 8
@dievardump eh, are you saying that IE would be the best across the full range of Windows devices and screens?
Seeing how fast it is when I open it.
@OctavianDamiean that's what they are saying.
@christo Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
ie10 is really nice. And I hope with the 11 and the new DevTool we will have a newcomer in the game
15:16
No .... just no.
no preview for win 8 :(
They aren't saying that they're the best, only that that is their goal
IE11 provides the best Web experience across the full range of Windows devices and screen sizes with mouse, keyboard, and especially touch.
trollololol
I just found out that in the family of my family there is a couple named Rick and Lorrie
15:20
@Cyares Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@Zirak also, what Joel got wrong in his examples is the database column names. He's using the Hungarian notation for those too even if there's no reason for that. At least in his specific example.
Probably a really stupid question, but do I need to save the string I am passing to inner functions as a variable, or can I use it like so: jsbin.com/ejatef/1/edit
@mikedidthis This is perfect. string will be accessible by all the nested function of parent
Define save.
@OctavianDamiean cache it? var string = string?
15:22
@mikedidthis - it's fine that way (in jsbin)
@dievardump cool! Thanks!
And also thanks guys!
Function parameters are basically locally scoped variables
@Shmiddty o rly?
Javascript does not support function overloading like many other languages do.
It's a generalization, I know
15:24
You cannot have two functions that have the same name, but different numbers of arguments.
@Michael And how would you expect function overloading to work in a dynamic language?
@BenjaminGruenbaum You would have to use the special arguments variable that Javascript provides, and determine what the function should do based on the number or type of arguments.
And why are you saying that?
@Michael Right, there is really no way to do this on a language level. Default parameters and proper varargs we're getting soon though.
Function parameters are basically a shorthand alternative to using the arguments variable.
15:26
I can think of a pattern that would facilitate pseudo overloads
Based on the number of arguments passed only
@Michael Everything is syntactic sugar for basic constructs. Languages sometimes live on syntactic sugar.
@Shmiddty You would also have to check the type of each argument, in order to truely support overloading.
my designer wants to join the chat
she was watching me being an ass :-< ... crapppp....
Right, which isn't very scalable
@Michael Or don't... just pass an object. The problems you descrive seem to stem from unfamiliarity with how JS development actually works.
Overloading is mostly useful when you want to overcome something imposed by typing in the first place - the most common use case for actual overloading is not needed in JavaScript anyway.
15:35
Instead of passing multiple parameters into the function, you could put those parameters in an object, and then pass the object into the function.
Why Javascript is not responding to keycode '8' for backspace key ?
but working fine for others
2 messages moved from PHP
Could anyone recommend a good Javascript/jQuery book for someone with moderate programming exposure? (2nd year CS student)
We should do that when someone ask a php question here
@akowalz Eloquent JavaScript and JavaScript: the Good Parts.
@akowalz I can recommend you to not read anything about jQuery without reading a lot about JavaScript
jQuery ALL the things
ok, well if anyone is bored and wants to look at my diamond square attempt: tinker.io/09826/3 it is making some cool patterns atm...
just not what i'm after. (also, it's slow as shit, sorry if it crashes the tab)
@Michael @OctavianDamiean Is this for beginners ?

Javascript Resources.

Sep 4 '12 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 '12 at 13:40 by rlemon

15:41
Yea, @dievardump? I've actually heard the opposite in a few places, JS better to learn first?
Whaaaat ?
What the heck?!
@akowalz Never go back to those places then.
@silverflash Yeah
@Michael okay
15:42
@OctavianDamiean hahah, actually just codecademy. They put the jQuery track first!
@akowalz Oh, well, they're not as high a quality resource as they think they are.
@Michael that would make a lot of sense
@OctavianDamiean Yea, I don't really trust them too much. They're good for picking up/refreshing a little bit of syntax, and the tutorials are nice and fancy, otherwise not so good.
@rlemon I do not see what it's suppose to do.
I have a coworker that thinks I should write some basic JS tutorials. Things like variables, loops, functions, arrays, etc. I think there are already a lot of great resources like that out there, so why bother? Any opinions?
15:45
@dievardump end goal ^
@RyanKinal Don't Reinvent The Wheel
@RyanKinal Don't waste time things that are already done.
@RyanKinal find the best tuts, compile them into a single well organized tut.
that would be better use of your time
@rlemon you're not far :). Keep the work going
You don't need to write anything, everything's already been written
@dievardump yea, I just don't see what i'm doing wrong atm.
ahhwell.
@RyanKinal You could help @IvoWetzel improve JavaScript Garden.
@Michael That is such a horrible lie
i'll stare some more
@SergeyKochetov Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
15:47
@Zirak Just google "javascript tutorial"
Might be he can write a tutorial in easy language and send it to microsoft guys. They might get inspired by language and stop making .NET and IE
91M pages
so languages don't change @Michael ?
I wrote some OOJS tutorials, and I think they're fairly valuable, good tutorials. I know they were already written, but I did it anyway.
15:48
@Michael That doesn't mean any of them are close to being good
tutorials don't get out of date?
@rlemon haha! Nice!
@Michael 91 million pages is fuck all
Which is part of my coworker's reasoning.
She likes my writing style :-)
I want to see a 'visual' javascript tutorial. As a designer that would help massively.
15:49
Why are you always trolling ?
@RyanKinal She? Oh boy, that sounds as if someone is trying to hit on you.
@mikedidthis "visual"? Elaborate.
@OctavianDamiean Naaaaah, she's married.
Thanks @phenomnomnominal
15:49
@Michael So that means you shouldn't be writing anything?
yea, @Michael you are just wrong here.
plain jane wrong
@RyanKinal Yea, that doesn't mean anything. :P
@OctavianDamiean If you knew her, it would
@Michael someone already played all the notes, that means there are no new songs to be written
if the word exists, it is only because someone has used it. there are no more words left to speak?
15:51
@OctavianDamiean @RyanKinal Do you feel your work load increasing when she is around :P
also - why do you think we're on the 6th ed of JS the definitive guide?!
why do you think 99% of the js tuts from 1998 won't apply today?
@silverflash I have no idea, I don't know her.
If you want to waste your time writing something that's already been said, then go for it
anyways, lunch time
@silverflash I'm confused
15:52
Is this a silly suggestion, or is it just me?
@Neal you can open different questions and link back to this one. Each question with a smaller snippet that you want to focus on and get reviewed. Another thing is you might want to look into an alternative solution to displaying information and getting input rather than using alerts. — Jonny Sooter 3 mins ago
@Michael Well, what if what's been said already is wrong now or was already wrong back then?
@RyanKinal I tried to write an explanation 4 times and failed.
End of discussion
@mikedidthis lol, fair enough
15:53
@OctavianDamiean Then someone will correct it
@Michael Yea ... no.
@Michael Why are you alive?
@Michael Someone will correct it... with a new piece of writing.
Everything you do, someone has already done before you
So just stop
HAMMERTIME!
3
15:55
I love you, bot.
@Zirak Exactly
That was magnificent
Duuuuuuh da da da, da da, da da
:dances:
@Michael That doesn't mean you shouldn't do it
3 mins ago, by Michael
End of discussion
15:56
But he's wrong!
@dievardump lol, fail
@Zirak It means it's a waste of time to do it. Would you try to reinvent a car? No, because cars already exist.
"Yeah, no debate allowed with me. Don't try to show me I'm wrong, I am not, and if I am, I won't admit it."
@Michael Yes, because we're all driving cars that were in the 19th century
Because nobody reinvented cars
Nobody improved it neither.
15:57
Oh noez somebody has already written what I'm going to write.
Oh wait, they didn't write it like I will. Maybe people will like my style better. And hey, maybe I'll learn something while I'm writing.
mangstacular.blogspot.co.uk/2013/04/… - Why did you write this article? its covered on SO already.
@Zirak Umm last I checked, my car was manufactured in the 21st centry.
NOT MINE, SUCKER
@Michael IMPOSSIBLE. Cars were first invented in the 19th century, and nobody reinvented cars since then!
Oh wait, my car from 1997 died...
15:59
So either you're wrong and people reinvent things all the time in a magical process called "improvement", or we're all stuck with what we had in the past.
@Zirak You didn't invent hybrid technology. Therefore, someone else did instead.
:facepalm:
@Michael you just voided your own argument.
Pro tip: Zirak doesn't design cars
Pro tip: Michael looks like he is full of bad faith
16:00
!!s/bad faith/shit/
@RyanKinal Pro tip: Michael looks like he is full of shit (source)
@RyanKinal regardless, I think you should write if you feel like it. I believe @rlemon linked me to two of your articles last week and they helped me, so why not.
@Michael That's why I said reinventing, notice the re part.
If Bill Gates was never born, someone else would have founded Microsoft.
@mikedidthis Yeah, I'm just not sure I want to rehash the basics. It's boring.
16:01
No, because Microsoft wouldn't have existed
We'd had Bighard running everything
*Macrohard
Bighard is funnier
"Man, fuck you Bighard Doors!"
rofl
Bighard Doors Landscape was a piece of crap
(Synonyms are fun!)
golf needs some new problems
anyone have an idea?
16:18
@Shmiddty Given a string, embed it with 4s in a sea of 5s.
I'll try and make an example
@Zirak now it's on! Apple vs. MIT in your whatwg thread. :)
5555555555555555555555555555555
5455545544445545555545555544445
5455545545555545555545555545545
5444445544445545555545555545545
5455545545555545555545555545545
5455545544445544445544445544445
5555555555555555555555555555555
@Shmiddty
Since it'll be easy to just generate with 4s and do out.replace(/ /g, 5), think of something that's not so monotonic (maybe a counter)
@OctavianDamiean wat
This is kinda funny.
@Zirak hi
@OctavianDamiean How is that Apple vs. MIT?
16:26
The last guy has a MIT email address, the other guy he is arguing with has an Apple email address. :)
It's good that this subject proved to be debatable
m59
m59
What is better for storing security tokens, localStorage or document.cookie, and why?
Or better stated, why is there both?
I don't understand the last part of the question.
Cookies are more cross-browser and are sent with every request (the last part can be good or bad)
@Zirak I think there's already a problem like that
m59
m59
16:35
For security, localStorage sucks because xss is a cinch, right?
but couldn't the attacker get the cookie the same way??
Correct
m59
m59
doh, http only flag?
That's why (untrusted) XSS is a problem
oh, so you do want the http benefit. Go with cookies, no doubt.
m59
m59
My cms output caches almost everything into localStorage which seems to be super win. I just need to make sure nothing non-public ever gets stored there.
how to declare a 3 dimensional array in javascript and then put values in it at run time and check for values in it ?
m59
m59
16:40
Like, some kind of user plugin could get cached (the settings, view, controller) but never the output that results when they operate (personal information)
var threeDimensionalArray = [[[]]];
If you stare in the middle, it looks like a book that's being flipped through
I was doing var somthinng[] [] [] ... Mine is wrong, right ?
m59
m59
Three-dimensional array sounds kinda fail to me. Wouldn't json be better?
Yes, that is just 3 arrays.
This isn't a C-like language, you don't declare the array dimensions
int[] isn't a thing
Ok. How can I use Json ?
m59
m59
16:43
var array1 = [];
var array2 = [];
var array3 = [];
that;s what you tried to do, kinda
JSON is just a format, like XML or YAML
So you don't really "use" JSON, you read or write it.
@m59 If you keep the commas, that'll be a syntax error
Is it faster to access than arrays ?
m59
m59
easier
...JSON is just a format
It's a way to encode data structures in text
So I dunno, is it faster to turn your data into text, and that back into the data in order to read it?
m59
m59
My point was that with a 3 dimensional array, you're going to have a bunch of

`foo[1][4][1]`
^ that is hard on the eyes and memory.
16:45
But if your data is three-dimensional, then a 3d array is probably what you need
Hard and easy are just native viewpoint.
m59
m59
@silverflash I think Zirak is pointing out that I meant an object literal, lol.
And how is encoding that array into JSON going to be easier?
m59
m59
Because he could name them.
!!> JSON.stringify([ [ [0, 1, 2, 3] ] ])
16:46
@Zirak "[[[0,1,2,3]]]"
WHOA, SO MUCH BETTER
m59
m59
lol, I imagined his scenario wasn't that simple.
!!> JSON.parse("[[[0,1,2,3]]]")
@Zirak [[[0,1,2,3]]]
Hey wait a minute...
m59
m59
16:47
:(
It's a 3d array, if it has 1000 elements or 3 doesn't make it any less weird to encode+decode to access...
So, I should use var arr_thing[[[]]] = new Array(); Right ?
NNNOOOO
var arr_thing = [[[]]];
We don't have weird C-esque array initializers, and don't use new Array
m59
m59
@Zirak it just seemed to me that he only know of numerical arrays for storing information.... if this were php, I'd say, hey, you can use associative arrays, in case you didn't know. Then he has more tools to decide what is actually best.
16:49
I kind of cannot leave C behind :P
m59
m59
I see numerical arrays in php 9 times out of 10 when they ought to have been assoc.
@m59 Dude, how is JSON the solution to using arrays? JSON is a string!
m59
m59
I thought it was technically nothing.
"Oh, so I heard you want to eat oranges! Here, let me mash them into a pulp and here my analogy ends because this still doesn't make sense!"
m59
m59
In my mind, it isn't a string.
It's a concept of using objects and arrays nested.
16:50
@Zirak var buff[[[]]];
SyntaxError: Unexpected token [
@Darkyen 1) how do I make this work, 2) how do I make it not lag like shit tinker.io/09826/4
It's beginning to dawn on me that you've used "object" and "JSON" interchangeably
m59
m59
I said that.
@silverflash For the 3rd time...don't do that C array initialisation thing!
var buff;
booting head
loading ur page
m59
m59
16:51
@Zirak if I remembered how to quote myself, I would show you, lol.
@m59 Don't use them interchangeably.
m59
m59
I said I didn't mean to!!
Derniiitttt, I'm not a noob.
Can I start over and just say that he might consider learning about Object literals and the json format before deciding what is actually best for his project?
I'd like to start over and say he should learn the basic of javascript
morning all
Aren't Walls the opposite of Windows? just saying.
16:55
tinker.io/09826/5 getting better? I don't know? anyone who has done this before tell me if i'm on the right track here?
m59
m59
I know they exist, but I have yet to see for myself any circumstance where a group values is best described by a number rather than a name. I have, however, seen probably thousands of them that ought to be labeled with a name.
First tell me how do I change line while writing chat ??
m59
m59
the button that pops up next to send
or ctrl k
m59
m59
you can just paste your code and hit the button, then send
16:57
@rlemon What's that? A fractal?
I dont think ctrl + K is working
m59
m59
then dont use it...
@KendallFrey an attempt for diamond square
m59
m59
paste your code, hit fixed font and then send...lol
paste, click, click. Very easy.
@Darkyen It's not very heightmappy
16:59
buffer = new Array(); // to store the key and value
// function to take string and cache results related to it
function cache(str, radio)
{
	if(!((str in buffer[0]) && (radio in buffer))){
		var data_to_cache = document.getElementById("txtHint").innerHTML;
		buffer[str] = data_to_cache;
	}
}
thats because of how he did it
look at his own code

« first day (1013 days earlier)      last day (4160 days later) »