S
Stefan Schmiedl
Ofcourse, real programmers use microcode, ASM and FORTH.
;-)
There's only one reply to this:
http://ars.userfriendly.org/cartoons/?id=19990508
And of course, "The Story of Mel".
s.
Ofcourse, real programmers use microcode, ASM and FORTH.
;-)
For me, programming languages are like tools. A
good tradesman uses the
right tools for the job. The right tool is the one
that makes works best
to achieve the desired outcome. A bad tradesman only
is best described as
the one who uses a hammer to put in a screw, 'cause
they only know how to
use hammers, not screw drivers.
Ofcourse, real programmers use microcode, ASM and
FORTH.
Alexey said:Test/Unit Reporter publishes results of test/unit test suite execution
in HTML and other formats.
You can download Test/Unit Reporter from
http://rubyforge.org/projects/test-report/
Hopefully some people will find it useful.
Test/Unit Reporter publishes results of test/unit test suite execution
in HTML and other formats.
Current implementation includes two formatters:
* HTML formatter produces an HTML report. Sample report for Rake unit tests can be seen here: http://test-report.rubyforge.org/rake-report/index.html
* XML formatter formats test suite results in an XML file, using the
same format as Ant junit task. This output then can be passed to Ant
junitreport task to produce an HTML report, or otherwise
analyzed/processed with an XML parser.
You can download Test/Unit Reporter from
http://rubyforge.org/projects/test-report/
Hopefully some people will find it useful.
This is where I don't understand most people. You can
use any language(scripting or non-scripting) to make
what others consider overkill. Making usage of
available libraries is a good start. Most quit at the
mark of not knowing how to use a library. This is 201%
untrue. You can use C for anything you use ruby on.
I will use C as an example here. you can make a
gigantic application faster in C than ruby iff you
have proper libraries. One design I like about Ruby is
that it takes less time to write code and complete an
application. Well guess what, you can do the same with
C if you had a nice set of libraries. I am sure most
people talk bad about C are not professional at all.
Think of C not as a hammer, but as an Anything Object.
It can be used for anything(unless you need to pass
assembly to unlock processor code). Restricted
languages which you could not add to would be
considered a hammer, or a screw driver. I think this
explaination pretty much ruins the idea of C being a
hammer, which sounds rediculous in the first place.
----------------------------------------
-- Name: David Ross
-- Phone: 865.539.3798
-- Email: drossruby [at] yahoo [dot] com
----------------------------------------
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
Try "irb --noprompt".
To me, the biggest problem with using irb in this mode is the "set up
some context" part.
Believe it or not, but it is quite easy to do with Eclipse/Java: one can
set a breakpoint, execute some test, wait till debugger stops on the
breakpoint, and then use Eclipse "Display" view to evaluate arbitrary
Java expressions in the current scope.
So far, I don't know any easy way to do the same with Ruby, so I end up
inserting things like "puts <expression>.inspect" and rerunning the
test. Which is not as nice as an interactive shell. Does anyone have a
better way?
And a huge problem is that copying code fragments into IRB is easy but
if you want to get some code you typed in IRB multiple lines) getting
this back to the editor is much more difficult.
Of course you are right. Ruby is written in C .. QED.David Ross said:You can use C for anything you use ruby on.
I am sure most
people talk bad about C are not professional at all.
--- Mark Probert said:Of course you are right. Ruby is written in C ..
QED.
Ever worked as a maintenance programmer? Ever fixed
bugs that other
engineers had introduced into the code? Ever found
that some of those
bugs where simple stuff, like array bounds
violations or null pointer
assignments? Then, have you tried going up to the
original coder and
telling them that they are not professional?
There are better ways of coding in C. Try, for
example
http://www-cs-faculty.stanford.edu/~knuth/cweb.html
There are better ways of improving in any language
http://www.sei.cmu.edu/tsp/psp.html
Both of these approaches have been used by People
Who Know A Lot (Knuth
and Humphries) and both have been shown to work
(I've used both and know
they work).
Why do more people not use them? Why is our code
still riddled with
basic errors?
(Hint: it has nothing to do with the language,
though the language will
have an impact. C is less, errrr, helpful, to the
less experienced).
Hello Mark,
MP> There are better ways of coding in C. Try, for example
MP> http://www-cs-faculty.stanford.edu/~knuth/cweb.html
Sorry but the hole idea of literature programming is one of the most
stupid thing i've ever seen in the world of programming.
It does not work and it shows again that Donald E. Knuth is living in a
galaxy far far away.
Adding the redundancy and ambiguity of natural languages is making
the problem worse. Real programs change a lot and under time pressure.
Don't count extensive API specification, because this has nothing to do
with Knuth's CWeb (literate programming).
MP> There are better ways of improving in any language
MP> http://www.sei.cmu.edu/tsp/psp.html
MP> Both of these approaches have been used by People Who Know A Lot (Knuth
MP> and Humphries)
Sorry i doubt that Knuth has real world experience. Even with a high
IQ a person can be a huge fool - by the way: what was the name of the
chess player with the IQ 180 that is arrested in Japan at the moment ?
Ok. It doesn't work for you. I assume that you have tried it then?Lothar Scholz said:Sorry but the hole idea of literature programming is one of the most
stupid thing i've ever seen in the world of programming.
I am not sure that you understand LP very well. However, this really isAdding the redundancy and ambiguity of natural languages is making
the problem worse. Real programs change a lot and under time pressure.
True, it is language neutral. The point is that, irrespective ofCan you give me one example of a larger program that uses the CWeb
style, lets make it easy and say something with more then 100.000
lines (a medium scale project) ?
TeX
Humphries "Personal Software Process" is nice but has nothing to do
with programming styles or languages. ...
Maybe you should read Humphries again. It is about getting your error
rate lower, by finding out which are your problem areas.
David Ross said:I agree on all points. It is humans who make errors.
To the experienced C is bliss. (* and assembly) (*even
if there is some stress figuring out what is wrong in
the program). After swearing some and hitting the
computer a few times it is okay. Oh and making fun of
the original code and all the bad hacks they did to
make the code work. (=
Test/Unit Reporter publishes results of test/unit test suite execution
in HTML and other formats. [...]
You can download Test/Unit Reporter from
http://rubyforge.org/projects/test-report/
Hopefully some people will find it useful.
Since this is my first open-source Ruby project, packaging in this
release is spartan ("non-existent" may be more accurate). I am willing
to put some effort into it, but it's a lot of gadgets to learn. Any help
or advice from someone with expertise in these matters would be highly
appreciated.
Lothar Scholz said:Hello Mark,
MP> There are better ways of coding in C. Try, for example
MP> http://www-cs-faculty.stanford.edu/~knuth/cweb.html
Sorry but the hole idea of literature programming is one of the most
stupid thing i've ever seen in the world of programming.
It does not work and it shows again that Donald E. Knuth is living in a
galaxy far far away.
Adding the redundancy and ambiguity of natural languages is making
the problem worse. Real programs change a lot and under time pressure.
Sorry i doubt that Knuth has real world experience.
Even with a high IQ a person can be a huge fool
Can you give me one example of a larger program that uses the CWeb
style, lets make it easy and say something with more then 100.000 lines
(a medium scale project) ?
Hello Mark,
MP> Hi, Lothar.
MP> TeX
Don't now enough about Tex to be sure that is a real world project, but
i deeply doubt that.
AFAIK it's not developed by multipe persons that change over time. And
did it really change a lot in the past.
MP> True, it is language neutral. The point is that, irrespective of
MP> language -- C, Ruby, ASM, Eiffel -- people will make errors. PSP
will MP> help lower the error rate regardless of the medium. To me, that
is step MP> forward.
Only as an education/training method. For experts it does not reduce the
error rate.
I love C. I think it's great for implementing
designs. On the other
hand, it makes you do a lot of up-front work to get
anything running.
That doesn't really encourage you to be agile. But
to create original
software, you have to sketch a lot. Often you won't
even know what you
want to create. You have to figure that out as you
go.
Dynamic & high level languages attach less cost to
changing. They
encourage you to experiment. That's not very
valuable if you're just
implementing something you designed up-front. But
it's absolutely
essential if you're not.
Using C to create original software isn't bliss.
It's like being in a
straight-jacket. But considering you're a fan of
Ada, I guess you like
that kinda stuff.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.