Better HN
topnewbestaskshowjobs
Log inSign up

ryanfitz

386 karma · joined Jul 21, 2009 (17y ago) · 112 submissions

http://github.com/ryanfitz
Submissions

comment 14y ago · link · parent

This would be great if it could also generate javascript code to run the app (backbone.js, angular...) then you could plug that into calling your backend.

comment 14y ago · link · parent

I liked the design of their pages so I went to look at the source and noticed every page is wrapped in a top level form tag, can someone explain why they would do this?

comment 14y ago · link · parent

quickly looking at the bootstrap javascript they are making calls to $().offset which also doesn't work for hidden elements, so yes were talking about the same thing.

comment 14y ago · link · parent

The biggest issue I run into with plugins and backbone is ones that rely on jquery position. The position api needs to be called after the element is attached to the dom and is not hidden. I like to encapsulate all the view logic within the view, but nothing alerts you to when the element has been attached and is no longer hidden. Typically I'll fire off an event in the router or parent view to then enable the plugin.

comment 14y ago · link · parent

I was confused by what the different colored triangles meant, at first I thought it was perhaps some sort of build status indicator. Adding a key about the different colors might be nice to have.

comment 14y ago · link · parent

Looks like we are building a very similar node.js client for dynamo. https://github.com/Wantworthy/dynode

comment 14y ago · link · parent

When I am trying out/learning a new library or framework, I do a lot of tinkering, looking around and reading the source code. Coffeescript output is definitely readable, but you need to take a tiny bit of time to translate the coffeescript output, to the actual source so you can read it, checkout the comments etc to understand how you are supposed to do something. This added bit of time adds up quickly for me.

For example when I was first learning backbone, which is only around 1000 lines and very well documented. I was constantly reading the source code to understand why something wasn't working for me or how to implement something. Projects typically aren't nearly as well documented as backbone, making understanding the sourcecode even more essential.

comment 14y ago · link · parent

I would avoid even trying this framework out because its written in coffeescript. I have nothing against cs and write most of my clientside app code in cs, but I think libraries should avoid using it. Simply because it makes debugging more complicated. It adds in an extra step or 2 every time you see a js error, you need to read the compiled code and then figure out where that is actually coming from, from an unknown codebase (your framework/lib).

comment 14y ago · link · parent

I'm the author of that gem. My goal with it is to really just help people get up and running with rails & backbone as quickly as possible. There are no best practices built in and I try to avoid adding any extra features that aren't needed for getting started. I'm sure you could use rails-backbone to help get off the ground and then read over the snippets from backbone-boilerplate to see where to go from there.

comment 14y ago · link · parent

I'm not from Bocoup, but I want something like this to build, test, deploy the client portion of my apps and then proxy api calls to backend services.

comment 14y ago · link · parent

Me saying "mock startup" was probably a bad term to use, plus I'm probably missing the use case of hacker school. What I really meant was to work on something larger scale as a team. For an example make a clone of hn or reddit, do a web app and mobile, maybe even build multiple versions in different languages.

From Dave and Nick's reply it sounds like they tried something along those lines, but learned that people got a lot more value out of working on a number of various smaller sized projects, which is great.

comment 14y ago · link · parent

What about having your students develop and launch a mock startup? Building small apps and going over books is great, but I think students can learn a lot more real world dev by actually doing it. You can still emphasize code quality, agile practices, working together on a team, etc. Put up everything on github and as they develop the startup make sure they are contributing back to whatever open source software they are using.

Im assuming most of your students are interested in working for startups so giving them a mock startup experience would be a plus for them and also for the startups they eventually work for.

comment 14y ago · link · parent

If you're using rails you can try out my gem which will (hopefully) help you get started with backbone + rails.

https://github.com/codebrew/backbone-rails

comment 15y ago · link · parent

This is the first I've heard of OpenShift, from the sounds of it there are a set list of applications/languages you can use on the platform? Are there any plans for node.js support?

comment 15y ago · link · parent

I have yet to migrate off of IndexTank, but I've heard good things about elasticsearch and am going to be giving it a try once time permits.

Has it been officially stated that indextank will be shutdown anytime soon?

comment 15y ago · link · parent

If you're interested in dnode you should also check out hook.io https://github.com/hookio/hook.io

