« first day (1334 days earlier)      last day (3617 days later) » 

9:00 AM
I ended up having to use angular-routing in order to guarantee that the promise is fulfilled
Seems like one of those things that shouldn't be that difficult to do with a framework that claims to do everything
 
@Neil Was it difficult in the end?
 
@Magikaas Could simply be that I don't understand everything yet
Seems sort of lame that I would have to do something fancy in order to have modules that depend on a service loading aschronously
 
@monners great
 
@Neil I don't quite understand what you mean with that sentence, does the service or the modules load asynchronously?
 
@Magikaas The service makes an ajax call to the server for data, and the modules that depend on that service shouldn't get called until the data has returned
 
9:05 AM
jquery doc doesn't say what triggers an error in an ajax call ~~
 
@Neil Ah like that. That wasn't working properly, or not possible, before your fancy work? :P
 
back
 
@DhruvinSukhadiya 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.
 
@towc Yay! Welcome back
 
I'm seriously wondering if I should rewrite the whole code I'm working on :|
it's that bad
 
9:18 AM
@Sauer_Kraut 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.
 
hi
I am in problem with selectors value
 
@teano 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.
 
<td > text of this </td>
<td><input type='checkbox' id='delete'  class='input-small'></td>
I want to get the elements of firs td by clicking on checkbox of second td
I want to use this.prev()
could you please suggest me a way
 
I think I will use the JavaScript "classes" in ES6. Any new syntax to write this: className.prototype.newMethod ?
Is that even possible? So far I understand it as the class is just syntax sugar. So that should be possible.
 
@Hriju this.parent().prev()
 
9:30 AM
hi
 
Thanks @FlorianMargaine :)
 
@FlorianMargaine I hadn't seen the final version. This looks clean, definitively less verbose than today's way of writing the same thing.
 
@dystroy I wonder which version you saw, the article is from 2012
 
@FlorianMargaine I've read preliminary discussions where I think they wanted more than sugar and thus I had decided I wasn't interested. But the outcome is good.
 
9:35 AM
@FlorianMargaine I wonder how much time before JS standarizes optional type annotations.
this might be nice actually
 
@Magikaas I suppose anything is possible, but I would have liked it if it had worked in angular without a lot of "hacking"
 
The language doesn't require any annotations, but you can do them in a standarized way for all typechecker you might want to use.
that way type-annotated js would still run like normal js.
 
@Neil Aha, I see
 
Okey where do I post a proposal for ES7? :D
 
esdiscuss
 
9:37 AM
what do you think about it?
 
ya @FlorianMargaine I understood it when I was typing here. Thanks for your solution. I forgot that input should be considered as a child
 
@BartekBanachewicz I don't really want type annotations
I like static typing
I'd like something to say: "I want this property and this method on the object I'm getting"
right now I have to do stuff like:

if (typeof arg.method !== 'function') { throw new TypeError(); }
or silly things like this
 
@FlorianMargaine Even fully inferred type systems require some help sometimes, though.
also it makes it easier sometimes to freeze the types at some point to debug compilation
 
Bartek's new avatar looks like he's wearing a ss cap when minified
 
9:42 AM
@FlorianMargaine You could probably convert a function to one accepting specific types
 
@BartekBanachewicz I meant duck typing, sorry
and actually, I'd like something similar to Go interfaces
you define an interface, then any object implementing the methods is an implicit interface
 
var func = convert(func, ['function', 'object', 'object']);
 
0
Q: Select an item in dropdownlist using jquery

ramanI am using the following to code to bind a dropdownlist using jquery if ($("#status_input option[value='" + status + "']").length > 0) { $('#status_input').val(status); } else { $('#status_input').get(0).selectedIndex = -1; } in status i am getting "1", i am not getting any error, bu...

please help
 
it really fits well in duck typing imho
@Neil what?
 
@FlorianMargaine but static duck typing or dynamic duck typing? I like static duck typing.
 
9:43 AM
@BartekBanachewicz static duck typing
 
@FlorianMargaine I mean if it is a hassle to have to deal with that everytime, you could generalize that behavior
 
