« first day (575 days earlier)      last day (4598 days later) » 

01:09
hello
sup
 
5 hours later…
06:34
No-one online? :(
I have eaten
the plums
that were in
the icebox

and which
you were probably
saving
for breakfast

Forgive me
they were delicious
so sweet
and so cold
 
2 hours later…
08:36
is there a sample app built on codeigniter with backbone.js
0
Q: Visual aspects of JAVASCRIPT and logical aspects of JAVASCRIPT? What is good for a web designer, aspiring to be and UI designer?

jitendra111Visual aspects of JAVASCRIPT and logical aspects of JAVASCRIPT? What is good for a web designer, aspiring to be and UI designer? I am learning Javascript, however, while learning I observed that Javascript has two aspects: Visual - which gives visual effects like, SLIDESHOW. Logical - which gi...

Visual aspects of JavaScript??
wat?
There are no visual aspects in javascript.
why not.. all SPI aps are based basically on javascript
08:51
SPI aps?
Oh I see.
But that has nothing to do with javascript.
Javascript doesn't visualise anything by itself.
so what do you think they are based on
Browser's API (DOM) does.
well i guess.. that all is handled by a java script framework.. and am building one these days
actually am trying to build.. this javascript framework is really hard to pick up
Good luck with it.
08:57
oh thanks.. are you aware of for loop with colon syntax in c++
I'm not a c++ guy, so not aware. What's with that syntax?
hi
it usually never used to be like that.... but some new standard has been introduced which has proper documentation
@JitendraVyas can you help me understand this
for( a4 = 0 : a4 < N: a4 = a4+1)
lolwut
how is this in any shape or form related to JavaScript ?
09:31
can somebody help me understand this c++ syntax
for( a4 = 0 : a4 < N: a4 = a4+1)
@ha
@HariOm - I don't know . Sorry :(
anybody out there.. google has no proper results
09:56
In HTML5 the type attribute of the script tag is obsolete. However, would it still work in older browsers that does not support HTML5?
10:12
@Dude yes
Is it considered bad to leave it out?
@Dude unless you want the browser to execute vbscript
I should use it?
No it's considered a useless attribute; all modern browsers ignore it if it doesn't have an accepted value 'text/javascript' isn't an accepted value since that is not the mime type for javascript, and even then when you use a script tag to include files into your html it is ignored because the browser will prefer the mime type sent by the server over the one present in the script tag
Ok, thank you:)
10:16
if you don't specify the type, leave it out, it will assume application/javascript
So, "text/javascript" isn't correct either?
Is it better to use Root-relative paths than Document-relative paths, I have always used the last one but I see that it requires more typing
@Dude doesn't matter one bit, but you should use whatever suits your needs
10:36
Damn man i love siri XD
10:47
Ok
11:13
now thats technology
javascript the must misunterstood script
12:01
what's the point of this? mbebenita.github.com/Mvm
the same as writing direct assembly in C.. efficiency :P
12:41
hey guys
O wow low level js! sounds test worthy
"low level js" sounds like another pointless gimmick , that everyone will forget by wednesday
tereško some might , some might not
13:02
it's not even real low js
what do you mean
it's like CS, it compiles down to js
0
Q: Managing the base HP of a game

wekaI'm creating a simple turn-based 2D Tile RPG in JavaScript/jQuery (using HTML5 Canvas) and the hardest part is the formulas. I got the EXP per level down. I have a base level. I'm trying to see what a reasonable way to come up with HP formula using said base level. Any help?

something compiling to native client (of google) would be useful
but this...
it compiles to JS that will not have GC pauses
13:05
... which you can do without this, right?
well in the sense that you will have to write shitloads of error prone code
it emulates computer memory in byte arrays
so if you need a high performance linked list, the javascript normal objects are extremely slow
yup I guess its got its point sometimes
but I don't know... it seems like it's not going all the way it could
it's basically same idea as in the linux js
you are emulating computer memory with byte arrays
so you can have pointers and stuff
it's kind of like virtual memory :D
I agree there is no practical use where I could use this
since I don't use js on server side even
the trie implementation of levenshtein distance I made for Zirak's chatbot could gain performance for this
but it's only using like a hundred words and is fast enough already
13:23
games could take advantage of this
and parsers
parsing can always be faster :P
 
