« first day (565 days earlier)      last day (4386 days later) » 

12:01 AM
 
12:38 AM
0
Q: Why hasn't Caja been popular?

AdaGoogle released Caja around 2008(Capability JavaScript). It is still mainly a laboratory language. But XSS and other attacks would be prevented if there was widespread integration of Caja.

 
 
7 hours later…
7:18 AM
Dear Professional JavaScripters, If you haven't already, Please. Read the damn spec. http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf (html: http://bclary.com/2004/11/07/)
-> has not read ES5 spec. Feels like fraud
 
this one is still better es5.github.com
 
Even better! Annotated ES 5.1 spec! http://es5.github.com/ Thanks @rioter
 
hello
can i ask something about jquery-ui here?
 
ask, you may not get an answer :)
 
7:25 AM
ok... its because there's no one answering in jquery chat room
ok i think i have no choice..
0
Q: Initial State of Jquery UI portlet

MahanI have the following codes for my portlets in a certain page $( "div.portlet-task" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" ) .find( "div.portlet-header-task" ) .addClass( "ui-widget-header ui-corner-all" ) .prepend( "<span...

 
0
Q: Is there any way to shorten up this Facebook api call?

HunterRight now I am working on an ajax call that grabs a random photo that a Facebook user is tagged in and then grabs the large source for it. Is there any way to speed this up or at least distill the call into one query? var query1 = encodeURI("SELECT pid,xcoord,ycoord FROM photo_tag WHERE subject=...

 
7:51 AM
@Raynos btw, I'm back to using semicolons in js, editors are too much of a pain to correctly indent without them, so there is too much drawback for the (opnionated) readability gain
 
@FlorianMargaine, are you on Emacs?
 
nope, vim
 
Emacs isn't indenting correctly without simcolons, too (in js2-mode).
 
no editor indents correctly without semicolon
they can't
 
With semicolons, as well, though.
 
8:00 AM
no problem with semicolons personally
 
js2-mode is a port of Rhino to elisp largely, so it could in theory do ASI.
 
nah, ASI would be a pain to support in static mode (editor parsing) when you handle semicolons correctly
 
8:18 AM
@FlorianMargaine the editors you use suck.
 
@Raynos show me an editor that doesn't
 
sublime text 2
i dont use semi colons
I never have problems with identendation
 
I've had the same problems with it as any other editor
 
what is this "problem"
is it code like
if (lulz)
    moreLulz()
 
8:19 AM
are you kidding me?
can't remember right now what's this kind of code though -_-
 
im serious, I use st2 and dont use semicolons, I dont have issue with it
I know jsfiddle fucks up a lot when you dont use semicolons
but tahts because jsfiddle sucks balls
 
yeah jsfiddle sucks even with semicolons btw
 
:P
 
got a better equivelant then?
 
nope, just saying the indentation really sucks on jsfiddle
not saying I got better :)
which is why I keep using it
 
8:22 AM
jsbin.com is not that bad actually.
 
yeah indentation sucks
try writing sass instead of css
and its not codemirror, since jsbin uses it too, its jsfiddles shitty implementation
 
there is something missing on jsbin tho: accounts
 
we need a new fiddle site
one that doesnt suck
 
 
1 hour later…
9:40 AM
0
Q: Managing Stylesheets and .Js files when pages keep getting added

freebirdThis is my first question in code review , I am using Asp.Net/C# in my project.I keep a seperate CSS file and a .js file for every page that I add to my project.For example: For a page CreateAccount.aspx , I have CreateAccount.css and CreateAccount.js.So my question is that if my pages keep incre...

 
0
Q: Is unobtrusive JavaScript outdated?

platzhirschWhen I first read the principle of unobtrusive JavaScript in the Web Standard Curriculum I thought it's a really great thing. Unobtrusive JavaScript is more of a programming philosophy than a technique. By far its most important component is a clear sense of which functionality belongs in whi...

we had that discussion recently
 
that's an interesting question, but should be on programmers.se
 
How to refresh a Page once using Jquery
or javascript
Please can any one help me out
 
window.reload()
 
When I use this in the code the page keeps refreshing infine times
 
9:53 AM
if it's invoked at pageload, yes it will
 
ohh !! I want to invoke it after a button click
but in JIRA Gadget
development
I do not know where is that event
 
what event? the click-event on the button?
i don't know anything about JIRA development, but binding an event-handler is pretty straight forward
 
@FlorianMargaine: location.reload( true );
 
what's the difference?
 
"disables" caching
and i would call reload from the location object too, don't know if there's any difference
hello @jAndy btw ;)
 
