« first day (1495 days earlier)      last day (3460 days later) » 

12:15 PM
How can anyone love java?
 
@SecondRikudo It's automagically cross-platform.
 
@Unihedron So is JS
 
@SecondRikudo Not true. JS isn't compatible with IE 6.
Err... the other way round
 
@Unihedron I'm pretty sure that the population of people who don't have Java installed is bigger than the population of people who still use IE6.
 
And IE6 is easy to write compatible code for...
@AwalGarg you really need to stop bashing jquery.
 
12:20 PM
@FlorianMargaine AwalGarg is afk: abstract classes in php rox!
 
I don't understand why would anyone willingly choose Java as their language of choice in 2014 without legacy considerations.
 
Because hotspot rocks
 
It's sorta good for everything, which makes it not excellent for anything.
 
@FlorianMargaine what ya sayin! I helped that girl with her jquery code... (and yeah, after that I told her to stop using it ;p)
 
And the language is good when big teams work together
 
12:21 PM
@FlorianMargaine How so?
 
Meh... On mobile, let us continue this discussion when I'll be back ok?
 
@SecondRikudo readable code (consider when team writes pre-obfuscated Perl), easier to build code / formatting standards, enforcement for proper OOP
And git diffs are generally prettier
 
@Unihedron I can write readable code in any language, PHP included. That's a crappy argument.
@Unihedron Easier to build, how is it easier to build than Grunt, or C#?
 
Come on, don't compare php with java, it's just not the same kind of scalability
 
@Unihedron What is "proper" OOP?
 
12:23 PM
C# doesn't work on linux
 
Just because you're using classes and objects for everything doesn't make you OOP l33t
 
Don't bring up mono, it's a joke
 
So! Ladies, gentlemen and gods! Florian would be back, after a break! Keep yourself here... :)
 
@FlorianMargaine Yes it does
 
@KendallFrey Not yet it doesn't.
But it will
 
12:24 PM
Well, MS announced it
 
@KendallFrey Hence, it will
 
@SecondRikudo Not everyone else. Java enforces beautiful code because it's a statically typed language. Types, methods, annotations and fields. There's chaining and lambdas and inferred types but it's still a type-method-field code style. Most other languages enforces operators, operands and functional blocks, Java doesn't. So I disagree with the premise.
@SecondRikudo Eh, I said easier to build as in code standards and formatting standards.
 
@Unihedron I can solve the same problem with TypeScript
 
> Java enforces beautiful code
 
@SecondRikudo TypeScript for large teams? I admire your courage. I like TypeScript too.
 
12:26 PM
@Unihedron That's the job for the IDE and your work policies, not the compiler.
 
@Unihedron A compiler is not a replacement for developer dicipline.
 
@SecondRikudo Touche.
 
It's an aid tool, but it shouldn't be made into something it isn't.
 
I can write ugly code in Java @Unihedron
 
12:27 PM
@SecondRikudo There is no spoon.
 
Heck, I write ugly code in Java :D
Also I don't understand what's so beautiful about Poop and AbsPoop and PoopImple
 
Like @SecondRikudo got the talent to write readable code in every language, I got the talent to write ugly, non readable and bad code in every language.
 
a poo pimple is a terrible thing to think about
 
If you have an interface with 50 methods just to say you have interfaces, you aren't doing OOP, you're doing POOP.
2
 
Hello
 
12:28 PM
World
 
hello user
 
@SecondRikudo Partly Object Oriented Programming?
 
I think JS's OOP model, with all its flaws and gotchas, is a lot better than Java's.
 
Hello {{username}} :)
 
@Sippy Poor Object Oriented Programming, POOP.
 
12:29 PM
That makes more sense :P
 
short for what rlemon did on a slide...
 
Lol
 
@SecondRikudo 7pm
 
@BenjaminGruenbaum Gotcha
@monners That is so true.
I started really liking JavaScript once I forced myself to stop using jQuery unless I absolutely must.
 
@Unihedron Java is a lot less cross platform than most languages. It's a lot easier in practice to get C++ to run on several platforms than Java, at least in the last 5 years.
 
12:31 PM
Guys quick Q if anyone is up for quick A :) If I have a complex option list in angular used in select element, then must model reference some specific object in that list or if I assign new object with same content, then it should be enough?
 
Also - You people have got to stop bashing jQuery.
 
@BenjaminGruenbaum That I agree with.
 
I disliked JavaScript initially because a started JavaScript with jQuery... luckily, I rectified that soon.
 
