News for hackers. Stuff that matters.
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:10AM (#3749538)
I chose PHP because it's gathers everything I hate about any language in one spot.

* It has everything including the kitchen sink but nothing in the decor matches. There is no unifying principle to help you grok the language

* The Community is all about quick hacky fixes to already broken code and this approach seems to flow from the core developers out.

* It's not type safe, not even at runtime. I don't know if I ever want to work in a language that doesn't have proper type safety as a guard rail. (Note I'm not talking about compile time vs runtime type safety I'm just talking about type safety period)

* The code is just plain ugly to look at and I used to be a pretty heavy perl coder so that's saying something.

I know some of these are pretty subjective but for me php just manages to hit every single one of my top programming language gripes.

If you want to know my favourite that's a much harder question to answer. Golang has been pleasing me lately although it's interfaces have a very tiny hole in the type safety.

ML and it's varying descendants have as close to my ideal type system as I've ever seen. But the chances I'll ever get to use it for a job are slim to none and it seems the community is a little too academic for my taste.

Lisp has the most awesome metaprogramming built in and I had a brief heady love affair with it until it's lack of good type safety brought me back to earth.

I suppose all this means I'm one day fated to write my own "ideal" programming language so it can be featured in a list like this :-)

Re:Poll: What's Your Most Disliked Programming Language? by pepijndevos on Saturday March 24, 2012 @11:21AM (#3749564)
I once found a login form where 1e3 was a correct password, when yours was 1000. I'm still not sure if it eval'd your password, but it was PHP for sure.
Re:Poll: What's Your Most Disliked Programming Language? by wizzard on Saturday March 24, 2012 @03:48PM (#3750495)
What does this have to do with faults of the language? I can think of a lot of stupid things to do in any language; it doesn't mean the language is the problem.
Re:Poll: What's Your Most Disliked Programming Language? by scott_w on Sunday March 25, 2012 @03:39AM (#3751985)
The weak typing of PHP doesn't make life easier for the programmer in this instance.

For example, this specific problem is harder to create in stronger-typed languages, since you would need to explicitly cast from an integer to a string.

Re:Poll: What's Your Most Disliked Programming Language? by rane on Saturday March 24, 2012 @09:34PM (#3751407)
It does if the language itself makes it easier for you to make those kind of mistakes.
Re:Poll: What's Your Most Disliked Programming Language? by jonursenbach on Sunday March 25, 2012 @03:24AM (#3751962)
It's easy to make any kind of mistake in any language. Singling PHP out for it because some people are shitty programmers is BS, IMHO. Not all of us are asshats who have no idea what we're doing.
Re:Poll: What's Your Most Disliked Programming Language? by ticks on Saturday March 24, 2012 @11:31AM (#3749596)
I think PHP's main problem on websites like these is that it's too mainstream of a language. It's like asking someone who's an avid fan of world cinema about the latest Michael Bay film.

I'm not that interested in programming, so I think it's a great language. All those years back when first learning to use it, I remember going through a book and being so happy that it did practically everything itself.

Re:Poll: What's Your Most Disliked Programming Language? by jcheng on Saturday March 24, 2012 @02:10PM (#3750104)
> I'm not that interested in programming, so I think it's a great language

I think this sums up everyone I've met who actually likes PHP. They like that they are able to get stuff done, and look no further. It is just frustrating to those of us who know that PHP is one of the most poorly designed (and I use that word loosely) languages ever to be successful.

If you can get over the local maximum of getting stuff done in PHP, the grass actually IS greener in Python and Ruby land.

Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Saturday March 24, 2012 @10:37PM (#3751527)
> I think this sums up everyone I've met who actually likes PHP.

That says more about the people you associate with then with the language.

The people I know care about programming, care about doing it well, care about elegant solutions, and care about a wonderful end product. What they don't care about are stupid language wars.

> the grass actually IS greener in Python and Ruby land.

I never got serious with Ruby, so I'll confess, I might be missing something. But, going by what I see in Destroy All Software's screencasts, I don't feel like I'm missing anything.

I can't help it, but ever since Rails came on the scene, I can't help but feel like the PHP people that make up the PHP community has dramatically improved. This, of course, is purely based on the people I've met.

Re:Poll: What's Your Most Disliked Programming Language? by jcheng on Sunday March 25, 2012 @02:49AM (#3751913)
OK, how about I rephrase to:

> I've never seriously learned a second language, so I think it's a great language

Do the people you know have experience with other comparable* languages, and still think PHP is a well-designed language and platform?

I concede that the PHP community, and PHP itself, has dramatically improved in the last few years. PHP 5 is a revelation compared to PHP 4.

[*] i.e. not "The other language I know is C, and I love that PHP is so high level!"

Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Sunday March 25, 2012 @09:02AM (#3752472)
> Do the people you know have experience with other comparable* languages, and still think PHP is a well-designed language and platform?

For the most part, yeah. There are the obvious quibbles you get with any language, but for it's domain, it's the best bang for the buck. Does that mean it's the only language in our stack? No. But for my money, for the web side, it can't be beat. If I were to do a site in a non PHP language, it would be Python hands down. That being said, it all depends on what the project is, and what it entails.

Listen, I can't help but wonder if your imparting some past on the current crop of PHP developers (and by current, I mean those that moved to PHP5 some 8 years ago). Maybe you had experiences with another group of people that focus on just one language.

The PHP community of today is far from that. It's made up of practical people, who focus on more than just PHP. More to the point, calling someone a PHP developer these days just reflects that when they do the server side web code, they are using PHP. Not that it's their only language.

To be honest, my personal experience is that everyone I've met who pans PHP and proclaims to have switched happily to Rails (because that's what they switch to first, never Ruby), or Python is that they needed the extra structure these languages enforced. Basically, the PHP code they deride so much was code they helped write.

That, of course, is just my point of view. I don't know many people who use Ruby for web development, so it would be unfair for me to suggest the entire community was like that.

Re:Poll: What's Your Most Disliked Programming Language? by georgefox on Sunday March 25, 2012 @03:17PM (#3753487)
> Do the people you know have experience with other comparable languages, and still think PHP is a well-designed language and platform?

Is this the only thing upon which to base your opinion of a language? As someone who's seen at least a glimpse of the world beyond PHP, I'd concede that the design of the language, especially in earlier versions, is probably not its biggest selling point. But as you and I agreed below, PHP derives its value in other areas.

Maybe it's implicit in a question like "What's your most disliked programming language?" that those other areas should be excluded from consideration, but if that's not the case, then focusing solely on language design is a bit unfair to PHP.

Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Sunday March 25, 2012 @03:38PM (#3753552)
> I'd concede that the design of the language, especially in earlier versions, is probably not its biggest selling point.

Keep in mind, the design of the language wasn't to create a new language, but instead, make using various libraries easily usable in a web environment. Hence the reason for the multitude of c or c-like functions. Eventually, the shift moved in a different direction.

I like to think that while PHP wasn't intelligently designed, it did evolve. And for my money, evolution beats out intelligent design.

Re:Poll: What's Your Most Disliked Programming Language? by andys627 on Tuesday April 03, 2012 @01:06AM (#3791546)
+Heyo for evolution > intelligent design
Re:Poll: What's Your Most Disliked Programming Language? by Osiris on Sunday March 25, 2012 @01:21AM (#3751807)
> The people I know care about programming, care about doing it well, care about elegant solutions, and care about a wonderful end product. What they don't care about are stupid language wars.

I was just thinking this same thing. My background is mostly in PHP, C#, and more recently JavaScript.

Each of these languages is completely different from each other, but I haven't gotten to point where I curse the fact that one program is written in one language versus the other.

Each language has it features and pitfalls, but as long as you can accomplish the task you've set out on, I'm not sure that it really matters.

For example, I absolutely love the ease of passing functions around in JavaScript, but you can also make a real stinkin' pile if you don't structure things right.

Having used JavaScript, I find myself thinking about using delegates and anonymous functions a lot more in C# than I did before because I've seen the benefit of them in JS.

You can't tell a good programmer by their choice in language but in how they leverage that language to make awesome software.

Re:Poll: What's Your Most Disliked Programming Language? by whateverer on Sunday March 25, 2012 @10:21AM (#3752662)
> What they don't care about are stupid language wars. Then why don't you care about PHP's horrible design, implementation, and development team? I veer away from PHP, fearing very much the Broken Window effect from all the glass scattered in the ground around PHP all the time.
Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Tuesday March 27, 2012 @03:31PM (#3763232)
> fearing very much the Broken Window effect from all the glass scattered in the ground around PHP all the time.

You can't program if you use a broken window as a measure of whether you use the language or not. I do not know of a language without issues, ugliness, or mistakes.

Re:Poll: What's Your Most Disliked Programming Language? by georgefox on Saturday March 24, 2012 @07:00PM (#3751058)
I don't know if this counts as meeting, but I consider myself a developer that is interested in programming, doing things right, etc., and I like PHP.

I see PHP as a language comparable to English. Both languages have a bunch of inconsistencies, peculiar idiosyncrasies, a humongous base of speakers/users, etc. In both languages, a lot of what people write is not of high quality, but writing high-quality stuff is certainly possible. If I had to choose one language for the world to speak, it probably wouldn't be English, and if I had to choose one programming language to be used in a given field (say, server-side web development), it probably wouldn't be PHP. But given the reality of the situation, PHP, like English, is an incredibly useful language, and PHP code, like English writing, can be of very high quality. I think this makes it a very valuable language.

Re:Poll: What's Your Most Disliked Programming Language? by jcheng on Sunday March 25, 2012 @02:56AM (#3751923)
I agree that PHP is an incredibly useful language; that code written in PHP can be of very high quality; that PHP is a very valuable language (because every host supports it, and most popular content management systems must be extended using it).

What I don't think it is, is a well-designed one. It could have been all of those other things, AND a well-designed one, it just wasn't. I think it's a shame if a generation of web programmers come of age thinking that the warts of PHP are inherent to all programming languages. (I myself once felt that way about ColdFusion, since it was the first language I learned and everyone I worked with also only knew ColdFusion.)

Re:Poll: What's Your Most Disliked Programming Language? by mst on Saturday March 24, 2012 @02:26PM (#3750167)
Rasmus basically said he doesn't care if he copies and pastes stuff around so long as it gives him the end result he wanted. The language reflects that.

And, actually, it's NOT necessarily a bad thing to have a language oriented around people who don't actually care that much about programming when it's also oriented around people who want to ship something useful to an end user (who might care if it's insecure but doesn't care if the code's pretty).

I've encountered a number of orgs now that have PHP on the front speaking XMLRPC or JSONRPC or whatever to a backend daemon (either Java or Perl in the cases I've seen) and since that means messiness on the front end shouldn't be able to violate business rules, it works out really well.

Re:Poll: What's Your Most Disliked Programming Language? by jeltz on Saturday March 24, 2012 @03:43PM (#3750477)
PHP is not much good for security though for beginner developers. It does not help with XSS, CSRF, or SQL injection prevention. If anything it does actually encourage them if you do not know of the risks.
Re:Poll: What's Your Most Disliked Programming Language? by georgefox on Saturday March 24, 2012 @07:11PM (#3751097)
I feel like this is more of a role for a framework built on top of PHP than for a language like PHP itself. PHP itself is pretty low-level. How would you suggest providing better protection against these?

In the past, of course, PHP did have magic_quotes, which was a misguided attempt at mitigating SQL injections. This has since been removed, and there's been a big push in the direction of using prepared statements/parameterized queries through a library like PDO, which I think was introduced in PHP 5.

Re:Poll: What's Your Most Disliked Programming Language? by jeltz on Saturday March 24, 2012 @09:10PM (#3751364)
Agreed, about that this is the role of a framework and this is in many ways what is wrong about PHP. It tries to be both language and a framework with its built in templating. But templating which does not include simple to use support for escaping HTML is a really dangerous tool in the hands of a beginner.

So was the (I believe now deprecated) mysql library they shipped and the tempting ease of string interpolation.

Re:Poll: What's Your Most Disliked Programming Language? by thurn on Saturday March 24, 2012 @01:41PM (#3750003)
Doesn't the fact that Python won the "Favorite Language" poll kind of show that it's not just about hating on mainstream languages? Python's pretty mainstream, I'd say... definitely top 10.
Re:Poll: What's Your Most Disliked Programming Language? by kamaal on Wednesday March 28, 2012 @04:41AM (#3765290)
Python has a very low barrier to entry and that is bad. Very bad, trust me.

That sort of a market generally gets swarmed by low price developers very quickly.

Re:Poll: What's Your Most Disliked Programming Language? by msluyter on Saturday March 24, 2012 @07:39PM (#3751169)
But HN isn't a representative sample, so our poll doesn't accurately reflect the overall popularity of a language.
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:37AM (#3749603)
Your second statements communicates to me that you like it because it's a toy language. It may be useful for just getting something small done and getting started but for someone who looks at programming as an enjoyable craft php loses it's shine. Especially once you've been exposed to other languages that highlight how much better it could be.
Re:Poll: What's Your Most Disliked Programming Language? by EGreg on Saturday March 24, 2012 @11:50AM (#3749632)
I actually disagree to some extent. I know, it's PHP. But it can do some pretty amazing things if you think in terms of files. If you're coming from a C background, it's actually quite nice.

For example, you can use include ( ) in so many ways, autoload classes, write getters/setters and override anything, implement views, etc. Everything "just runs", or can be compiled into fast code with HipHop (or cached with APC).

OK, to be fair, I would say that PHP with a framework that takes advantage of it can be very cool. I can't exactly share our codebase, but you can see the open source version from 2 years ago : http://phponpie.com to aprpeciate some of the "beauty" of PHP

And it can be extremely expressive and powerful. Sure, it can't do everything that Node.js can do, but for serving requests it can be awesome. It isolates every script in its own memory space, so you never have to worry about anything! The one thing I do not like about PHP is that it's married to the outdated thread-based webserver model, while the new boys on the block (NGinX, Node.js and the new Apache) all use event-based programming.

Don't downvote just because I said PHP can be cool. Look at our framework at least, before voting :)

Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:59AM (#3749668)
Actually I upvoted you. Just because I dislike PHP doesn't mean someone else can't like it.
Re:Poll: What's Your Most Disliked Programming Language? by nocipher on Saturday March 24, 2012 @01:54PM (#3750044)
I spend a lot of my time writing Python, especially for Django powered sites, and writing client side javascript. Periodically, I'll get stuck maintaining large projects written entirely in PHP and miss the nice features from other languages. Javascript has its bug-a-boos, but with its dynamic design and jQuery, its easy to write clean code. Python is also much cleaner and usually just works.

On the other hand, all of my programming horror stories and terrible hacks have been written in PHP. I remember having to use an older version of PHP that failed to support closures when it was needed in some legacy code. The code was passing functions as arguments, but because the functions were not bound in the local scope, there were issues with namespace collisions. I had to resort to global variables for a situation that should not have needed it because rewriting everything properly required a non-trivial refactoring that I did not have the time to complete. Granted, this has been addressed in more recent versions of PHP, but there are always old versions floating around where "gotcha's" like this show up.

More recently, I ran into an issue porting PHP 5 code across different linux distributions where, for some strange reason, libraries on the include path failed to be found. Debugging something like that is ridiculously frustrating. Problems like this are bound to show up with any technology you use frequently, but my work involves using many languages and technologies and, of them, PHP is the only one that leads to these sorts of problems with such regularity.

Re:Poll: What's Your Most Disliked Programming Language? by handzhiev on Saturday March 24, 2012 @01:45PM (#3750015)
What is the definition of "something small"? Millions of users and companies use PHP based software for various business needs, from small to big. Yes, the language has a lot of flaws, but I disagree that you can't create useful and rather "big" software with it. And it's easier compared to other languages. If it solves people problems, why not?
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @02:44PM (#3750224)
Nothing I said was meant to indicate you couldn't use php for something big. All I meant to indicate was that once you've seen what other languages have to offer and have started to look on programming as a craft php starts to lose it's shine.
Re:Poll: What's Your Most Disliked Programming Language? by esrauch on Saturday March 24, 2012 @12:18PM (#3749730)
Facebook uses a lot of PHP and seems to do fine, just because a language allows you to write horrible code doesn't necessarily mean it can't be used to write good code. PHP obviously has a lot of warts, but I think the bigger problem is that it gives you just enough rope to hang yourself.
Re:Poll: What's Your Most Disliked Programming Language? by Darmani on Saturday March 24, 2012 @12:33PM (#3749784)
There are two kinds of programmers at Facebook: The ones who curse PHP every work day, and the ones who don't use it.

"This language really sucks." -- paraphrased, intro to PHP on Facebook's internal Wiki

Re:Poll: What's Your Most Disliked Programming Language? by esrauch on Saturday March 24, 2012 @01:00PM (#3749875)
I wouldn't be surprised if it happened more than usual with PHP, but in my experience programmers always curse the language/framework/api that they use heavily. You always learn the seams and hit issues with the design if you work with something for long enough.
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @02:40PM (#3750213)
Yep, It's a phenomenon frequently called "using in anger". The interesting thing about php is you don't have to use it very long before you use it in anger. Most of the time you can tell if someone is well versed in a language if they use it in anger. With PHP all you can tell is they've used it.
Re:Poll: What's Your Most Disliked Programming Language? by prodigal_erik on Saturday March 24, 2012 @04:02PM (#3750547)
Is that was "use in anger" means? I had assumed it came from "fire a shot in anger", meaning serious use rather than practice or ceremony.

It's true that most software makes me either angry or sad, but PHP (where even "==" is wrong after Perl had gotten it right) was a singularly memorable peek into Special Hell.

Re:Poll: What's Your Most Disliked Programming Language? by IgorPartola on Sunday March 25, 2012 @12:22AM (#3751717)
Nope! I love me some Python, JavaScript, C, and even ActionScrip, Java and Pascal. Blaming the tools is bad form unless you can prove they are bad, which can be done with PHP.
Re:Poll: What's Your Most Disliked Programming Language? by direllama on Sunday March 25, 2012 @05:48AM (#3752191)
The concept of "bad" is subjective and can't be proven. Don't blame the tools for what the people do with them.
Re:Poll: What's Your Most Disliked Programming Language? by IgorPartola on Sunday March 25, 2012 @09:08AM (#3752485)
Fair enough. Bad is too broad a term. But I think most developers agree that PHP is inconsistent and lacks type safety. For a long time it lacked namespaces which made for some really silly design patterns. It lacks some neat features too, like lambdas and its support for closures is minimal. The list can go on.
Re:Poll: What's Your Most Disliked Programming Language? by esrauch on Sunday April 01, 2012 @10:13PM (#3785934)
All of the things you listed are missing from at least one of the languages that you listed as your favorites.
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @02:38PM (#3750205)
Facebook also uses a very restricted subset of php for a lot of it, if the people I've met from over there are any indication. This may make it generally more useful for them than it may normally be.

I think they have to use that subset so it can be compiled by HipHop down to C code.

Re:Poll: What's Your Most Disliked Programming Language? by billybob on Monday March 26, 2012 @01:47PM (#3757784)
I agree there is some language snobbery. However, I moved from PHP to Ruby and love it.

My two biggest gripes with PHP:

1) No standard package management system. I worked with some VERY smart developers at a PHP-only company, but nearly every part of their complex system was coded in-house, from the ORM up. Rubyists practically never code things that are available as well-tested gems, saving tons of effort, debugging, and training new people. That's a huge boost to Getting Things Done.

2) Little discoverability. If you can't remember the string method you want, you'll have to Google - and make sure you notice the order of the arguments. In Ruby, you can do `'foo'.methods.sort` and see all the methods available on strings. Since it's OO, you don't have to pass in the string itself, so there are fewer arguments to know in the first place.

Re:Poll: What's Your Most Disliked Programming Language? by jamesgeck0 on Tuesday March 27, 2012 @10:48AM (#3761767)
I thought PEAR was PHP's standard package manager?
Re:Poll: What's Your Most Disliked Programming Language? by robomartin on Saturday March 24, 2012 @01:00PM (#3749873)
What would you use in place of PHP to build a web app? The only requirement is that you have to be able to hire developers just as easily as you can hire PHP developers. This might be where rubber meets the road. It's easy to dislike a tool based on all kinds of criteria. In the real world one has to be able to get work done and, if needed, find developers to expand a team. Proposing a subjectively or objectively better language that does not have a large enough developer base to call upon when needed isn't really a business solution as much as it is an interesting academic exercise.

To clarify, I have no feelings either way. I've had to learn so many languages over the years that I just see them as another tool in the toolbox. Life goes on.

Re:Poll: What's Your Most Disliked Programming Language? by gnuvince on Saturday March 24, 2012 @01:27PM (#3749952)
Yaron Minsky said in one of his talks that hiring OCaml programmers was the easiest thing in the world: he posted an ad on the mailing list, got 20 applications, 15 of which were worthy of a phone interview. Of those 15, 5 were asked to come in for an in-person interview and 3 of those were hired.

Sure, he might not be able to hire 80 programmers in one batch, but I don't think Jane Street would need to do that, or that they are worried about a shortage of OCaml programmers. Also, I would be more confident of the capabilities of an OCaml programmer than of a PHP programmer.

Re:Poll: What's Your Most Disliked Programming Language? by gnosis on Saturday March 24, 2012 @04:55PM (#3750698)
And, as an OCaml programmer, if you were not one of those lucky 3, where would you work other than Jane Street?
Re:Poll: What's Your Most Disliked Programming Language? by ataranto on Saturday March 24, 2012 @11:24PM (#3751608)
At the PHP shop.
Re:Poll: What's Your Most Disliked Programming Language? by bunderbunder on Monday March 26, 2012 @03:01PM (#3758146)
All sorts of places.

I'd be willing to wager that there's hardly an OCaml programmer in this world who isn't also skilled in a few other languages.

Re:Poll: What's Your Most Disliked Programming Language? by kamaal on Wednesday March 28, 2012 @04:33AM (#3765278)
That still doesn't make a case to learn OCaml.

What it means is, People who learn OCaml generally have to learn something else too. Because the jobs just aren't there. Which in case the person is better off learning that something else properly.

And that is a very big problem.

Re:Poll: What's Your Most Disliked Programming Language? by bunderbunder on Wednesday March 28, 2012 @10:49AM (#3766500)
I generally pass over resumes where someone doesn't list at least one programming language that isn't very marketable, fashionable, or part of C's extended family. It's a quick way to winnow out folks for whom programming is likely to be more than just a paycheck.
Re:Poll: What's Your Most Disliked Programming Language? by fanf2 on Sunday March 25, 2012 @03:19PM (#3753496)
At a Scala or an Erlang or a Clojure shop, I expect :-)
Re:Poll: What's Your Most Disliked Programming Language? by A1kmm on Saturday March 24, 2012 @11:56PM (#3751663)
Unless you have a very short term project, you shouldn't hire developers based on their knowledge of a particular language - it is far better to hire them based on their demonstrated skills that transcend particular programming languages or technologies (knowledge of multiple programming languages, track record developing software, computer science knowledge, knowledge of software engineering principles, and so on).

Developers can learn new languages if they need to.

Re:Poll: What's Your Most Disliked Programming Language? by rbanffy on Saturday March 24, 2012 @11:39PM (#3751637)
> The only requirement is that you have to be able to hire developers just as easily as you can hire PHP developers.

Would you trust your product to the kind of developer you can easily hire?

Re:Poll: What's Your Most Disliked Programming Language? by soc88 on Saturday March 24, 2012 @01:26PM (#3749948)
Just wondering ... what is "large enough developer base"?

If you are hiring, you are not hiring 10000 people, you are hiring one or two people.

If you can choose between a pool of 10000 developers in PHP and 100 in Haskell (whatever...) you will probably find more candidates you want to hire in the second pool.

And it is certainly more likely that you find the appropriate candidate if you don't have to wade though hundreds of applications.

Re:Poll: What's Your Most Disliked Programming Language? by robomartin on Saturday March 24, 2012 @03:05PM (#3750358)
My general point is that evaluating languages based on personal or technical preferences might just be a flawed metric. Unless what you are doing is a hobby you have to deal with additional criteria. I pointed out just one such data points.

I, for example, really love APL. I would also never think of using APL as the basis of a commercial project unless there was an overwhelming reason to do so.

A friend of mine built a nice company around a product built entirely around Forth. He loved the language. And, he lived to regret making that decision. He eventually paid gobs of money to have the entire code base re-written in C. A couple of years later he sold the business for several million. Potential buyers did not want to touch him with the Forth code base. Just a reality of business.

To clarify, the potential buyers were not interested in the Forth code base because they did not use Forth themselves. Acquiring a company whose products were based around Forth would mean adding a new layer of developers to their team and, effectively, byfurcating their efforts and skill sets. A code base written in C was a no-brainier for most interested parties. With C on the table the language was just a check-box item that did not require further discussion. With Forth the discussions stopped right there.

Again, nothing to do with the merits of the language and everything to do with business realities.

Re:Poll: What's Your Most Disliked Programming Language? by doktrin on Saturday March 24, 2012 @09:52PM (#3751447)
I'm not sure why "business realities" are being brought into this discussion.

If the poll were "what is the most common back-end web development language" or "what language should a startup use in order to have the easiest time finding developers", you would have a legitimate gripe with those who chose, for instance, Prolog. However, that's not the case here.

Re:Poll: What's Your Most Disliked Programming Language? by kaens on Sunday March 25, 2012 @07:08AM (#3752295)
While you certainly make good points from a business perspective, it's becoming increasingly more likely that programmers you can hire that both:

+ know PHP

+ are experienced enough to deliver a working, maintainable application

are also fluent in at least one of ruby or python, both of which are much nicer languages in general and have strong web-dev presences.

The issue with hiring "people who know PHP" just because a whole lot of people know PHP is that issues with maintainability of whatever gets written tend to be much more of a pain than with similar projects in other high-level languages.

It's not, of course, that you can't write a ball of unmaintainable mud in any language -- you certainly can. PHP is lacking in areas that make fixing that less of a nightmare, and lacking in areas -- both in the language, and in the community for lack of a better term -- that make writing maintainable stuff in the first place easier. The devs who know how to create maintainable PHP codebases, or fix unmaintainable ones tend to have experience with other languages.

This should be, in my opinion, a pretty major concern for business. While it may not be apparent at first, there tends to be diminishing returns from maintenance and development of a product if it's a giant mess. Doing PHP on new projects for ease-of-hire is inviting that mess, due to a whole bunch of little things that tend to snowball. Skilled people won't want to work for you, people that will be skilled but lack experience will leave your employ, and eventually the project will grind to an iceberg pace and stress levels will get high for everyone.

A good dev will probably not have a problem picking up whatever language, as long as you're using "general-use" languages. In the web-dev world, this is currently mostly ruby and python. Choose haskell, and you'll probably have some (read great) difficulty finding people to hire. Choose ruby or python and you'll be more likely to attract the type of devs you want, and at the worst you'll get someone inexperienced who makes a mess that is easier to fix than it would be in a PHP codebase of similar messiness.

If it was just the merits of the language, I don't think I'd have much of a leg to stand on talking from a business end. It's not though, it's a whole lot of little negative things that can make a long-term project more likely to be a failure. The language, and the tools, and the community are getting better, but that's mostly due to the efforts of people who are skilled and experienced with a variety of things improving it because it's paying their bills. It's still far, far away from any other "popular" language in terms of tools, community, available libraries, and just about any other measurement you can make other than "number of people that can say they know it on a resume"

Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Sunday March 25, 2012 @03:49PM (#3753589)
> issues with maintainability of whatever gets written tend to be much more of a pain than with similar projects in other high-level languages.

I'm not sure I follow this. If you take one of these good developers you are referring to, and write your codebase in PHP, what about PHP makes it difficult to maintain as compared to Python or Ruby?

Re:Poll: What's Your Most Disliked Programming Language? by kaens on Tuesday March 27, 2012 @02:23AM (#3760312)
If you take one of these good developers, nothing much, other than that they might need to write some things that they wouldn't have to think about in other languages.

If you take a developer who isn't as good, or isn't as experienced, and they create a ball of mud, it's easier to get it to a maintainable point by a good dev if it's written in a language other than PHP.

Some things about PHP that make it difficult to maintain over time are things like lack of consistency in abstraction, lack of first-class objects, extreme behavioral dependency on php.ini, incomplete reflection capabilities, and so on. These types of things are much bigger of a deal when trying to refactor a messy codebase as opposed to developing on a pretty clean one. They're getting better as time goes on, but the other popular web-dev languages are miles ahead, and it's extremely likely that a good dev capable of writing PHP code is familiar with one of them.

Re:Poll: What's Your Most Disliked Programming Language? by elimisteve on Sunday March 25, 2012 @12:31AM (#3751733)
"Golang has been pleasing me lately although it's interfaces have a very tiny hole in the type safety."

Go/Golang is indeed an amazing language -- my favorite, in fact, even beating out Python for my #1 spot. Go's creators guarantee its type safety; what hole do you speak of?

To hopefully assuage your concerns and to make an assumption about what you may worry is a hole in Go's type safety...

Empty interfaces allow one to contain _any_ value (such as a string) in an interface{}, but in order to use such a value, one must access the underlying type of the interface{} (i.e., the aforementioned string value). To do so, a type assertion is required, thereby preserving type safety... unless I'm missing something?

Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Sunday March 25, 2012 @10:11AM (#3752641)
The interface{} is a contributor to the hole but not the cause.

The hole occurs when I want to make a generic container like say a binary tree. I can create a node interface that satisfies my needs for a binary tree. What I can't do is guarantee that at compile time every element in my container is of the type that I expect. If they ever add generics of some sort this hole will be closed. It's a very tiny one and can usually be limited to a single functions scope but it still exists and certainly not enough to make me dismiss the languange out of hand. You can see examples of the hole by looking at Go's container/* packages. Some of them had a completely separate implementation for each of the primitive types. Type assertions ensure type safety at runtime provided the programmer does their job. But it depends on the programmer doing their job so it could be better.

Go and ML were two examples that come the closest to my "ideal" language. Go just happens to be one that I have the greatest chance of actually using in a job :-)

Re:Poll: What's Your Most Disliked Programming Language? by luriel on Sunday March 25, 2012 @11:40AM (#3752840)
> You can see examples of the hole by looking at Go's container/*

container/* is a bit of a corner case which is rarely used, specially since append() was added to the language and container/vector was deprecated I can't remember the last time I needed anything from container/*.

Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Sunday March 25, 2012 @04:18PM (#3753701)
That's why I said tiny hole. :-)
Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Saturday March 24, 2012 @10:46PM (#3751544)
From another comments, we established a time frame:

> Is that new? I don't remember it from my php days. Although I'll freely admit those days were a long long time ago so "new" for me may actually be pretty old.

So, what you are really saying is:

> I chose PHP because it's gathers everything I hate about any language in one spot when I last used it... which was a least 8 years ago.

Re:Poll: What's Your Most Disliked Programming Language? by rbanffy on Saturday March 24, 2012 @11:15PM (#3751593)
I haven't seen an elegant pattern emerge from PHP in the last 8 years.
Re:Poll: What's Your Most Disliked Programming Language? by jasonlotito on Sunday March 25, 2012 @03:33PM (#3753537)
Being blind isn't something to joke about. Mocking those with handicaps is rude and uncalled for.
Re:Poll: What's Your Most Disliked Programming Language? by jorisw on Monday March 26, 2012 @06:39AM (#3755999)
Respectfully, I think two of your arguments stink.

2) The community. Surely there's a lot of garbage code floating around in the community, but are we going to judge a language by its community now? Perhaps the community is so big it produces a fair amount of garbage code appropriate to its size?

4) Ugly to look at. Perhaps, if you write ugly code. Again, this is about the programmer and not about the programming language. I think I write pretty code.

Disclaimer: I am a PHPer most of the time. But I realize that PHP is probably on its way out in the long run. And I agree with your two other points.

I chose ActionScript because it's a PITA to debug. Good programming languages make it easy to find your mistakes. PHP is good at that, as are a bunch of other languages.

Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Monday March 26, 2012 @09:48PM (#3759563)
Respectfully they are subjective so I expect people to disagree. However:

The community is a huge part of judging a language. You'll note that I specifically said this appears to flow from the core developers out. A sentiment many in this thread appear to have shared. That to me is a danger sign. The community often is a signal regarding how the core devs of the language approach things.

As for beauty it's completely and purely subjective so what looks beautiful to one person can look ugly to another.

Re:Poll: What's Your Most Disliked Programming Language? by duskwuff on Saturday March 24, 2012 @01:37PM (#3749988)
PHP actually does have some type safety, amazingly. You can declare types on function arguments:

    function myFunc(ObjectType $arg1, array $arg2) { ... }
And it'll throw errors if you try to pass an argument of the wrong type.
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @02:35PM (#3750197)
Is that new? I don't remember it from my php days. Although I'll freely admit those days were a long long time ago so "new" for me may actually be pretty old.
Re:Poll: What's Your Most Disliked Programming Language? by pbiggar on Saturday March 24, 2012 @03:33PM (#3750445)
Its been there a long time, I think since PHP 5. (Certainly, it was old in 2008, when I was working on PHP).
Re:Poll: What's Your Most Disliked Programming Language? by georgefox on Saturday March 24, 2012 @06:34PM (#3750986)
You're correct. Type hinting was introduced with PHP 5, which makes it about eight years old.

http://php.net/manual/en/language.oop5.typehinting.php

Re:Poll: What's Your Most Disliked Programming Language? by ElbertF on Saturday March 24, 2012 @10:58PM (#3751566)
Type hinting exists for objects and arrays but not for scalar types (string, int, float, bool) unfortunately.
Re:Poll: What's Your Most Disliked Programming Language? by wallzz on Saturday March 31, 2012 @06:37PM (#3781777)
I always compare those who program in PHP to those young teen who are rushing to Justin Bieber Concerts ,and to the cinema just to watch Twillight ,and they are so exited ,but they ignore that there is a hole world out there ,where music is not judged by appearances,and movies are not judged by makeup and love scenes,and where there is some powerful programming languages that let you enjoy building a scalable ,powerful projets in some hours.
Re:Poll: What's Your Most Disliked Programming Language? by xyzzyz on Saturday March 24, 2012 @11:24AM (#3749581)
What do you mean by type safety? Are all dynamically typed languages type unsafe by your definition?
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:33AM (#3749600)
If the language can tell me when it executes the code that the type is wrong then I consider that type safe. Less usefully type safe than at compile time but safe nonetheless.

If the language treats a string as a number in some cases without an error then that is most definitely not type safe.

Re:Poll: What's Your Most Disliked Programming Language? by roryokane on Saturday March 24, 2012 @11:55AM (#3749647)
The standard term for the feature that allows treating a string like a number is "weakly typed". You like "strongly typed" languages.
Re:Poll: What's Your Most Disliked Programming Language? by ScottBurson on Saturday March 24, 2012 @11:55AM (#3749648)
Lisp is type safe by that definition, so I'm not sure what your problem was with it.
Re:Poll: What's Your Most Disliked Programming Language? by seanmcdirmid on Saturday March 24, 2012 @10:46PM (#3751542)
Dynamically typed is still typed. That the error occurs at run-time means the typing is dynamic. If the error did not occur at all (int was unsafely coerced into a string), then that would be untyped or weakly typed.

Static type safety is desirable, dynamic type safety is almost essential. But they are both type safety.

Re:Poll: What's Your Most Disliked Programming Language? by xyzzyz on Saturday March 24, 2012 @11:52AM (#3749638)
What's the reason why you don't consider (Common) Lisp to be type safe then?
Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:58AM (#3749660)
I prefer prefer strong statically typed languages.

Just because php is at one extreme end of the spectrum of my preferences for type safety doesn't mean that other things can't be closer but not quite on my end of the spectrum yet.

Re:Poll: What's Your Most Disliked Programming Language? by kamaal on Wednesday March 28, 2012 @04:29AM (#3765262)
So in short according to you the language is useless if doesn't have type safety?