« first day (906 days earlier)      last day (4049 days later) » 

7:00 PM
A while with a break is better
 
IF statements are prone to failure in different browsers. Because of their non-standard implementation they cannot be trusted.
 
while(condition){
   //whatever
    break;
}
 
condition && (statement);
 
@Connor It's false. These guys are trolling you ^
 
1 min ago, by Kevin
I said that.
 
7:00 PM
if you need blocks, condition && (function(){block})()
 
I thought this would have made that clear.
 
for(;condition;){
   whatever
   break;
}
 
I am surprised he listened. I said that like two weeks ago while trolling
 
@FlorianMargaine sarcasm != trolling
 
Mine also creates a proper block scope
 
7:01 PM
I got one!
 
this looks good
1 min ago, by Benjamin Gruenbaum
while(condition){
   //whatever
    break;
}
who agrees?
 
so what then?
 
@Kevin yes... that's right
I should have
 
It looks hurribly converted from while to if while not bothering to locate the opening brace
 
7:03 PM
function IF(condition) {
  return !!(condition);
}

IF((function() { return foo < bar }())) && (alert('here'));
 
@Kevin thats still IF though?
 
now, is that lisp you want to write?
 
but it's a controlled IF
 
no, it's an IF
 
@Kevin probably Boolean(condition) is better
 
7:03 PM
@BenjaminGruenbaum !! is more fun
 
but new Boolean(x) is great for golfing
 
so is switch the best?
 
It also has an added benefit of confusing typeof
@Connor do what suits you best
 
@Connor use if.
 
7:05 PM
^ use if
knowing of the alternatives is not bad, there are edge cases where you will need them
 
@FlorianMargaine so just as i was then?
 
if( condition ) {
  statement;
}
 
coffeescript even understands that switch {...} means switch(true) {...}
 
use braces. none of this fancy ASI crap
 
7:07 PM
@FlorianMargaine ok thanks i will, but why are people saying its bad, or is it NOT bad?
 
@Connor If is the bread and butter of non-functional control statements. It is the most important and not used
 
if( condition ) statement
else statement
 
they're not saying it's bad
they were just being sarcastic
 
I'm wondering if switch(false) could be useful
 
@Connor we were being sarcastic, if is very fundamental and basic in programming, not just in JavaScript, in most other languages too
 
7:08 PM
To be fair I started this like two weeks ago; and I was being SUPER sarcastic to the point I didn't think anyone would have taken me seriously.
 
@JanDvorak In general, switch isn't useful in JavaScript
 
Oh god I could so drink a bourbon now ...
 
no, you take the resultant sarcasm and you enjoy it, kevin.
 
any Russians here?
 
da
 
7:09 PM
niet
 
Thank Youp :D
 
lol you guys see the Putin topless article?
cracks me up
 
niet
 
7:09 PM
u minja niet sobaka
 
he gave two thumbs up
 
some topless protestors ran in
and he instantly gave two thumbs up and stared at the boobies
 
lol
 
> "Regarding this performance, I liked it," grinned Putin at a joint news conference with German Chancellor Angela Merkel, adding that it had helped to promote the trade fair.
> "I did not catch what they were shouting, I did not even see if they were blondes, brunettes or chestnut-haired ..."
pretty hilarious
 
7:11 PM
@canon hah, awesome
 