@FlorianMargaine so yeah, that requires static typing :P
 
dynamic duck typing
 
9:44 AM
my bad
I want strong typing on the interface, but still dynamic typing
 
Why would you choose dynamic duck typing over static duck typing, though?
 
because I don't care about names, I just want the damn thing
 
static duck typing doesn't care about type names either; it's duck typing after all.
 
I want it to behave in such a way though
@BartekBanachewicz what's the difference between static/dynamic duck typing for you, then?
 
class A { foo(); }
class B { bar(); }

function f(x) { x.foo(); }

f(new A()); // compiles
f(new B()); // doesn't compile
@FlorianMargaine ^ dynamic would compile in both examples (and fail with a runtime type error/something in the second call to f)
 
9:49 AM
that depends on the language
 
that's pseudocode. To illustrate the general concept. Of course different languages might do variants of that.
 
the compilation step in js is quite fuzzy
 
yeah, but it wasn't my goal to pick on JS in particular here.
 
in java/c#/c/c++, I definitely want static duck typing
in js, I want dynamic duck typing there
 
@FlorianMargaine Thanks for the link. But it did not say anything about adding methods to the class outside of the class. Like with normal constructors.
 
9:50 AM
@Sauer_Kraut oh. How about you try it out?
 
@FlorianMargaine but... why, exactly? I mean, back in the 90s, when JS code just ran onclick events, I might understand that. But nowadays, when we write "Operating Systems" and GL games in JS?
 
@BartekBanachewicz because there's no build step when you write js
if I have a build step, for example to use browserify etc, then sure, go for the static duck typing
 
@FlorianMargaine but... is a dedicated, separate build step a mandatory requirement for static type checking? I don't think so.
 
I think so
 
Well, what about shells of statically-typed languages?
 
9:53 AM
can you imagine how long it'd take to compile the whole js of a page before doing anything?
@BartekBanachewicz shells?
 
@FlorianMargaine oh, it depends, but it's certainly an interesting point.
@FlorianMargaine like, REPL.
 
I was asking if there was a new way of doing it instead of the .prototype.method. I would be hard pressed to prove a negative.
 
@FlorianMargaine I would imagine that for complex applications, the build wouldn't take more than getting the resources (which is done in the background anyway). Hence a bit of load on the client machine shouldn't be that much of a problem; at least on desktop machines, that is.
 
@BartekBanachewicz honestly, I'd take static duck typing/strong typing anyday
but for js in the browser, it's just too late
 
I wonder if we could write web server mods that would prebuild JS.
You write regular JS, and your web server minifies and caches it automatically.
 
9:56 AM
good girl @CapricaSix
 
@BartekBanachewicz I'm not sure about that... especially when you see how other languages fare
 
that way client always gets the minified package, and you don't have to think about it.
 
@BartekBanachewicz you mean the "compiled" version?
 
@FlorianMargaine well, C# compiles rather fast.
@FlorianMargaine either that or simply today-minified.
 
@BartekBanachewicz more than 2 seconds is not fast
@BartekBanachewicz there are some who do that then
 
9:57 AM
@FlorianMargaine I could imagine doing the build in a similar way.
 
That would just increase the latency of code update on server -> visible on web page.
 
@Nick 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.
 
@FlorianMargaine yeah, exactly what I meant.
 
I don't get what you mean with that
 
9:59 AM
well, if you can do that (and it works reasonably), you could indeed send the bytecode.
 
but you'd have to define a bytecode specification...
 
what about asm.js? Would statically verified JS compiled to asm.js be faster? :)
 
tbh I don't really like the js language, but the js ecosystem is extremely productive.
 
@FlorianMargaine that makes two of us.
I love the web APIs and the shitload of libraries.
 
@MonsJovis 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.
 
10:01 AM
I am also probably one of the few guys on the planet that likes HTML.
 
@BartekBanachewicz Not sure if you know, but you're basically describing TypeScript with the requirements you have for annotations and the automatic compilation for served resources. Have you checked that out?
 
