« first day (1518 days earlier)      last day (3431 days later) » 

8:00 PM
when you know postgresql you don't need to know others.
psql is just that good
 
@AwalGarg I would do as well :) I would enjoy redis... But how ?
 
@Basj I would need to understand the structure of your app to tell you that... and I am too lazy right now :p
 
HMSET id1 x 1 y 2 z 3 text "hkjh"
HMSET id2 x 5 y 2 z 13 text "hkjsfsdh"
HMSET id3 x 5 y 2 z 11 text "hkjsfsdqsdqh"
HMSET id4 x 7 y 2 z 12 text "hkjsfsqsdsqddh"
// how to find all elements such that 4 < x < 6 and 10 < z < 13
 
//* The presence (or lack thereof) of the first slash determines whether or not the code is run
... Some Code ...
//*/
Anyone else ever use this trick?
 
@AwalGarg If you think this ^^ is doable easily, then it's ok (you don't need to understand structure of my app ;) )
 
8:03 PM
@rlemon Yeah, I did sort it out.
@rlemon Now I'm working on that GET.
 
@Basj It is doable, but not as easily as with postgres.
 
@Greg good stuff. another tip, I don't know what you intended for the onreadystatechange checks but if you're targeting modern browsers you can do request.onload = function(results) {
 
@AwalGarg yes :)
 
function reqListener () {
  console.log(this.responseText);
}

var oReq = new XMLHttpRequest();
oReq.onload = reqListener;
oReq.open("get", "yourFile.txt", true);
oReq.send();
@Greg ^^
much simpler
 
I'll try this :)
Thanks!
 
8:06 PM
@Basj to answer your question, I would use two sorted sets. Then filter out for x, then use the result to filter out for z.
 
@Shmiddty I don't use that one, specifically, but I do use a variation:
//* Exactly one block is active depending on the addition/removal of the first slash
    //Block 1
/*/
    //Block 2
//*/
 
Also @Basj I guess the redis client for node would do some of the parsing for you. So unless you have like 10 billion records or something, there is no issue in letting the node client handle the filtering, imo.
Anyways, if there were 10 billion records, you won't be using redis.
 
when you append an element in the DOM, does that trigger a load event on the window?
 
Why would it?
 
8:15 PM
because I'd like it to
 
Programming is hard
3
 
I'm ha... nope
wait... nevermind... I derped.
 
@SterlingArcher Interesting that this tweet seems to have been deleted?
 
I deleted the tweet because of doxxing. The internet is stupid. I'm sorry.
 
@Zirak Can you post a screenshot of your console?
 
8:20 PM
My console? Which one? Why?
 
@SterlingArcher yes, unfortunate that people are assholes
 
Forreal
Humans are assholes
 
@Zirak nothing just curious how it looks like...
 
I'm have embarrassing OOP scoping issues with prototypes. jsfiddle.net/Seanny123/ay2adj2b
 
I could listen to this all day long: youtube.com/watch?v=3MteSlpxCpo
 
8:22 PM
I want an object to use a prototype method, but I can't figure it out.
 
@Seanny123 Your problem is that you're declaring self as an implicit global variable, I think.
 
@Zirak guess what else is hard :O
 
@SterlingArcher finding your ...
 
@Seanny123 Why you global everything?
 
