[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How Pretty is your code?

WujcioL

8/11/2008 3:13:00 PM

I've just uploaded my new ruby project Pretty. It's simple tool to check
your code. In release 0.1 it checks:
- 1st line for shebang
- how long are lines, how many tabulations you use, do you use ;
In next release i'll add check for global variables and maybe more
--
Posted via http://www.ruby-....

16 Answers

Suraj Kurapati

8/11/2008 7:42:00 PM

0

Mateusz Tybura wrote:
> I've just uploaded my new ruby project Pretty. It's simple tool to check
> your code. In release 0.1 it checks:
> - 1st line for shebang
> - how long are lines, how many tabulations you use, do you use ;
> In next release i'll add check for global variables and maybe more

FYI, this project is available on RubyForge:

http://rubyforge.org/projec...
--
Posted via http://www.ruby-....

Jan Friedrich

8/12/2008 9:37:00 AM

0

Mateusz Tybura <wujciol@gmail.com> wrote:
> I've just uploaded my new ruby project Pretty. It's simple tool to check
> your code. In release 0.1 it checks:
> - 1st line for shebang
Hm, what if I don't want a shebang line for example in a library file
which should not run as an independant script?

By the way the actual version on rubyforge has a bug in line 22 if there
is no shebang line in a file. Do you know the difference between = and <<?

> - how long are lines, how many tabulations you use
The most Ruby programmers use two spaces for indentination, so there will
be no tabs everywhere. ;-)

The idea of checking some coding rules can be helpful but be aware about
the assumtions you take. ;-)

Regards
Jan

WujcioL

8/12/2008 10:35:00 AM

0

Bug in line 22 is now fixed. Error of no shebang is changed. Added error
for using global variables.
All this features in release 0.2 on
http://rubyforge.org/projec...
Avaible as zip and gem file
--
Posted via http://www.ruby-....

CB@PrayForMe.com

4/16/2011 1:28:00 PM

0

On Sat, 16 Apr 2011 05:53:18 -0700 (PDT), Phlip <phlip2005@gmail.com>
wrote:

>> Few authors have as many fans (and detractors) as the late Ayn Rand.
>> The author of "The Fountainhead," "Anthem," and "Atlas Shrugged" was
>> also the founder of a philosophical movement known as Objectivism.
>>
>> Some argue the philosophy is simply an excuse to be selfish, but...
>
>...incidences of welfare cheat and serial adulterer Ayn Rand actually
>following it are few and far between.
>
>> For those unfamiliar with the story, "Atlas Shrugged" is set in future
>> America where great minds are punished and industry is over-taxed.
>
>And the movie's backers have a clear interest in catering to the
>people who somehow think we have that problem.
>
>> Some might say it's the movie President Obama doesn't want you to see.
>
>Good luck getting Obama to actually say that.
>
>But maybe they could have gone with another production of /The
>Fountainhead/. It's about collusion between corrupt gov't and corrupt
>newspapers to promote hacks and repress genius.

Another version of Oboobuh's policies to get your money?

Watching the trailer reminded me of how Oboobuh demonized the oil
industry, placing a moratorium on drilling in the gulf. The result was
for platforms pulling anchor and heading south to help Oboobuh's
buddy, George Soros/Petrobras, were Oboobuh gave $2 billion of tax
payer money. Indirectly Oboobuh gave that money to China because
Petrobras is drilling in Cuba for the commies.

Atlas Shrugged is about how government works against
freedom/Capitalism, stomping on free market ideas, promoting who it
wants at the top of the Socialist/Commie ladder.

CB
Keynesian economics 'is' at work by Oboobuh duh Marxist in sheep's
clothing.
Fabian/Kensyan coat of arms, a wolf in sheeps clothing
http://farm5.static.flickr.com/4091/5061156284_476eca...

The whole Fabian stain window
http://www.canadafreepress.com/images/uploads/FabianWi...

Now that would be another great movie exposing Oboobuh!

Phlip

4/16/2011 1:34:00 PM

0

CB wrote:

> I'm going to whine like a bitch and vent my self-loathing
> in minstrel accents because you insulted my hero.

"Like so many great works of fiction — /The Canterbury Tales/, /
Macbeth/, and Sarah Palin’s Twitter feed — Ayn Rand’s Adventures in
Wonderland is not truly understood until one has read the thing
dozens, nay, hundreds of times. It may be true that Ayn’s follies are
done, but make haste! There is so much pleasure and so much pain to
relive in this, your index, of Ayn’s Adventures graphic comic novel."