@Eugene ng-options
 
Yes
 
12:32 PM
@Eugene it would not be enough, it must be the same object
 
@BenjaminGruenbaum If you compile it to different OSs and systems and distribute the binaries, or distribute the source and allow users to compile it themselves.
 
@BenjaminGruenbaum so it does use reference to mark selected element. Okey. Thank you.
 
I think it just adds the model first if it's not there, I don't remember 100%
Looking at the source indicates that too, but it's hard to reason about and a test is easier to write.
@SecondRikudo in Java you kind of do both.
In Java you distribute the source, only in compact form and without comments, the JVM is aware of classes etc. It's very far from assembly
 
@BenjaminGruenbaum Yes, but then JVM compiles it properly, does it not?
 
Well, it compiles it just in time, just like JS, unlike C++
Except for Java run on Art, that works differently
 
12:38 PM
Yeah, so like I said. Java sucks :P
Not to mention that you write classes in XML, that completely blew my mind, and not in a positive way.
 
@SecondRikudo That's android.
 
@Unihedron That's also Spring
 
@SecondRikudo And hibernate, but not native Java.
 
pccasegear.com/… I want one right now... :( :/
 
@Unihedron Still, it's this developer community mentality which allows this
As if it's a positive thing
 
12:41 PM
But JS uses JSON.
 
@Unihedron No, it does not.
JSON is similar to how JS objects look like, JS does not construct code from JSON.
It can, mind you. But that's a horrible horrible way of programming, and no one would want to do that.
And if someone did try they'd be called an idiot
I don't understand why this is acceptable behavior in Java.
 
actually, IIRC, someone did that here yesterday
 
@AwalGarg Link?
 
lemme find
 
JSON is based on how JS objects look like.
XML is not based on how Java class definitions look like, and Java has no object literals.
Well, the jTypes guy is doing horrible stuff :D
 
12:44 PM
ok no that is something different
bad me
 
@BenjaminGruenbaum I never knew that for some reason lol, then I thought "Maybe it stands for JavaScript object notation"
Clearly I am getting there with terminology.
 
it does, JSON stands for JavaScript object notation.
 
Yup
I mean that happened just now
 
json.org
@Unihedron why would anyone use Java when you can use Scala
 
@BenjaminGruenbaum I need to learn Scala.
 
12:46 PM
The only thing that Java does better is compile faster.
It runs in less places (Scala runs on JVM with 1.5+), has weaker types, worse functions, no type inference etc.
 
@BenjaminGruenbaum Because Scala doesn't have proper documentation, writing scala may as well be writing java.
 
Sure it does
 
I've found Scala to be quite academic
 
When I needed to code scala I found everything I needed.
It's not academic it all, it just 1-ups Java on everything I tried.
 
I mean, creating immutable lists is all fine and good, but it's also very slow
 
12:47 PM
No it's not
You know, if you have a 1000 item immutable list and you add an item and get a completely new 1001 item immutable list - it doesn't actually create a new list, allocates and copies 1000 items :P
 
I thought scala is a framework ;p
 
hence the immutable :P
 
It just keeps a reference to the old one and keeps in mind an element was added.
 
Though if you want to know the length, it literally has to count them all
 
It optimizes the performance penalty away, you don't have to care how though.
 
12:49 PM
I really can't get rid of : [object HTMLUnknownElement] . Would anyone know now perhaps?
 
It optimizes some aspects about a list, but not all
 
Or what a good check would be to prevent it?
 
Maybe it is silly to want to know the length of the list
I don't know
 
Speaking of which @copy that's the collections library you should be using, completely forgot about that one.
@Neil that's still work, although lists are not as common as sequences.
 
@DavidH Where are you getting that?
 
12:51 PM
I'll show you hold on and it's when I used your way of solving my issue
 
hey @AwalGarg
 
I heard the day about a database organized by column, not by row
 
i found this the object is being overwritten
in all LI, I am getting same json data
 
hey!
 
It can optimize by keeping one copy of every unique value in the column, and can potentially reduce size by huge amounts
Makes grouping very inexpensive as well
 
12:52 PM
@SweetWisherツ fiddle?
 
@SecondRikudo Which by the way worked perfectly fine, so thanks again! jsfiddle.net/ug7y6451/2
I've added a comment at the top as to how to make use of it
 
@SweetWisherツ you are setting the data on the button, not the lis
 
yaa on buttons only
why so ?
because i wanna handle button click only
 
that is because $('button') refers to the first button element.
 
12:58 PM
then how to handle this
 
@SweetWisherツ jsfiddle.net/fu9e9/353 like this
also, that code is bad
Do not insert html like that.
Build proper DOM elements, and add them to the DOM tree
maybe jQuery does that automagically for you, but I unno for sure.
Ask @BenjaminGruenbaum He loves to answer all jQuery questions.
 
Announcing: I kicked Awal
13
 
@SecondRikudo It's also kind of strange because all that happens is that the divs turning into an Unknown element only hold the value of the input and nothing else. As if it's changed completely, I thought doctype was the culprit but that isn't so either..
 
(not really)
 
OMG I am kicked! :( :(
 
1:04 PM
trolololol
 
Hi all
 
hello user
 
how would you structure a "click outside to close" behaviour in a web application in which you have multiple views with this functionality ?
 
Morning Folks
 
Add an event handler to the window when you open, remove it when you close, stopPropagation inside the "inside"?
 
1:14 PM
The problem is that I can have a view that instanciate a "child" view and then close them one per time
 
"views" is basically the bastardization of "pages", right?
 
@AwalGarg no, a View is an element in the page
 
@AwalGarg Ohk waill try that..thnks :)
 
like a popup, a modal
 
WTF, apparently the creator of a Doodle can change the name of participants even if they logged in with an account...
 
1:15 PM
I am running short of just one point to comment("That worked! Thanks") on some SO question that helped me achieve what exactly I want.
Please upvote this question asked by me some days back
http://stackoverflow.com/questions/14756076/parsing-html-for-windows-8-metro-style-application-using-c-xaml
 
Thankss.. It worked :) @AwalGarg
 
is like I need to create more "layers"
 
Cyaa
@AwalGarg will do proper coding :)
 
