« first day (1343 days earlier)      last day (3610 days later) » 

10:00 AM
uff you take the mouse and right-click and Inspect Element... or show code... @Purify
 
@DrogoNevets I'll make a level editor for you now
 
@towc Take a page from this
The movement is essentially the same, except they introduce destroyer cells that make you start over
 
@Neil means I'll have to do better, right?
 
If you had that in your game, you could design your level in such a way that you can enter a place on the level where you can't leave (with destroyer cell to "start over"
@towc Not sure what you mean
 
@Neil I have a restart button
well, I could add teleporters, forced movement, cheese...
I was going for a simple design tho...
 
10:10 AM
@towc You have a restart button after you've won the game
I meant having a way to restart a level
 
@Neil I didn't publish it yet
but I have one on my local version
currently working on level editor
 
@towc sounds good
 
10:27 AM
It would be neat to make a websocket game where it would pair you with another player requiring you both work together to finish the level
 
@Neil That requires a server
You just added 2 extra dimensions to the problem :D
 
Yep, shouldn't be hard to get one
openshift offers free nodejs hosting
Though granted, it would definitely be more difficult to do
 
@Neil The hosting isn't the problem.
It's the implementation :P
 
Is websockets that difficult to implement?
I thought it was a matter of sending data to connections and listening to data received on the server
 
@Neil never tried web sockets, but sockets generally arent in practice, but to make them robust, functional and fail gracefully etc, they are a pain
 
10:32 AM
Would be fun to write a program that uses it
If I weren't at work, I might start on something silly
 
There are so many things that would be fun to write/make :P
Like a manga reader ._.
Now if I can find the time xD
 
ah time, that ever elusive thing
 
@DrogoNevets the editor is getting problematic... but since you're no regular user and you know how to write a bidimensional array you'll still be able make maps, right?
new Level([
            [2, 0, 1, 0, 0, 0],
            [1, 0, 0, 0, 1, 0],
            [3, 1, 0, 0, 0, 1],
            [0, 0, 0, 1, 0, 0],
            [0, 0, 0, 0, 0, 0],
            [1, 0, 0, 0, 0, 0]
        ], 'not even a challenge, right?')
that is the code to make 1 level
the last string is what appears in the level intro
the map is really just a bidimensional array
0=air, 1=wall, 2=finish, 3=player
 
10:47 AM
@towc ok, can i increase the size?
 
@DrogoNevets just make the array bigger
be sure that it is a square
[0, 2],
[3, 1]
is a 2x2 map
 
ok im still thinking/scribbling, might not come up with anything, will let you know
 
@DrogoNevets ok, thx
 
Is there a particular reason why it must be square?
 
@Neil rendering problems
 
10:50 AM
can we write this like this
var a; var b; var c;

var a,b,c;
 
I removed the bottom thing
 
Am I harsh ?
 
@CustomizedName are you serious
 
TLDR : doing things is hard. That's not really a question, and absolutely not a question for SO. — dystroy 43 secs ago
 
and you can just go through it
 
10:51 AM
of all the things you can try on your own
that has to be the dumbest
 
@Mosho Yes
 
@CustomizedName yes
 
Thanks
 
@towc don't encourage him
 
@Mosho don't you do it?
 
10:53 AM
do what
 
Anything under 10x10 is trivially simple to resolve
 
@towc think i might have one for you
let me turn it into an array for you though
 
@DrogoNevets ok, let me just have a way to implement the array as a level
I have it on my local machine, just have to publish it again
press custom level, then insert the array in the prompt, then enter and your level should appear
restart level and level editor are not working yet, dont' try them
this is just temporary, I'll prettyfy it later
 
Hi all
 
@sneha88 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.
 
Gotta get down on Friday!
 
Hey everyone. Need help here: stackoverflow.com/questions/24325778/…
 
@Maxsteel 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.
 
It might be a trivial question but I'm stuck
Somebody please help me out here.
 
11:19 AM
@sneha88 A fiddle would make it easier to help you
 
