« first day (1925 days earlier)      last day (3248 days later) » 

22:00
@Joel ping me in 2 hours if you still need help.
huh?
Whoa, someone even plowed my narrow road now. And I didn't even lose a mirror.
crl
crl
is it stupid to do: if( .. ) return ...; else return ...; instead of if( .. ) return ...; return ...;
crl
crl
ok :) thanks
22:02
I despise one line ifs
crl
crl
just for teh example, for not wasting bandwidth
I'm sure SO is very grateful
@twiz I like them
@FlorianMargaine Yeah, they're easier to revise imo > less writing and can quickly swap orders
22:06
Until you need to add something more to your if. Then you either clutter up one line or have to add in the brackets.
I think I prefer to just not use them so people don't decide to clutter up one line later.
because they will. They always do...
C'mon you have to account for terrible people when you're writing your code. haha
@twiz you work with bad coders? Where at?
@rlemon I've got a bazillion line commit waiting to be pushed, tell me when you're near the computer with Caprica so in case something goes wrong you can handle it
22:22
Hi all :) i got a very difficult question. Can i ask it here? I dont know if it could be done with javascript.
@JeroenWallbrink 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.
@Zirak won't be till monday
I can wait (ʘ‿ʘ)
crl
crl
Zrk, what ya think of Awal server-side bot? for a future version :)
I'm not Zir, and I don't know what that is
22:23
@Zirak ʘ‿ʘ"
@JeroenWallbrink How's it goin
I'm fine thanks how about you man?
crl
crl
Should I say Mister, or Sir before next time?
@crl He is most certainly a Sir
crl
crl
22:24
in term of coder level, yes
@JeroenWallbrink Good! Anything I can do for ya?
do a jig
@rlemon I literally changed every file in source/
@Lemony-Andrew Maybe you can. I'm strugglin with a problem for weeks!
22:25
I can't jig... Too outtashape
@JeroenWallbrink If it's not too large to show in chat go ahead and share it!
@Lemony-Andrew its not that huge. But I'm developing an auction website. People can bid there on products. But I want to run a function when an new offer has been made and push the highest bid to all viewers. You got any idea how I could do that?
websockets
^ needs more jquery -- joke
socket.io -- jQuery of websockets
22:28
@Lemony-Andrew Everyone is a bad coder...
even good coders.
@towc no
I will not add you on facebook
websockets should i been using? I tryed it with AJAX and keep it calling each second. But i think thats dirty code.
You know what I mean... If not, I'm too lazy to explain.
but you need to be stalked >:(
@JeroenWallbrink websockets are better. and if you need to use xhr (ajax) look into 'long polling'
22:29
@twiz Well if you don't document your code sure, and if your code is inherently bad that'll do it too
I will take a look into that. Thank you for sharing ur idea's.
I mean everyone does that at some point for one reason or another, even if they know better.
@JeroenWallbrink Yeah it might be a bit of work if you haven't done work with NODE/server-side programming in general
@JeroenWallbrink that is pretty much how these things are done today (websockets)
even php has websockets now (ikr)
Thank you so much both! I want to achieve this without any page refreshes.
22:31
That would be an SPA
SPA? Seems like I'm far behind with Javascript....
@rlemon just call starteth_sockets_of_web_from_global_function()
It's just vocab, it stands for Single Page App.
Ahh alright i figured that out! hehe.
And you are right it is a SPA.
Lol, yeah. Just take a look at Twiz's function, that's a solid solution
@twiz you know how long it took me to grow my beard?
22:33
I will take a look into that!
5 seconds?
in photoshop?
@twiz @rlemon gave me it
lol
Sadly, I know exactly what you're talking about haha
Luckily it wasn't blinking
lol
No idea what that means though.
22:40
@twiz I've just heard that rlemon's been known to make his photoshopped works blink -- creepy
@ndugger same here
we've been looking for someone who has es6/2015 experience
like any
and most people haven't even touched any of the features
imo there is really no excuse whatsoever to not have even heard of any of them
22:55
@Zirak hey, ftr, what I wrote yesterday totally didn't work
(latest commit fixes that, cool stuff)
$ sudo ./sbin/init                                                      [11:53:46 PM]
* (state (first *services*))

ERRORED
* (state (second *services*))

STOPPED
*
meh nobody cares
It's cool, I renamed it
23:20
@rlemon When you're able, pull up the master.js from here: github.com/Zirak/SO-ChatBot/blob/browserify/master.js It's a different branch. Ping me if anything errors out. If it doesn't for a few days I'll merge to master.
23:58
$ sudo ./sbin/init
* (state (find-service 'remount-fs))

ERRORED
* (state (find-service 'dummy))

STOPPED
*

« first day (1925 days earlier)      last day (3248 days later) »