no problem :)
good, best of luck :)
 
@SweetWisherツ wish me sweet up voting my question! :-)
 
1:19 PM
I am in learning phase..so make silly mistakes
 
@SweetWisherツ that is not a silly mistake, it is a bad practice. Everyone's been through them.
 
@udaysagar Alert!! you can not ask for upvote..
 
hmm
 
@udaysagar just upvote it
 
@KendallFrey he's the author of the question, he can't upvote it...
 
1:21 PM
That's not what I meant
 
0
Q: Can we convert links only answers into comments for this question?

Customized NameI am just tired of foobar examples as I don't understand them at all, hence they increase my confusions of the topic, so I queried why people use it in examples. Thus I came across this question with most questions as link only. I am quiet surprised as accepted answer which is a link only answ...

 
@ThiefMaster lol
 
@udaysagar you can comment on your own posts without 50 rep.
 
that isn't my post, I just wanna thank him.
Anyhow, That's ok.
 
1:23 PM
then upvote the post. That is called thankyou on SO.
 
@udaysagar thank him with an upvote
 
Ok
I already done that
But thought of acknowledging with words
 
owwait... I didn't notice meta.so got a makeover!
 
If everyone posted "Thanks!" on every helpful answer, SO would be filled with thank you spam
 
haha, yea. I get it.
 
1:26 PM
@AwalGarg looks basically the same to me
 
The question is from 2008 and should be closed anyways as it's no longer considered a valid question for SO.
how that going to help ?
and people are upvoting the comments, seriously ?
 
@KendallFrey yeah, just a bit of polishing and some flattening
 
Hey. I'm trying to wrap object values into HTML. I want to wrap it in an a, then h3, then div. However, it's only wrapping the a tag...
           var content = '<a href="' + value.link + '">' + value.title + '</a>';
           content = $(content);
           $(content).wrap($('<h3/>'));
           $(content).wrap($('<div/>'));
Anyone know why?
 
@KendallFrey can you answer C# questions in JS room or I need to go to C# room for that ?
 
1:31 PM
@CustomizedName guess?
 
@AwalGarg my guess would be... - I don't know
:|
 
@CustomizedName Go to the C# room..
 
@CustomizedName you can ask questions about camels here for all I care.
You probably will have more people interested in answering it in the C# room though.
 
@BenjaminGruenbaum No they don't they always talk about JS, that's why most of them are here lol
 
@tmyie why are you doing content = $(content) and then doing $(content), that's like doing $($($($(content))))
3
 
1:36 PM
lol
> 1 April, 2001
 
they ignore me in JS room, they will ignore me in C# room too
 
