Better HN
topnewbestaskshowjobs
Log inSign up

alexch

21 karma · joined Sep 2, 2009 (17y ago) · 9 submissions

http://alexchaffee.com http://codelikethis.com
Submissions

comment 12y ago · link · parent

RubyMine is pretty damn good, especially because you can immediately jump to the source code, even of libraries, and just read the list of available methods. It's amazing to me how completely Dwarf Fortress -- um, I mean vim and tmux -- has conquered the Ruby dev world.

comment 12y ago · link · parent

RubyMine FTW. It's amazing to me how completely Dwarf Fortress -- um, I mean vim and tmux -- have conquered the Ruby dev world.

comment 13y ago · link · parent

My analysis: layering. YAML doesn't in itself execute untrusted code, but it has a bunch of semi-experimental features most people don't know about or use, and one of those features (deserializing arbitrary classes) has a side effect that sets values on certain other classes -- not written by the people who wrote the YAML parser -- that then, often later on in their lifecycle, execute this untrusted code. I'm not saying this as an excuse -- I have long mistrusted YAML's blasé complexity, not to mention Rails' anarchic pass-HTTP-params-directly-into-the-DB pattern -- but as an explanation of how they missed it.

Also, more than other communities, Ruby has a cultural gap between the people developing the language and core libraries and the people using it to write web apps and frameworks.

Here's two good technical writeups of the exploit as it applies to Rails apps: http://blog.codeclimate.com/blog/2013/01/10/rails-remote-cod... http://ronin-ruby.github.com/blog/2013/01/09/rails-pocs.html

4.

Fonzie: a bookmarklet that will identify any font on any webpage(alexch.github.com ↗)

1 points · by alexch · 15y ago · discuss

comment 16y ago · link · parent

If you’ve ever used the iPad or iPhone, you’ve probably noticed the absence of scrollbars. They don’t exist! Mobile Safari lets you "scroll" the entire page by sliding your finger around, but all other scrollbars are simply discarded. Essentially, we needed to reinvent the native iPad/iPhone scrolling, flicking, and bounceback behavior in JavaScript. Here's how we did it.

6.

Reinventing The iPad(blog.cohuman.com ↗)

2 points · by alexch · 16y ago · 1 comment

comment 17y ago · link · parent

Erector is a "builder pattern" view framework, inspired by Why's Markaby. In Erector all views are objects, not template files, which allows the full power of object-oriented programming (inheritance, modular decomposition, encapsulation) in views.

8.

Erector: Views In Ruby For Ruby(erector.rubyforge.org ↗)

1 points · by alexch · 17y ago · 1 comment