« first day (1645 days earlier)      last day (3307 days later) » 

7:00 PM
because you are calling .create() (a class method), that retusn an instance of the newly created computer
then you call exists on that.
 
OK, before the line models.computers.create i am trying to see If there is a such class method
 
models.computers.exists() is how you call it
 
console.log is saying undefined
AssertionError: true == undefined
 
@everyone is there in existence a cross-platform mobile app development framework that truly works?
 
might be somthing with sequelize and how it exposes the class methods..
 
7:03 PM
Yeah, I can't find any related information..
 
@Mosho no, not realy. Ionic is pretty nice, React-Native is young but looks promising.What sort of app?
 
:burps:
 
that section covers this, specifically. looks liek what you have is right
 
.. must be something small
 
7:07 PM
well, what you pasted is wrong, but you SAID you tried it the other way
 
I tried instantiating it by using create.. It wont return a promise ie doesn't step in .then promise
but since It's a class method....
 
you need to return the promise form the exists() function.
you aren't returning anythign right now
 
How can I do that?
 
use the 'return' keyword.
just liek you return true from the chained .then()
.count() return a promise. You are using it to chain .then() but then never returning it.
 
@BenjaminGruenbaum what do you think :P
 
7:13 PM
just throwing it away
 
I am returning true if count is > 0 ?
Kind of lost by what you've said sorry..
 
yes, but i'm not talking about that function
i'm talking about the one outside it
the exists function has 0 return statements
 
ooh
 
@Mosho for iPhone, maybe react native is ready.
Especially in a month
 
you mean the exist function doens't have all the return paths
 
7:15 PM
it never returns anything.
there are exactly 0 return statements in it.
 
so I have to return computers.count({...
 
yup.
 
ty
You go around making me think ;)
 
@BenjaminGruenbaum hmm, cool
 
@Mosho there is a lecture about it at YGLF from a core contributor
 
7:21 PM
:o
forgot about that
Sahar asked Gilad if TR can send us last week
 
Ok
Keep me updated
 
yougottalovefrontend.com is really annoying to browse
why is the background the site's markup
 
@Morsho So they can look more like programmers
instead of animators
 
markup is programming now?
 
coders whatever you wanna call it
 
7:25 PM
markupers
 
I didn't even know that word existed
 
up markers
 
@Mosho because it's a really cool effect.
 
It looks ugly also
 
@Mosho that is probably the worst abuse of scrolling I have ever seen.
 
7:27 PM
I like it :v
 
@BenjaminGruenbaum tell that to my seizure
 
I think it looks really cool
 
I'd rather use view-source:yougottalovefrontend.com
 
@BenjaminGruenbaum cuz you're a hipster
 
Weirdo!
*throws tomatoes at him*
 
7:29 PM
I also like it.
 
hehe
I was in an hipster place today, was actually a lot of fun - there was a cool trumpet band playing and lots of beer to go around
 
Now to figure out why the tests are failing
 
7:33 PM
doesn't that go the other way around
 
testing before PR? :D
 
What is a cool design for a utility library (for personal usage). Is still Name.method the best way?
 
@Catgocat I prefer window.method
 
Util.flatten(arr)
For example ^
 
7:35 PM
the global namespace if there for you to use it
amirite?
 
@Catgocat make a module.
 
@SterlingArcher ^
 
Util("method", function(util) {
	util.subMethods..
})
 
The global namespace is like a toilet seat. Sometimes you have to use it, but try to keep the contact at minimum.
 
@Catgocat wtf is that?
 
7:36 PM
Idk hehe
 
@SecondRikudo she's hot
 
@BenjaminGruenbaum Thanks sweety <3
 
@Luggage I returned the promise. But It doesn't return a boolean - It returns an object that looks something like this :
{ _bitField: 0,
  _fulfillmentHandler0: undefined,
  _rejectionHandler0: undefined,
  _progressHandler0: undefined,
  _promise0: undefined,
  _receiver0: undefined,
  _settledValue: undefined,
  _boundTo: undefined,
  '$sql': [] }
 
@SecondRikudo you look different from what I remember
 
@Mosho Must be the lighting.
 
7:37 PM
Yeah, much more masculine
 
o/ @SecondRikudo Whats up?
 
@l0oky \o
 
How's things?
 
Well
Elections seem to be going pretty well
But we'll only know in 3 days or so
 
Wait US elections?
 
7:39 PM
@l0oky Those only happen in November
Because we're a backwards country that keeps clicking "Remind me later" on Democracy updates.
3
 
@SomeKittens That's a good one
 
84 wpm
 
I used to have 120
 
7:41 PM
@Mosho And then you got that new cool keyboard.
And you dropped to 5.
 
not 5
 
Thought that's easily hackable
 
more like 8
 
@SomeKittens It's OVER 8000!
 
7:42 PM
@SomeKittens congrats, you win 10 internets
 
Too bad in portuguese you have to type things like ÀùÌoêÎ
 
@Mosho lol, him and another guy paid like 400$ for that and they type super slow. @Mosho at least has the decency to keep his old keyboard plugged too :D
 
@SecondRikudo the thing is, since I got the new keyboard I'm slow on normal ones too
 
That actually require 3 keystrokes
 
They also have a silly pedal.
 
7:43 PM
 
Ê requires 4 keystrokes
 
I call it the "staging pedal"
it publishes to the staging server
 
@Mosho XD
 
I realize, in my right hand I only use the index finger -> What to do now?
 
As if typing speed were the bottleneck for coding
2
 
7:44 PM
@JanDvorak AutoHotkey :D
 
@SomeKittens No, but having to type slowly is extremely frustrating.
 
@SomeKittens it's not for coding it's to get bitches
 
@SomeKittens Typing fast is the key to success
 
@SecondRikudo Right, once you've learned touch-typing, you're golden.
 
Typing fast is the key to carpal tunnel
 
7:44 PM
When your thoughts severely outrun your hands, you keep getting stuck.
 
@Mosho Ergonomic typing is your mating call?
 
Is the key to your mom @KendallFrey
 
I see FAR too many coders over-optimizing their typing (looking at you, vim/emacs) when they should be learning how to code
 
@Mosho that's what I said :v
 
@Catgocat All your mom needs is a marshmallow, and BAM, I get root access.
 
7:45 PM
@SomeKittens You know nothing of emacs, silly peasant. That's not what it's for.
 
@SomeKittens I'm looking at you @Zirak you noob :D
 
@SomeKittens There are actually professional typers who get paid for typing at contests
 
True fact: @Zirak thinks $(this).attr("id") is acceptable.
 
@KendallFrey If your mom was a collection class, her insert method would be public.
 
@BenjaminGruenbaum never insults me - I must not be his friend.
 
7:46 PM
@Catgocat Your mom is so fat, she's immutable.
 
WAIT THAT'S THE ULTIMATE INSULT @BENJAMINGRUENBAUM BESTIES
 
:22773563
 
7:46 PM
god damn it
abandoning post
 
:D
@SomeKittens we usually just agree on these things.
 
Your mom is so fat that
var array = [];
array.push(YourMom)
array.length; // Infinity
 
@Catgocat Arrays indices in JS are up to UInt32
 
@SomeKittens I think those kind of editor focus on the wrong things anyway. Well actually I don't know all the features they have, but...
 
A Number can hold more than that, so that never happens.
Also, unless YourMom is a proxy inside a with that code is unlikely, and even if it is it's hard to pull off.
Also, array.length is clearly one.
 
7:48 PM
I'd rather have things like CTRL+D in sublime text than ridiculous scrolly shortcuts in vim
 
@BenjaminGruenbaum your mom isn't hard to pull off
 
@BenjaminGruenbaum *throws bananas*
 
@twiz The JetBrains family of IDEs also has that
ALT+J by default IIRC
 
alt j :-)
 