It uses dnode to essentially let you build an auto-discovering message bus. I recently started using it and so far its been an amazing way to build up small independent services. With almost zero configuration the services can boot up and start talking to each other. It even works in the browser.

comment 15y ago · link · parent

Blogging is something I've tried to do a few times, but have never stuck with it. I bought this book the other day, during the pragprog sale. I'm really looking forward to reading it and hoping it will teach/inspire me to give tech blogging an honest try.

comment 15y ago · link · parent

In the past year I've dropped 40lbs of fat and have put on a good amount of muscle. For my goals, which are fat loss and lift as much weight as possible, Id say I've hacked my nutrition pretty well. Instead of limiting how much I eat, I limit the ingredients I eat. For 6 day out of the week I'll only eat red meat, chicken, fish, sweet potatoes, broccoli, natural peanut butter and ezekiel bread. I keep it high protein, typically around 50-60% protein, then fats and carbs make up the rest. I don't count calories, if I get hungry I eat and just make sure I'm eating more protein than fats or carbs. 1 day out of the week I have a massive cheat day, eat anything and everything. If you do this right, you'll feel sick by the end of the day. The cheat day is great because it gives you something to reward yourself with every week, this greatly helps me eat clean during the week, knowing that I can reward myself in a few days if I stick with it.

comment 15y ago · link · parent

Looking at that listing the more amazing stat is that twitter bootstrap is #3. That was just released a few months ago and is "simply" an html ui framework. I think this highlights that over anything else, what most developers really need is a solid web ui to get started with.

comment 15y ago · link · parent

I really enjoyed this review, it came off very honest and you didn't try to be very pro or con, just what you ran into over the past year.

You mention no reasonable Scala client exists, why not create and release your own? I know Riak talks about offering fulltext search, but one thing I've learned over the years is using a specifically designed search engine (such as lucene/solr/indextank) is typically far more performant/scalable plus easier to implement then a generic datastore. I've never used riak for search so I have a few questions. Did you ever attempt to use a different datastore for search? If you did, at first did riak perform just as well, if not why not?

comment 15y ago · link · parent

Browse around github for projects that involve whatever concept you want to learn. Study the source code and attempt to add new features or make some sort of change. As an example if you want to learn less/css look at twitter bootstrap, for javascript check out underscore.js

comment 15y ago · link · parent

I just updated the backbone-rails readme to reflect that it uses backbone.js 0.5.3

comment 15y ago · link · parent

I'm the author of backbone-rails, one of the main differences that I see is I provide a Backbone.sync method that plays nicely with rails conventions of namespacing your put/post params by model name. It also adds csrf-token to the header in the request for you.

However, I think both of our projects are mainly just about helping users learn how to use backbone.js with rails. I try to balance the pull requests I accept based on usefulness vs will this actually help or confuse a new user trying to get started with rails and backbone. Use either one that makes more sense to you, as long as we helped some users get started with backbone and rails then I think we did our job.

comment 15y ago · link · parent

I think MongoDB's biggest problem is people expect mongo to take care of all their scalability issues for them. In reality once you start hitting a certain scale you need to start rearchitecting your system, no datastore can automatically handle this for you, but perhaps mongoDB let you get a little bit bigger before this became a big issue.

comment 15y ago · link · parent

some of the kindle product pages have a specific section mentioning the borrow feature. For example http://www.amazon.com/Fast-Food-Nation-ebook/dp/B003G83UI2/r...

However I don't see this on most of the kindle pages, so I assumed it was only available for specific books.

comment 15y ago · link · parent

is there an easy way to see or search for books that are available for this?

comment 15y ago · link · parent

Made to Stick: Why Some Ideas Survive and Others Die.

comment 15y ago · link · parent

I was recently at a sproutcore meetup where Yehuda Katz presented and mentioned one of the reasons he suggests using Coffeescript is because it can (as in now or in the future) generate more efficient javascript code than the typical javascript developer will write.

comment 15y ago · link · parent

backbone.js http://documentcloud.github.com/backbone

comment 15y ago · link · parent

The title might be a bit misleading, I thought this was going to be something where I could hook into your api and I could build something fun. Instead it seems to be more of an interview questions style challenge.
1234