What's your question?
 
Is node.js worth learning?
 
is there any "trick" to push an array into another one?
 
no - de.js
 
1:39 PM
@DemCodeLines That question lacks all kinds of context.
 
what i'm doing is this :
 
@Julo0sS concat?
 
@DemCodeLines Yes.
@Julo0sS splice
 
@KendallFrey can you answer C# questions in JS room or I need to go to C# room for that ? this is my question
 
@Julo0sS yes, there is. Google it.
 
1:41 PM
Is it a good thing to know? I'll eventually be a software engineer and I'd imagine most of you over here already are, so you would know if it's a good thing to know or if it's a "might-as-well-learn-it" type of thing.
 
I'm so tempted...
 
@CustomizedName I can answer C# questions on Mars if need be
 
lol
and lol
 
@BenjaminGruenbaum about what?
 
@DemCodeLines I don't think there's anything in the tech world that isn't somewhat beneficial to know.
 
1:43 PM
i try this :
myArray.push(anotherArray);
so my 2nd array is a record of the first one... right?
 
then i need to do this :
var bigArray = [[]];
bigArray[0][0] = "title";
bigArray[0][1] = myArray;
or something like this
 
By "trick", I thought you want to merge the arrays
 
@AwalGarg no
 
ok, continue
 
1:44 PM
@AwalGarg check my previous post, think you'll see what i mean
 
I can't seem to understand what exactly is the question.
I am too bored and empty today :(
 
SO, the "bigArray" should be a 2 dimensionnal array... for each record :
first position ([0]) should be a title or whatever i want,
and second ([1]) should be the "myArray" value (which is an array of array... x) )
 
@KendallFrey is it possible for you to make some effort and travel to comet poplee (recently in news) to answer the question and may as well change the direction of robot as well please 0.0 xD
 
@Julo0sS so, [["title",myArray]]
 
@KendallFrey this is it
 
1:47 PM
eh?
 
[["title",myArray],["anotherTitle",anotherMyArray],...]
 
~_~
 
@BenjaminGruenbaum say it, I dare you
 
It is too late to undo this operation
 
@CustomizedName How do you know Kendall isn't there already?
 
1:51 PM
@Sippy Because "comet poplee" doesn't exist
 
@KendallFrey how do I push "values" in this kind of array... [[]]?
 
myArrays = [myArray, anotherMyArray]
myTitles = ["title", "anotherTitle"]
things =[]
for (/*stuff*/) {things.push(myArrays[i], myTitles[i])}
 
@EduardoPaez 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.
 
@Julo0sS What do you mean? I don't understand what part you need help with.
 
well,
 