I've been using vim for the last few years, mostly because I can't exit it.
 
7:49 PM
@BenjaminGruenbaum yo mama so fat that NASA shot a rocket into her ass looking for water.
 
@SomeKittens That joke is almost as old as Vim itself :D
 
@twiz vim can also have multiple cursors
 
@Catgocat your mom is a gas giant
 
@Catgocat Yo mama so stupid she gave birth to you
 
But the real question is: can you click? oh, yes, well I'd rather not spend an hour setting that up.
 
7:50 PM
@Catgocat your momma so stupid she thinks $("#" + myCounter) is an acceptable way to code UI.
 
Them feelings Zirak
 
@BenjaminGruenbaum Psh, everyone knows you should use ng-attr-id="{{$index}}"
 
@SecondRikudo I've been using Webstorm recently and it is surprisingly pleasant. I'd never really been a fan of full IDEs like that.
 
@Catgocat your momma so stupid she uses $(document).ready( instead of putting code at the end of the body section.
 
@BenjaminGruenbaum That's because his momma can't find the end of her body
 
7:52 PM
Aw snap
 
@BenjaminGruenbaum her body never ends, she can't
 
@BenjaminGruenbaum Not really funny though
 
@KendallFrey Speaking of typing faster...
 
She doesn't program javascript man.
 
And the general IntelliJ makes me not hate Java anymore.
 
7:52 PM
@twiz Nothing short of really strong alcohol can do that
 
well not as much....
 
Imma do a @Zirak
 
@Zirak And imagine if you had both!
 
Please put your pants back on
 
Java is even better with no pants.
 
7:54 PM
The day Java roams pantsless...I pray we'll never live to see it.
 
Fun fact, @Zirak actually used to work coding Java a year ago. He used to think $.map is superior to Array#map back then too.
Or was it two years?
 
Yeah, about two years ago. Never again.
 
@BenjaminGruenbaum yo mama so fat that a recursive function computing her weight causes a stack overflow
 
@Catgocat If you're going that way, say her weight can't be stored in a uint32
 
@Zirak Or a double numeric variable type in C++
 
7:58 PM
Yo mama so fat she got heart disease and died at a less than average age...
 
That's not cool that's awful dude wtf man
 
If by "that" you mean obesity, yes.
 

« first day (1645 days earlier)      last day (3307 days later) »