HNHacker News
TopNewBestAskShowJobs

carbon8

1,261 karma · joined October 30, 2008

submissionscomments
carbon8··on Ask HN: Learning Ruby on Rails
Guides:

http://guides.rubyonrails.org/

http://asciicasts.com/ (text versions of the railscasts mentioned below)

Screencasts:

http://rubyonrails.org/screencasts

http://railscasts.com/

Books:

http://www.pragprog.com/titles/rails3/agile-web-development-...

http://www.pragprog.com/titles/fr_arr/advanced-rails-recipes

And others in the Ruby and Ruby on Rails sections at prag progammers: http://www.pragprog.com/categories

The "pickaxe book" (http://www.pragprog.com/titles/ruby/programming-ruby) is often considered the standard Ruby reference, and there is a version for 1.9.

API:

http://railsapi.com/

http://api.rubyonrails.org/

http://www.gotapi.com/rubyrails

Conference presentations:

http://www.confreaks.com/events

Ruby and Rails projects are abundant on github, providing lots of example code.

carbon8··on MacRuby 0.5 beta 2 is out.
I don't know much about MacRuby, but as I understand it, it should be possible to port it to linux. See "what is it not?" and the second comment here: http://merbist.com/2009/05/27/macruby-changing-the-ruby-ecos...
carbon8··on Why Wine Ratings Are Badly Flawed
"I was saying that I couldn't taste the difference and according to the article, many other people can't either."

This isn't what the article is talking about. The article is arguing that subjective, linear wine ranking is faulty, that preferences are not objective or static, that it's difficult to distinguish between similar wines and that identifying individual flavors and scents (eg, "lavender, roasted herbs") are tied to the taster's imagination.

If you can tell the difference between grapefruit juice and orange juice, you can tell the difference between a gabbiano, a monticello rioja and a generic merlot. They taste dramatically different and you can't give a merlot to someone who knows what chianti tastes like and have them believe it's a chianti. Different varietals have very distinct flavors.

And when it comes to quality, there is a much, much more significant difference between a poorly stored, very low-quality wine and a mainstream ~$10/bottle wine than there is between a $20/bottle wine and a $100/bottle wine. After all, a number of the pricer wines would be simply $20/bottle if it weren't for the ratings systems critiqued by the article.

carbon8··on Why Wine Ratings Are Badly Flawed
Well, there's a big difference between the issue of wine rating silliness and the wide variety of flavor you'll find in wine. A $10 bottle of gabbiano tastes almost nothing like a $10 bottle of monticello rioja and neither will taste anything like your jug of wine. Saying they taste the same is like to saying orange juice tastes the same as lemon juice, and that both taste the same as grapefruit juice.
carbon8··on Maybe it's time for personal servers?
Getting a vps for $8-$20/mo from linode, slicehost, prgmr, webbynode, rackspace cloud or any other vps provider is so much easier than dealing with a machine at your home.
carbon8··on Is Vendor Lock-In Really a Bad Thing?
"knowing that in the near future I'm jumping to an open platform as quickly as possible"

Assuming that's even possible or realistic, which it often isn't in markets dominated by a single vendor. Supporting vendor lock-in, particularly as a developer, makes it harder for open alternatives to exist. It's common for a single vendor to dominate a market for years. The future of jumping to an open platform could simply never come to pass.

carbon8··on Python language moratorium is accepted
Why's that?
carbon8··on Plowing Detroit Into Farmland
Yeah, the transition to Grosse Pointe is dramatic. You can see it clearly on gmaps: http://maps.google.com/maps?t=h&q=42.390833,-82.911389&#... As you go down jefferson ave to the northeast it goes from vacant lots to a couple blocks of small homes to one of the wealthiest areas in the midwest. Along the river is even more dramatic: http://maps.google.com/maps?t=h&q=42.390833,-82.911389&#...
carbon8··on Parsing HTML in Python with BeautifulSoup
Ruby has two popular HTML parsers, Nokogiri and Hpricot, both of which are awesome and fast.
carbon8··on Thank you, Rails
Sinatra is widely used and becoming pretty ubiquitous. It's supplanting camping, which was also relatively widely used, but not nearly as much as sinatra.

The Merb/Rails merge reveals some reasons why there aren't a lot of widely used Ruby frameworks, and I'd say it's mostly a large scale manifestation of DRY, combined with the maturity and wealth of features in the Rails codebase and the fact that most of the changes devs would like to see in Rails are already going into it.

carbon8··on Thank you, Rails
Yeah, friendly with django users, which is nice if that's all you are. The problem, however, is what he mentions in the post: "I’ve noticed the tone of the arguments in the Django community getting nastier — especially when it comes to Rails." Hopefully the ideas in this post catch on and I'm glad a prominent Django developer is calling it out.

I mentioned Ian Bicking's great talk at this year's PyCon elsewhere in these comments, but another thing he touched on was framework fanboyism, and how it's mainly the result of people being new to the framework and trying to convince themselves that it's the answer to everything. Whether it's Django or Rails or any other technology, excitement is good, but not when it becomes tribal and adversarial toward perceived competitors.

carbon8··on Thank you, Rails
Rails borrows plenty from django and python at large. Merb's slices and Rails' engines were directly inspired by Django's apps. Rails is getting automatic escaping of strings in templates after Django showed it was a better default. Rack was directly inspired by WSGI. Rip is based on pip. Rails developers aren't "keeping blinders on." Exactly the opposite.
carbon8··on Thank you, Rails
Yup. Ian Bicking talked specifically about this at pycon last year.
carbon8··on AJAX PHPMyAdmin Alternative
There's always Sequel Pro (the successor of CocoaMySQL): http://www.sequelpro.com/
carbon8··on Major bug in Snow Leopard deletes all user data
Whether it does or not doesn't change the fact that pro-microsoft sites and, apparently, microsoft employees are trying to deflect attention from the sidekick incident by digging up and publicizing an obscure bug in OS X. Crying "b..b..b..but Apple!" when faced with bad press rather than owning what happened might make microsoft fans feel better, but at the price of further alienating developers who see through the transparent charade.
carbon8··on Major bug in Snow Leopard deletes all user data
Hence why this weeks-old news is suddenly being pushed by decidedly pro-microsoft sites like neowin today.
carbon8··on The unsolved Macbook Melted Key Mystery
Optical drive and/or subwoofer.
carbon8··on Ask HN: Rails App takes 800ms to respond on a VPS. Will dedicated server help?
It doesn't sound like the problem is a VPS or specifically a Rails problem. 800ms is a lot, and 300-400ms for a view with fragment caching is a lot. I have a completely unoptimized app in development with 20-item paginated lists of partials containing partials running on a VPS (linode) that renders the uncached view in 130ms. And this is with Haml, which is slower than erb, especially for nested partials.

I don't know what could cause the slow-down off the top of my head. Are there slow helpers? Also, IIRC, iterating over a collection to render each partial is slower than using render :partial => @collection.

carbon8··on [dead]
My reaction is also that it's premature, but your comment is simply not true. There are many people arguing that it's deserved, from commentators like Andrew Sullivan to the figures cited in the international reaction pages of both the NYTimes and Le Monde. Furthermore, "ALL the media from left to middle to right" and your choice of publications to cite betrays a very US/anglocentric view of "ALL the media."
carbon8··on So You're Moving to San Francisco
"safest big American city I've been in."

As a life-long Chicagoan I still find it incredibly strange that people believe Chicago is safe. It has a very high crime rate, double NYC in every category.

carbon8··on So You're Moving to San Francisco
What's your neighborhood? Which other areas are good?
carbon8··on I don't like you very much
My understanding is that you need to be very careful about saying anything negative at all in a reference since it opens you up to a potential defamation lawsuit, and that it's therefore prudent to either give a positive reference or none at all.
carbon8··on Why are the Russians so good at chess?
Upon review it looks like it might only be shifted 1 older or possibly the same, but it's unclear. Russian education apparently starts a year later than in the US and, until the 90s(?), ended/still ends(?) a year earlier and, as you noted, didn't/still doesn't(?) include a 4th grade. The presentation from 2000 on Russian math education I linked to also states that "number 4 is usually omitted" and that the system "has been in the state of permanent reorganization." Thus, it's not entirely clear to me how the grades match up, so sentence excised.
carbon8··on Why are the Russians so good at chess?
Not according to this: http://www.emis.de/projects/Ref/doc_ems_pdf/EMS_NATIONAL_PRE...

"Traditionally, in grades 7–9 mathematics comprises 2 school subjects, geometry and algebra that are taught in parallel (e.g., 2 hours per week for geometry, and 3 hours for algebra). In the senior school [16-17 years old], also two subjects are taught, geometry and algebra and elements of calculus. In grades 5 and 6 (and in primary school) we have a united course of mathematics."

For comparison, the US high school math curriculum (for students 14-18 years old) is generally algebra, geometry, precalculus/trigonometry and calculus, although students can still graduate with just algebra and geometry.

That said, I don't doubt that there is a cultural and educational emphasis on math in Russia.

carbon8··on Django gaining or Rails waning?
"Daily Unique Visitors" is what the graph claims to show.
carbon8··on Django gaining or Rails waning?
springsource.org. framework website, not season.
carbon8··on Django gaining or Rails waning?
That might be relevant if it actually reflected jobs available, but it doesn't, not even remotely (see my comments here for numbers: http://news.ycombinator.com/item?id=805931)

Note also that according to the trends graph, djangoproject's visitors have also been steadily declining over the past year.

carbon8··on Django gaining or Rails waning?
Spring gaining or Django waning? http://trends.google.com/websites?q=djangoproject.com%2C+spr...

Really, HN should be above this inanity.

carbon8··on Sinatra - Hyper Fast Mini Webapp Development in Ruby
There are responses from dkubb and wycats, and the conversation shows it's not that simple and that there are other perspectives, as is often the case.
carbon8··on How PHP became such a huge success - Talk with Rasmus Lerdorf
"Everywhere I look ... they are most often told to learn Python ... in most corners of the programming world ... recommending Python"

Combined with

"Ruby's too trendy"

There's that cognitive dissonance again.

← PreviousPage 7 of 15Next →