@rlemon dog. Finding my dog. >=(
 
8:24 PM
@Retsam so how do I get my object's variable into the prototype? this.cName doesn't work either
 
s/og//
 
Dammit
 
@Seanny123 Use this.
 
s/\/og\//clog/
 
OH I GET IT NOW.
 
8:25 PM
@SterlingArcher the correct answer is "no man, It's not lost. It's still in your mom from last night"
 
Thanks guys.
 
Oh that's the answer?
JOKES ON YOU I RESPECT MOTHERS
Except octomom.
And Kim Kardashian
 
yea well,
 
Are you a motherlover?
 
Yo momma is so fat, I took a picture of her last Christmas and it's still printing. OOOOOOooooooooooooooo
 
8:27 PM
@AwalGarg It's not that interesting but okay...
 
... xD That's a good one actually
 
 
@BenjaminGruenbaum luv me sum muthas
@Zirak why do I find that so pretty
 
@BenjaminGruenbaum "he may not be a father, but he's sure loved a lot of mothers"
 
lol ram
@SterlingArcher it's a great song.
 
8:28 PM
@Zirak awesome!
@rlemon illogical joke. Your camera can't take such a picture. </badJoke>
 
Terrminal emulator is Sakura, sometimes used instead of emacs. Solarised dark theme, default tmux coloring.
 
@AwalGarg illogical pedant. You didn't open your <badJoke> tag
 
Happy?
 
@Zirak very much.
@rlemon haha :p
 
Remember the days when it would've been such a treat to see @Ziraks timezone?
 
8:30 PM
@Seanny123 Ah, you need to use .bind with your sortingMethod, too. Working version: jsfiddle.net/jftx88mv
 
:P
 
@phenomnomnominal Joke's on you, I always set my clocks to +0
 
@BenjaminGruenbaum you don't like Java, correct?
 
Also, that's the uptime
 
8:33 PM
20:26 12-Dec-14 is the uptime? :P
 
Do you have reasons that I will understand or would I need a deeper understanding of the language?
(So far I like it, so I wuz just curious)
 
@Zirak I suspect you are not the real Zirak, because the real Zirak would never do that.
 
@phenomnomnominal Oh yeah, I forgot about that
 
will the real Zirakertan please stand up?
 
@AwalGarg Why not? Makes talking about time easier
 
8:35 PM
@Zirak Noob
 
@phenomnomnominal Cherry mind controlling powers...fading...
 
@Zirak The real Zirak never forgets anything! WHO. ARE. YOU? WHAT did you do with the real Zirak?
 
@Zirak I ate a delicious personal pizza today. Thanks for imagining it up for me <3
 
!!pizza 1000 1000
 
@rlemon That didn't make much sense. Maybe you meant: pizza
 
8:37 PM
@AwalGarg Real Zirak too busy having respectful sex with your mother figures
 
@SterlingArcher And you didn't share?
 
@Zirak sometimes you use another terminal than ansi-term?
 
I shared in spirit!
 
Holy fuck...it's the 5th time in a row that a message separates two consecutive messages of mine
WHY!?
 
8:37 PM
TRAITOR
 
YES! CURSE BROKEN
FUCK YOU
 
boo
 
this was the exact pizza. It's called the Maverick
 
all I see is delicious calories
 
inorite
 
8:39 PM
@SterlingArcher Noice
 
@SterlingArcher I hate you.
 
Noooo, you hate the idea of me!
 
I hate your ideas
 
@Zirak real zirak is sitting beside me, and he is gonna track you fake zirak down soon.
 
@SterlingArcher ^^
 
8:41 PM
@rlemon did you get the updates I pushed?
 
haven't pulled them yet
@ work grooving to PTX and fixin bugs
 
They censored it D:
but impressive
 
@SterlingArcher youtube.com/watch?v=Mn3Zkq9PP_Y I like their 'live' stuff better
single shot kinda deal
 
Well, I had a leftover of quiche lorraine onto which I added some roquefort to make it better...
 
roquefort?
 
8:44 PM
^
roquefort. perfect cheese
 
for lunch? I had roast beef on a baguette with spicy mayo and pickles, and then a garden salad which i didn't finish and will eat for dinner
 
For dinner
 
@SterlingArcher do you know how in JS you have callbacks?
As in - functions that take other functions as parameters?
 
Yup yup
 
8:48 PM
@SterlingArcher Java doesn't have that.
 
@BenjaminGruenbaum Java 8 introduces precisely that, because before 8, you had to pass in an entire object.
 
Aren't callbacks just function parameters that are triggered?
 
@SterlingArcher yes, Java doesn't have function parameters.
It comes close at Java 8 - but even there you don't have closures.
Also - the type system is really bad - you know how in JS you have map?
 
Java 8's implementation of function params and closures is interesting.
 
In Java you have different functions to map to integers, doubles, objects etc... it's funny.
 
8:50 PM
Not great, but super efficient.
 
@ssube what implementation of closures?
 
So each type has it's own set of iterators?
 
C# has had real lambdas with real closures for a while now without that BS.
@SterlingArcher no, just 5-6 types
 
@BenjaminGruenbaum Lambdas in 8, which are semi-hidden methods, can access any final properties of the surrounding scope or object.
 
Also, Java is super verbose.
@ssube _final_ - that's precisely not having closures.
 
8:51 PM
What do you mean by verbose?
 
To do it, because the lambda is turned into a method on the surrounding class, they promote the variables it uses via "closure" to be fields on the class as well.
The (huge) restriction is that you can only use final fields/vars.
 
In JavaScript var x = [[5]]; becomes:
ArrayList<Integer>> y = new ArrayList<Integer>();
y.add(5);
ArrayList<ArrayList<Integer>>> x = new ArrayList<>();
x.add(y);
 
Guys, some feedback (on the content) please? static.madara.ninja/howtogit
7
 
The "lambdas" and "closure" they introduced in 8 are really just sugar for methods and fields.
 
8:53 PM
@ssube yes, but C# has had stronger lambdas for several years now and doesn't have that restriction.
 
@BenjaminGruenbaum You won't get any argument that C# is better in most ways.
 
"Who would win in a fight? C# or Java?"
discuss
 
@SterlingArcher that's Java's fault - you can have static typing and type inference, which Java only has in odd places.
 
I just think how they went about implementing the new features was interesting, in large part because it's incredibly efficient (compared to how JS handles closure).
 
@rlemon C# would pound Java flat.
4
 
Definitely C#
 
@ssube ...which is precisely the problem. They didn't actually understand what they were supposed to implement, just fixing one pain point
 
With all it's drawbacks.
 
C# is Java after 20 years of learning what Java did wrong.
 
It's not really that efficient in Java.. they're just stuck with the JVM - in hindsight they would have done it differently.
 
8:54 PM
@SecondRikudo Transitions are a bit slow.
 
Java is like a sumo wrestler. Bloated but strong.
 
@SomeKittens I'm referring more to the content :P
 
@ssube Java and C# were both out for some time before either got Generics (which C# does better than Java too), or lambdas or anything like that.
 
The sliding library can easily be replaced.
 
Java is not "strong".
Scala is strong, but still shitty in some places.
 
8:55 PM
at killing ram
 
@BenjaminGruenbaum It is, though, because they know where everything will be as soon as the JVM loads it.
 
(Scala has also had lambdas for a long while).
 
> Git is currently hailed as the best VCS in the market.
 
@ssube so what?
 
Can turn a ton of calls and accesses that would be slow in JS into simple derefs and virtual calls.
 
8:56 PM
If only they had a JIT... oh wait.
 
this is pretty cool
 
on my way out
will listen when I get home
 
Other languages turn it into defers too. Doesn't even have to be virtual calls.
 
@Zirak Hmm, perhaps should be changed to "currently the most popular VCS in the market"
Noted, thanks. Anything else?
 
C# has a much simpler runtime and much simpler jit. The CLR is a lot simpler than the JVM but still usually faster because of saner defaults.
 
8:56 PM
It doesn't have to be virtual, although the JIT gets to decide that.
 
I definitely prefer C# as a language on a conceptual level... but does it currently run on anything other than Windows?
 
They didn't really believe inheritance is a silver bullet from day one.
 
The CLR is a fantastic runtime.
 
All this is way over my head :(
 
Not that C# is awesome or anything... it has its share of shit.
 
8:57 PM
@Retsam Historically, sort of, thanks to Mono. In the near future, now that it's open-sourced, yes.
 
@BenjaminGruenbaum Until I would be able to run C# under linux without a performance penalty or some magic translation voodoo, I still won't be able to say that I "like" C#.
 
@SterlingArcher just remember the callbacks with closures thing, and the type system thing.
@SecondRikudo write scala then, scala is cute.
Scala is to Java like C++ is to C.
 
All of the modern programming techniques folks like to use, like event-driven stuff, delegates, etc, are almost impossible in Java.
 
@BenjaminGruenbaum I'm currently okay with Node, my next target is Python.
 
!!afk butts
 
8:58 PM
Or a nightmare if you have to try, or super slow if some other language somehow makes them possible on the JVM.
 
Callbacks are mostly associated with event listeners right?
 
Python takes a day to learn.
 
@BenjaminGruenbaum And a few more to master.
 
@rlemon lol I linked this to that guy
^ js/html5 game
 
It's true, I learned Python in a day
 
8:59 PM
@SterlingArcher Indirectly, yes. You're asking to be notified of something, either in a larger scope (when the user clicks...) or very specifically (I'm calling you, tell me when you're done).
 
@SterlingArcher not just .map filter and reduce as well as .sort take callbacks.
 
@SecondRikudo A fair bit more than "a few days to master"; I think.
 
This is a lot to chew on
 
There are way too many ways to use callbacks to make blanket statements about them, though.
 
I disagree - you can master python in a week.
 
8:59 PM
I'm going to take the chance and get into some multithreading too. Never done that in the past.
 

« first day (1518 days earlier)      last day (3431 days later) »