[I like the part where she discovers the president is colored. Looks
like YOU!]

http://wonkette.com/415825/thats-objectivist-ayn-rand-in-the-21...

http://wonkette.com/419266/ayn-kampf-the-ayn-ra...

CB@PrayForMe.com

4/16/2011 2:12:00 PM

0

On Sat, 16 Apr 2011 06:34:01 -0700 (PDT), Phlip <phlip2005@gmail.com>
wrote:

>CB wrote:
>
>> I'm going to whine like a bitch and vent my self-loathing
>> in minstrel accents because you insulted my hero.
>
>"Like so many great works of fiction ? /The Canterbury Tales/, /
>Macbeth/, and Sarah Palin?s Twitter feed ? Ayn Rand?s Adventures in
>Wonderland is not truly understood until one has read the thing
>dozens, nay, hundreds of times. It may be true that Ayn?s follies are
>done, but make haste! There is so much pleasure and so much pain to
>relive in this, your index, of Ayn?s Adventures graphic comic novel."
>
>[I like the part where she discovers the president is colored. Looks
>like YOU!]
>
>http://wonkette.com/415825/thats-objectivist-ayn-rand-in-the-21...
>
>http://wonkette.com/419266/ayn-kampf-the-ayn-ra...


I lub art deco

Tim Crowley

4/16/2011 5:29:00 PM

0

On Apr 16, 6:27 am, CB <C...@PrayForMe.com> wrote:
>

> Now that would be another great movie exposing Oboobuh!

Who's Oboobuh?

Why are you a cowardly racist mother fucker?

hint: hide bitch. hide in fear and shame for the rest of your
pathetic life - when it's all over you will burn in hell for all
eternity. good job.



Yoorghis

4/16/2011 7:24:00 PM

0

On Sat, 16 Apr 2011 10:29:18 -0700 (PDT), Tim Crowley
<timmyturmoil@gmail.com> wrote:

>On Apr 16, 6:27?am, CB <C...@PrayForMe.com> wrote:
>>
>
>> Now that would be another great movie exposing Oboobuh!
>
>Who's Oboobuh?
>
>Why are you a cowardly racist mother fucker?

Yep he is

And for years he's been called on it---except by other racists.





>=============================================================

On Fri, 18 Sep 2009 16:32:34 -0700 (PDT), Kurtis T. Nicklas of
1293 Westbrook Ave, Elon, NC 27244-9372"

<nickl...@bellsouth.net> wrote in message


>I don't pay much attention to him these days, but I'd wager he's not
>happy.

You sure as shit paid attention when you got caught
making all those late-night hang-up phone calls, didn't
ya, Nickkkkers?

CLICK ! ! !

Dänk 666

4/16/2011 9:34:00 PM

0

On Apr 16, 6:53 am, Phlip <phlip2...@gmail.com> wrote:
> > Few authors have as many fans (and detractors) as the late Ayn Rand.
> > The author of "The Fountainhead," "Anthem," and "Atlas Shrugged" was
> > also the founder of a philosophical movement known as Objectivism.
>
> > Some argue the philosophy is simply an excuse to be selfish, but...
>
> ...incidences of welfare cheat and serial adulterer Ayn Rand actually
> following it are few and far between.

I was read an article about Ayn Rand in the WSJ last week, and it said
she was just as hated among conservatives as among liberals. As an
Atheist, her contempt for religion turned off most right-wing
conservatives. Further alienating her from the right was her support
for abortion rights, as well as her opposition to racism and the
Vietnam war.

Oddly enough, none of these traditionally left-wing positions won her
any support among liberals, presumably because she was so pro-
capitalist. Hated by left and right alike, Ayn Rand fits very well in
the libertarian movement, which itself is hated by conservatives and
liberals, because its philosophy of freedom contradicts their own
totalitarian agendas.

http://online.wsj.com/article/SB100014240527487046626045762567820145...

Tim Crowley

4/16/2011 11:39:00 PM

0

On Apr 16, 12:23 pm, Yoorg...@Jurgis.net wrote:
> On Sat, 16 Apr 2011 10:29:18 -0700 (PDT), Tim Crowley
>
> <timmyturm...@gmail.com> wrote:
> >On Apr 16, 6:27 am, CB <C...@PrayForMe.com> wrote:
>
> >> Now that would be another great movie exposing Oboobuh!
>
> >Who's Oboobuh?
>
> >Why are you a cowardly racist mother fucker?
>
> Yep he is

I guarantee one thing, the cowardly fucker will never ever call me the
N word to my face. He's just a frightened little bitch.