Live data from Hacker News

Poll: What's Your Most Disliked Programming Language?

news.ycombinator.com

291–300 of 366 posts

Re: Poll: What's Your Most Disliked Programming Language?

#292
post #242

Earlier quoted context omitted.

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.

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/p…

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?

#293

Java disliked at a high rate? What's up with that? It doesn't mesh with everything else I experience in the Java world. Are these results being manipulated?

I doubt it, the results are just biased. I bet there is a higher population of readers that uses Java + some other dynamic or newer language that they like better and would prefer to use rather than Java. The poll isn't scientific, nor was it expected to be.

Re: Poll: What's Your Most Disliked Programming Language?

#294

Earlier quoted context omitted.

Out of curiosity, what is your favored alternative for web applications? Server-side rendering of complete pages? Client-side manipulation of pure HTML?

A redesigned transport model other than HTTP? Continuations? A saner front-end language that can also be used at the server side and it's not the Node.js failfest?

You can replace HTTP with anything you want using WebSockets, but I never got what's wrong with it.

Re: Poll: What's Your Most Disliked Programming Language?

#295

Earlier quoted context omitted.

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.

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.

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?

#296
post #91
post #64

Earlier quoted context omitted.

I refute that Fortran is axiomatically worse than Java. I've spent a few years working in each, so I got to know them decently well. Fortran is like C with great math support; that is to say, C is like Fortran with great systems facilities. In each language's domain, it is more expressive and more performant than Java. Outside its domain, you don't want a bad programmer going near it for too long, but you can absolut…

The issue is that both C (portable assembler) and Fortran (portable math library) solve some problem pretty well. What problem is it that Java solves well? That is what makes java such a shitty language to program in, for any particular problem you encounter there are much better languages to solve that problem in, C# comes to mind immediately as to what Java should be. Note: Yes I realize that Java has excellent cro…

Java solves garbage collection well, better than any other language I know of.

Re: Poll: What's Your Most Disliked Programming Language?

#297
post #199

Earlier quoted context omitted.

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 hu…

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 buil…

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?

#298
post #217
post #142

Earlier quoted context omitted.

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.

> 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…

> 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?

#299
post #144
post #137

Earlier quoted context omitted.

What do you mean by type safety? Are all dynamically typed languages type unsafe by your definition?

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.

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?

#300
post #133

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 ev…

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.

Post reply on HN