@dystroy check my question please?
 
@Maxsteel why him?
 
Anyone. I thought he's actively replying. So.
 
so why not give him one more task to do?
 
@JanDvorak Not being a jerk here but that was simple call for help and you're needlessly making a big deal out of it.
 
11:35 AM
@Maxsteel It's considered rude to ping people without a reason.
You asked a question, now people that want to will look at it. Asking specific people won't help.
 
@DrogoNevets did you manage to do it?
you can just send me a picture of your paper and I'll translate it if you want
 
is there anyone?
 
@user2652051 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.
 
@user2652051 there is not someone
therefore there isn't anyone
yes here is someone
 
11:56 AM
.
 
..
 
@towc Why are you correcting him?
Think before you answer.
 
@Neil considering 'there' the subject, it will make sense
 
!!define anyone
 
@Cereal [anyone](http://en.wiktionary.org/wiki?curid=41814) Any person; anybody.
George Bernard Shaw
The liar's punishment is not in the least that he is not believed, but that he cannot believe anyone else.

2013 June 7, David Simpson, “Fantasy of navigation”, The Guardian Weekly, volume 188, number 26, page 36:
It is tempting to speculate about the incentives or compulsions that might explain why anyone would take to the skies in [the] basket [of a balloon]: perhaps out of a desire to escape the gravity of this world or to get a preview of the next; […].
 
12:04 PM
Can "there" not be a subject in your opinion?
 
He essentially said is there any person, which is valid
anyone != someone
 
"There is pizza" is perfectly valid
 
!!s/pizza/php/
 
@Cereal "There is php" is perfectly valid (source)
 
@rlemon did you see my ping?
 
12:10 PM
I need a new game to play on mac, any suggestions? (@Loktar)
 
@monners Can it be any game?
 
As long as it runs on OS X
 
You could probably balance a connect 4 on top
 
@monners I think diplomacy 3 is on sale on steam right now
If you're into that kind of thing
 
Diplomacy... I'll check it out
 
12:14 PM
There's also octodad on sale right now
Which is probably the best game in existance
 
It's funny, but not my type of game :P
 
@Cereal especially in co-op multiplayer
 
I tried octodad. Not for me. A little too indy
 
It's 5 bucks right now. I wouldn't get it at 15, but for 5.. oh man.
I believe xcom enemy unknown runs on mac as well
 
@FlorianMargaine nope
 
12:16 PM
Super good game
 
to jump in, " Is there anyone?" is correct
 
It's a common idiom to say "Anyone there?" rather than "Is there anyone?" but that isn't to say it is wrong
 
@rlemon persons.length > 0 ? return 'hi' : return null
 
I mean, if you are not a native english speaker, and you feel like correcting someone, maybe look it up first.
 
12:19 PM
@rlemon yeah :P
 
yea, I listened while taking my morning #2
 
you take 2 poops in the morning?
 
Speaking of the regular morning #2
 
You dont?
 
yup. one at home, one at the park on the way to work
 
12:20 PM
Hobbits have 2nd breakfast. rlemon has 2nd poop.
 
one at home, one on slide
 
Gah! Why do I even keep that internet explorer icon there next to the start menu? *5 min later* 'Do you want Internet Explorer to be your default browser?' Let me think abou... NOOOOOOOOOOOOOOOOOOO!
 
@towc sorry lunch time, yup but the level doesnt quite work, sback to working on it
 
We0
Hey guys
 
Start, Explorer, IE, Outlook, Chrome, FF, Git, Brackets, VisualStudio, IIS -- These are my work taskbar icons. At home, its just Explorer, Node, Git, Brackets, Chrome
 
12:26 PM
@DrogoNevets don't worry ;)
 
@NickDugger why don't you use a real web browser?
 
We0
I load my js file highchars.js
but the function doesn't load
so
 
or at least Firefox?
 
by it doesn't work you mean that you can't render it in the server or like the level design doesn't work?
 
We0
doing a check to see if it exists
it doesnt
but the file loaded
 
12:28 PM
remember that they are arrays in arrays, notjust a set of arrays
so enclose it in a big array
 
Hello
 
Hello
 
I was learning from codecademy
I have a (possibly) silly question
 
Firefox is bad
 
They were teaching me functions
A line of code was as follows:
console.log("I want to eat" + " " + food);
What I am wondering is, why do we need to add the space separately?
Why not this:
 
12:31 PM
we don't
 
@AwalGarg because they're mean
 
console.log("I want to eat " + food);
 
no idea why they did so
 
oh, ok
Thanks for the clarification
Umm, I have another (certainly silly) question..
Please don't ban me after I type it out. Just don't ban me.
 
@AwalGarg we'll see...
 
12:33 PM
Why would you ask that?
 
Is it necessary to use javascript in "onclick" and other events? Can I not use some other alternative language?
 
If you think something might get you banned, don't do it.
 
@AwalGarg you can compile to javascript, but browsers only understand javascript
except old IE, which can also handle Visual Basic
 
@JanDvorak I don't understand your sentence. I can compile?
 
You can write your code in coffeescript, but you need to translate it to javascript before the browser can understand that
 
12:36 PM
Can I execute PHP (no XHR please) on onclick event?
 
No, that's not how server-side works
 
@AwalGarg you better no execute PHP in life
 
@AwalGarg It's time for you to learn the difference between client and server
 
well, you can navigate to a different page. That still counts as no-XHR
 
12:37 PM
@towc why? PHP is my mother tongue! (possibly)
 
Then your mother has a dirty tongue
3
 
@AwalGarg how about english?
 
@AwalGarg poor kid
 
ok, wait.
What I am saying is, onclick is an html attribute, isn't it?
ain't nobody understand html?
 
It's more or less inline JS, but sure, it's an HTML attribute.
 
12:39 PM
you can generate Javascript in PHP, but that's it
 
then if html and js are different, then why does html rely on js for onclick event?
I tried to search on google.
 
HTML without Javascript = static pages
 
Then I get the following info
Node.js has listeners <--again JS!!!
 
I'm confused about what you're confused about.
 
You're wondering why a server-side scripting language doesn't run in your browser?
Really?
 
12:41 PM
Javascript without HTML = Node.js
 
@RoelvanUden no, I am wondering why can't I call a server side script from html without js...
 
you can by navigating to a different page
 
@AwalGarg You can navigate to a new URL without JavaScript; use an anchor, and your browser will go to that page and fire a HTTP request. Then your web server accepts that, and runs/serves pages (can be .NET, JS, PHP, Ruby, Python, static, etc0
 
You need to first understand the difference between server/client. This is a good example of the XY problem.
 
@JanDvorak ok.. thats a legit thing.
Thanks.
 
12:43 PM
A hack...? That's just how the web works. :-/
 
it's not a hack. It's the classic way of doing things.
 
I didn't realize that navigating to pages was a hack.
 
til cgi is a hack
 
I would be really happy if there could be the client side version of php.
 
> client-side php
 
12:43 PM
@dystroy CGI isn't a hack. CGI is arcane art.
 
@AwalGarg There is.
 
HTML with JavaScript = dynamically pages
HTML with Jquery = dynamically pages (but slower compared to above)

Sure???
 
@KendallFrey where?
 
It's called... drumroll JavaScript.
 
@AwalGarg I certainly hope the opposite
@MirkoCianfarani but faster to write
 
12:44 PM
Is JS the only thing to do what JS does?
 
sure...
 
finally phrased what I wanted to... huh
 
@AwalGarg wat?
 
@AwalGarg Yes, except CSS can sometimes do it
 
@towc you need a level editor!
 
12:45 PM
... and CSS is faster than jQuery
 
@AwalGarg JS is the only programming/scripting language that can run inside most mainstream browsers. However, other languages can transform into JavaScript. For example, TypeScript and CoffeeScript.
 
@DrogoNevets I might
 
trying to work on a 2D array on one line is a night mare!
 
ok. now which is the best js precompiler for a complete js n00b?
 
Dart compiles to JS as well.
I think
 
12:46 PM
it can but doesn't have to
 
@AwalGarg use plain javascript
 
they made it so, to ease dart's way to the web
 
Just please don't use jQuery
2
 
I don't want to learn js really. I dunno why but whatever I try, I can't learn. I did my work.
 
@AwalGarg None! JS is the underlying foundation, and the essential knowledge to have when dealing with the browser.
 
12:47 PM
@DrogoNevets why only on one line?
 
@AwalGarg Precompiler? Closure is supposed to be good
 
why not JQuery ?
 
@WalleCyril hides too much stuff
you can't learn from it
 
Because it gives me diseases
 
@JanDvorak but you can add numbers with it..
 
12:48 PM
I don't think you understand what programming is
 
@AwalGarg
 
@JanDvorak you make me want to learn jquery. because I don't Want to learn js...
 
We're being trolled. Right? Nobody is this ignorant.
 
But JS is awesome
 
@AwalGarg
 
12:49 PM
@WalleCyril it certainly is.
 
@JanDvorak remind me how to make tags?
 
> likes php, doesn't want to learn JS; so chooses to learn jQuery instead...
2
 
@Mosho [tag:facepalm]
 
thanks
 
@DrogoNevets ok, but it will just be temporary, don't really have an inspiration for design
 
12:50 PM
@AwalGarg If you don't want to learn JS, don't do anything related to web technologies. Go make Java/.NET desktop applications. Then wait for the competitors using JS to make snappy desktop apps, phone apps, web apps and put you out of business :)
 
so it will look bad
 
!!s/business/your misery/
!!undo
 
#id {
onclick: funcName;
onblur: anotherFuncName;
}
 