10:01 AM
@FlorianMargaine: window.reload does not exist
 
the argument says "force get" and is like ctrl/cmd + R or F5
@GNi33: o/
 
reading questions on there makes me feel so stupid :/
holy crap, why's that banner so huge?
 
haha
thanks for making me feel stupid
 
 
10:13 AM
10 hours ago, by jAndy
user image
 
I could probably make a fiddle site which works a lot better than jsfiddle.... :|
 
@FlorianMargaine: nobody was there to watch this piece of art 10 hours ago :p
 
I saw it because it was starred :-/
 
oh really, didn't realize that
 
10:19 AM
@FlorianMargaine I might. I'm thinking of what I need... Full blown framework or something extremely light... sounds like a cool little project
 
you can play with something new
like requirejs if you haven't played with it, node.js etc etc
 
sounds interesting :)
is jsfiddle open source?
 
yeah just thinking that, jsfiddle still has support for older IE versions... I might do something like an output view that works perfectly in IE but all editing stuff would need FF5+ / Chrome
 
let's make jsfiddle inside jsfiddle
@FlorianMargaine obviously Opera12 alpha doesn't support webkit - prefixes yet :D
 
marquee and blink are back!
2
 
marquee is awesome
 
well..... not really in my opinion ;)
0
Q: Javascript side-by-side comparison tool for microsoft word documents?

Yash GargIs there any javascript/jquery utility available which can compare two microsoft word documents and show the results side-by-side just like the microsoft word editor allows using "Compare Side by Side With" option? Diff Doc is one stand alone utility which does the job neatly, but it's not

i don't get the last sentence
"Diff Doc is one stand alone utility which does the job neatly, but it's not"
 
don't wanna provide anything but vim :|
 
10:40 AM
i guess he want's to show differences in a web-application?
 
"but it's not javascript"
 
for windows, winmerge is a great tool
 
i'd sure love to see a JS Word doc parser =P
 
yea, he probably was meaning that, but he should write it then ;)
 
10:41 AM
I totally misread the question
deleted the answer
 
11:24 AM
GNU Prolog 1.4.0
By Daniel Diaz
Copyright (C) 1999-2011 Daniel Diaz
| ?- x = 42.

no
| ?
"no"?
stares intently
 
11:36 AM
@Zirak ?
 
Downloaded Prolog, heard it was fun. Booted it, wanted to start playing, wrote x = 42. It responded no
Time for a Prolog introduction...
 
Time to throw Prolog away.
 
But moooom! I just found iiittttt!
 
Zirak! What did I tell you about talking back?
 
Nothing. I just met you, weirdo. I must go now, to planet Zargon to save the syntactically impotent citizens!
 
11:43 AM
:o
 
@Zirak lol
@Zirak but it's true
x is not equal to 42
so the answer is no
 
I know. But...le dafuq?
First time a language talked back
 
do actually learn prolog
it blows minds
you basically describe a large set of rules
and prolog says whether they make sense or not
What do you think of that code?
 
So I read
 
Fork and fix it.
 
11:48 AM
What needs fixing, m'lady? Are your pipes leaking?
 
i want to see people's opinion on that coding / organization style
 
Right off the bat, I can tell you base.js isn't obvious at first glace. What is it a base of?
 
the domain
 