@FlorianMargaine that would be even faster than sending the minified code, so everyone gains on that, both JS and non-JS devs alike.
 
@BartekBanachewicz yup
it means that every browser has to support this spec though :>
 
@RoelvanUden Have I checked TypeScript or its automatic compilation on server in particular?
 
@BartekBanachewicz the automatic compilation can be done during dev or deployment
only once is enough
 
10:03 AM
@FlorianMargaine why would they not?
 
if you start having a build step, you can go as far as you want
 
@BartekBanachewicz Either of them. The dev tools with TSLint do all the dev experience you want, and they can compile automatically or you can compile in your server (node) as well.
 
@FlorianMargaine right.
 
@BartekBanachewicz because it's google vs mozilla vs apple vs microsoft
once one will implement one spec, the other will implement another (if it catches up), and another will implement another, and it's browser wars all over again
I don't mention opera, they'll just follow what google does
@BartekBanachewicz I confirm
I don't understand how can anyone but artists like such an inconsistent and verbose mess
 
@FlorianMargaine why can't they talk to each other before implementing anything :|
 
10:06 AM
@Jonas 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.
 
@BartekBanachewicz Because moneys?
 
@BartekBanachewicz because capitalism, competition, bla bla bla
browsers vendors don't care about developers, they care about end-users
 
wrong
they care about money
 
but now we're getting in the political world, where nothing is fact and everyone is right and wrong
 
(talking about capitalism)
 
10:09 AM
if they care about money they have to care about end users
 
@jAndy both. They care about end-users because it gives them money.
 
Are you talking about bytecode for JS or something else?
 
acceptable
 
@copy bytecode for JS
 
@ShashankCool 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.
 
10:09 AM
so talking about asm.js ?
 
no
the compilation step would be already done
 
I guess the biggest issue with that is.. the security aspects
 
@FlorianMargaine But that wouldn't fix any problems, just make the code smaller
 
@kesarsisodiya 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.
 
10:11 AM
well, I don't know in detail what the topic was, but an interpretated language can't do anything "bad" because its like .. the slave which only is allowed to do what master allows right
 
@copy yeah, it just moves the problem. TypeScript is the way to go, @BartekBanachewicz.
 
or do you mean bytecode which also gets interpretated by 3rd party .. which would be insane
 
@jAndy why?
@FlorianMargaine I dunno, really.
typescript is nice but somewhat limited.
 
@boxed__l 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.
 
@FlorianMargaine If that were really true then wouldn't they have to care about developers?
 
10:24 AM
@BartekBanachewicz The entire design of TS is to be limiting. :-P
 
hello anyone that know about google maps api v3?
 
@GreekFellows 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.
 
@DaViDa whats up??
 
@RoelvanUden is it?
 
10:45 AM
when i run tests in angular watcher says test/mock/**/*.js doesnt match any files. What do you usually put in there?
 
@Myobis 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.
 
@DaViDa It's like "google maps.api v2" except dropping the last character and replacing it with a 3
Wow, that was a cinch. :)
 
I worked it out already, needed to get the coordinates of a marker in input fields
 
11:11 AM
@AndiPower 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.
@TotoTitus 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.
 
anyone knows dojochart
i have problem in dojo charts
so i need your help
 
Pro tip: Just ask the question.
 
0
Q: How to add tooltips in haxis in dojo charts

sunmanI am trying to create a chart with custom tool tip in dojo bar with line chart. Here the line is simple create . I have drawn two h-axis line to show my max and min value on the bar char . But here i want to create a tooltips on haxis to show my max and min value . So please request to you tell...

 
Miaou lovers, please RT :
Announcing Miaou, an open source #nodejs chat server with OAuth2, markdown, video, games, private rooms and much more http://dystroy.org/miaou/intro
12
 
@dystroy Done :)
 
11:18 AM
thanks
 
@dsoosh 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.
 
If you prefer, make your own tweet. But I'd like to let the world know about Miaou now
 
anyone could saw my question
 
@sunman everybody saw it but not everybody knows dojo
 
Hey, do you guys know of any JavaScript library that allows you to generate JS code dynamically?
 