I wanna see her boobie... :(
Loktar you tease
googles putin topless: gets this.... :(
 
@Loktar Putin is the worst ever. In all situations.
 
Unless hes saving reporters from a tiger
 
He's pretty badass though ... shouldn't mess with him.
 
More than badass.
 
7:13 PM
^ the thumbs!!!
 
lol
theres a video of it too
 
do I see the boobies?
 
@Kevin Merkel looks even happier than Putin.
 
7:14 PM
lol
 
thahahaha
 
LOL that is pretty great
 
That's bordering Putinism.
 
I want to participate in LispNYC
 
7:16 PM
sounds like Kim Jong-Ul
 
Yeah, the personality cult there is disturbing
 
So I wrote an application to max the transfer of data to USB devices... It doesn't increase native speed too much, but when you are writing 40 devices at onces it makes a big difference. What always astonishes me is: because I'm really hammering the devices they get hot... like really hot... like I have to wait 10 minutes after writing them before I can touch them.
 
Main difference is its all true about Putin
 
@FlorianMargaine 'cept Putin is badass.
He's a Sambo pro.
 
@Kevin thats crazy
 
7:17 PM
You should really not mess with him.
 
@Loktar I didn't think you could heat up a thumbdrive like that.
 
yeah me niether
I've never felt one get warm
 
user2157210
@Kevin oh you can do
 
user2157210
you can make them melt the plastic arround
 
well these are all metal and leather so that isn't a concern. I was beginning to become concerned to the USB hub they are in
 
user2157210
7:20 PM
you can put heatpipes on them
 
The last way for me to gain more speeds to is build my own hub and write my own drivers for the devices
something like this
the chips are not that expensive.
 
Put it in a fridge
 
user2157210
what about using some faster interface than usb?
 
they are usb devices
 
user2157210
so you are tied to usb ok
 
7:21 PM
instead of CD's we send our shit out on thumbdrives. 80meg to 600meg they need to load onto them. and anywhere from 5 at a time to 40 at a time
 
m59
@Connor as far as I know, switch is more efficient in certain cases - like where it makes sense. You have one variable that may have multiple values and for each possible value you need a certain response. If you had 5 values, why do 5 if's when you could just do switch with 5 cases. The performance test I saw was for php, but switch outperformed if and was nice to look at.
I should say, it would be 1 if and 4 else if
 
if I ship 200 systems to China thats 200 drives I need to load. takes a while when you have to wait 4-12 minutes a drive
 
@m59 in Javascript, the cases don't have to be compile-time constant
 
@Kevin Now, why the hell do you need so many USB ports?
I mean I know that you're Chang but still.
 
@OctavianDamiean mass loading USB drives with files while keeping a file structure
 
user2157210
7:22 PM
you should construct some system which automaticly plugs and unplugs them
 
m59
@JanDvorak what does that mean?
 
out of lego.
 
I tried doing them as images, but to unpack the image on the drive was longer than moving more data
 
@m59 this means that they can't always be optimised as well
 
m59
oh.
 
user2157210
7:24 PM
I dont know what you are shipping but 200 usb drives for one order
 
user2157210
is it 200 times the same data on the sticks?
 
also, having recently tested this (last two years) switch is only more efficient on a VERY specific number of cases. some programmers choose to use it today for readability, however in 99.999999% of the cases if elseif is faster (nominal)
@Nexxpresso sometimes yes, sometimes 50/50/100, sometimes all different.
 
user2157210
ok and you cant order them with the data preinstalled?
 
we sell industrial automation control systems. The drives contain all documentation, software (management and remote management) as well as data files specific for them to be loaded on their systems
@Nexxpresso tried this, it was expensive and two companies fucked it up
 
user2157210
hmm ok guess usb 3 would to expensive too or are you already using it?
 
7:26 PM
@Kevin You know that you can't chang you name for a month now, right?
 
like flattened the folders, or missed a file, etc. turned into a larger nightmare because the drives got shipped.
@OctavianDamiean yup
it's a committed troll.
 
m59
@JanDvorak at least from googling, switch slightly outperforms if in general and sometimes quite outperforms it, in javascript. That is, when used in a way that makes sense.
 
Look at my profile. I didn't do it lightly.
Kevin, Greendale, WI
7.5k 1 17 51
 
I mean technically you can. ThiefMaster can rename you if you want but yea.
He renamed me when I became paste the other day.
 
@m59 switch is stupid and not expressive
 
7:28 PM
I wish I could buy nigerian domain names
 
user2157210
@Kevin you dont sell automation systems tho?
 
no we sell the control
 
user2157210
So you cant get some engineer over to just build you some automated usb switcher
 
and parts of the supporting systems.
@Nexxpresso don't need one. I would rather build the 64 port and just write it - write it again - write it again.
 
@Kevin Changnesia.com is already taken :(
 
7:31 PM
I know
 
@SomeKittens Sucked.. Still haven't fixed my problem, I'm trying to deploy on heroku but it won't work for some reason
 
I checked so long ago
 
@XCritics Oh joy. Auth problems?
 
user2157210
@Kevin If you start to build the 64 port show us some progress
 
will do
I'm bad with that
 
user2157210
7:32 PM
Im not really into electrical engineering :(
 
planned on showing progress on building my audio amp. Took 4 pictures. One was the components, the other three were just before completion
 
user2157210
sounds like a progress :D
 
@XCritics Procfile?
 
user2157210
@Kevin Do you have some plans you plan on using for the 64 port switch or everything from your own brain?
 
http://littleannieadderall.com/
http://annieadderall.com/
wow they are both **not** taken as well
@Nexxpresso there are dome DIY schematics for some specific chip. I looked into it a while back. just would take some modification to turn that one 4 port to a 64 port.
then ofc get one of the in house engineers to look at it before I fab it
 
@SomeKittens yeah
 
user2157210
The joy of having engineers at work
 
7:37 PM
@XCritics What's your Procfile look like?
 
@SomeKittens web: node app.js
 
huh
heroku ps:scale web=1
^run that
 
@SomeKittens yaaay, it works, and my problem is fixed on Heroku! @phenomnomnominal
I just really wish Heroku wasn't so expensive :)
 
You get 750 free dyno hours
 
user2157210
So I want to play red ochestra 2 but its 17 gigs and i cant download it because i will get limited speed after 5 gigs
 
user2157210
7:42 PM
Uk is retarded
 
How much is it for a decent account?
 
what do you use heroku for?
 
Node.js
 
nodejitsu is crazy cheap
instances starting at like $3.25 a month
 
Yeah, but I've had nothing but problems with their services :/
 
7:43 PM
@SomeKittens what does that do?
 
i've ran one site on there since Nov
@XCritics ah that sucks
 
@Loktar the thing to generate images?
 
yeah
 
@Loktar at first i spent about 2 hours in their irc, getting bcrypt to compile, and then last night i spent about 8 hours, trying to fix an issue that is actually on their end not mine
 
7:44 PM
ah that sucks :?
 
@XCritics are you sure you looked at the right logs?
 
Heroku seems to just work :P If they fix the second bug i mentioned, I'll use it again, but till then they're breaking my app
@FlorianMargaine Positive, It works on Localhost, it works on heroku, it just doesn't work on jitsu, I was sharing my screen with phenom for a while, and he gave up after he realized it wasn't a problem localhost and we cant install node-inspector on jitsu
 
@XCritics That was me.
 
No I showed phenom after you too :P
 
It was kinda funny watching you type into chat
oh, ok
 
7:48 PM
It's like when the prof starts browsing reddit and forgets the overhead is projecting his laptop
 
our teacher once that intentionally to test our new giant stylus touch screen / whiteboard
(not reddit)
 
@Kevin gawker.com/5986787/… (semi NSFw)
 
that was a funny one as well
 
Earlier today: I give presentation on project management to Prof. Starr and include slide with Darth Vader.
Now: Same prof is giving a presentation on project management to a different class (that I'm in). He's included a slide with Chewie, Luke, Yoda, and Vader.
 
there is one with a prof browsing /r/gonewild and one of a prof on front page as well
@SomeKittens TIL my professor will forgive me for anything if I walk in with a black glove on and use the excuse "Sorry, had a little argument with my father and things got out of Hand (as you raise your gloved hand)"
 
7:53 PM
 
Why the shit is a web dyno so expensive, $35 a month for 2, @SomeKittens any idea what's the cheapest you can go so you you don't have to worry about your site going down?
 
@XCritics Free. I don't pay anything for kittens-chat.herokuapp.com
 
-1
Q: Using prototype.split on a String

user1899082I am just using the code from Ninja JavaScript book! and it is like this: String.prototype.csv = String.prototype.split.partial(/,\s*/); var results = ("Sasha, Jony, Ive").csv(); console.log(results[0]); But when I run it in FireBug I get this error: String.prototype.split.partial is not...

too localized
 
@SomeKittens so it will run forever and ever? I thought you said 750 hrs
 
@Kevin best thing ever.
 
7:57 PM
@XCritics 750hrs/month
 
ooo
@SomeKittens do those hours only work per request?
 
dunno
 
well I guess therei s 720 hrs in a month
so 750 hrs / month must work I guess :P
 

« first day (906 days earlier)      last day (4049 days later) »