Closed Poll: Which language is the least bad?
-
I've been wondering for a while, but there was a discussion here: Which language is the least bad?. I believe I've read "x is TRWTF" about every single programming language in existence, but I want to know what the consensus is for the least bad of the eight arbitrarily chosen languages.
[poll]
- C/C++
- C#
- Java
- Javascript
- Objective-C
- PHP
- Python
- Visual Basic.NET
[/poll]
-
People voted for PHP. That's TRWTF.
[size=4]I voted C#.[/size]
-
We've already had a best programming language thread. It lasted a good while IRC, before it degenerated into chatter and meta. And of course, the rule is you can only have one.
That said, C# duh.
-
I suspect it's because they misread the question like I did originally as 'which is the worst of the worst'.
I'm more curious who voted Java.
-
and you didn't even put Haskell on there.
-
I saw someone else had voted and it seemed like a funny vote.
-
See, I actually voted PHP first then thought... nah, that can't be right...
-
I saw someone else had voted and it seemed like a funny vote.
Voting for PHP would have been funnier.
-
This is why anonymous polls are bad, this would be a good poll to help us kick the bad programmers from the community.
And anyone who votes for Objective-C deserves their own corner of Hell.
-
How does one even vote in the face of discoursistency?
-
Well, they don't have Turing, so we'll have to go with O-C. If you've never been exposed to that piece of crap you don't really know what bad is.
-
Voting for PHP would have been funnier.
That's what I did.
I switched over to java. I haven't used C# very much, so I can't in good conscience vote for it, and the var stuff actually bugs me. I don't have any hate for
Foo foo = new Foo();
like a lot of people, and I kind of dig it since it seems to drive so many people nuts.
-
and you didn't even put Haskell on there.
And the downvote emoji just happens to be a valid Haskell data constructor.
EDIT: how did I break quoting?
Filed under: irony: discourse has it
-
the var stuff actually bugs me
Yet without it, there'd be no lambdas and no LINQ, two very useful features of not just C#, but .NET as a whole.
-
And the downvote emoji just happens to be a valid Haskell data constructor.
EDIT: how did I break quoting?
Filed under: irony: discourse has it
f :: a -> a -> a
f Discourse Quote = Fail?
-
not using var can be very helpful in finding out what things are being worked with when its not directly obvious from the context, but sometimes you just don't care what exact type of collection you are going to get, and it saves a lot of work to turn:
Dictionary<string,List<ComplexObject>> foos = bar.GetFoos();
into:
var foos = bar.GetFoos();
-
that said, I know some .Net devs believe that var makes a non type-safe variable and hence should be avoided, which makes my eye twitch and my punching hand clench. I didn't correct them though because they were like 60-70 years old and I didn't want to have a 2 hours discussion where 0.2% of the time taken was my input in the form of meaningless filler trying to speed the conversation to termination
-
-
Voting for PHP would have been funnier.
I actually did before I realised what the question was, and even I can't pretend PHP is less bad than C#.
-
that said, I know some .Net devs believe that var makes a non type-safe variable and hence should be avoided, which makes my eye twitch and my punching hand clench. I didn't correct them though because they were like 60-70 years old and I didn't want to have a 2 hours discussion where 0.2% of the time taken was my input in the form of meaningless filler trying to speed the conversation to termination
Punch them with Hindley-Milner a few times. (ObPedantry: yes, I know that C# does local type inference because you can't do H-M in the presence of OO-style runtime polymorphism. It still doesn't change my point.)
-
that said, I know some .Net devs believe that var makes a non type-safe variable
Hit them repeatedly with one of these:
http://www.anniemayhem.com/blog pics/imperial_clue_bat.jpgAnd hope it doesn't end up like this:
-
Paging @blakeyrat?
-
Yet without it, there'd be no lambdas and no LINQ, two very useful features of not just C#, but .NET as a whole.
I don't care about any of that because I don't have to use C#. But I suspect there are ways to do all of that without this particular kludge.
-
but sometimes you just don't care what exact type of collection you are going to get
If you really don't care, why are you getting it in the first place? Still, I accept that my CDO != someone else's OCD.
-
Hit them repeatedly with one of these:
Well, .NET does actually have non-typesafe variables - only they're introduced differently. So I wouldn't go into full-out rage about it.
But I suspect there are ways to do all of that without this particular kludge.
Not really - LINQ uses anonymous types for projections, so you can't really replace
var
with a regular declaration.
-
Not really - LINQ uses anonymous types for projections, so you can't really replace var with a regular declaration.
-
If you really don't care, why are you getting it in the first place? Still, I accept that my CDO != someone else's OCD.
Personnaly, I only use
var
when I'm declaring the type elsewhere on the same line, to remove some clutter.var foo = new Dictionary<int, bar>()
is nicer to read than
Dictionary<int, bar> foo = new Dictionary<int, bar>()
-
If you really don't care, why are you getting it in the first place?
you want to interact with the objects held within a collection, but don't necessarily care if this particular API has presented them in a Dictionary, List, Queue, or stack or whatever, you just want to foreach through them. or it's a mentally long type name like the one I posted above but more worserer, and you just want to save yourself typing all that shit out.
but I accept that particular style of lazyness may not be for everyone.
-
I don't care about any of that because I don't have to use C#. But I suspect there are ways to do all of that without this particular kludge.
I don't use LINQ, but I do use lambdas regularly (mostly when I need to do some cross-thread calls). The number of times I've used
var
can be expressed asint varUses = 0;
.
-
I've never really used LINQ, but did you seriously imply that the C#
foreach
keyword isn't good enough?Anyway, despite being paid to do Java work, I can't vote for it. It's just... too wtfy compared to C#.
-
With the amount of anti-M$ FOSStards, I'm surprised C# is getting so much love despite its poor support for non-Windows environments. Maybe @blakeyrat will post and cause them to come out of their basements.
-
VB .NET > Java
VB .NET > PHPJust throwing that out there.
-
The number of times I've used var can be expressed as int varUses = 0;.
It could also be written:
var varUses = 0;
-
It could, but that would immediately prove to be a lie. that version would need to be:
var varUses = 1;
-
It could, but that would immediately prove to be a lie. that version would need to be:
var varUses = 1; ```</blockquote> No. Now, var varUses = 2; Obviously....
-
var varUses += 1;
?not being serious...
-
var varUses++;
?
-
With the amount of anti-M$ FOSStards, I'm surprised C# is getting so much love despite its poor support for non-Windows environments.
That's because the languages we prefer aren't on the list and we're ironically voting for PHP as a result.
-
Which language(s) would you have chosen?
-
Which language(s) would you have chosen?
Fairly sure Haskell is the one he'd be rooting for, or Ada if memory serves.
-
-
- Haskell
- Clojure
- Ada
- Factor
-
Because it's not in the category of 'least bad' and PHP is there primarily for humour value?
-
My apologies for neglecting to include any functional languages. Unfortunately, I can't add any now since it's way past the 5-minute window.
-
My apologies for neglecting to include any functional languages. Unfortunately, I can't add any now since it's way past the 5-minute window.
Not to worry, all is forgiven if you can make a reasonable case that whoever voted for VB.NET was also trying to be funny.
-
You'll have to take that up with him.
VB .NET > JavaVB .NET > PHP
Just throwing that out there.
Edit: More brilliant quoting from Dicksores
-
I voted for C# .NET
VB .NET is just a different layer on top of the MSIL, not as good as C#, but still a hell of a lot better than Java or PHP
-
-
Still less bad than Java.
-
With the amount of [s]anti-M$ FOSStards[/s]people who don't forget the abuses of the Microsoft of old, I'm surprised C# is getting so much love despite its poor support for non-Windows environments. Maybe @blakeyrat will post and cause them to come out of their basements.
I've been hearing rumblings that Mono is getting there. I just wish that the business world wasn't trying to shove glorified OO straightjackets down our throats...
(also, SML.NET needs the cobwebs knocked off it, and MS isn't the same company it was when Billy G was actually at the reins)