In validator.newPost, less duplication, moar awesome. Also, toJSON is a meh name
Prefixing names with $? ...why?
 
@Zirak it's hard to remove duplication
@Zirak $ is mongo syntax
toJSON is the name used by JSON.stringify
 
route.js line 18, typo: addComent -> addComment
 
nice use of backgrounds
 
@Zirak thanks
I'm more looking at the high level pattern of routes and domains
and whether the validator / queryconstructor / postinstance is useful
 
Overall, I'm not terribly excited about that construction. You're mounds deep in objects who's relationship is (at least to me) blurry. While reading the code I had to jump all over the place to get a grasp of what's going on
 
nice use of backgrounds
 
12:01 PM
@Zirak how can it be improved?
@Zirak I agree I don't like the complexity, I just don't know how to make it less complex
 
First thing I can recommend is to add some explanation, not necessarily into the specifics, but into what's going on generally. What is this object for, why do you need it and so on. When you do that, you might find overlaps, or maybe even flatten something
For instance, postInstance.destroy calls postDomain.destroy. But isn't postInstance lower than postDomain?
 
@Zirak it could have been the other way around, it doesn't really matter :P
yeah comments would help
 
You can also talk to ducks. That helps
 
:D
 
wow
 
Try putting in the first paragraph of Moby Dick into that synthesizer :3
 
Hey guys I was wondering, I'm developing a web framework, and now I'm starting to develop a web app with it. So I should have like 2 git repositories into the same structure which would be:

/.git
/modules
/modules/app/.git
/modules/libs
/tests
Is there any way of doing this? Because I want to continue the development of my framework and be able to push it to my public github repo, but the content of app/ directory should be pushed to my private repo.
Maybe publishing my framework to npm would fix on of my issue, I dunno, my head is so full of fucks right now.
 
12:36 PM
This is a guess, but maybe add the directory to .git-ignore?
 
That may work, if I put it into the first git-ignore... good point
 
it's not .git-ignore, it's .gitignore :p
 
bla bla bla bla
:P
I was simply testing your knowledge :P GitHub Client made me lazy
 
coffeee......
 
12:48 PM
@FlorianMargaine you're teh man! thx
Is there anything you would use instead of jQuery for doing asynchronous (ajax-y) stuff? or you would go from scratch?
 
how do you do ajaxy stuff without using at least the dom and events?
 
"from scratch" = with the dom and events and without jQuery.
 
yes but seeing as jQuery is dom, events, ajax and animations
you are using 3 of 4 already
 
@FlorianMargaine oh nice I'll look into it, I don't really care for IE support yet, I'm trying to figure out if I really want to use jQuery or not.
I don't really hate it, I just hate slow things.
 
12:54 PM
@Esailija "Ajaxy stuff" doesn't necessarily have to use the DOM or events. For instance, I've written "Ajaxy stuff" that just saves the user's progress every minute.
If you have a broad, buzzwordy definition of "Ajaxy", then you probably include DOM and Events.
 
you have a web application that doesn't use dom or events?
or what are you talking about
what progress are you saving?
 
A student's progress through a course, in this case
But the thing is, Ajax is a technique that has to do with sending data to a server, and receiving data from a server without refreshing your page.
 
It's not that I have "buzzwordy" definition of it, it's that realistically if your site is using XHR you are very likely to use dom and events as well
 
That, in and of itself, has nothing to do with DOM and Events
 
sure there are exceptions
if you want to just ping your server, you could just create images to save overhead of xhr
 
12:58 PM
Yeah, but at that point, you have no idea whether it's succeeded or not.
7 mins ago, by Esailija
how do you do ajaxy stuff without using at least the dom and events?
My point is that you can do "ajaxy stuff" without DOM and events
 
.onerror is fired when it doesn't succeed
 
Okay, fair enough
But you see my point.
Ajax doesn't necessarily include DOM and Events
 

« first day (565 days earlier)      last day (4386 days later) »