« first day (947 days earlier)      last day (4005 days later) » 

5:00 PM
@BenjaminGruenbaum 3x is a dumb optimization? :P
just trolling :)
I prefer map + filter too.
 
Less concise code is a dumb optimization :) If you let your run-time warm-up it'll become as fast with time
 
One could also write map-filter using only filter and function composition
 
Surprise surprise, not using .forEach but using a normal for loop is over 5 times faster than using .each , if they were trying to optimize, they were failing
 
Is there a javascript iterator/iterable that can do lazy evaluation?
 
Still screams 'doesn't know about map' to me,
@JanDvorak kinda, in the next version we get much better ones with yield
 
user1596138
5:03 PM
What's going on today?
 
JavaScript has some form of courutines with closures, you can create a fibonacci lazy iterator easily.
 
user1596138
I'm just staring at my desk, and will be for another 4 hours at work because our host is down.
 
@BenjaminGruenbaum Don't forget that map isn't generaly available without a shim
 
@BenjaminGruenbaum compared to Ruby's Enumerable#lazy, just how good will it be?
 
We're getting proper coroutines in the next version ES6 :)
@JanDvorak As good
Might be an interesting project
 
5:05 PM
Longing for it
 
You'd need two features first though, proxies (for proper indexers, we've already discussed that today :) ) and yield (which we can emulate cleverly with closures)
 
def methods_missing ... end
 
^ That's proxies
 
Ruby's yield = "evaluate the passed block once"
 
I mean like python's yield, or C#'s
 
5:09 PM
I think Enumerable#yielder is exactly what yield means here: return a value and restore the call stack when requested another value (iterator)
 
user1596138
@IvoWetzel Lmao
 
user1596138
That kind of meme is overused... But in this case it was worth it.
 
you pass a block that takes an argument to which when you push, your generator yields a value
 
5:14 PM
@JanDvorak there you go :) jsfiddle.net/7qgZN
naive
Shouldn't call for the whole array but only up to the index that was asked of it
 
@JosiahSouth Why does your circle of friends burn? y u hate buntu!? .__.
 
user1596138
@OctavianDamiean It's fire ice and lightning. Buntu has everything.
 
user1596138
It's better than a half-ass flag, or a fruit, that's for sure ;)
 
?
What did I miss here?
 
user1596138
@BenjaminGruenbaum My avatar.
 
5:22 PM
Somebody kill me now
 
just called russia
the caller tones are so polite there
 
@JosiahSouth I only saw that after clicking your picture, talking to @OctavianDamiean about ubuntu is the quickest way to get him into bed.
 
user1596138
@BenjaminGruenbaum I'll keep this in mind!
 
Sure. Then jQuery is also C++, as JavaScript is ultimately converted to C++ for the physical machine. And the translation is so simple that even a CPU is able to do it. However, with all the respects i owe to jQuery (which is a very effective framework/library), I am still wondering if I'll ever have the time to learn it. To tell the truth, JavaScript, even in the plain Vanilla flavor, does not reach 15% of my programming language usage, and my boss has devised a better usage for my training time (At least, that is what he thinks). Thank anyway... — user1938185 10 mins ago
-_-'
 
user1596138
@BenjaminGruenbaum LMAO!
 
