Rails: August 2007 Archives

Comparing flog scores of the upcoming Vlad 1.1 + dependencies to capistrano + dependencies:

vlad  = 801.703121839339 + 2852.62383908144
cap   = 11480.3919695285
ratio = cap / vlad
      = 3.141588613252   # <-- zomg! look here!!!

ratio - Math::PI
= -4.04033779499713e-06

target = cap / Math::PI
= 3654.32226116592

target - vlad
= -0.00469975485839313

EDIT: Cleaned up for the terminally ADD. You'd think arithmetic was hard...

ADDED: From Wilson:

"What I'm seeing here is that the endless cycle of creation and destruction cried out for a hero... and Vlad answered the call"

Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.

% ./bin/flog bin/flog
Total score = 128.7

Flog#report: (21)
     4: puts
     2: sort_by
...

Changes:

  • 3 major enhancements:
    • Added assignments and branches and a lot of other stuff. rad.
    • Added process_iter section for DSL style blocks (rake tasks etc).
    • Made Flog usable as a library.
  • 12 minor enhancements:
    • Added -a flag to turn off threshold culling for other tools.
    • Added -s for summarizing the score.
    • Added -v feedback to know what file you're flogging.
    • Added branching penalty so tons of nested conditionals get beat down.
    • Added send (3).
    • Capture and ignore SyntaxErrors from template/generator code. Stupid DHH.
    • Report can now take an IO object.
    • blockargs now penalizes all non-benign forms of blockpass.
    • Added usage to bin/flog. Moved -I processing to bin/flog.
    • Added unpack.rb and updatescores.rb at base level (not installed)
    • Added scoring for blockpass.
    • Converted totals to use distance formula on ABC's.
  • 3 bug fixes:

    • Ran flog on every latest gem available. Found a bunch of problems.
    • Use a stack for both class/module and method accounting.
    • block_args weren't processing the arg
  • http://ruby.sadi.st/

  • http://rubyforge.org/projects/seattlerb

"The Ruby Hit Squad has been activated"... that was the message I sent people, and less than 2 weeks later, it happened.

From Saturday, August 4th to Tuesday, August 7th, the Ruby Hit Squad was in full effect. We flew in the prodigious Wilson Bilkovich from Florida, holed ourselves up, and 4 days later we had an all but polished product: Vlad the Deployer.

Severely tired, it took a little while to get the last of it polished off, but we finally got Vlad out the door. We did 94 commits in the first 4 days, and another 42 following to get the release polished up and out the door. It is probably the best that Eric or I have done wrt spit and polish on a 1.0 release, with impl, tests, a fairly complete website, and rdoc. I'm quite happy with it.

I had sooo much fun doing this. I hope that the hit squad can be activated again soon... Right after my nap.

Vlad the Deployer is pragmatic application deployment automation, without mercy. Much like Capistrano, but with 1/10th the complexity. Vlad integrates seamlessly with Rake, and uses familiar and standard tools like ssh and rsync.

Impale your application on the heartless spike of the Deployer.

FEATURES/PROBLEMS:

  • Full deployment automation stack.
  • Supports single server deployment with just 4 variables defined.
  • Very few dependencies. All simple.
  • Uses ssh with your ssh settings already in place.
  • Uses rsync for efficient transfers.
  • Run remote commands on one or more servers.
  • Syncs files to one or more servers.
  • Mix and match local and remote tasks.
  • Built on rake. easy.
  • Compatible with all of your tab completion shell script rake-tastic goodness.
  • Ships with tests that actually pass.
  • Engine is under 500 lines of code.
  • Super uper simple.
  • Does NOT support Windows right now. Coming soon in 1.1.
  • This is 1.0.0... expect rough edges.

Changes:

1.0.0 / 2007-08-04

Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.

% ./bin/flog bin/flog
Total score = 128.7

Flog#report: (21)
     4: puts
     2: sort_by
...

Changes:

Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.

% ./bin/flog bin/flog
Total score = 128.7

Flog#report: (21)
     4: puts
     2: sort_by
...

Changes:

Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.

% ./bin/flog bin/flog
Total score = 128.7

Flog#report: (21)
     4: puts
     2: sort_by
...

Changes:

1.0.0 / 2007-08-01

About this Archive

This page is a archive of entries in the Rails category from August 2007.

Rails: July 2007 is the previous archive.

Rails: September 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1