3 hours later…
16:53
looks like i missed a nice discussion
alright i am off to code a small game for testing my iPhone
user1385191
17:11
user1385191
ugh
17:25
@MattMcDonald that's correct
a form is the same as form.elements
for legacy purposes
user1385191
yep
@MattMcDonald can you change your APIs
so it's Utils.document().forms[0]
user1385191
I fixed the logic to sniff for nodeLike and arrayLike
Or Utils.document(document).forms[0]
I want something with is closer to the DOM api
select.forms is foreigh, document(...).forms is easy to understand
user1385191
what you mean is that you what the syntax to resemble the DOM API
user1385191
17:27
…the syntax that most people whine about
I meant the WHATWG HTML APi
I like the DOM and HTML API
The problem I ran into
with coding to the WHATWG HTML is that its dangerous
@MattMcDonald let's put it differently the types of people that whine about the DOM syntax will whine about your Utils syntax because it's not $("magic").doShit()
@MattMcDonald your replacing one verbose API with another. The advantage of your API is that it gracefully degrades
document.body does not degrade Utils.document(document).body() does degrade
what do you mean document.body doesn't degrade
user1385191
it's part of the DOM core
user1385191
body wasn't in DOM 0
17:31
@Esailija document.body.tagName will fail in legacy browsers
@MattMcDonald do you "assume" DOM 0 compliance
or do you feature detect for DOM 0 compliance as well?
user1385191
there's my collection methods
user1385191
I assume DOM 0
give an example of legacy browser, it works even in ie7
@MattMcDonald I recommend you comply with the jslint whitespace rules. Your code is just too hard to read
@Esailija IE2
ie2 doesn't have javascript
ie3 I think has something
:D
17:32
@Esailija fine IE4 :p
ok, textContent doesn't degrade
user1385191
IE 4 brought the DOM
@MattMcDonald you write good code, but it's too hard to read, which is a waste. I recommend you take one for the team so people read and use your code.
@MattMcDonald your code doesn't pass the jslint whitespace rules, right?
Utils.document(document).body() why the java repetition
user1385191
that last post had a misordered definition, which is an error
user1385191
17:33
I'm trying to avoid the syntax of the DOM API
user1385191
so other than BYOD (bring your own document), it's concise
yes having to write document twice almost literally in a row feels wrong :P
user1385191
yep
reminds me of FactoryFactory jokes
user1385191
Utils.select.body(document);
17:35
@Esailija because it's the closest API that matches the DOM and will work in IE6
Namespace.document(document).body().textContent()
working with ie has to do with implementation not public api
I'm just toying with the idea of writing a DOM wrapper that matches the DOM as closely as possible
I prefer the "fuck old browsers and write code that works in chrome" strategy
I prefer it for personal projects as well, since they tend to use cutting edge things anyway
like reading files
which is unsupported even in ie9
@MattMcDonald how about sensible defaults, it's gonna be window.document almost always
morning mens
user1385191
I don't want to sniff for Node::ownerDocument
user1385191
17:47
$ does it 20 times
user1385191
I don't want to guess what the developer is doing; I just want them to do it
I mean if no argument is passed then it's document
user1385191
18:03
right
18:32
0
Q: Refactoring this state machine (upvoting/downvoting)

TallboyI have a list of resources which can be voted on. There are 3 voting states: upvoted, downvoted and no vote. In a fashion identical to stackexchange voting, it follows these rules: If you upvote a post you've already upvoted, it will set it to 'no vote' If you upvote a post set to 'no vote' i...

18:52
Ready to give 50 points for help : stackoverflow.com/questions/10542041/…
19:30
Anyone here work with a chrome extensions and content scripts?
19:48
alright
20:15
0
Q: backbone and google maps with markers

alexBrandI am fairly new to backbone and javascript, so I am not sure if I am on the right path... Basically I have an API that returns posts that have coordinates associated with them. I want, for now, to display each coordinate with a marker. <script> (function($) { var POST_API = '/api/v1...

 
3 hours later…
22:52
function setIntervalPlusPlus( cb, timer ) {

    setTimeout( function fn () {
        if( cb() ) {
            setTimeout( fn, timer );
        }
    }, timer );
}

« first day (575 days earlier)      last day (4598 days later) »