Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sstephenson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
sstephenson
15y ago
All of the above. On the app level, each fragment of markup is free of user-specific data so all users can share the same cache. (User-specific concerns are pushed down into JavaScript and CSS.) Those cache fragments are then nested, so we
32.
▲
by
sstephenson
15y ago
Eric, our plans have changed and we're no longer working on Cinco.
33.
▲
by
sstephenson
15y ago
Rest assured, you can cmd-click everything!
34.
▲
by
sstephenson
15y ago
Basecamp Next's speed comes from the combination of an aggressively cacheable design and HTML 5 pushState.
35.
▲
by
sstephenson
15y ago
Very cool! If you added a Twostroke adapter to ExecJS ( https://github.com/sstephenson/execjs ), the ruby-coffee-script gem would work without modification.
36.
▲
by
sstephenson
15y ago
Wow, I really like the literate style. Great stuff.
37.
▲
by
sstephenson
15y ago
If you structure your program in a certain way, there's no need to distinguish between procedures and commands. See git and rbenv, which expose a single meta-command to your $PATH but are comprised internally of many smaller commands that i
38.
▲
by
sstephenson
15y ago
Bats isn't a port of anything, and sometimes Bash is the right tool for the job. I maintain two other projects written in Bash (rbenv and ruby-build). I looked, and couldn't find any suitable testing tools for Bash, so I created Bats. My cr
39.
▲
Bats: TAP-compatible testing for Bash
(github.com)
41 points
by
sstephenson
15y ago
|
13 comments
40.
▲
Rbenv 0.2.0 released (changelog)
(github.com)
2 points
by
sstephenson
15y ago
|
0 comments
41.
▲
by
sstephenson
15y ago
Sprockets includes Jammit-inspired JST support. You can use it with either EJS or Eco templates. See the "JavaScript Templating" section of the readme: https://github.com/sstephenson/sprockets#readme You can even write your own JST templa
42.
▲
by
sstephenson
15y ago
Sprockets provides the basis for Rails 3.1's asset pipeline. For a look back in time, see the Hacker News thread for Sprockets 1.0, from two and a half years ago: http://news.ycombinator.com/item?id=487601 Some alternatives include the ve
43.
▲
Sprockets 2.0.0 released (Ruby/Rack asset packaging)
(github.com)
39 points
by
sstephenson
15y ago
|
7 comments
44.
▲
by
sstephenson
15y ago
`ls -l /usr/bin | wc -l` reports 1085 entries on my machine. Meanwhile, I have 40 entries in my ~/.rbenv/shims directory. I think the shell can handle it.
45.
▲
by
sstephenson
15y ago
By using a shim approach, like rbenv. 1. Maintain a directory of shim binaries with the same name as every Ruby binary (ruby, irb, rake, gem, etc). 2. Put the shim directory at the front of your $PATH. 3. When a shim is run (as in typing `r
46.
▲
by
sstephenson
15y ago
Which is exactly why it's a terrible idea. There is no "super" mechanism in Bash. Imagine if the Perl, Python and Node equivalents of rvm overrode cd -- they'd all have to be aware of each other's existence in order to play together nicely.
47.
▲
by
sstephenson
15y ago
>> "But guess what: competition sucks. Cooperation is much better. One of the biggest problems with competition is that it means that somebody has to lose. For every winner, someone is a loser. That person is going to be hurting.
48.
▲
by
sstephenson
15y ago
That's the goal, and that's why rbenv does not perform compilation/installation at all (there's a separate ruby-build project for that: https://github.com/sstephenson/ruby-build ).
49.
▲
by
sstephenson
15y ago
The main use case is for specifying per-application Ruby version dependencies. For example, at 37signals, most of our apps run on REE, but our new apps run on 1.9.x, and we're gradually moving everything to 1.9. When you have multiple peopl
50.
▲
by
sstephenson
15y ago
An official release with a web site and improved installation process should be out next week. If you're wondering "why would I use this instead of rvm?" be sure to read the readme: https://github.com/sstephenson/rbenv#readme
51.
▲
by
sstephenson
15y ago
That's a good idea... ruby-build could provide an `rbenv-install` plugin command for rbenv.
52.
▲
by
sstephenson
15y ago
The latest Sprockets beta has JST support, heavily inspired by Jammit's approach. Load either the ejs or eco gem in your app, then put a "foo.jst.ejs" or "foo.jst.eco" in your load path. Require it from JS and you'll be able to access the c
53.
▲
by
sstephenson
15y ago
As the creator of both Sprockets, which underlies Rails 3.1's asset pipeline, and Stitch, which the poster of this article ported beautifully from Node.js to Ruby, I feel obligated to reply here :) While CommonJS modules are undeniably eleg
54.
▲
by
sstephenson
15y ago
My goal is to prevent the spread of misinformation by example and help developers understand how to choose the right tool for the job. I can't believe I'm posting this, but are you genuinely suggesting that contributing a patch to an open-s
55.
▲
by
sstephenson
15y ago
The issue isn't size, it's technique. Generating a small static HTML page from a JSON object using a multitude of JS libraries is overkill and degrades poorly. Not to mention all the other issues it causes: http://news.ycombinator.com/item
56.
▲
by
sstephenson
15y ago
Nope. Maybe once JRuby supports select() properly.
57.
▲
by
sstephenson
15y ago
New in this version: improved installation and uninstallation scripts, better error pages when things go wrong, support for default virtual hosts, and support for Rack application reloading with tmp/always_restart.txt. See the full changelo
58.
▲
Pow 0.3.0 released (Zero-config Rack server for OS X)
(pow.cx)
44 points
by
sstephenson
15y ago
|
5 comments
59.
▲
by
sstephenson
16y ago
The coffee-script gem ( https://github.com/josh/ruby-coffee-script ) uses ExecJS ( https://github.com/sstephenson/execjs ) to invoke the CS compiler. Rails 3.1's asset pipelining system will use these gems by way of Sprockets 2 ( https://gi
60.
▲
by
sstephenson
16y ago
No hard feelings. I respect you and your work. Just trying to have a little fun and hopefully get people thinking.
More ›