5:24 PM
@BenjaminGruenbaum jQuery / JS is NOT CONVERTED TO C++
it writes straightway machine code from js
v8 :-(
 
@Darkyen Oh really? I didn't know that ( stackoverflow.com/questions/16635959/… )
@JosiahSouth your comment is rude, delete it. There is no reason to call people names because they're wrong about some coding issue, that's considered very bad in StackOverflow.
 
@BenjaminGruenbaum i know you knew that :-(
just saying it again
 
user1596138
@BenjaminGruenbaum There is also no reason to order any lesser member around.
 
@JosiahSouth Lesser member? What makes you think you're any less of a member
 
5:26 PM
@JosiahSouth note that you have called yourself "lesser"
 
user1596138
He was on chat here the other day going on and on about some nonsense.
 
user1596138
Because I am.
 
@JosiahSouth Members in SO are generally equal in terms of voice, the only think that matters is your ability.
No-one cares if you're JonSkeet or user9213098 , what matters is if you know what you're talking about in your answers or not.
If you won't delete your comment, a mod will probably delete it in a bit, people will likely flag it.
I wanted to give you the opportunity to do the acceptable thing yourself first.
 
!!/stat 9213098
 
I flagged it already anyway
 
5:28 PM
@JanDvorak User 9213098 not found
 
user1596138
Understood. Although there is and always will be a sense of respect for those who have contributed more.
 
Ironic that you mention respect.
 
Yeah, of course there is, but doesn't mean a 500K rep user gets to be rude to a 43 rep user. Rep is meaningless in the context of 'who is better'. It's indicative of community trust, that's it.
 
user1596138
@phenomnomnominal Actually no, it isn't ironic at all. In context it makes absolute sense. I have given Benjamin more respect then user9213098 just as I said.
 
Rep only indicates how much the community trusts you, not of how important or knowledgeable you are. It certainly has nothing to do with respect.
That user you called an idiot answered 4 questions helping other users before asking his question, he got something wrong.
 
user1596138
5:31 PM
@BenjaminGruenbaum As a suggestion I welcome that. As an order as it was first given I decline.
 
user1596138
@BenjaminGruenbaum I didn't mention rep.
 
I have no problem attacking his arguments, has he a million rep or 1. That's one of the awesome things about coding, often there is a right answer.
@JosiahSouth Hey, I was doing you a favor because you were in this chat, normally I'd just flag it. I wanted to help you realize what the problem was.
 
user1596138
I'm in this room often enough to know how helpful and knowledgeable you can be, it has nothing to do with rep. Also answers and such. I'm also in this room enough to know that user(number smash) isn't. In fact he's a prick. Or has been to me the last 3 times I've seen him.
 
All Ben did was point out that you were rude. At that point you had two options: A) apologise and remove the rude comment (let's not forget that it is the receiver that decides if something is rude) or B) be defensive.
 
@JosiahSouth user( number smash) is the stack overflow default for users who don't set their name. It's a million different people :)
 
user1596138
5:34 PM
@BenjaminGruenbaum I know. I just didn't recall what it was and didn't care to find it haha. I wasn't making fun of him there.
 
!!/stat 9001
 
@Darkyen User 9001 not found
 
user1596138
!!/stat 1938185
 
:-( so its not over 9000 :-(
 
@JosiahSouth user1938185 has 46 reputation, earned 0 rep today, asked 1 questions, gave 4 answers, for a q:a ratio of 1:4.
 
5:35 PM
@JosiahSouth A lot of us have given up feeding the help vampires on main (and thus don't get more rep)
 
Does anyone have experiance using ebay api?
 
Also: Good morning all
 
@JosiahSouth Meh, still, I'd appreciate it if you didn't go around and call users idiots, he was wrong but he wasn't being a jerk or anything.
I've reached the conclusion that I don't use .some and .all enough in JavaScript :)
 
It's better to be less abrasive, especially if you're newer to the room. If someone says something ridiculous, just reply with "Bananas"
 
user1596138
Anyway, I have talked to this guy more than just seeing his question. I would never say something like that based on a stupid comment like that.
 
5:37 PM
!!/mdn some
 
user1596138
@SomeKittens That's actually an awesome idea.
 
I figure, if they come in here with a ridiculous non-sequitur question, I can reply with a ridiculous non-sequitur answer
 
Codswallop
 
user1596138
New thing.
 
user1596138
5:39 PM
Sounds good.
 
I feel ill
 
user1596138
Then I won't have to start discussions on equality either ;)
 
Well, while we're often assholes here, we try to be more polite on main
 
I don't treat people of idiots even here though.
 
user1596138
I have noticed that. I usually am too, I just remembered this guy haha.
 
5:40 PM
you don't know the people, who are you to call them idiots anyway?
I could say @BenjaminGruenbaum is an idiot though
 
@FlorianMargaine, He is a bit of an idiot.
 
but that's because he is
 
user1596138
Well you do all sort of hate OkOk I've noticed...
 
Constantly going on about maths like it matters.
 
The key thing is that we're all idiots.
 
5:41 PM
@JosiahSouth I don't.
but still, I don't think we've said he was an idiot
 
We're all just striving to be slightly less of an idiot.
 
Exactly. Any day where I'm less of an idiot at the end than the beginning is a good day.
 
user1596138
Most of the people in the room when he joins do..
 
I consider "idiot" a pretty big insult, especially in our jobs where we're paid to think
 
@FlorianMargaine fuck you that's offensive, I'll sue you
 
5:42 PM
I just entered this chat the first time, and what I see is that it is all about insults. This is allways this way here?
 
@BenjaminGruenbaum you could if you were american :>
 
@JosiahSouth, okok has a reputation for being an ignorant douche.
@tsippert, fuck off :)
 
user1596138
@phenomnomnominal There it is!! It's true though.
 
@tsippert YES. We only insult each other talk about jQuery
 
user1596138
Holy shit.... lmao
 
5:43 PM
@tsippert sometimes
 
@tsippert No, I think it's just a coincidence.
:-)
 
This being an active room, we get all sorts of vampires and noobs who refuse to learn
 
The funny thing is that the C++ lounge actually is like that, all they do all day is act like assholes.
To be fair, we also do a lot of learning here, I've learned quite a lot.
 
this is sad :P
 
@tsippert Did you get all your rep from edits?
 
user1596138
5:44 PM
@BenjaminGruenbaum It's funny how we do have a sort of 'room war' on chat.
 
@Som
 
user1596138
Every room says they're better than the other.
 
@tsippert, careful...
 
does anyone have a recommendation for displaying math equations in HTML?
 
@JosiahSouth we are the most truthful.
 
5:44 PM
MathJAX
 
@SomeKittens yes, I'm just beginning in the SO, and by editing I learn a lot
 
user1596138
!!/stat 2139775
 
@JosiahSouth tsippert has 419 reputation, earned 20 rep today, asked 0 questions, gave 1 answers, for a q:a ratio of H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ.
 
@JanDvorak thanks!
 
user1596138
I broke her....
 
5:45 PM
@tsippert Speaking of editing, you can edit previous chat messages!
 
7
Q: Is there a way to have math formulas look nice on a web page (as in LateX, for instance)

RabskatranI wonder if there is a framework or something else to display Math formula on a web page. Other than using images of those formulas...

 
@KevinMurphy just render an image.
 
user1596138
@CapricaSix Seriously look at this hahaha.
 
@JosiahSouth, your website is broken.
 
user1596138
@phenomnomnominal It isn't mine. But I share that opinion.
 
5:46 PM
You musn't be vert l33t
 
@tsippert Good luck
 
user1596138
@phenomnomnominal I've hardly been allowed to do any work on it.... It's a broken nasty POS.
 
user1596138
It's also down.... If that's what you meant.
 
You'll never know
 
@somekittens how do i edit in chat?
 
5:48 PM
I've been up for ~60 hours at this point. It's not looking good.
 
@BenjaminGruenbaum thanks
 
user1596138
It's got some of the most malformed code I've seen. Some bitch worked here before me and just did cut/paste stuff from w3schools.
 
@tsippert Press the up arrow or click on the menu to the far left of the message
@JosiahSouth Our condolences.
 
@phenomnomnominal :O WHY?
@JosiahSouth LMFAO, classic.
 
copy paste... from w3schools... two worst things combined
 
user1596138
5:50 PM
@phenomnomnominal Espresso!!!!
 
The new title sounds like the applications of javascript's history. Take it to ELaU immediately.
 
@BenjaminGruenbaum, we're starting a user study tomorrow, we've been rendering ~200 images, have to check them all, long, slow process.
 
user1596138
It really is horrible. It's going to look real bad when I try to get a different job and have this thing looking like it was mine.
 
@phenomnomnominal Go to sleep
 
@phenomnomnominal Sounds crappy :/
 
5:50 PM
@Zirak, I can't
We're very close
 
Ask someone to knock you unconscious
 
@JosiahSouth It is yours, refactor the code
 
user1596138
I'm going to make some espresso actually.
 
The first tester will be here in 7 hours
 
Shoot him with the tranquilizer
 
5:51 PM
One of the most important things programmers have got to learn is to read and understand bad code.
 
user1596138
@BenjaminGruenbaum It ISN'T mine. Haha what the hell?
 
@JosiahSouth You "own" it currently
 
@JosiahSouth Just because you didn't write the code, doesn't mean it isn't yours.
 
@BenjaminGruenbaum i just see "star" and "flag" in the menu, i think i haven't enough reputation,
 
@tsippert Huh?
 
user1596138
5:52 PM
Sort of. Although I'm not given any time to work on it (on the clock anyway) and I don't want to do it unpaid.
 
@BenjaminGruenbaum to edit the message
 
user1596138
@tsippert You can only edit your own chat messages.
 
@phenomnomnominal You're lying
 
I need a function for comparing two arrays and returning false if any value in the first in already in the second. Anyone feeling charitable?
I'm not physicially capable of it right now
@AmaanCheval, I wish
 
user1596138
Basically I'm screwed.
 
5:53 PM
@phenomnomnominal 60 hours straight with no sleep at all?
 
@BenjaminGruenbaum in my messages there is no "edit" link
 
@AmaanCheval, yep
 
@FizzyTea somehow, this is getting translated into 14 characters instead of 11: for each(a in'ɘ{|°ǧycƧƌǛƋ')print(((a.charCodeAt()-99).toString(2)).slice(-9))
 
@BenjaminGruenbaum forget, it just apeared now ;)
 