1:53 PM
@Sippy I saw him wondering around the moon lately
along with rLemon (don't tell them i told you this)
 
@rlemon was looking for a slide.
 
i fetch data to build a "simple" array, this way :
simpleArray[i] = "somedata";

Once the simplearray is complete, i push it as a single array record in another array :
mainArray.push(simpleArray);
mainArray contains many arrays...
 
@CustomizedName Which moon? I haven't been to Mun lately, but I was on Tylo last week
 
Maybe objects would be more suitable for this kind of thing...since you want to store key value pairs.
 
depends if ordering is important
 
1:55 PM
agreed
 
then i have a "global array" which is this kind of array : [[]]
first globalArrayRecord is a reference :
globalArray[0][0] = "myreference";
then
globalArray[0][1] = "mainArray" (the whole one)
order is not important there
i just need to create this array to THEN create my objects...
 
@Sippy craters make excellent slides
 
Seems pretty pointless to store an array in itself, but carry on...
 
@rlemon Mun arches are better
 
1:59 PM
@KendallFrey actually they are kinda fun
var arr = []; console.log( arr[0] = arr );
keep expanding it in chrome
 
@rlemon dat low gravity too.
 
I dont' want to be a developer anymore
 
!!> JSON.stringify((var a=[],a[0]=a))
 
@KendallFrey "ReferenceError: assignment to undeclared variable a"
 
2:00 PM
damn you strict mode
 
@KendallFrey "SyntaxError: syntax error"
 
so much fail :P
!!> var a = []; a[0]=a; JSON.stringify(a);
 
@rlemon "TypeError: cyclic object value"
 
Why doesn't that work? Can't I declare a variable in an expression? :(
 
@rlemon I can't seem to get to the end :(
 
2:02 PM
(var a = 1);
Uncaught SyntaxError: Unexpected token var
wow, TIL
you cannot use var inside an expression it seems
 
guess so
 
I updated the gist lemme know if you have any more feedback. This saturday.
Maybe we should just get discourse?
Or open a GH repo and have issues?
 
How/where are we meeting again?
is this official enough to use voice chat?
(That may not work with >5 people)
 
and 14:00 GMT?
you want me to function at 9am on a saturday?
 
ASR
@rlemon hi
 
2:06 PM
Is that 9AM?
 
hello
@KendallFrey yes
 
Don't expect me to be awake by 9
 
ASR
0
Q: How to check whether the entered mobile is landline or mobile using PhoneFormat.js?

ASRThis is my example form. I just have take one text box, where I will enter mobile number and I will choose the country from the drop-box menu, for validating the mobile number with country I have used the http://www.phoneformat.com/. Here they have given one method isValidNumber(phno, country) wh...

 
I'll be awake, but not really awake
 
I'll be awake by 10, at my computer by 11
 
2:08 PM
I wasn't aware you could determine landline vs cellphone by just the number
 
@rlemon In the UK, mobiles always begin with 7, after the international code or whatever
 
I would be really surprised if you could.
@Sippy not in Canada ;)
unless you can hook to a carrier API or something I don't see how this could be possible (reliably)
 
@rlemon That's why I was careful not to omit the "In the UK" part :D
 
@Sippy did you see this: mirror.ninja/79ea (NSFW language it's a youtube mirror)
wait, you're in the HTML room too
nvm.
 
Your memory is worse than mine lol.
 
2:13 PM
it's fixed length and I've exhausted free space. now I have to get rid of older stuff to put in new stuff
 
which is why he keeps his profile picture of his own as sometimes he even forgets his own face lol
 
@rlemon oh yeah that's backwards
It should be 8pm here
Not the other way around -_-
 
@BenjaminGruenbaum we got a punishment for you now, be ready
 
random comments are random
 
2:17 PM
@BenjaminGruenbaum hey, I read knockoutjs doc last night :)
 
Coolbeans
 
just the boilerplate though
 
jellybeans
Now I want jellybeans
fuck you all
 
randombeans for all
 
2:18 PM
using custom elements sounds fun
 
custom custom elements yo
elements rules elements foo
once around up and down
custom elements are the best ones yo

my first poem xD
 
hey y'all. I have a question. If you create something with webgl, can you use phonegap to make it into a mobile app?
 
@KendallFrey faku kindel
 
fak sno
 
2:23 PM
and no one liked my poem
 
I fell for it, kthxbye
 
@CustomizedName Do you know what foo and bar mean?
 
@SecondRikudo they mean nothing
 
@CustomizedName foo and bar originated from foobar, which originated from fubar, which is an acronym for Fucked Up Beyond Any/All Repair
 
> The word foo originated as a nonsense word from the 1930s, the military term FUBAR emerged in the 1940s
 
2:36 PM
 
@rlemon shop a dick into that
 
user2620028
We had a racecar wheel that we affectionately named fubar
 
Why would you name one of your wheels?
 
user2620028
So we rembered which one it was and we never put it back on the car for a race :)
 
Why wouldn't you put it on a car?
 
user2620028
2:40 PM
Fubar was bent just a tiny bit. not enough that you could visually see it, but enough that when it is spinning at 9000 rpm that it would make the car bounce like a lo rider car with hydraulic shocks
 
user2620028
Not fun to race with on the car lol
 
so trash it?
 
user2620028
It was one of the only small wheels we had that we could fit the racecar into trailer with
 
user2620028
So undoubtably it would always end up on the car for the first race lol
 
So you put a small broken wheel on just for the trailer?
I don't understand this story
The cars I drive have consistently sized wheels
 
user2620028
2:42 PM
yes kendall, the car with the larger wheels on it can not fit easily into the trailer
 
And you race with the trailer wheels?
 
user2620028
No, we keep tons of different wheels and tires in the trailer
 
user2620028
But we have to have smaller racecar wheels on the car to fit the car into the trailer
 
You use one set of wheels for racing, and one for transport?
Or you race with differently sized wheels?
 
user2620028
We race with different sized wheels
 
user2620028
2:46 PM
And have different sizes for different track conditions
 
that seems odd, I've never heard of that
 
imgur.com/a/PSCGu neat cc @Loktar
 
hah that is cool
rasp pi?
 

« first day (1495 days earlier)      last day (3460 days later) »