06 September 2010

The Ruby Reflector

Topic

LOC

  Source Favicon
By Ilya Grigorik of igvita.com 4 months ago.
Email

…directly to Beanstalk, all the traffic is routed through our custom em-proxy (~150 LOC) which parses the Beanstalk protocol, intercepts custom commands, or simply inspects the "delay" parameter, and decides where the job should be routed: beanstalk or the MySQL instance. Jobs that are scheduled at least one hour into the future are persisted into the database, which significantly reduces the memory footprint. Finally, in the background, the upcoming jobs are silently loaded into …

igvita.com Read
  Source Favicon
By Loren Segal of gnuu.org 5 months ago.
Email

…...). Patterns are still patterns whether you acknowledge them or not, and they are not defined by the LOC or number of classes they require in language X. I mean, come on, Rails used to have " MVC" and " ActiveRecord" plastered on the website to sell its new web development technique, two patterns ripped right out of P of EAA . Now MVC is a household name. Rails is the ultimate testament that a pattern can be simple to implement in a simple language. Refusing …

gnuu.org Read
  Source Favicon
By Christian Neukirchen of chris blogs 6 months ago.
Email

…to 2010!

I won't promise to blog more here now, but at least I'm not blocked by some old software I need to save from bit-rot.

Some trivia on the fork: It went down from 172 LoC to 162 LoC, 65 insertions/73 deletions, which proves my point that every blog has special needs and thus a custom script is worth it. Keeping backwards compatibility (no significant link should be broken) added lots of complexity.

NP: Princeton—Shout It Out

chneukirchen.org Read
  Source Favicon
By Trevor Turk of Trevor Turk 7 months ago.
Email

S3 account and you're ready to get started with a web-based jukebox for you and your friends for free .

http://github.com/trevorturk/kzak

Anyway, please feel free to dig around the source code if you're interested in any of this. I think there's a lot of good stuff in there, especially considering that the Ruby portion of the app is clocking in at under ~250 LOC right now. Thanks, open source community ;)

almosteffortless.com Read
  Source Favicon
By Joey of Global Nerdy 7 months ago.
Email

Consider one of the old stand-by metrics: LOC (lines of code)

It's not an indicator of quality

Nor is it an indicator of completeness

Another problem: Estimation is difficult

Programmers, by nature, are optimists

You have to be and optimist to do this kind of work! You wouldn't be able if you weren't

"I think rational people could not do programming"

As a result, we're probably the least qualified people to do estimating

What doesn't …

globalnerdy.com Read
  Source Favicon
By hcatlin of Hampton Catlin - Home 8 months ago.
Email

…a business then it's interesting how you can handle systems with uncountable LOC without changing behaviour at the other end. But forgive me I forgot that you know your software..right. You are the only one who will ever read your code..sure. It's written in stone,that have to be the ultimate truth and will never ever change..sure,sure.

You are that bitch who's putting the shit together and I'am that guy who have to fix it because it never runs like it should. You use …

blog.hamptoncatlin.com Read
  Source Favicon
On Josh Owens is a Rails Freak 8 months ago.
Email

…experience on why false passing tests are bad. At change:healthcare we have 19,000 LOC with a 1:2.5 code to test ratio - that doesn't include our custom plugin across shared apps. Even with a full six months of working on the app, doing a major overhaul of the system can be problematic if you don't have good tests. How can you be 100% confident of rolling out your new code when you haven't seen and touched 100% of the app?

At change:healthcare we rely on a robust …

railsfreak.com Read
  Source Favicon
By dc.rec1 of Diego Carrion 11 months ago.
Email

…but just in case, looking at the code is an option to eliminate doubts. The code is quite small (50 LoC moreless) and also self explanatory. Follows an snippet:

def local_setup copy_sample_files create_folders 'tmp/pids' , 'db' run "./ init.sh" if File . exists ? ( " init.sh" ) after_update_code end def remote_update remote_run "cd #{application_path} && rake inploy:local:update" end def local_update run "git pull …

diegocarrion.com Read
  Source Favicon
By Matt Aimonetti of Merbist 11 months ago.
Email

…Using CoreAnimation instead of OpenGL, the task wasn't that hard at all. in less than 1,000 LOC (before refactoring), I have a fully working game.

I will be previewing the game at RailsSummit and will show the code and explain how to get there at RubyConf .

When I started getting involved with MacRuby, I really did not think I would write a video game in Ruby and actually enjoy it. At the end of the day, I will more than likely use MacRuby for desktop/mobile/server …

merbist.com Read
  Source Favicon
By Ron Evans of Dead Programmer Society over 1 year ago.
Email

- very low WTF to LOC ratio (jeremy mcnally's rubyfringe talk)

when?

- a few controllers models and views

- starting any web application

- you need reusable apps and/or middleware and/or resources

- you need speed

who?

- heroku

- github

- taps

- integrity

sinatra in your gems

- a mini-github for offline repo browsing

- a local plugin and play wiki

- memcached utilization graphs

- config reusable github hook

Example: NotTwitter

As classic Sinatra

set …

deadprogrammersociety.blogspot.c Read