5:54 PM
Been staring at shit like that for too long
 
@phenomnomnominal !a.some(function (n) { return b.indexOf(n) > -1; })
 
!!/urban clingy
 
I think I'll buy a cheap car to get some real life experience on the Nürburgring. Something up to 1000€ should do.
 
@Zirak <3
 
@Zirak clever.
 
5:54 PM
> Recent studies have also suggested that sleep deprivation produces similar effects in the brain to that of an SSRI in persons with depression, thus ensuing a clinical, self-imposed remedy.[69] However, most individuals suffering from clinical depression are not aware that lack of sleep is having a direct positive effect on mood
Huh
 
Someone remind me to make a emoticons user script
 
Who'd have thought?
 
@Shmiddty As far as I've observed, any multibyte character is converted to several single byte characters
 
!!/tell phenom help nudge
 
@phenom todo: Your personal todo list. get [count] retrieves everything or count items. add items adds items to your todo list (make sure items with spaces are wrapped in quotes) rm items|indices removes items specified by indice or content
 
5:55 PM
!!/todo add emoticons
 
@phenomnomnominal Unidentified /todo action emoticons
 
@phenomnomnominal Cool, got to 68 hours straight once, then my body decided to stop me.
 
@phenom nudge: Register a nudge after an interval. /nudge intervalInMinutes message, or the listener, nudge|remind|poke me? in? intervalInMinutes message
 
