[#376274] Best Linux Distro for Ruby? — Nick Hird <boondox@...>

What are some of the better linux distro's for ruby development? I know

15 messages 2011/01/02

[#376329] Is singleton class of an object already created? — Samnang Chhun <samnang.chhun@...>

I would like to know is there any ways to check is singleton class of an

12 messages 2011/01/04

[#376333] Threading in ruby — "Vishnu I." <pathsny@...>

Hi

13 messages 2011/01/04
[#376335] Re: Threading in ruby — Robert Klemme <shortcutter@...> 2011/01/04

On Tue, Jan 4, 2011 at 8:41 AM, Vishnu I. <pathsny@gmail.com> wrote:

[#376339] ripl - an irb alternative - 0.3.0 released — ghorner <gabriel.horner@...>

ripl, a light modular alternative to irb, has reached 0.3.0. ripl

32 messages 2011/01/04

[#376382] Class Initialization? — Kedar Mhaswade <kedar.mhaswade@...>

I have a class and two class methods: self.encode and self.decode. The

14 messages 2011/01/05
[#376385] Re: Class Initialization? — Andrew Wagner <wagner.andrew@...> 2011/01/05

On Wed, Jan 5, 2011 at 9:33 AM, Kedar Mhaswade <kedar.mhaswade@gmail.com>wrote:

[#376388] Petition to add Metasploit Project as Ruby success story — Christian Kirsch <Christian_Kirsch@...7.com>

I noticed the Ruby success stories on the Ruby website. I would like to mak=

10 messages 2011/01/05

[#376453] Block variable - How is it read in English? — SW Engineer <abder.rahman.ali@...>

Following the "Ruby on Rails Tutorial", and under section "6.1.1

16 messages 2011/01/06

[#376574] Best way for Array#find+transform ? — "Jonas Pfenniger (zimbatm)" <jonas@...>

There is a pattern that I'm using quite regularly, but I'm not

17 messages 2011/01/08
[#376575] Re: Best way for Array#find+transform ? — Anurag Priyam <anurag08priyam@...> 2011/01/08

> I know I can come up with a new method on Array that would shorten this t=

[#376576] Re: Best way for Array#find+transform ? — Anurag Priyam <anurag08priyam@...> 2011/01/08

> paths.map{|path| File.join(path, filename)}.select{|name| File.exist?(path)}

[#376577] Re: Best way for Array#find+transform ? — "Jonas Pfenniger (zimbatm)" <jonas@...> 2011/01/09

2011/1/8 Anurag Priyam <anurag08priyam@gmail.com>:

[#376579] Re: Best way for Array#find+transform ? — David J. Hamilton <groups@...> 2011/01/09

Excerpts from Jonas Pfenniger (zimbatm)'s message of Sat Jan 08 16:05:05 -0800 2011:

[#376586] Re: Best way for Array#find+transform ? — "Jonas Pfenniger (zimbatm)" <jonas@...> 2011/01/09

2011/1/9 David J. Hamilton <groups@hjdivad.com>:

[#376606] Re: Best way for Array#find+transform ? — David J. Hamilton <groups@...> 2011/01/10

Excerpts from Jonas Pfenniger (zimbatm)'s message of Sun Jan 09 04:08:10 -0800 2011:

[#376680] Parallel Assignments and Elegance/Complexity Ratio. — Kedar Mhaswade <kedar.mhaswade@...>

In SICP, I read that "Programs should be written for people to read, and

15 messages 2011/01/11
[#376697] Re: Parallel Assignments and Elegance/Complexity Ratio. — Josh Cheek <josh.cheek@...> 2011/01/11

On Tue, Jan 11, 2011 at 8:29 AM, Kedar Mhaswade <kedar.mhaswade@gmail.com>wrote:

[#376682] JRuby 1.6.0.RC1 released — Thomas E Enebo <tom.enebo@...>

The JRuby community is pleased to announce the release of JRuby 1.6.0.RC1.

14 messages 2011/01/11

[#376744] Case statements - Just beautification — flebber <flebber.crue@...>

I just want to clarify case statements the name after the word case is

10 messages 2011/01/12

[#376792] Ruby is interpreted and scripting language? — Sai Babu <sateesh.mca09@...>

I am ruby fresher.

16 messages 2011/01/13

[#376855] Retrieving and copying element from array — Simon Harrison <simon@...>

If I have an array like this:

11 messages 2011/01/13

[#376898] What are your ruby rough cuts ? — "Jonas Pfenniger (zimbatm)" <jonas@...>

Hi rubyists,

32 messages 2011/01/14
[#376930] Re: [poll] What are your ruby rough cuts ? — David Masover <ninja@...> 2011/01/15

On Friday, January 14, 2011 07:34:04 am Jonas Pfenniger (zimbatm) wrote:

[#376937] Re: What are your ruby rough cuts ? — Joseph Lenton <jl235@...> 2011/01/15

David Masover wrote in post #975080:

[#376959] Why Quby? (was Re: What are your ruby rough cuts ?) — David Masover <ninja@...> 2011/01/15

On Saturday, January 15, 2011 04:42:58 am Joseph Lenton wrote:

[#377020] Obscure syntax error — Rolf Timmermans <molfie@...>

Hi all,

16 messages 2011/01/17

[#377052] Calling by Reference - Two Questions — Mike Stephens <rubfor@...>

I know I'm not the first person to get stumped by how to get Ruby to

15 messages 2011/01/18

[#377072] The most recommended way of naming methods in Ruby — Edmond Kachale <edmond.kachale@...>

Rubists,

14 messages 2011/01/18
[#377082] Re: The most recommended way of naming methods in Ruby — Phillip Gawlowski <cmdjackryan@...> 2011/01/18

On Tue, Jan 18, 2011 at 9:16 AM, Edmond Kachale

[#377121] Improving performance of hash math — dblock <dblockdotorg@...>

I am trying to improve performance of Euclidian distance between two

13 messages 2011/01/19

[#377226] Totally lost in learning Ruby — Hilary Bailey <my77elephants@...>

This is my second attempt to understand Ruby. I completely read 1)

61 messages 2011/01/21
[#378239] Re: Totally lost in learning Ruby — Hilary Bailey <my77elephants@...> 2011/02/08

Hi everybody,

[#378246] Re: Totally lost in learning Ruby — Robert Klemme <shortcutter@...> 2011/02/08

On Tue, Feb 8, 2011 at 3:16 AM, Hilary Bailey <my77elephants@gmail.com> wro=

[#377236] using gems installed via 'sudo gem install' — "Piotr S." <thisredoned@...>

I've installed ruby-opengl through sudo gem install because there were

15 messages 2011/01/21

[#377362] pg gem 0.10.1 wth Ruby 1.9.2 does not work with method @pg_conn.exec_prepared(stmt_name, parameters) — Zeno Davatz <zdavatz@...>

Hi

9 messages 2011/01/24

[#377388] The finer points of postfix conditionals. — Jon Leighton <j@...>

Hi,

13 messages 2011/01/24

[#377411] Obtain data from .csv — Kamarulnizam Rahim <niezam54@...>

Sample of .csv file:

19 messages 2011/01/25

[#377609] why is overloading invalid in ruby. — Ted Flethuseo <flethuseo@...>

I don't understand why when I try to overload I get an error. Can I

36 messages 2011/01/27

[#377645] If you had the choice between Ruby & Groovy — Noah Cutler <sit1way@...>

Hey All.

15 messages 2011/01/28

[#377650] IDE? — <johan.tempelman@...>

Hi,

13 messages 2011/01/28

[#377703] Zlib::GzipReader and multiple compressed blobs in a single stream — Jos Backus <jos@...>

Hi,

11 messages 2011/01/28

[#377761] New to programming AND new to Ruby — "Cassandra K." <cassandra.k@...>

Hello. I am trying to teach myself Ruby. I have no background in

13 messages 2011/01/31

[#377785] 2011: Which Ruby books have you read? And which would you recommend? — "Aston J." <azzzz@...>

I know there are a lot of threads about books, but some of them are as

16 messages 2011/01/31

[#377800] How to know the exit status within at_exit() block? — Iñaki Baz Castillo <ibc@...>

Hi, my program invokes "exit true" or "exit false" and I want to catch

17 messages 2011/01/31

Re: [poll] What are your ruby rough cuts ?

From: Josh Cheek <josh.cheek@...>
Date: 2011-01-15 13:24:02 UTC
List: ruby-talk #376947
On Fri, Jan 14, 2011 at 7:34 AM, Jonas Pfenniger (zimbatm) <
jonas@pfenniger.name> wrote:

> Hi rubyists,
>
> this is a general census to get developer feedback. Please post the
> issues you encounter when developing in ruby. This can range from
> syntax issues, to library support, documentation, or anything that is
> a roadblock when developing in ruby.
>
> After the thread settles down, I will build a report. This could be
> useful to know, for example, what actions to take next to make our
> favorite language shine even better. I can't guarantee it will be
> taken in consideration by the core developers, but at least I can
> assure you I will try to pick the ones I can handle and solve them
> myself.
>
> To avoid having this thread get out of hand, please follow these three
> rules:
>
> * Don't post more that once in this thread (+1 count as a post :-p)
> * Try to be constructive on your remarks
> * If you really have to answer a specific point, make a new thread
>  (it can be done by changing your reply's subject)
>
> Let the remarks flow !
>   zimbatm
>
>
Can't help but notice that 2/3 of the OP's rules are already violated :P

In no particular order

* All the gross-ness that is working with files.
For an example, `$ bones create some_project > /dev/null ; cat
some_project/lib/some_project.rb`
Also, having to constantly File.dirname(__FILE__) everywhere. I always feel
so embarrassed when I am showing non-rubyists code, and have to write
something like that. Current dir is so common, it should have its own thing.
And if I am going to see it in normal coding (which I am with the 1.9.2
changes) then can it please not be wrapped in underscores.

* define_method should be public.
Even the docs have to violate that in order to show how it could ever be
useful. http://ruby-doc.org/core/classes/Module.html#M000497

* define_singleton_method should exist
So you don't have to do (class << self ; self ; end).send :define_method
"meth" do end
(okay, I know there is finally a singleton_method, and a public
define_method would get rid of the send hack, but still ;)

* Ranges should be able to go up and down
I feel like they are a great idea, but have just way too little power.
Really only used for things where there are already equivalent alternatives
like iteration
(1..5).each{} vs 1.upto(5).each{}

and checking boundaries (1..5) === 3 vs 1<=3 && 3<=5

* Ranges have weird behaviour when defined with 2 vs 3 dots.
I would expect the internal representation to be the same, like single vs
double quoted strings, but instead they are different. I assume this is to
make it so you can use any data at all with a range, including your own. But
I don't think anyone ever does this, and I think it handicaps ranges and
makes it dangerous to use them for anything more than the simplest of
examples, like the ones given just above.

r1 , r2 = 0...5 , 0..4

enum1 , enum2 = r1.each , r2.each
r1.all? { |e1| e1 == enum2.next } # => true
r2.all? { |e2| e2 == enum1.next } # => true

r1 == r2                          # => false

r1.first == r2.first              # => true
r1.last  == r2.last               # => false

r1.last == r1.to_a.last           # => false
r2.last == r2.to_a.last           # => true
r1.to_a == r2.to_a                # => true

* The ability to ask a method what file / line of code it was defined on.
When code is defined with metaprogramming and it is hard to know where to go
to figure out how it behaves
http://twitter.com/tenderlove/status/25614816215310336
http://twitter.com/tenderlove/status/25615989907394560

* It would be nice if we could play well with the Debian folks.
I don't know if there is a good solution to that or not, but I think it
hurts our community. For example, they took Ruby off our school computers, I
think for this reason (I don't know that for certain, but our sysadmin
doesn't go for it if it isn't blessed by Debian, and I've never heard of any
other language being removed).

* Well documented STDLIB
Somehow I keep finding new gems in here. I think it is because when I sat
down to go through all the stdlibs, I didn't have the knowledge to know what
some stuff was, or how to use it, and it wasn't documented. I think it would
be a lot easier to appreciate if it was well documented. It also makes Ruby
look neglected that some of it has no documentation at all.

* It would be nice to have a way to distribute work to non-developers
I'm with David on this one, when I realized I had no way to reliably
distribute something that was working on my computer to someone else, that
was a sad day for me. I think it also makes other people take it less
seriously, because all the programs they interact with are somehow
distributed to them, but mine can't. I tried playing with a few, I think
they were ruby2exe, and ocra, but couldn't figure out how to get them to
work.

* I'd love to see a Ruby wiki
Okay, this isn't a language thing, but where people can aggregate knowledge
on different topics. For example, we love to talk about how great testing
is, but I had to wait more than a year to get the RSpec book. What if that
information was easy to find, and comprehensive, and easy to update. Then
instead of condescendingly saying "and you are testing, aren't you?" (can't
remember who said that, but I wanted to smack them) you could say "go *here*
for a tutorial to get you bootstrapped into the topic". I still don't know
wtf a runner is, but at least I know how to make my rake files just as
capable as if I ran the command by hand (which is how I have been handling
it until now).

Or just generally, some community affirmed path to go from not knowing
something to knowing it. Rails has a wiki (not sure how good it is), and
they have the guides (which are really amazing), and they have screencasts
that the whole community rallies behind.

I just learned about sockets a couple of days ago. From a Lisp book. They
were always scary to me, but then I saw how easy they are, and couldn't help
but think "That's it?! Why don't I already know this?"

I guess I feel like I shouldn't have to find my own way out of ignorance, I
wish we had conspicuous, empowered, accredited, exciting, easy ways to get a
piece of knowledge. And if anyone saw Uncle Bob's Rails talk (
http://blip.tv/file/2089545/), he said "There is a tremendous amount of
effort being put in by people trying to create testing frameworks, and easy
ways to test. So I am very encouraged by that, but I am not entirely
encouraged, because I think that this community is growing very rapidly, and
the disciplines may not grow with it." @ 27min. This is part of his concern
that "what killed Smalltalk could kill Ruby too".

That's not to say that we don't have anything, Satish Talim and Gregory
Brown have each put a lot of work into really helping educate people. I
would like to see more of that, and have it be more comprehensive, and more
prevalent.




Anyway, those are mine :) Hope they are helpful. If anyone wants to address
any of them, just start a new thread.

In This Thread