[QUOTE=StinkyJoe;30143127]Unless you're into 60-person recreations of the internet's oldest memes in text form, that is.[/QUOTE]
"Nobody else is allowed to have fun because I don't want to use the chat!"
no fun allowed
[QUOTE=SPESSMEHREN;30143158]Aww, the chat's offline? I just saw it in the menu but now it just says "offline." :sigh:[/QUOTE]
Well then I guess it's offline!
Will it be back?
I'm hoping he's fixing everything at the moment, and putting it back later..
If he added coloured names and :v:'s that would be awesome.
Reposting:
[QUOTE=ghiacciato;30143048]Got some actual questions:
How does the Bottom of the Forums work? Specifically, which threads end up in "Drop Dead Threads", and how does the "You can only see your own topics" when being banned make any sense?
Also, how come different threads in the same section have different post limits?
And lastly, do non-shit topics ever get deleted, or do all proper (megathreads, for instance) topics get locked, but stay alive forever?[/QUOTE]
Hope it's back online soon.
[QUOTE=ghiacciato;30143670]Reposting:[/QUOTE]
ddt is an archive of the best threads, just read the forum description?
Hooray, it's back!
Diggin the blue and black colour motif.
offline hehe
[QUOTE=StinkyJoe;30142851]The lag, the silly architecture choices, javascript evals, for some reason, no idea what you were thinking there.
You should also be doing it on a web server with better performance handling concurrent requests.[/QUOTE]
Sorry, how would you fix the lag? What's wrong with the javascript?
Oh wait - yeah - I'm a bad web developer because I use IIS.
Sorry if my 4 hour chat experiment wasn't up to your stanards.
[QUOTE=garry;30143933]Sorry, how would you fix the lag? What's wrong with the javascript?
Oh wait - yeah - I'm a bad web developer because I use IIS.
Sorry if my 4 hour chat experiment wasn't up to your stanards.[/QUOTE]Websockets, my friend
[QUOTE=garry;30143933]Sorry, how would you fix the lag? What's wrong with the javascript?
Oh wait - yeah - I'm a bad web developer because I use IIS.
Sorry if my 4 hour chat experiment wasn't up to your stanards.[/QUOTE]
Websockets, write it in Node.js, OOP Javascript
[QUOTE=TehWhale;30143946]Websockets, my friend[/QUOTE]
Yeah it's a better solution for a chat room - there's no doubt about that. I wanted to get something in place and working so I could experiment with it.
Although it wouldn't `fix` any lag. It might reduce it, but it wouldn't fix it. Your message is still going to be posted to the server and then come back. I don't want to `predict` the message by showing it as you post it.
[code]var data = eval( "(" + json + ")" );[/code]
NO
Haha is that what he's talking about - that one line of code? Fuck me.
I know you'd use XML compwhizii, but fuck XML.
[QUOTE=garry;30144009]Haha is that what he's talking about - that one line of code? Fuck me.[/QUOTE]
Yeah. Instead of having the server parse the message and send it with all the HTML etc, do it properly and send the messages to the client to be parsed. There's less data transmitted this way and the server can answer requests quicker.
I don't totally see what's wrong with that code though?
[editline]30th May 2011[/editline]
[QUOTE=compwhizii;30144038]Yeah. Instead of having the server parse the message and send it with all the HTML etc, do it properly and send the messages to the client to be parsed. There's less data transmitted this way and the server can answer requests quicker.[/QUOTE]
I don't get it, how does using JSON stop you doing this?
[QUOTE=garry;30143986]Although it wouldn't `fix` any lag. It might reduce it, but it wouldn't fix it. Your message is still going to be posted to the server and then come back. I don't want to `predict` the message by showing it as you post it.[/QUOTE]
That's not the point. Instead of slamming the server every n seconds for new chat messages have clients get the ASAP by maintaining a constant connection to the server like a real chat.
Yeah!
Yeah. I think I already addressed that.
[QUOTE=garry;30144045]I don't totally see what's wrong with that code though?
[editline]30th May 2011[/editline]
I don't get it, how does using JSON stop you doing this?[/QUOTE]
JavaScript evals are bad, I'm StinkyJoe could tell you why exactly.
I don't get what you're asking? JSON has nothing to do with this. Maybe you're misunderstanding
I don't understand why javascript evals are bad.
[editline]30th May 2011[/editline]
I get your issue. You don't like that I send the HTML line instead of individual elements. I thought you were against JSON. But since you can't actually tell me why that eval is bad I guess you're not.
Garry compwhizzi has proven that he's a very good and experienced coder and i think you should take his advice.
[editline]30th May 2011[/editline]
Not really
[editline]30th May 2011[/editline]
About the good coder part
[editline]30th May 2011[/editline]
But he's right
[QUOTE=garry;30144111]I don't understand why javascript evals are bad.
[editline]30th May 2011[/editline]
I get your issue. You don't like that I send the HTML line instead of individual elements. I thought you were against JSON.[/QUOTE]
No no I'm all for JSON.
[url]http://stackoverflow.com/questions/86513/why-is-using-javascript-eval-function-a-bad-idea[/url]
[url]http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/[/url] (Point #2)
Just google for "javascript eval is bad"
[QUOTE=garry;30144111]I don't understand why javascript evals are bad.
[editline]30th May 2011[/editline]
I get your issue. You don't like that I send the HTML line instead of individual elements. I thought you were against JSON. But since you can't actually tell me why that eval is bad I guess you're not.[/QUOTE]
[url]http://stackoverflow.com/questions/86513/why-is-using-javascript-eval-function-a-bad-idea[/url]
:ninja:
the json should look like this:
[code]
{
"messages":
[{ "timestamp":1306786902, "user":"compuwizii", "message":"what", "action":"message" }, {"timestamp":1306786951,"user":"garry", "message":"derp", "action":"message"}, {"timestamp":1306786987, "user":"Chickens!", "action":"left"}],
"users":
["garry","comuwizii","Ac!dL3ak"]
}
[/code]
or something.
But I'm not evaling code that I don't trust. I'm not creating any functions, I'm filling an array. There's no negative. The point is invalid.
[QUOTE=garry;30144181]But I'm not evaling code that I don't trust. I'm not creating any functions, I'm filling an array. There's no negative. The point is invalid.[/QUOTE]
It's a huge performance issue though. It has to be compiled each time and can't be cached.
The web dev forum would probably be a better venue to continue this if you want, you'd get a few more good viewpoints on this.
Sorry, you need to Log In to post a reply to this thread.