サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
weblog.jamisbuck.org
This week I stumbled across a rather esoteric feature of Ruby, but one that actually proved really, really useful with something I’m doing for a client of mine. The feature? Proc#parameters. From the Ruby docs: prc = lambda{|x, y=42, *other|} prc.parameters #=> [[:req, :x], [:opt, :y], [:rest, :other]] Since I don’t yet have permission from my client to share the actual code I wrote, I’ll demonstr
9 November 2008 — Play-Doh and LEGO are compared and constrasted, and then put forward as a metaphor for comparing Ruby and Java. The reader is encouraged to embrace the strengths of each environment — 18-minute read This article is based on a talk I gave at the 2008 RubyConf in Orlando, Florida, entitled “Recovering from Enterprise: how to embrace Ruby’s idioms and say goodbye to bad habits”. The
The maze book for programmers! mazesforprogrammers.com Algorithms, circle mazes, hex grids, masking, weaving, braiding, 3D and 4D grids, spheres, and more! DRM-Free Ebook (Hello Minecrafters! Looking for random mazes you can build in Minecraft? Try this page I wrote. It’ll give you block-wise schematics for the maze, and will require less mental translation than the demos here.) Update (Sep 2015):
It is with mixed emotions that I announce two things this evening. First, I’m announcing the final release of both Net::SSH (2.0.11) and Capistrano (2.5.5). Both are minor changes: Net::SSH 2.0.11 adds support for a :key_data option, so you can supply raw PEM-formatted key data. Capistrano 2.5.5 enhances the role() method so you can now declare empty roles. Either way, not much to get excited abou
The maze book for programmers! mazesforprogrammers.com Algorithms, circle mazes, hex grids, masking, weaving, braiding, 3D and 4D grids, spheres, and more! DRM-Free Ebook I cringe whenever I remember those days, three years ago, when I was in the middle of a big Java project at BYU and was learning the ins-and-outs of dependency injection. For Java (and similarly constrained languages), DI is a te
The maze book for programmers! mazesforprogrammers.com Algorithms, circle mazes, hex grids, masking, weaving, braiding, 3D and 4D grids, spheres, and more! DRM-Free Ebook Over three years ago, I was faced with a dilemma. I had recently switched to the Mac (from Linux) and was still using my text editor of choice (vim), but at the time, vim’s “integration” with OS X was pretty minimal (and that’s p
The maze book for programmers! mazesforprogrammers.com Algorithms, circle mazes, hex grids, masking, weaving, braiding, 3D and 4D grids, spheres, and more! DRM-Free Ebook On February 16 I set myself to travel a path that I hoped would eventually help me deal with the project overload I was feeling. Today I get to release Capistrano 2.3, which is very near to the end of that path! gem install capis
18 October 2006 — The "Fat Controller" anti-pattern is shown and dissected, and the reader is taken through the process of refactoring it into a more readable, maintainable, and testable solution — 5-minute read When first getting started with Rails, it is tempting to shove lots of logic in the view. I’ll admit that I was guilty of writing more than one template like the following during my Rails
After a much larger delay than I would have liked, Capistrano 2.1 is now available! There is a lot going on in this release, including some pretty exciting changes. As ever, install it via RubyGems with: Here’s what’s new, roughly in order of magnitude: No default PTY. Prior to 2.1, Capistrano would request a pseudo-tty for each command that it executed. This had the side-effect of causing the pro
Some have long wanted a built-in way to support multiple-stages in Capistrano. I’ve been pushing back with the statement that it is easy enough to do in Capistrano manually. Still, I finally compromised and added a “multistage” component to the “capistrano-ext” plugin. You want staging support? Just “gem install capistrano-ext” and then:
The maze book for programmers! mazesforprogrammers.com Algorithms, circle mazes, hex grids, masking, weaving, braiding, 3D and 4D grids, spheres, and more! DRM-Free Ebook
Net::SSH is a pure-Ruby implementation of an SSH (v2) client. It can be used to execute tasks on and forward connections to and from remote hosts via SSH. You can grab version 1.1.0 now via RubyGems: gem install net-ssh Or, you can grab a package via the project’s page at RubyForge. Version 1.1.0 has three significant changes from the previous release: A script that implements a subset of the ssh-
Integration Testing in Rails 1.1 Posted by Jamis on March 08, 2006 @ 10:36 PM Integration tests are a new feature of Rails 1.1 that take testing your applications to a new level. They are the next logical progression in the existing series of available tests: Unit tests are very narrowly focused on testing a single model Functional tests are very narrowly focused on testing a single constroller a
So, there are you. Logged into one of your production machines, staring at a rogue Ruby process, and wondering why it has been running away with 90% of the CPU for the last half hour. Sure, you can kill it, but you’d really like to know why it is stuck there. This isn’t the first time you’ve noticed this problem, and you’re getting a little tired of manually patching things up. But how do you figu
The maze book for programmers! mazesforprogrammers.com Algorithms, circle mazes, hex grids, masking, weaving, braiding, 3D and 4D grids, spheres, and more! DRM-Free Ebook A week or so ago I posted a throw-away tweet with an idea that (I’m sure) is neither original, nor worthy of actually spending time on: Party game idea. Each person randomly kills processes on their laptop. Last person standing w
このページを最初にブックマークしてみませんか?
『The Buckblog』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く