« first day (1336 days earlier)      last day (1322 days later) » 

m59
1:43 AM
@TehShrike I'm leaning toward Mocha for tests. Any argument for tape instead?
 
It's simpler :-)
 
m59
O rly?
reading articles on this subject
 
m59
> The default TAP output is good for machines and humans that are robots.
 
m59
1:57 AM
yep, I read all the docs ;D
That just made me laugh.
 
I've used faucet in the terminal and tap-browser-color for browser stuff
yeah, Substack is good artist
 
m59
So, if I switch to this, I'll have no need for any other framework, browser side also?
dangit, I just read about the browser stuff and it didn't sink in.
 
@m59 yeah, tape works in the browser too
you can browserify myTapeTest.js | testling to test in a browser
 
m59
Hmm, so I would replace Karma with a gulp task that just ran that command?
 
pretty much. I assume people already have gulp shenanigans set up for tape
 
m59
2:02 AM
wow. As soon as I even start to learn something, it's old news.
How do you keep up?
 
Most of the people I follow on Twitter are JavaScript developers more from the node.js side of thinking
rather than the old-school browser dev or the big-framework side of thinking
I don't know about tape, but it looks like gulp-browserify is a thing that exists
 
m59
Maybe it's also that a lot of things I'm learning are already on their way out and I'm also still developing my speed in learning new things.
 
I started diving into the node.js community when it was still youngish
0.6 was around the time when I made the decision to start doing Srs Javscript
My JavaScript was horrible and bad before then
So when it came time to become a Real Javascript Developer I joined #node.js
 
m59
2:17 AM
So, substack is just entirely the man?
SUBSTACK 2016
 
@m59 He is so very much the man
He rocks multiple casbahs simultaneously
 
m59
lolzzzz
 
He is a coding beast by whose labors we all benefit
He writes projects FOR ENTERTAINMENT IN HIS OFF HOURS that would make me quail
 
m59
heheh. I can't ponder on that stuff too long. I love my job, but it comes with a great fear.
that if I were working with a team at an established company, I'd never make it.
 
@m59 nah, that wouldn't be an issue. You can actually produce working things
 
m59
2:21 AM
but I might be terribly slow?
 
That places you at the very least in the top 50% of devs currently employed at established companies :-P
 
m59
I mean, I don't lose too much confidence - it could just be the narcolepsy, but that doesn't change that I might be insufficient.
I'm already behind the timeline I set because life got crazy this week and then I fell asleep for a total of 3 hours today :/
 
Everyone is slower than they think they should be
 
m59
I want to play Assassin's Creed, dangit!
;D
 
heh
You can't be working hours like that at this point
 
m59
2:23 AM
Well, grace of God, and such. Life is good.
 
I would highly recommend cutting it off at 8 hours
 
m59
It's hard for me to get 8 hours is what I'm saying.
3 hours today just lost and then the fogginess it causes makes my time pretty bad sometimes.
 
/invite m59 real chat server
 
2:38 AM
The thing up there says I can ask a question to see if anyone checks back to answer it. I'm all kinds of bored so..... (trying to thinking of one now...)
 
@gloomy.penguin :-)
@gloomy.penguin what... is your quest?
 
hahaha.... i dunno. bored.
best i could come up with:
what is the future of the RDBMS in the world of big data? (gotta love buzz words)
or... oh, hey, I have a real one I can ask.
So, I have this table at work. 4GB (~400k rows?) on the other side of the world; oracle. I need about 20-40k for an ETL process. Takes forever (3hrs). What could I do...? It is properly indexed.
Could a view help that situation..? Even? Not my table, not my database. But I could definitely add a table, view, procedure if I asked with purpose and promise.
 
3:10 AM
idk. lemme know. if anyone comes back. i'm gonna go make a grilled cheese.
 
 
1 hour later…
4:13 AM
@gloomy.penguin It's probably not the right table/indexes for the query
My company has tables with 4b rows in the database that drives our site
 
m59
GASP
@TehShrike I didn't realize you work for the NSA.
 
OMG @TehShrike and @m59 you guys are still alive after i had already slept for about 8-+ hours
 
@LeeJeong yup, it's almost time for bed :-)
 
where do you live guys?
thanks anyways yesterday
 
Nebraska, USA
 
m59
4:24 AM
TN, USA
 
i see..
anw, if your still up...
i didnt quite understood this follow-up question you had last morning
"What format is your model in?
Personally, I just work with CREATE TABLE statements and incremental ALTERs
I can understand the appeal in describing your schema with something a bit higher-level" - @TehShrike
 
@LeeJeong you kept talking about your "model"
and turning it into queries or something
I didn't know what you meant.
 
I am using MySQL workbench, and i always see CREATE statements after tables being DROPped and then there comes the changes... but sometimes the dropping are hampered because one of the columns are foreign keys...
*i always see on FORWARD ENGINEERED scripts
@TehShrike sorry for the inconsistency.. what im talkin about the model was the database structure being designed on MySQL workbench.. i basically work on that then use ctrl + shift + z to synchronize it with my DB instance
 
 
18 hours later…
m59
10:19 PM
@TehShrike so this is interesting. That query we worked on works and all, but COUNT(*) makes it only return one row
 
@m59 yup, if you don't specify a GROUP BY, then adding any aggregate functions will make it group down to one row
but if all of your JOINs are 1:1 then you shouldn't need any aggregate functions
 
m59
yes, and then it's also interesting that GROUP BY makes it return a total_items of 1 for each result
hm... I've checked it a bunch of times and can't see where that could have gone wrong
I only have the exact code we had even
 
@m59 hastebin?
 
m59
10:57 PM
@TehShrike pastebin.com/N68M1TaQ I removed everything I could
and I checked out the results of the sub query as well..
 
@m59 hmm, that query doesn't quite make sense
 
m59
dernit
 
Do you want one result row per story?
 
m59
this is what we made heheh ;D
 
What is the count supposed to be of?
 
m59
10:59 PM
Hmm, I think I do see the issue.
 
what other things except SQL you should become familiar with to really grasp relational databases?
 
m59
I get a bunch of rows, but I need to know how many there are total, disregarding limit
@daremkd prayer
 
@m59 oh, MySQL has a function for that
 
m59
Oh duh, I was using it before
 
@daremkd two things. First, since SQL is a leaky abstraction, you need to know some details of the underlying storage engine so that your tables will scale well to many rows. Second, some basics of relational theory will make your life a lot easier, though you can infer a lot of practical bits by reading up on "relational database best practices" and just using SQL a lot
 
m59
11:03 PM
doh, so that was it.
Why does COUNT mess everything up?
 
@m59 It's an aggregate function
Aggregate functions only make sense in the context of many rows being grouped into one row in the resultset
 
m59
Oh, so it just does that?
 
You have to specify how you want the rows to be grouped for an aggregate function to make any sense
If you don't specify a grouping, then it just groups the whole resultset into one row
And runs the aggregate functions in that context
 
m59
and of course, if I group it, it changes thing?
 
yup
 
m59
11:05 PM
thus total_items = 1 instead of n
 
the COUNT(*) just tells you how many rows there were that got grouped into that one row in the resultset
 
@m59 any good resources for knowing the details of the underlying storage engine?
 
m59
oh dude, I'm worse than Bella from Twilight. I don't know anything about anything.
 
@daremkd Yeah. MySQL I assume?
@daremkd Book number one is High Performance MySQL
If you're on Windows, you should be writing your queries in SQLYog.
2
If you want to start learning how MySQL works, you need to read High Performance MySQL.
These lines brought to you by Pinned Messages
 

« first day (1336 days earlier)      last day (1322 days later) »