Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tgriesser
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
tgriesser
12y ago
Resources like this are exactly what I've been searching for while learning clojure(script). Really great work.
2.
▲
by
tgriesser
12y ago
Many of the comments seem to be along the lines of "why create a markup syntax to build more markup and throw it in JavaScript" - In my opinion that's not the real benefit of JSX, but just one use case. The great thing about
3.
▲
by
tgriesser
12y ago
Browserify's --debug flag sets up source maps per-file and works just fine for me with transpiled CoffeeScript files (mapping to the original .coffee) I'm not sure if there's something different about TS and React but I'
4.
▲
by
tgriesser
12y ago
"The Good Parts" is still a good one, but my recommendation these days now goes to Effective Javascript: http://www.amazon.com/Effective-JavaScript-Specific-Software... Outside of books, http://superher
5.
▲
by
tgriesser
12y ago
I think your best bet would be going with something like node.js' util.inherits, a standalone version for the browser can be found here: https://github.com/isaacs/inherits
6.
▲
by
tgriesser
13y ago
Disappointing that most promise articles/tutorials reference Q as the preferred promise library, rather than bluebird - https://github.com/petkaantonov/bluebird Bluebird is not only so fast that it's almost o
7.
▲
by
tgriesser
13y ago
There's actually already an open source blogging platform called Wardrobe: http://wardrobecms.com using the Laravel PHP framework, it has support for plugins, and is actively under development. https://github.com
8.
▲
by
tgriesser
13y ago
I'd actually created Bookshelf after seeing a lack of good support for SQL abstractions in javascript, especially comparison to other languages and frameworks. In terms of maturity, Bookshelf & Knex are still definitely young and a
9.
▲
by
tgriesser
13y ago
Well, in that case you'd lose the stack trace. If you just set the object's prototype to Error.prototype, and you add additional properties to the object's prototype you'd be modifying the Error's prototype as well.
10.
▲
Create-error.js – A simple helper for subclassed errors in Javascript
(github.com)
13 points
by
tgriesser
13y ago
|
2 comments
11.
▲
by
tgriesser
13y ago
Shouldn't be tied to SQLite (the underlying query builder/orm support Postgres), it's just not "officially" supported yet. So in theory putting in the correct connection config should allow you to use Postgres.
12.
▲
by
tgriesser
13y ago
I recently wrote two Node.js libraries that use promises extensively, an Active Record style ORM http://bookshelfjs.org and Query Builder http://knexjs.org . I actually didn't find a need for many of the higher l
13.
▲
by
tgriesser
13y ago
Bookshelf only focuses on the relational aspect of the ORM, sitting on top of an full featured underlying query builder, http://knexjs.org . It handles eager/nested eager loading properly, as you'd see in something like Ruby's DataMapper o
14.
▲
by
tgriesser
13y ago
Thanks for checking it out! While the view/history/router related code should be okay just sitting there unused, I agree that does seem like a bit of a code smell. I know Jeremy has been against modularizing Backbone in the past, and there
15.
▲
by
tgriesser
13y ago
The underlying query builder - http://knexjs.org - is much more of a 1-to-1 port. Bookshelf shares a number of similar features with eloquent, such as the process of defining relations, and handling eager/nested eager loading, but it also
16.
▲
by
tgriesser
13y ago
Thanks, you might also like to checkout the underlying query builder library at http://knexjs.org .
17.
▲
Bookshelf.js: An ORM for Node.js with transactions, eager loading, promises
(bookshelfjs.org)
80 points
by
tgriesser
13y ago
|
15 comments
18.
▲
by
tgriesser
14y ago
Promises, with q is my preferred method. https://github.com/kriskowal/q
19.
▲
by
tgriesser
14y ago
Yes - view.remove() calls "stopListening" - so when you use "listenTo" all listeners should be taken care of. This doesn't account for any child-views, or views that don't use .remove(), so you'll need to make sure those are taken care of w
20.
▲
by
tgriesser
14y ago
As recurser mentioned, backbone.js tutorials might be a good idea. I'd also recommend reading the source of backbone.js to see how it works internally. It's around 1500 lines of well written and fully commented javascript, and will probably
21.
▲
by
tgriesser
14y ago
With regards to view cleanup code in Backbone - in the github develop branch [1], the view is now a little more active in its memory cleanup. A dispose() function was recently added which removes any handlers added in the view's 'events' ob
22.
▲
by
tgriesser
14y ago
I recently came across http://amon.cx/ which does a few of the things you mentioned, and it's a one time purchase (with a free basic version) rather than a SaaS. Might be worth taking a look at.
23.
▲
by
tgriesser
14y ago
If you've not done a lot of javascript, then your first priority before considering doing a framework like node.js should be to learn javascript, correctly. Read "Javascript: The Good Parts" and then continue on to any of the recommended bo
24.
▲
by
tgriesser
15y ago
I'm working on something similar to a lot of what you're describing with a custom CMS and the dynamic pushState. I'd be interested in hearing more about your approach. If you want to shoot me an email - tgriesser10 at gmail dot com.
25.
▲
by
tgriesser
15y ago
You can't link to the SaaS purchase directly from the app. If you download Netflix or other services with an app, you will notice there is no option to sign up for the service within the app itself.
26.
▲
by
tgriesser
15y ago
I was thinking the same thing, here's a quick less interpretation i put together of the generator... not sure it's 100% accurate but it should do the job https://gist.github.com/1718640
27.
▲
by
tgriesser
15y ago
I believe it's because cloudflare also acts as the root DNS for the domain, so in order for it to work for google and facebook, they would have to deliberately point their nameservers at cloudflare's DNS.
28.
▲
by
tgriesser
15y ago
Very nice... how long have you been working on it? I'm actually in the process of building an open source backend for a robust form builder as a package for the fuelPHP framework. Not sure if you have any interest in collaborating, but I wa
29.
▲
by
tgriesser
15y ago
https://www.wepay.com/developer/usecases/marketplace
30.
▲
by
tgriesser
15y ago
Was this it? http://listofthingsforsale.com/
More ›