@copy hrm
 
@phenomnomnominal What would that emoticons user script do?
 
5:56 PM
@phenomnomnominal Item(s) added.
 
user1596138
 
user1596138
I know what @phenomnomnominal 's been doing all this time...
 
@OctavianDamiean, replace shit like <3
 
@BenjaminGruenbaum thanks for the support, another day I will come back here to learn more about JS ;)
 
@JosiahSouth Do what you can, then leave. You'll have some war stories under your belt. Just don't make excuses
 
5:56 PM
!!/cowsay
 
@phenomnomnominal With what?
 
@Darkyen Command cowsay does not exist.
 
@JosiahSouth, as a New Zealander, i find that offensive.
 
!!/cowspeak
 
5:56 PM
@Darkyen Command cowspeak does not exist.
 
@Shmiddty Yeah, I can't figure out how to encode it for the server.
 
@Zirak what happened to cow speak ?
 
@JosiahSouth What's that horrible html?
 
@OctavianDamiean, a cute little span with a cute little heart in it
 
!!cowthink ...despite all that raping
 
5:57 PM
@Zirak Y U NO MAEK SENSE!? Could not understand cowasy I'm still fine
 
user1596138
@phenomnomnominal I assume you're saying this actually happens a lot in New Zealand?
 
@phenomnomnominal Ew!
Nah
 
 _______________
< I'm still fine >
 ---------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
@JosiahSouth, no, we prefer sheep.
 
 ___________________________
( ...despite all that raping )
 ---------------------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
5:58 PM
@JosiahSouth how can u write that ?
 
user1596138
@Zirak It's actually from the website of someone in this room..... I was checking it out.
 
do you know you can have whitespace in HTML ?
 
user1596138
Like I said it's from someone in this room's website.
 
@Darkyen You don't say!
 
@JosiahSouth whose :?
 
5:59 PM
@Darkyen Well, I'll be damned.
 
user1596138
benlevywebdesign
 
his website is the worst.
 
user1596138
!!/stat 1316379
 
@JosiahSouth benlevywebdesign has 129 reputation, earned 0 rep today, asked 15 questions, gave 1 answers, for a q:a ratio of 15:1.
 
He is a hep wampiyer
 
5:59 PM
yeah, his websites are sucky.
 
user1596138
I didn't want to say anything.... But yes, I noticed.
 

« first day (947 days earlier)      last day (4005 days later) »