Re:PHP or Perl?
on
Learning PHP 5
·
· Score: 2, Informative
I distribute my perl code with the required modules relative to the directory where the application lives. Now all you have to do is add something like this to your code
use lib./my_module_dir;
or
push @INC, './my_module_dir';
and perl will look in your private locations for required add-on modules.
This model of installing modules as needed for a parser is unlike most other languages, and is something most people haven't taken too
Actually it is similar for every other language including compiled C when using dynamic shared libraries. If you are using additinal modules or libraries you will need to distribute them with code base or be sure they are install in the system area.
Re:PHP or Perl?
on
Learning PHP 5
·
· Score: 2, Informative
But probally the main reason me and lots of other people who prefer PHP hate perl is CPAN. CPAN is the perl libraries which you always end up having to update and it can sometimes be a big pain in the ass.
Uh? >perl -MCPAN -e "install mymodule"
which will also track down dependencies and install those too.
Can it be any easier? Activestate has their own set of tools to do the same.
And you typically install or update modules because there is some spiffy module like Net::SFTP, Math::VectorReal or AI::NeuralNet that provide an amazing amount of functionality in an easy to use interface. CPAN is actually the reason a lot of folks use perl.
You determine the price you are willing to pay to deliver buyers to your site! You are charged by the click, not the view. If customers don't click on your listing to visit your site, you aren't charged. This means a higher return on investment!
In other words every time you click on their ad you effect a Microsoft donation to Slashdot!
it is encouraged that more OS's besides Microsoft's should be used. Diversity is important. Linux is authorized for use throughout the government, and actually is used alot more than you would think.
Unfortunately the Navy has implimented a brain-dead, microsoft only, across the enterprise, $8 Billion (yes, that is a B) contract call NMCI adminstrated by EDS.
The contract was designed for typical office use with no thought how it would work in a Development, Research or Industrial environment which the Navy has considerable. All of my existing Linux installations are now referred to as "legacy systems" and any new system development is required to comply with NMCI (Read microsoft).
The system is a monoculturist dream. One vulnerability and the enitre Navy's infrastructure will be fall like a house of cards. Not that someone thought it wise to relocate all our local LAN servers in central locations across the country - increase the likehood for failure and data compromise.
We cannot install software unless it is on an approved list. Only problem access to the list is restricted and difficult to get. The list is a joke. I am allow to install Mozilla but it must be verion 1.1. Or I can install perl but only 5.6 is approved on windows. Notepad is the text editor of choice.
Any fellow NMCI suffers out there take not that I found a place to complain here at NMCISUCKS.com.
And No to any NCMI lurkers I did not post this from work.
Why does not someone just come up with a real-time accent and artifact removal filter. For Indians you will need to spread out the syllables while maintaining the pitch. For Canadians you will have to remove the trailing "eh" from sentences.
I would suppose you could optimize the filter per individual and maybe one of the options on the phone menu is that you can select the dialect you are comfortable with. For example you can select:
+ West Texas drawl (replace all "you" with a you'all so "you do have the power turned on eh?" becomes "ya'all do have the power the turn").
+ New York/Jerseyan insulting snarl (remove all r's from the stream and add a little color. For example "Yo you idiot, you do have the powe tuned on doncha."
Yes, but they could not be "deliberately bred like that" unless the genetic variation existed within the genome.
In reference to the wolf The differences in size within the species is quite considerable. The biggest is the American timber wolf which grows to a height of over 90 cm, and can weigh up to 80 kg. The Fenno-scandinavian wolf is of average size, height 70 cm and weighs 40 - 50 kg (the record for Sweden was a male wolf that weighed in at 75 kg). They are a little smaller in the south of Europe, weighing about 25 kg.
I understand were you are coming from - Saddam and his infantile sons were bastards from hell - they needed to go.
But I wish the US would learn from the mistakes in past and not support some SOB, or some twisted ruling autocracy (read Saudia Arbia), because of they supposedly fit into our current selfish short objectives.
Incidently the 1991 massacre of Shia Muslims during their uprising at the end of the Gulf war; and the massacre of Kurds who fought for autonomy in northern Iraq after the Gulf war is estamated to be over 50k people. This uprising was openly encouraged and then abandoned by Bush senior. The Kurds are still very wary of the US as we also supported Saddam in the 80's when Saddam's cousin was earning his nickname as "Chemical Ali"
You know before you commit billions of dollars and thousands of lives you think you would get your reasons for going to war down pat.
Did Bush say we are going to invade Iraq due to human rights violations? We invaded for the wrong reasons and then started looking around for excuses. Why did we not act when the pictures of Kurdish mothers with children in their arms laying dead in the streets were first ciculated?
Toward the end of Gulf War 1 Bush senior came out and vocally encouraged an Iraqi uprising stating that the US would support them - which they did and we did not. This event is one of the reasons for some of those mass graves we are now investigating.
he West is now locked in a steel cage deathmatch with Radical Islam for world supremacy
Was it not Bush who admitted that we will never completely win the "War on Terror"!
No! We are not locked in "steel cage" with Islam for world supremacy. The Islamist have nothing but an empty fundy based illogical philosophy - that incidently has recently taken a downturn to a "killem all and let god sort them out" flavor.
Their philosophy only appeals to the mentally ill or uneducated. The only technology they have (including the clothes on their back and the glasses on the face) are produced by cultures other than their own. They present a very minor threat to modern society. Your chances of being killed in a car wreck is several orders of magnitude greater than your chances of be killed by an "Islamist".
My first concern is the removal of virus. FRTFA is says zeewee has a pore size of 0.02 m. Virus have a size of roughly 10 to 50 nm so it sounds like that will not be a problem.
Next what about heavy metals, PCB's and dioxons. No mention about that...
Why are we not directing our massive GNP towards scientific exploration such as studying genetic therapies to cure the rift raft of ailiments that curse mankind instead of fighting petty wars against a minor enemy "aka terrorist".
Let look at that stats:
Terrorist kill ~ 3000 people in 2001 and it becomes a focus of the US nation. While:
Breast cancer kills > 40,000 / year
Prostate cancer kills > 30,000 / year
Diabetes kills > 70,000 / year
The numbers world wide of course are much larger.
Yeah OT I know but these kind of discoveries convince me our priorities are misplaced.
A proof of the demise of the programmer the article points out:
The advent of the Codeless Development Environment (CDE)
I wonder if these "Codeless Development" environments are they themselves written in a codeless environment. If you have ever coded in a pure gui environments with boxes and connectors and such you will quickly learn the limitations.
Wow you need to wipe the spittle of your monitor:)
You can find detractors to any and all languages or systems (just noticing the source of the comments above).
I was not asking you to drink someone else's koolaid, but specifically list what you think is wrong with perl and see if it stands up to scrutiny. That is why your post was rated flamebait in the first degree.
Incidently if you read some of the quotes above and then read the discussions a little further and try to understand what the orignal complaint was you find out that they are laughable. For example:
"One exciting feature I came across recently is that under certain circumstances you can create what seems like a module which exports a bunch of names, but if you don't start the name with an upper-case character it only exports the first."
The guy who wrote this is evidently complaining about case sensitive file systems.
Or the fellow who said That indirect object syntax is worthy of hate. You read a little further and find out that his strongest argument is:
>> my $x = new Something; > > There's nothing wrong with that syntax. It's entirely clear and > unambigous, it is easy to read, there are no potential bugs.
In the long term I believe you are correct. In the short term it may put downward pressure on IT related salaries no doubt.
Eventually as these 3rd world countries progress they will be looking to buy specialized services off their own shore. What floats someone else's boat will eventually float our own.
Perl goes against every rule in the book about readability, simplicity, learnability, maintainability, integrity, responsibility to the community and style. And for no good reason!
O.K. Why don't you start with listing a single specific?
If we are looking for a literary metaphor McBride is more akin to Snidely Whiplash.
Mcbride is the almost perfect villian and hollywood writers should take note - for inspiration if nothing else.
He is a consummate blend of hubris, arrogance, ignorance, knavishness casted into a tongue wagging, smirking package with just barely enough intelligence that you don't completely discount him.
"Opposing or intended to regulate business monopolies, such as trusts or cartels, especially in the interest of promoting competition: antitrust legislation."
Then why is every antitrust settlement against Microsoft involves "concessions" that only result in an increase in Microsoft's monopoly position?
Was not one of Microsoft "concessions" in the governments case to donate hardware and Microsoft's software to schools!!!! This is a page out Apple's marketing plan. Microsofties must be high fiveing each other after these "concessions" are accepted.
As an aside, the moment that the military started boasting about bodycounts, I knew the insurgency was winning. The military should be boasting about how many guerillas didn't appear and weren't killed, rather than how many grabbed guns with glee and got bombed (along with civilians), dying in glee (going to heaven...).
I vote Dusabre for secetary of state. This is same "metric of success" that was pioneered in Vietnam. The military is big on "lessons learned" so let's start applying "lessons learned" to leadership and overall strategy.
I distribute my perl code with the required modules relative to the directory where the application lives. Now all you have to do is add something like this to your code
./my_module_dir;
use lib
or
push @INC, './my_module_dir';
and perl will look in your private locations for required add-on modules.
This model of installing modules as needed for a parser is unlike most other languages, and is something most people haven't taken too
Actually it is similar for every other language including compiled C when using dynamic shared libraries. If you are using additinal modules or libraries you will need to distribute them with code base or be sure they are install in the system area.
But probally the main reason me and lots of other people who prefer PHP hate perl is CPAN. CPAN is the perl libraries which you always end up having to update and it can sometimes be a big pain in the ass.
Uh? >perl -MCPAN -e "install mymodule"
which will also track down dependencies and install those too.
Can it be any easier? Activestate has their own set of tools to do the same.
And you typically install or update modules because there is some spiffy module like Net::SFTP, Math::VectorReal or AI::NeuralNet that provide an amazing amount of functionality in an easy to use interface. CPAN is actually the reason a lot of folks use perl.
In other words every time you click on their ad you effect a Microsoft donation to Slashdot!
Now where is that ad....
it is encouraged that more OS's besides Microsoft's should be used. Diversity is important. Linux is authorized for use throughout the government, and actually is used alot more than you would think.
Unfortunately the Navy has implimented a brain-dead, microsoft only, across the enterprise, $8 Billion (yes, that is a B) contract call NMCI adminstrated by EDS.
The contract was designed for typical office use with no thought how it would work in a Development, Research or Industrial environment which the Navy has considerable. All of my existing Linux installations are now referred to as "legacy systems" and any new system development is required to comply with NMCI (Read microsoft).
The system is a monoculturist dream. One vulnerability and the enitre Navy's infrastructure will be fall like a house of cards. Not that someone thought it wise to relocate all our local LAN servers in central locations across the country - increase the likehood for failure and data compromise.
We cannot install software unless it is on an approved list. Only problem access to the list is restricted and difficult to get. The list is a joke. I am allow to install Mozilla but it must be verion 1.1. Or I can install perl but only 5.6 is approved on windows. Notepad is the text editor of choice.
Any fellow NMCI suffers out there take not that I found a place to complain here at NMCISUCKS.com.
And No to any NCMI lurkers I did not post this from work.
Why does not someone just come up with a real-time accent and artifact removal filter. For Indians you will need to spread out the syllables while maintaining the pitch. For Canadians you will have to remove the trailing "eh" from sentences.
I would suppose you could optimize the filter per individual and maybe one of the options on the phone menu is that you can select the dialect you are comfortable with. For example you can select:
+ West Texas drawl (replace all "you" with a you'all so "you do have the power turned on eh?" becomes "ya'all do have the power the turn").
+ New York/Jerseyan insulting snarl (remove all r's from the stream and add a little color. For example "Yo you idiot, you do have the powe tuned on doncha."
Now I know I maybe jaded but I have noticed that the subject website advertises on slashdot a lot.
Could this action not be some sort of publicity stunt either by a slashdot editor or suicide girls? Hmmmmmm.
I notice several above posters even questioned the validity of the source of the "threatening" message.
Yes, but they could not be "deliberately bred like that" unless the genetic variation existed within the genome.
In reference to the wolf
The differences in size within the species is quite considerable. The biggest is the American timber wolf which grows to a height of over 90 cm, and can weigh up to 80 kg. The Fenno-scandinavian wolf is of average size, height 70 cm and weighs 40 - 50 kg (the record for Sweden was a male wolf that weighed in at 75 kg). They are a little smaller in the south of Europe, weighing about 25 kg.
When you have some species like Canine's that range in size from Mastif to Chihuahua
I understand were you are coming from - Saddam and his infantile sons were bastards from hell - they needed to go.
But I wish the US would learn from the mistakes in past and not support some SOB, or some twisted ruling autocracy (read Saudia Arbia), because of they supposedly fit into our current selfish short objectives.
Incidently the 1991 massacre of Shia Muslims during their uprising at the end of the Gulf war; and the massacre of Kurds who fought for autonomy in northern Iraq after the Gulf war is estamated to be over 50k people. This uprising was openly encouraged and then abandoned by Bush senior. The Kurds are still very wary of the US as we also supported Saddam in the 80's when Saddam's cousin was earning his nickname as "Chemical Ali"
You know before you commit billions of dollars and thousands of lives you think you would get your reasons for going to war down pat.
Did Bush say we are going to invade Iraq due to human rights violations? We invaded for the wrong reasons and then started looking around for excuses. Why did we not act when the pictures of Kurdish mothers with children in their arms laying dead in the streets were first ciculated?
Toward the end of Gulf War 1 Bush senior came out and vocally encouraged an Iraqi uprising stating that the US would support them - which they did and we did not. This event is one of the reasons for some of those mass graves we are now investigating.
he West is now locked in a steel cage deathmatch with Radical Islam for world supremacy
Was it not Bush who admitted that we will never completely win the "War on Terror"!
No! We are not locked in "steel cage" with Islam for world supremacy. The Islamist have nothing but an empty fundy based illogical philosophy - that incidently has recently taken a downturn to a "killem all and let god sort them out" flavor.
Their philosophy only appeals to the mentally ill or uneducated. The only technology they have (including the clothes on their back and the glasses on the face) are produced by cultures other than their own. They present a very minor threat to modern society. Your chances of being killed in a car wreck is several orders of magnitude greater than your chances of be killed by an "Islamist".
My first concern is the removal of virus. FRTFA is says zeewee has a pore size of 0.02 m. Virus have a size of roughly 10 to 50 nm so it sounds like that will not be a problem.
Next what about heavy metals, PCB's and dioxons. No mention about that...
Let look at that stats:
Terrorist kill ~ 3000 people in 2001 and it becomes a focus of the US nation. While:
Breast cancer kills > 40,000 / year
Prostate cancer kills > 30,000 / year
Diabetes kills > 70,000 / year
The numbers world wide of course are much larger.
Yeah OT I know but these kind of discoveries convince me our priorities are misplaced.
Agreed even some ecommerce sites give you a discount just because you are proactive enough to be using Mozilla.
A proof of the demise of the programmer the article points out:
The advent of the Codeless Development Environment (CDE)
I wonder if these "Codeless Development" environments are they themselves written in a codeless environment. If you have ever coded in a pure gui environments with boxes and connectors and such you will quickly learn the limitations.
Wow you need to wipe the spittle of your monitor :)
You can find detractors to any and all languages or systems (just noticing the source of the comments above).
I was not asking you to drink someone else's koolaid, but specifically list what you think is wrong with perl and see if it stands up to scrutiny. That is why your post was rated flamebait in the first degree.
Incidently if you read some of the quotes above and then read the discussions a little further and try to understand what the orignal complaint was you find out that they are laughable. For example:
"One exciting feature I came across recently is that under certain circumstances you can create what seems like a module which exports a bunch of names, but if you don't start the name with an upper-case character it only exports the first."
The guy who wrote this is evidently complaining about case sensitive file systems.
Or the fellow who said That indirect object syntax is worthy of hate. You read a little further and find out that his strongest argument is:
>> my $x = new Something;
>
> There's nothing wrong with that syntax. It's entirely clear and
> unambigous, it is easy to read, there are no potential bugs.
I still hate it.
In the long term I believe you are correct. In the short term it may put downward pressure on IT related salaries no doubt.
Eventually as these 3rd world countries progress they will be looking to buy specialized services off their own shore. What floats someone else's boat will eventually float our own.
I thought so....
Perl goes against every rule in the book about readability, simplicity, learnability, maintainability, integrity, responsibility to the community and style. And for no good reason!
O.K. Why don't you start with listing a single specific?
If we are looking for a literary metaphor McBride is more akin to Snidely Whiplash.
Mcbride is the almost perfect villian and hollywood writers should take note - for inspiration if nothing else.
He is a consummate blend of hubris, arrogance, ignorance, knavishness casted into a tongue wagging, smirking package with just barely enough intelligence that you don't completely discount him.
Now can we have perl articles without every python weeny jumping up and down and shouting "perl sucks"?
oh yes and vice versa - I hope.
Then why is every antitrust settlement against Microsoft involves "concessions" that only result in an increase in Microsoft's monopoly position?
Was not one of Microsoft "concessions" in the governments case to donate hardware and Microsoft's software to schools!!!! This is a page out Apple's marketing plan. Microsofties must be high fiveing each other after these "concessions" are accepted.
Will we have computers with a logo that says
"Guinness inside"
What do you think of the Evil called SCO?
As an aside, the moment that the military started boasting about bodycounts, I knew the insurgency was winning. The military should be boasting about how many guerillas didn't appear and weren't killed, rather than how many grabbed guns with glee and got bombed (along with civilians), dying in glee (going to heaven...).
I vote Dusabre for secetary of state. This is same "metric of success" that was pioneered in Vietnam. The military is big on "lessons learned" so let's start applying "lessons learned" to leadership and overall strategy.