@Mosho @AwalGarg If you don't want to learn JS, don't do anything related to web technologies. Go make Java/.NET desktop applications. Then wait for the competitors using JS to make snappy desktop apps, phone apps, web apps and put you out of your misery :) (source)
 
^this would be a nice precompiler language
 
12:52 PM
This has been a phenomenal conversation
 
css and js
 
@AwalGarg it wouldn't
 
@Cereal I like cheese
 
I think I have brain herpes now
 
but Coffeescript + jQuery is kinda similar
 
12:52 PM
@JanDvorak why?
 
I imagine the confusion is coming from the fact that you embed php in html files
because php
 
@Cereal I don't know why you guys are having that confusion.
 
If you're not even using a template engine in PHP, go learn how to program.
 
@towc how can i send it you? the "message is too long"
 
@AwalGarg Look on this site that explain the difference of fastest on JavaScript and other framework of JavaScript!!!
 
12:55 PM
@DrogoNevets how big did you make it??
 
and also ive found a bug
:P
 
@DrogoNevets ?
 
is there a bounty?
the restart button doesnt fade out with the rest of it if you wait after you win
 
@DrogoNevets I want the bug's head on a golden plate
 
how am i sending you this level?
 
12:55 PM
@MirkoCianfarani I hear that vanilla like a hell lotta times. Wait, I will check it out.
 
oh, I know about that
@DrogoNevets matei@copot.eu
 
I always thought vanilla corresponds to the original native js. its plain in flavour.
 
@AwalGarg doesn't it?
 
@towc got iy
 
pure js is a library. We refer to what you're talking about as Native JS
 
12:56 PM
@MirkoCianfarani This is a hilarious site
 
I know!!! and vanilla is a Javascript!!!
 
I prefer strawberry
 
sent
 
no, wait. document.getElement... this message is too long to type <-- this thing that I was using for all those days learning js in vain. I was using vanilla? What the hell is happening with the world?
and it is fastest?
 
12:59 PM
@DrogoNevets that was kind of easy
 
Vanilla is a hilarious site and it is a joke ..... quiet you learn normal Javascript
 
haahahahahaha
 
what I'm looking for are levels with very few blocks
 

« first day (1343 days earlier)      last day (3610 days later) »