Slashdot Mirror


User: Camel+Pilot

Camel+Pilot's activity in the archive.

Stories
0
Comments
1,370
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,370

  1. In a word . . . Perl on VBScript vs. Perl Web Development Time Comparisons? · · Score: 3

    Perl has _much_ faster development cycle then VBscript/ASP and is a better overall development environment for web based applications for the following reasons.

    1. CPAN - Hundreds of reusable software components such as CGI(cgi tools), Storeable(data marshalling), LWP(web client), Template(seperate logic from presentation), DBI(DB abstraction), etc.

    2. Perl has higher level functionality builtin and is efficient at handling text. Ask your VBscript programmer to show you the equivalent code for these common operations:

    String interpolation
    $str = "The time is $time $timezone $date"

    Pattern Matching
    # Find and replace in strings
    $illiad_book = s/Hector/Gates/g

    # Remove duplicate words from input
    $input_text = s/\b(\w+) \1\b/$1/gi ;

    Array manipulations
    # Sort an array in reverse numerically
    @sort_reverse_lst = sort { $b $a } @lst ;

    # Filter directory listing for text files
    @dir_txt_lst = grep /\.txt/ @dir_lst ;

    # Break up text into sentences
    @sentences = split /\./ , $long_speach;

    # reverse operation
    $long_speach = join "." , @sentences ;

    Symbolic references
    $var = "temperature";
    $$var = 72.1 ;

    print "$var = $temperature"; # Prints temperature = 72.1

    3. Perl is portable, even more so then Java. Apache or IIS; Win32 or palm.

    4. Start off with cgi and if you need speed later port to mod_perl(Unix) or perlex(activestate win32).

    5. Can be used to extend Apache via mod_perl.

    There is more but that should be enough.

  2. Sound And Fury, Signifying Nothing on More Thoughts on Microsoft vs. Open Source · · Score: 1

    I have read several editorials recently concerning MS recents public comments concerning the GPL and open source software. All them seem to grasping at straws to explain why MS top brass would be going out of their way to make themselves look bad and appear as arrogant as legend has it.

    Is there some underlying ulterior motive? Is there some devious plan that is starting to unfold? Did MS executives hold a secret meeting and plan this bad PR campaign for reasons that will be apparent only by the historians looking back? I wonder. Or are they really that stupid?

  3. Speaking of demographics on Mozilla 0.9 Out · · Score: 1

    I while back a wrote a "server check" function for a client using the Perl lwp package. The application pulled down the front page every 15 minutes. For the client string I flipantly put in "playstation 2.0"

    Sometime later I was present at a highlevel design review and someone had a slide with browser breakdown and there at the top was "Playstation 2.0". I barely was able to restrain a smile and I did not want to embarrass the presenter. Some folks even commented that they didn't know the new game toy came with a browser !

  4. A modern day Wan-Hu on To the Moon, Alice · · Score: 1

    The guy reminds me of a once adventurous Chinese official named Wan-Hu who assembled a rocket powered flying chair. He attached to a chair two large kites along with a multitude of rockets (remember the chinese were the first to discover gun powder).

    He commanded his servants, armed with torches, to light the rockets at the same time. When the smoke and fire cleared Wan-Hu was never found (at least not in any recognizable pieces)!

    Depending on your point-of-view Wan-Hu was either an epitome of the human pioneering spirit or a potential canidate for a darwin award.

  5. Sorry to burst your bubble on Linus Responds To Mundie · · Score: 1

    But Newton was a very religious fellow.

    Newton's science was closely related to his theology. In the General Scholium of his Principia, he states that its purpose was to establish the existence of God.

    Westfall, Richard S. The Life of Isaac Newton (Cambridge, 1993) pp 205,290

  6. Are they happy ? on Chinese Government Perplexed By Internet Cafes · · Score: 1

    You think that the Chinese people are happy and content? Lets have vote and find out.

  7. Re:micheal! great troll! on Space Station BSOD · · Score: 2

    Then Katz would certainly be the high priest to this council.

    The majority of rants . . . er articles on slashdot are often incorrect, biased, pure propaganda, reactionary, immature and half-baked.

  8. Re:Python Security Question on Guido van Rossum Unleashed · · Score: 1

    What you say is true. Just because you have a firewall in place doesn't mean you can dispense with a root password on hosts behind your firewall.

    "taint" mode is just another level of security to prevent obvious screwups.

    It is good to see Python has likeminded protections.

  9. Re:Sick of Perl/perl/PERL bigots.. on Guido van Rossum Unleashed · · Score: 1

    Care to be a little more specific then saying "namespace is such a problem" sigh.

    And then there is but any language that you have to call with special flags to get it to give you warnings of any kind is kind of lame in my book Perl gives does not require setting special flags for warning messages. It does allow you suppress warnings with the cryptic pragma

    no warnings;

    Why don't you post your 27 line multithreaded TCP/IP server. I bet it can be done with less hassle in Perl and would be faster to boot.

    Oh but wait, then you pulled out the "real programmers" arguement. Now I am convinced.

  10. Re:Perl? Bah! on Ask Guido van Rossum · · Score: 1

    Or for converting all your Python scripts into Perl.

  11. Nice try for a . . . on Hyperreality: The U.S-China Standoff · · Score: 1

    1 False. As stated repeated here and elsewhere US does not claim 320 km airspace. If your facts are wrong (especially the first)the rest of your arguement kinda falls flat.

    2. See one above my friend. The accident occurred in I-n-t-e-r-n-a-t-i-o-n-a-l airspace.

    3. So what ! P3 could do barrel rolls if they like, nothing wrong here.

    5. The Freeworld media is not in a conspiracy. Each media source has its own flavor but any media source the obviously distorted the basic facts would not be mainstream and would be ignored. I especially like how the the Chinese media like to publish how the American plane "suddenly swerved" and the fighter could not move out the way fast enough.

    The present Chinese goverment does not represent the Chinese people. It is an illegal, immoral and antiquated form of government. It will fall by the wayside. Lets just hope that is does not start a war first.

    Excessive nationalism is always the first step toward war. If China had a free press then the government could not stand for day. The Chinese govnerment is an autocratic regime that cannot tolerate the truth.

    If your post was troll (which i suspect it is) good job.

  12. You know I have always been suspicious of zero on The "Omega Number" & Foundations of Math · · Score: 2

    Other than the fact that the intelligent content around here approaches zero at times.

  13. Re:Can Python do this on Guido Von Rossum on Python · · Score: 1

    Thanks for the review !

  14. Can Python do this on Guido Von Rossum on Python · · Score: 1
    Having never used Python I wonder how well Python supports the following features that I have grown fond of in Perl:

    Symbolic references for variables and functions: I.e

    $var = "temperature" ;
    . . .
    $$var = 5;
    print $temperature; # Prints 5

    or

    $sort_func = "sort_ascending" ;
    ....

    &$sort_func(@lst) ; # Calls sub sort_ascending()

    This can also be done with eval but symbolic expressions are much more efficient.

    Have functions like "pack", "unpack" and bit shift operators? "pack" takes a list of values and then packs that data into a binary sructure. And of course "unpack" is the reverse. Good for efficient reading and writing of binary files and things like one line conversion of binary streams from big endian to little endian conversion.

    Fast built in reg expression. Single line of reg expression often replaces pages of code and the code is optimize for efficient parsing.

    BEGIN and END function blocks of code that run before compilation and after when the interpreter is being existed. I often include the following for keeping track of execution time.

    BEGIN {
    $start_real = time ; # Start timer
    }

    END {

    $stop_real = time ; # Stop timer

    $diff_real = $stop_real - $start_real ;

    print $diff ;

    }

    Cool (and fast) built ins like "grep", "sort", "map", "chomp" , "split", "join"

  15. Extending this logic to building construction on Human Genome Confirms Evolution · · Score: 1

    You know driving around my nieghborhood I notice the similar components in building structures. First bird houses look strikingly similar to houses in my subdivision and the bigger buildings downtown also have similar constructs.

    Therefore I conclude buildings have obviously evolved from each other since they have common parts. Or maybe they had a common creator.

    I am not a creationist but just hate to see faulty logic.

  16. Re:It's not like the SAT's meant much before` on Cal Schools May Nix SAT In Admissions Process · · Score: 1

    lemme guess you are white and male. no.

  17. Jim Allchin's is a troll on Red Hat CTO Responds To Allchin's Comments · · Score: 1

    It obvious. What are the chararistics of a Troll

    + They are immature.

    + They make bizaar comments in order to illicite an response.

    + They are an annoyance and should not be encouraged.

  18. Isn't this a bit species-centric thinking on Changing Earth's Orbit Proposed · · Score: 1

    In a billion years humanity will not exist. Our species (humans that is) is just another resting spot on the ladder of evolutionary progression.

    How many species are in existance today were also in existance a Billion years ago? Cockroaches ?

  19. Re:reusability... on The Object Oriented Hype · · Score: 1

    You make some good points.

    However, (there is always an however) you seem to imply that abstraction and good interface design is the dominion of OOP only.

  20. Please use the can before leave on Widespread Use Of Geothermal Energy? · · Score: 2

    I knew a guy that installed a copper coil heat exchanger in his extra large septic tank which he connected to a water source heat pump. He also installed a temperature probe so that he could monitor the internal temperature so that during the heating season he would not drag temperature too low to stop the biological action. During the cooling months that tank really churned.

    After visiting he would always encourage you to use the facilities and make your contribution to energy conservation.

    It is amazing how inventive and resouceful folks can get given a small economic incentive and it is sad that all G.W. Bush can come up with to confront the upcoming energy crisis is to drill more oil wells which will contribute to global warming and reduced the available resources of our future citizens.

  21. Re:Python on Flash For The Rest Of Us · · Score: 1

    Hey, a Python port would be great. However, if you do not think you cannot get work done in Perl then you are seriously misinformed.

  22. Adjust Your Settings on Flash For The Rest Of Us · · Score: 1

    If this bothers you can always filter you view. Probably easier then complaining about it.

  23. Re:it's not the hits on Core Servlets and Java Server Pages · · Score: 1

    With Java (unlike Perl) you can set up a completely assymetrical parallel processing cluster

    With Java (unlike mod_perl) you need that assymetrical harmonic converging parallel processing cluster.

  24. Site registration is bad on Caveat Emptor: Egghead.com Credit Records Nabbed · · Score: 2

    Fucking Egghead.

    I typically avoid e-commerce site that require me to "register" before I can buy, however I do happen to a "registered" egghead customer :(

    First off you have to give them a user name/password which after a while you start using the same username/password unless you have a very good memory. Typically passwords are stored unencrypted on a database somewhere so that you (or some devious social engineer) can retrieve your password if you forget it. Once your username/password is compromised then a simple script can test for other accounts at major e-commerce and/or stock trading sites.

    Also, I prefer to have the store where I buy from wipe out my cc number after processing the order instead of leaving it around for some disgruntal employee to access.

  25. What class of chips will these be on IBMs CMOS 9S · · Score: 1

    86x or PPC ?

    Is this a leap over Intel current capabilities.