« first day (1587 days earlier)      last day (3372 days later) » 

12:00 PM
This is amazing news
 
@BartekBanachewicz I read it.
 
nvm
 
@BenjaminGruenbaum thanks for the $http return promise.
Also with the fact that I *must* make those files async loaded, does it look ok to dot it this way, with the injector etc...?
 
Am I the only one that thinks asm.js is just a stupid idea? >_<
 
No, but who cares about those people
 
12:02 PM
goo.gl/rx0Bxe @AaditMShah @BenjaminGruenbaum How to make this work ?
basically have a consistent render method which will be private so that user can only implement a draw method ?
 
@dievardump what browsers do you have to support?
 
ie10+
 
@darkyen00 what are you actually asking here?
 
@roel I don't really care if its assembly, llvm it, js bytecode or asm js
As long as its a reasonable compile target and it's not js
 
(it's a windows8 app that load the "webapp" in an iframe)
 
12:04 PM
@BenjaminGruenbaum I want to implement a class such that it calls .draw on parent classes
but the person who has extended it needs not to call the super
 
@darkyen00 that sounds like a really bad idea
 
@BartekBanachewicz why >
 
Well let's start with "inheritance chains are meh for expressing drawing commands"
 
@darkyen00 fun fact, impossible in Pyhon :D
 
Python is such a great and useful language though
 
12:07 PM
I know its impossible in python.
Just wondering if possible in javascript
@BartekBanachewicz why ?
 
how come my last then doesn't run? triggercommand returns function that returns promise

     .then(function () {

        if (fs.existsSync(tempDir + '/' + repoName)) {
          return self.triggerCommand("git", ["checkout", "master"], {cwd: tempDir + '/' + repoName})()
            .then(
            self.triggerCommand("git", ["pull", "master"], {cwd: tempDir + '/' + repoName})
          )
        }
        return self.triggerCommand("git", ["clone", remote], {cwd: tempDir});
      }
    )

      .then(
 
!!tell SuperUberDuper format
 
@SuperUberDuper Format your code - hit Ctrl+K before sending and see the faq
 
@darkyen00 why not compose instead of inherit?
 
@darkyen00 ^
 
12:09 PM
Can you please explain why composition is superior in this special case ?
Pros and Cons of each approach ?
 
you can't call super in python?
 
@dievardump you can't call a super's method in Python.
@darkyen00 google "composition vs inheritance"
 
http://learnpythonthehardway.org/book/ex44.htm

this says otherwise, but I am not good enough, I don't know python
 
Though i understand using composition this will be damn easy. but is ease the only reason ?
 
Not just easy, simple.
 
12:11 PM
Ok
 
@dievardump link is dead - also, it probably doesn't say otherwise.
I read that book before.
 
class Parent(object):

    def altered(self):
        print "PARENT altered()"

class Child(Parent):

    def altered(self):
        print "CHILD, BEFORE PARENT altered()"
        super(Child, self).altered()
        print "CHILD, AFTER PARENT altered()"
 
@darkyen00 it's pretty much always superior
 
@dievardump isn't that py 3 or something ? i remember hitting a point where i gave up on this.
 
anyway in practice you want to either be using ECS
or a declarative stateless API like Hate
 
12:14 PM
@BenjaminGruenbaum now coming back, i still want an answer though.
 
data-driven designs work much better for expressing what you want drawn imho
 
I will use composition but I want to learn if its even possible with js
 
@darkyen00 is writing Java possible in JS, you mean?
yes, writing Java is possible in any language
 
@BartekBanachewicz well we are going in to the javarythonic
way
 
@dievardump no, I mean for Parent to delegate to a Child method if they overrode it.
 
12:16 PM
@darkyen00 and as we know, java approach to software design turned out great throughout the history
 
class B{
    omg(){
         console.log("omg");
    }
    foo(){
        if( super.foo ) { super.foo(); /* call the omg of this level */ }
    }
}

class BB{
    omg(){ console.log("ooomg") }
}
 
if( super.foo ) lol
 
:D
just wondering if thats even possible or not
 
In Lua it's possible
 
so pretty much nada in js ?
 
12:18 PM
if you use the new JS object accessor gimmicks maybe you could do stuff like that
but in general, I see no point of using JS if you want to write reasonably structured code
Supposedly its biggest strength is being able to write programs lacking structure in both control and data areas vOv
 
I am trying to expose a draw api, via an abstract class
 
@darkyen00 why does the abstract class have anything to do with the api?
 
@BartekBanachewicz cause its the only way you can consume it :P
 
@darkyen00 show real example use
 
// i might be wording wrong so here is a code example
// CanvasLayer is the abstract class


class FrostyBlurLayer extends CanvasLayer{
      draw(ctx, layer){
            /* do canvas stuff for drawing this layer */
      }
}

You can then use this in a react component as

React.createComponent({
   render (){
       return (<Surface><Circle radius={20} x={10} y={10} /></Surface>);

   }
});
 
12:24 PM
everything except <Surface><Circle radius={20} x={10} y={10} /></Surface> is noise
 
the CanvasLayer does the tasks like rendering the basic common things like border-radius, border etc
nvm
 
they draw html, no?
not shapes
 
How do I convert the dateString 2014:10:17T18:30:00Z into a Date object? jsfiddle.net/srnug/34
 
anyway I see you writing a lot of code without a point
 
12:25 PM
much more performant than rendering in HTML
 
@darkyen00 that still renders html-ish things, just on canvas
 
Yeah i contribute to it.
 
@darkyen00 and also much more retarded, because it loses all semantic information, and goes back to Flash era in that regard yes
 
trying to get a stable api to allow custom draw functions
@BartekBanachewicz It has a specific usecase.
 
@darkyen00 it has no usecase other than "we want to actually render stuff reasonably fast but the DOM model is broken"
 
12:26 PM
@darkyen00 lol, taking JS advice from @BartekBanachewicz :D
 
@BenjaminGruenbaum well you are free to hop in and guide me right.
How would you do it benji ?
 
he already told you
 
That would basically mean using mixins, in react
 
call canvasLayer.draw(B) where B has its own draw method, or something like that.
Don't use mixins, just don't make objects do too many things
They only know how to draw themselves declaratively.
They are passed to the canvas layer, which takes that declarative description and actually draws them.
 
@RahulDesai what is this format?
That should be 2014-10-17T18:30:00Z, no?
 
12:29 PM
@BenjaminGruenbaum how would you allow 3rd party to draw in that case ?
ps canvaslayer is what Surface takes and draw if the draw is implemented.
 
@darkyen00 build more complicated drawing commands out of declarative primitives and expose both the primitives and the commands
so that anyone can build their own
 
@dievardump thx for help. Now I'd like to "convert" this svg shape into mysql spatial geometry / multi-point object (to save it in db and be able to do queries on it). What do you think about this ?
 
@dievardump hmm, I see the problem now. Is there a way to replace first 2 occurances of : in that string?
 
@RahulDesai By correcting the source that send you this weird format?
 
let me check
 
12:39 PM
well, I just came back from the olimpics. I'd I probably did more than 3/4 of the people did. There were some problems in which I wouldn't even know where to start from
 
12:59 PM
> This is a strong vote of confidence by Microsoft in asm.js and the overall compile-to-web story. With all the excitement and momentum we’ve seen behind Emscripten and asm.js before this announcement, I can’t wait to see what happens next
 
@BartekBanachewicz nice, so haskell has compile-time macros. What about read-time macros? :D
 
Is asm.js relevant ?
 
@dystroy of course it is
@FlorianMargaine you mean "interpret-time"?
 
if "interpret" means "lex/parse time", then yeah
 
@dystroy not really unless you want to do stuff like re-using c++ code in javascript
 
1:02 PM
@dystroy As far as I know no JS code has been able to match the performance of native code compiled with Emscripten
 
or really want to squeeze out performance.
 
@darkyen00 or reduce memory usage. Or battery usage, for that matter.
It's not only about performance.
 
@BartekBanachewicz it will take years to come to mobile.
 
@darkyen00 Why?
 
@BartekBanachewicz that's bs but ok
 
1:03 PM
@BenjaminGruenbaum no your dumb
 
@BenjaminGruenbaum if that's the way you want to respond, I'm game.
 
@BartekBanachewicz because most android market is android.
 
You've made an unsubstantiated claim and said that it's "as far as you know", I was merely saying that it's incorrect.
 
=> webkit / chromia
 
1:05 PM
@BenjaminGruenbaum heh. He answered exactly the same you did, and you complain? :D
 
@BenjaminGruenbaum I am not sure if the burden of proof is on me here.
> Much of this performance gain over normal JavaScript is due to 100% type consistency and virtually no garbage collection (memory is manually managed in a large typed array). This simpler model with no dynamic behavior, no memory allocation or deallocation, just a narrow set of well-defined integer and floating point operations enables much greater performance and potential for optimization
 
code.google.com/p/v8/issues/detail?id=2599 @BartekBanachewicz chrome still hasn't had it completely by the time it comes in mobile browsers and gets decent % it will be 2016 mid
 
theoretically speaking, it's rather apparent that JS has overhead
 
@BartekBanachewicz I don't really care enough to have this argument now.
 
if you want to prove that JS has negative overhead compared to native code, well, I really suppose it's on you.
 
1:06 PM
Not compared to negative code, that'd be crazy.
 
@BenjaminGruenbaum then don't write things like "that's bs" because you're not adding anything meaningful to the conversation.
 
I'm arguing that JS doesn't have a positive overhead over asm.js, and certainly not over code compiled from llvm to it.
 
and thats where you care the most about performance, battery usage... etc.
 
@BenjaminGruenbaum and again, I really think it's you who should back that up, not me the opposite.
 
@SomeGuy the perpendicular to AB passing through C
 
1:08 PM
Going to take a step back, I don't care enough to find the relevant v8 and bugzilla threads about this. If you really care about performance characteristics go look them up.
You said something, I said it's bs. Just because I think I'm right doesn't mean I have to prove you wrong.
4
 
@darkyen00 I've read this thread. The support was dragged down because of the people like that crazy russian who still believe things what benji said, as in JS can be optimized as much as native code
 
It'd be time consuming and I'd gain nothing from it really. Having arguments on the internet is only worth it if you have something to gain from having them.
 
a few years later, they are still dreaming
@BenjaminGruenbaum ok
 
super london contracts!
 
@BartekBanachewicz Calm down brother
I am not saying asm.js is bad or super awesome
 
1:09 PM
I'm calm.
 
its a good tool to have.
 
We have engines which (after a while) already remove an important part of that overhead (in cases that could be ported to asm.js). I don't doubt that it's possible to do better with things like asm.js but what I wonder is if it's enough to be relevant
 
I really couldn't manage to resolve some of the problems from the olimpics... let me draw some
 
@dystroy what about memory overhead?
and the GC?
 
V8 does esacape analysis, it won't allocate on the heap nor will it cause GC if it doesn't have to.
 
1:11 PM
I remember reading that v8 used asm.js' features (e.g. |0) to optimise the code, but it didn't "support" asm.js because it won't fail if the syntax isn't only asm subset, for example
 
yeah they already introduced the optimizations but sort of "incidentally"
 
@FlorianMargaine This looks like the most rationnal path (assuming you don't write a low level driver in JS)
 
like if they can be sure a thing is a number they will optimize it as a number regardless of the asm.js annotation
my point is that you can rarely be sure anything in JS
 
I like asm, I just don't think it's important for performance.
 
@BartekBanachewicz you're not sure but you can guess, (and deoptimize when you're wrong)
 
1:12 PM
@BartekBanachewicz if only there were ways to analyse the code and be sure... oh wait.
 
@BenjaminGruenbaum good job analyzing code that can change on the whim
 
What @dystroy said, basically.
 
Well to be really honest now I'd rather have better native-JS interoperability than ASM.js perf optimizations
because that's what's blocking developing client-side with static langs, not performance, I agree
 
@BartekBanachewicz code that changes on the whim?...
 
that being said, if asm.js is becoming more supported, we can expect the interoperability issues tackled too
because it would make little sense to create the analogy of "a box heating up" in asm.js, without the access to JS apis
 
1:15 PM
 
@BartekBanachewicz the point is we need languages to compile to JS well, the problem is no language has really done that well enough yet (to an assembly level) and trust me I've tried at least a dozen. What I like about asm is emscripten.
 
I managed to understand that DAB and DCB are right angles, but that's it
 
@BenjaminGruenbaum what do you mean "to compile to js well"? Are you reading the generated output?
 
@BartekBanachewicz I mean usability of the output.
It's not just asm, there are a million other things that prevent other languages from running well on the browser.
 
@BenjaminGruenbaum well that only depends on the quality of marshalling, no?
@BenjaminGruenbaum like what?
 
1:16 PM
Lots of languages have subsets that run on the browser, Scala, Haskell, Java, Python and so on.
What they're missing is incentive and tooling.
They have to provide a measurable advantage and they have to offer tooling that is as good.
 
@BenjaminGruenbaum I disagree with the latter part.
 
do you mean things like sourcemaps?
 
If you want me to use your language for web browser scripting - you better ship extensions to all browsers with dev tools.
 
@BenjaminGruenbaum there are people who are willing to put up with worse tooling just to not have to write in JS
 
I need to be able to debug it in the browser at least as well as I do when I debug it usually.
 
1:17 PM
and I assure you I'm not the only one
 
I need debuggers with breakpoints, I need deployment ease and so on.
 
(which sourcemaps provide)
 
@BenjaminGruenbaum Except you don't typically debug haskell programs like you debug JS programs
 
@BartekBanachewicz wait what?
I debug Haskell programs when they do odd stuff all the time.
 
that might mean you're writing JS in Haskell
 
1:19 PM
You're seriously suggesting Haskell doesn't need a debugger?
 
No, I'm suggesting it needs a different one
 
Have you never worked on a > 1000 LoC code base in Haskell or something/
 
I think Hate is already over 1kLoC
 
Like, you've never used :break?
 
I did use :break
 
1:19 PM
I'd like to convert svg shape in mysql geometry type or multigeometry... need to convert svg shape points in geo-points (lat/lng)... I actually have svg layer over google map... need to find a trick (probably js) to get svg shape points coordinates... any idea?
 
I dunno, a few times in my life
 
@BartekBanachewicz Well, then you used a debugger. Now wasn't that useful?
 
@BenjaminGruenbaum Considering how many times I used it during the 1.5+ years?
not critically useful, no.
 
If you want me to use a language instead of JS - give me decent tooling, decent workflows, a community to ask questions here, an open process and a process I can follow.
 
@towc which means A, B, C and D are on a circle, right ?
 
1:21 PM
@dystroy holy............... wow.......... yup
 
@towc curious, did those codes all work for you?
 
@rlemon didn't try yet. Waiting for the right moment, maybe with a special someone
 
lol, pretty sure once you redeem them the $$ sits in your account and doesn't expire.
let me know when you do redeem them so I can toss the physical cards.
 
@towc with all points being on a circle you have many angles equal and thus many relations between segment lengths. I didn't finish but it's probably simple from there (assuming you're less lazy than I am).
 
in HTML / CSS / WebDesign, 2 mins ago, by rlemon
https://www.youtube.com/watch?v=__4JiQI3N6Q&feature=youtu.be ahahahahaha
 
1:32 PM
I ordered a pair of lugz
gonna look like a tool, but whatever
 
no you won't. the sitting people will all look like tools from your new vantage point
> "HEY GARY! I CAN SEE YOUR BALD SPOT!"
 
I'm thoroughly enjoying my standing desk, but man... the pain...
I picked up some dr scholls inserts this morning
We'll see how that goes
 
like I said, expect it to suck for the first week, maybe week and a half
gets MUCH easier/better in short time
 
@BenjaminGruenbaum (offtopic) Hi. I saw your answer here , I have the quick swift reference book ( the one with the flower).... but it doesn't have all nice and tricky things like in your answer. do you have other source of quick reference ? ( swift)
 
But I'm an American, and I expect instant gratification
 
1:37 PM
on the other side of the coin, when I moved from a full time standing job after 4 years and started to sit again for 8 hours a day my ass hurt so much for the first few weeks
I wasn't aware it worked in the other way as well
 
Interesting
 
@RoyiNamir not really, I'm just applying things I know from other languages.
 
@rlemon sure, thank you
@dystroy OMG, the answer was so simple, I just got it: you divide the polygon in 2 triangles with base BD, they're right triangles, so all you got to do is find out the area (you know the right sides), divide by the base, multiply by 2 for each triangle and add up what you get
still, I can't prove that AC is the sum of the heights
 
nice
but I don't think AC is the sum of the heights... I don't see any reason for that...
(disclaimer : too lazy and busy to search)
 
@dystroy yeah, it just was a thing that passed through my mind
 
1:47 PM
@BenjaminGruenbaum lol wtf is "trailing closure syntax"
 
@BartekBanachewicz You can write a.foo({...}) as a.foo() {...} for readability, sort of
 
been breaking my head over this for 2 hours, why is this ONLY working when I resize from small to big (mobile to desktop), and not from big to small??

window.addEventListener("resize", function(){
if (document.documentElement.clientWidth > 1203) {
if (!!$('.leftMenuContainer').offset()) {
var stickyTop = $('.leftMenuContainer').offset().top;
$(window).scroll(function(){
var windowTop = $(window).scrollTop();
if (stickyTop < windowTop){
$('.leftMenuContainer').css({ position: 'fixed', top: 0 });
 
@MatthiasVerhoeven 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.
 
> readability, sort of
 
@MatthiasVerhoeven please format your code in chat ([ctrl]+[k])
 
1:50 PM
@BartekBanachewicz don't ask me - not my language. I usually compose functions with currying and not with closure wrapping anyway.
 
    window.addEventListener("resize", function(){
    	if (document.documentElement.clientWidth > 1203) {
    		if (!!$('.leftMenuContainer').offset()) {
    			var stickyTop = $('.leftMenuContainer').offset().top;
    			$(window).scroll(function(){
    			  var windowTop = $(window).scrollTop();
    			  if (stickyTop < windowTop){
    			    $('.leftMenuContainer').css({ position: 'fixed', top: 0 });
    			    $('.pageContainer').css('margin-left','253px');
    			  }
    			  else {
    			    $('.leftMenuContainer').css('position','static');
 
next problem: I wasn't even able to draw the polygon: I'm given a convex polygon with 4 sides (ABCD), and I'm told that AB = AC = AD, and that BC < CD. Then I was asked to do some stuff with it. I would be happy to just see such polygon
 
@MatthiasVerhoeven format it properly, or leave
 
I control k'd it
 
Fix your indents
make them consistent
 
1:51 PM
just a sec
 
I don't feel like reading a jumble of confusion
 
@MatthiasVerhoeven Not attacking you personally or anything, but that's kind of horrid to read
functions are nice, just sayin'. :P
 
window.addEventListener("resize", function(){
	if (document.documentElement.clientWidth > 1203) {
		if (!!$('.leftMenuContainer').offset()) {
			var stickyTop = $('.leftMenuContainer').offset().top;
			$(window).scroll(function(){
			     var windowTop = $(window).scrollTop();
			     if (stickyTop < windowTop){
			         $('.leftMenuContainer').css({ position: 'fixed', top: 0 });
			         $('.pageContainer').css('margin-left','253px');
			     }
			     else {
			         $('.leftMenuContainer').css('position','static');
this should be indented correctly
 
TABS AND SPACES! GHA
(I do it all the time)
 
I discovered that scrollTop doesn't even work in FF. lousy jquery.
 
1:57 PM
@NickDugger Hu ? It's a little more complex then, I use scrollTop all the time
 
Odd, it wasn't doing anything in FF for me, so I jsut checked for window.scroll, and reverted accordingly
 
@MatthiasVerhoeven because you only have a condition to check if it is greater than a value. no else condition. what do you expect?
if( width > 1000 ) {
 // cool. I am big
} /// oohhhh noes... I don't actually handle when I get smaller.
 
I expect it to read my mind
 
@NickDugger sounds like Perl
 
anyone in london?
 
2:03 PM
only problem is I have tried adding an else
and the problem stays the same
it only works small to big, not big to small
here's the updated code:
 
I'm trying to run a node module but everytime i run it, node uses adobe dreamweaver to try and parse the js file. How do i disable that?
hence i can't complete the execution
 
window.addEventListener("resize", function(){
    if (document.documentElement.clientWidth > 1203) {
        if (!!$('.leftMenuContainer').offset()) {
            var stickyTop = $('.leftMenuContainer').offset().top;
            $(window).scroll(function(){
                var windowTop = $(window).scrollTop();
                if (stickyTop < windowTop){
                    $('.leftMenuContainer').css({ position: 'fixed', top: 0 });
                    $('.pageContainer').css('margin-left','253px');
 
@MatthiasVerhoeven no more pasting giant chunks of code in chat. make a jsfiddle or something
 
@rlemon Not sure if he's asking the same thing
He seems to be asking how to tell if a string contains just spaces, and he seems to be approaching it in a pear-shaped way
 
2:09 PM
I think it's an X/Y problem
 
@Neil read my comment
and read the accepted answer in the dupe
 
I think that he first needs to do a regex to remove multiple spaces if they're next to another space
then do a split
so yeah, I'm with bob, here
 
He just needs to do a regex for a non-space character and negate that result
 
> How to identify a string that contains only space
 
I don't think that's an accurate assessment
 
2:11 PM
34
A: How to check space in string?

Mark ByersFor checking if a string contains whitespace use a Matcher and call it's find method. Pattern pattern = Pattern.compile("\\s"); Matcher matcher = pattern.matcher(s); boolean found = matcher.find(); If you want to check if it only consists of whitespace then you can use String.matches: boolean...

> If you want to check if it only consists of whitespace then you can use String.matches....
 
ew, Java
 
ew Kendall
 
ew not-cheese
 
ew, people-that-aren't-american-and-or-white-and-privileged-and-straight-and-republi‌​can-and-gun-rights
 
ew ewe
 
2:21 PM
COMBOBREAKER
 
noooooooooooooooooo
 
ew, combobreaker
is there any difference between 42 and (() => 42)()? Other than computational time...
 
the returned value is the same, if that's what you mean
 
@towc conceptually, one is a number and the other is an expression that evaluates to a number
 
2:34 PM
@Neil but they do exactly the same thing, right?
 
If you did (42), it would be an expression
 
they result in the same value.
 
@towc They don't do the same thing, but they produce the same result
 
yeah, that
 
I don't think the parser is smart enough to replace (() => 42)() with 42
 
2:37 PM
hi guys, I'm looking for a good alternative for mongoDB..
 
@SuperUberDuper couchbase
 
Ok, thanks
 
redis
 
@Balakishore 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.
 
redis is awesome, but not an alternaive to mongo.
 
2:40 PM
@SuperUberDuper postgresql
 
its for a social network
 
my answer doesn't change
 
hmm mongo seems to have improved, also heard good things about postgresql
or maybe I should just just firebase, mind you I can't have business logic in firebase..
 
Do you want business logic in your db, anyway?
 
When you don't know whether you should use mongodb or postgresql you should probably not use a no-sql db...
 
Meh. It can be a leanrign experience, but yea. Postgres is the safe choice.
Solid traditional relational DB with the ability to be used like a document db in some ways
 
@dystroy a non relational DB introduces a lot of constraints that you won't be aware of if you don't know what it means :P
 
@rlemon yes, that's why the user without a strong knowledge should not use it, in my opinion
 
postgres ALL OF THE TINGS!
 
depends...
sometimes mariadb...
 
2:46 PM
@Luggage Redis is just a cache.
With pubsub and stuff
 
I know.
someone else suggested it as an alternative to mongo.
not even close.
 
@FlorianMargaine seriously ? Do you know anybody using mariadb instead of mysql ?
 
I personally use redis for sessions, a backing channel for socket.io and a work queue
and i think those are intended uses.
 
those are the classical uses, I think
 
I just throw psql at everything now
fuck thinking.
 
2:49 PM
@rlemon Don't use it for a queue
(or at least cache that queue )
 
ahaha the only place I needed a db for a queue the environment wouldn't allow anything but mysql (tried a few, Angstrom Linux is a POS)
 
@Luggage yeah, we use redis for caching mainly and for some syncing, and for session storage.
 
Hey guys, do any of you know a real world example of using reduceRight in JavaScript?
0
Q: Real world examples of using reduceRight in JavaScript

Aadit M ShahA while ago, I posted a question on StackOverflow showing that the Native implementation of reduceRight in JavaScript is wrong. Hence, I created a Haskell-style foldr function as a remedy: function foldr(array, callback, initial) { var length = array.length; if (arguments.length < 3) { ...

 
@rlemon MySQL is bad but it's still way way better than Mongo for storing stuff.
@AaditMShah haha, I just had an hour long talk when we tried to come up with use cases last week in #promises.
 
@BenjaminGruenbaum What's wrong with MongoDB?
 
2:51 PM
Where's the link..
 
@BenjaminGruenbaum tried mongo, couch, postgres, and one other one that was recommended to me. none would build on angstrom
 
@AaditMShah no transactions, no ACID, drops writes, bad syntax, pain etc etc. Not the topic though :P
 
so i used mysql because I was sick of it all and needed a db :P
 
@rlemon MySQL is fine.
 
ok ill talk to my cofounder about psql
 
2:52 PM
@AaditMShah didn't come up with any, did you try a GH code search?
 
do you thin herouku (node) is good place to start for a new startup for business logic?
 
@BenjaminGruenbaum Sounds like a good idea. I'll do that.
 
@dystroy yeah, my old company uses that for their hosting, so does my current company. 100% of the companies I've been at use it in production :P
 
@BenjaminGruenbaum I would like to give datomic a try instead. Have you used it?
 
@AaditMShah but literally nowhere. In JS you usually reduce when you want to iterate a collection and aggregate it - iterating a collection backwards doesn't make sense. It especially doesn't make sense in lazy scenarios.
@AaditMShah no, I like Raven for NoSQL that needs to do real processing though.
It might be worth a try (datalog stuff) though.
 
2:55 PM
will this work in node:

fs.copyFiles('./temp, '../../foo');
 
Indeed, logic programming for database manipulation sounds like a lot of fun.
 
crl
@SuperUberDuper no it lacks a quote
 
@AaditMShah the thing is SQL is already pretty good and does declarative logic data programming.
It's just using a different (but sound and complete nontheless) axiomatic base called relational logic instead of first order logic.
This is pretty much the whole foundation of SQL databases:
Relational algebra, first described by E.F. Codd while at IBM, is a family of algebra with a well-founded semantics used for modelling the data stored in relational databases, and defining queries on it. To organize the data, first the redundant data and repeating groups of data are removed, which we call normalized. By doing this the data is organized or normalized into what is called first normal form (1NF). Typically a logical data model documents and standardizes the relationships between data entities (with its elements). A primary key uniquely identifies an instance of an entity, also known...
SQL is just a way to express relational algebra.
 
Indeed, it is. One thing I love about relational algebra is its closure property (i.e. all operations on relations return relations).
 
Guys , why when doing this  var txt  = $(element).closest('tr').find('td:first').html().text(); i am getting a "text is not a function" error ?
 
2:59 PM
Well, a none closed algebra isn't very good, now is it?
 

« first day (1587 days earlier)      last day (3372 days later) »