11:20 AM
@dystroy why is its homepage scrolling on its own :/
do I have to view it with JS disabled or what
 
@AaditMShah In all seriousness, why the hell would you need that?
 
so tell me any other source to help me
 
@BartekBanachewicz It's supposed to be a feature. Is it broken for you ?
 
@AaditMShah yes, EScodegen
@dystroy it has a considerable delay, so when I align the text for my eyes, it moves it down. It's a bit annoying, frankly.
 
@SecondRikudo Say you're creating an abstraction library. It would be nice to have a partial evaluator to make the abstractions that you generate faster.
 
11:23 AM
@AaditMShah Abstraction library? What are you abstracting?
 
@BartekBanachewicz Escodegen doesn't cut it for me. It's too big and too complex.
 
@AaditMShah wait, you thought generating code is easy and simple?
 
@SecondRikudo Immutable algebraic data types and type classes.
 
@AaditMShah now you have my immediate attention.
 
Do you guys here think I should remove scroll autoadjustement in miaou intro ?
 
11:23 AM
lol
 
@user3531149 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.
 
@BartekBanachewicz I know that it is easy and simple. For example it's easy to convert LISP to JS.
 
LISP is dynamically typed.
if you want to compile Haskell to JS, read the Haste whitepaper
it's not that easy, really.
 
@dystroy I don't see this autoscrolling you're speaking of
 
I don't want to compile Haskell to JS. I want to allow JS programmer to create algebraic data types natively.
 
11:25 AM
I don't see it being simple at all.
 
You mean when you scroll it corrects the position so that the screen remains in the center?
 
var Maybe = data(function (Maybe, a) {
    return {
        Nothing: Maybe(a),
        Just: {
            fromJust: [a, Maybe(a)]
        }
    };
});
 
not gonna work reasonably, sorry.
refer also to Fay explanations on why it doesn't have type classes.
and Roy language implementation.
and... shitload of other things.
 
@SecondRikudo yes
 
I don't believe you. I doubt it would be very difficult. Challenging. Yes. However it's well worth it.
 
11:27 AM
@dystroy Yes, replace the autoscroll with autohighlight
 
@LadislavGallay 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.
 
When you scroll towards enough of the "page", it gets a different background
Has a benefit of being done with CSS3 transitions
 
@BartekBanachewicz Anyway, if you find anything useful then please let me know.
 
Guess what day it is?
 
Kendall Frey-day?
!!youtube 6 days war
 
11:30 AM
 
HUMP DAYYY!!!
 
@AaditMShah I'd also differ on that. I see the potential and hopes, but... Well js is js is js. Just take a look at Haste.
 
!!youtube colonel bagshot
 
@BartekBanachewicz I'll do my research. I still think I'll be able to pull this off. Let's see how it goes. I'll keep you apprised if you want.
 
11:34 AM
@AaditMShah I'm sure most devs here in the room would be interested if you build something working
 
@user3365783 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.
@hacker2007 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.
 
11:50 AM
@CapricaSix thats far too long to watch
@KendallFrey not as good as friday!
 
No, but humping is still pretty good
 
yea give ya that!
heres hoping for later!
 
Please don't give it to me
 
thought you liked humping?
 
yes, but not being humped
 
11:52 AM
What if you're being humped while humping?
 
@Kippie that would be bliss
 
Hi Ho Ha
No response
anyone, can we use android on ios ?
 
well I am trying it on my linux red hat and get no disc found error when i try to open android using ios
4
 
@FlorianMargaine im assumignt hat was abit of a troll......
!!afk lunch time
 
11:57 AM
@DrogoNevets just a little bit. You can run android on iphones though
 
Why would you, though?
 
because you can obv
 
I want to use this graph in IE 8 browser, but it doesn't work, anyone know any other plugin or example I could use for IE-8

http://codepen.io/brantwills/pen/igsoc
 
@Kippie good hardware + good software
 
I myself use android, but I don't really think the OS is really all that much better than iOS
 

« first day (1334 days earlier)      last day (3617 days later) »