Tag: RubyChildren:
-
Unlimited Novelty: Twitter: blaming Ruby for their mistakes? (via). Interesting discussion, with input from Twitter developers, of how the switch to Scala and their own message queue came about.
¶ (0)
Tags: [Message Queues, Ruby, Scala, Twitter]
-
Sam Ruby: Rack'em Up! I have only a feint idea what all that means, but I think it means it'll be easier to rewrite my web site in Ruby if I'd like to To finish reading.
¶ (0)
Tags: [Ruby, Ruby on Rails]
-
#haml (via) - new templating language for RoR.
¶ (0)
Tags: [Ruby on Rails, Templating]
-
Ruby on Windows: Displaying a MessageBox Using the Windows API.
¶ (0)
Tags: [Ruby, Windows]
-
7 reasons I switched back to PHP after 2 years on Rails - O'Reilly Ruby (via). The main reason I'd hope to switch to Rails is not for Rails itself, but to be able to use Ruby. If only PHP used Ruby 
¶ (0)
Tags: [PHP, Ruby, Ruby on Rails]
-
jamtronix: Example of connecting to SQL Server via Ruby.
¶
Tags: [Databases, Ruby]
-
Sequel: Lightweight ORM library for Ruby (via).
¶ (0)
Tags: [Databases, Ruby]
Re: translate Perl diamond operator to Ruby.
Perl:
while(<>){
...
}
Ruby:
ARGF.each do |$_|
...
end
At this point I question whether I'd ever use Perl for anything again. Until now, Perl filled a niche where if the code I wanted to write would fit in 10 lines or so, and did a lot of string manipulation, I'd turn to Perl. Otherwise Python. Now I think I'll just use Ruby for everything 
-
Scale rails from one box to three, four and five (via).
¶ (0)
Tags: [Ruby on Rails, Web Development]
-
Fleeting Ideas: Disambiguated URLs with Ruby on Rails (via).
¶ (0)
Tags: [Ruby on Rails]
-
John Lam on Software: A first look at IronRuby. To read.
¶ (0)
Tags: [IronRuby]
-
Mongrel:
Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI.
¶ (0)
Tags: [Ruby]
-
$ command line ruby cheat sheets.
¶ (0)
Tags: [Ruby]
-
Camping, a Microframework.
¶ (0)
Tags: [Ruby]
-
Matt Raible relays comments from Don Box:
Richard Monson-Haefel asks "Is there a place for AOP in .NET or is it too sophisticated for your developers." Don's take is "My development platform should allow me to write code w/ a couple of beers in me." He ragged a bit on Java developers and said their main problem is they think they're smarter than they are. He also said that if he could change on thing at MSFT, it would be that Ruby becomes the language of choice.
¶ (0)
Tags: [Java, Microsoft, Ruby]
-
Labnotes » Buildr, or when Ruby is faster than Java:
Somewhere in my ever expanding list of drafts I’ll never get to finish is another post about the economics of Ruby, and how raw performance is less of a problem when you’re bound by the database, spend less on development, and can optimize in the large. Basically, regurgitating the same justifications I used to explain Java a decade ago.
But this is not that post.
Today, I’m going to talk about something else, and share with you an interesting discovery from working on Buildr. There will be no language theologies or abstractions of performance, just the facts.
Off the bat, we downsized 5,443 lines of XML abuse spread over 52 files, into a single build script weighting a measly 485 lines. It’s amazing what a real language, with proper variables and (gasp!) functions and objects, can do.
Of course, we’re not measuring raw Ruby against pure Java. We’re comparing one implementation against another, where they both do the same thing. Black box equivalent. That’s a real life benchmark.
We know the Ruby-based solution performs significantly faster, is much more reliable, requires less work to use and maintain, and took all of 3 months from concept to working release.
Ruby might be slow, but what you build with it can be devilish fast.
¶ (0)
Tags: [Java, Ruby]
-
Ruby Reports (ruport). Check out acts_as_reportable
¶ (0)
Tags: [Ruby, Ruby on Rails]
-
Ruby/.NET Bridge.
¶ (0)
Tags: [.NET, Ruby]
results = commands.collect{|i| host.cmd(i)}
.collect{ |i| i.collect{ |i| i.chomp }[1..-2] }
(reformatted slightly)
What this code does: takes a list of commands to run over a telnet session, runs them all, takes the output for each command, splits it into an array of lines (removing any stray newlines on each line), strips off the first and last lines of the output (since the first line is just an echo of the command and the last line is the command prompt again), and returns an array of lines of the output for each command in an array.
-
Rails 1.2 released. Woot.
¶ (0)
Tags: [Ruby on Rails]
Substring in C# (and Java) throw an exception if you take a substring and give it a length (or a starting position) that puts you after the end of the string. That's basically to ensure that you always get a string that's exactly the length you want? Rather than just being able to take a substring and not having to worry about it, you have to include code like the following around every single substring you ever take:
if (str.Length > 30){
str = str.Substring(0, 30);
}
Typically when you take a substring you want to ensure that your string is no longer than a certain number of characters. I can't think of a situation that would it a good idea for the language to enforce that you can't get a string that's less than the maximum length you want instead of exactly the length you want.
On the other hand, most of the dynamic languages (PPPR) let you substring off the end of the string without worrying about it.
-
MonoRail:
MonoRail (former Castle on Rails) is a MVC web framework inspired on Action Pack. The Action Pack way of development is extremely productive, very intuitive and easily testable.
MonoRail differs from the standard WebForms way of development as it enforces separation of concerns; controllers just handle application flow, models represent the data, and the view is just concerned about presentation logic. Consequently, you write less code and end up with a more maintainable application.
¶ (0)
Tags: [ASP.NET, Ruby on Rails]
-
Mike Clark: Running Your Rails App Headless.
¶ (0)
Tags: [Ruby on Rails]
-
IBM developerWorks: Exploring Active Record.
Active Record [is] the persistence engine behind Ruby on Rails. Active Record bucks many Java conventions, from the typical configuration mechanisms to fundamental architectural choices. The result is a framework that embraces radical compromises and fosters radical productivity.
To read.
¶
Tags: [Object-Relational mapping, Ruby on Rails, To Read]
-
Lesscode.org has an enormous post on James Gosling's recent idiotic comments. DHH, creater of Rails has also has comments.
Ryan at Lesscode concludes thusly:
All we’re asking is that you stop spreading misinformation about the current state of dynamic languages to the press, analysts, and your customers. This does not require you to champion or otherwise support these technologies - just stop lying about them. One year ago, this type of behavior could be attributed to a lack of documentation and discussion on these issues, today it’s impossible to attribute to anything but malice.
¶ (0)
Tags: [Java, Programming languages, Ruby, Ruby on Rails]
-
CodePost | New language features in C# 3.0, via Digg, via Michael. Very good article -- concisely written. And I'm so looking forward to C# 3. He didn't go into the anonymous methods (lambdas), but he did go into "extension methods", which I had no idea existed. It's like Ruby! However, almost all of the commenters (currently at 9) are morons (with the exceptions of #3 and #9) who don't grasp what's going on with the var keyword, despite the fact that the author was very clear in explaining it.
¶ (0)
Tags: [C#, Ruby]
-
RedHanded » Wonder of the When-Be-Splat.
¶ (0)
Tags: [Ruby]
-
RedHanded » Koichi's Brief Ruby Certification. I dunno!
¶ (0)
Tags: [Ruby]
-
RedHanded » Ruby for Windows in Under 1K. This is perverse. I'm impressed.
¶ (0)
Tags: [Programming, Ruby]
|
Generated in about 0.159s. (Used 11 db queries) |
I hate ASP.NET
I hate ASP... I was doing wonderswith PHP, then suddenly one of myclients...
Johnies: Mar 17, 6:14am