News for hackers. Stuff that matters.
Re:F# is the best coding language today by jimbokun on Friday July 09, 2021 @11:40AM (#27784811)
The lesson:

Programming language adoption is based on politics, not technical merit.

This isn't inherently bad, but is important to remember.

Languages are successful due to the community that rises up around them, far moreso than anything inherent to the design or quality of the language itself.

Which can be correlated, but not necessarily so.

Re:F# is the best coding language today by dangets on Friday July 09, 2021 @01:03PM (#27785859)
Yes and no, Jetbrains did an incredible job on Kotlin with seamless interop with Java, trouble-free mixed Java/Kotlin codebases, as well as reducing the learning curve and mental context switching as compared to something like Scala.

At my company there have been several devs trying to introduce Clojure as well as parallel forays to introduce Kotlin. Overall, Kotlin has caught on and spread much more rapidly and with less effort.

This is not a statement of which languages are "better" given all things equal or what problems each are suitable for, but in my first hand experience it is easier for the average Java developer to pick up Kotlin. Of course we as a company are also cognizant of the IntelliJ lock-in as I suspect using any other editor would run into the same random bugs / autocomplete annoyances that the GP experienced.

Re:F# is the best coding language today by jimbokun on Friday July 09, 2021 @01:17PM (#27786022)
> Of course we as a company are also cognizant of the IntelliJ lock-in

There's your politics. Kotlin is succeeding because of it's ties to a very popular Java IDE, so developers already using IntelliJ tend to trust it.

It wouldn't do nearly as well without that built in base of support.

Re:F# is the best coding language today by listenallyall on Friday July 09, 2021 @01:33PM (#27786216)
It's primarily utility, not politics. Yes, sure, Kotlin gets free press because Jetbrains and Google support it... but it's also because Kotlin is a brilliant language, it had an initial use case that was in extremely high demand (building Android apps) and JVM compatibility meant it had an enormous ecosystem of compatible packages from the start. But instead of just sitting back and riding on its initial popularity (that would be "politics"), the language has added more and more use cases (backend, multiplatform, JS), expanded its scope (kotlinx extensions), and built a following and a Kotlin-specific ecosystem of packages and tools that often surpasses the JVM equivalents in utility and quality.
Re:F# is the best coding language today by forty on Friday July 09, 2021 @01:56PM (#27786496)
I think the fact that Google was not updating the java usable on Android might have also played a big role in kotlin adoption, don't you think?

Honestly I feel kotlin doesn't add much to modern java, and if possible I think it's generally better to use the native language to the platform. Probably a reason why kotlin is not that popular on the backend where people can use modern java :)

I think jimbokun statement is 100 percent correct which doesn't mean kotlin is a bad language.

Re:F# is the best coding language today by listenallyall on Friday July 09, 2021 @02:25PM (#27786820)
> Honestly I feel kotlin doesn't add much to modern java

In that case, I hope you won't mind that I'll be ignoring the rest of your opinions on this particular topic.

Re:F# is the best coding language today by gregopet on Friday July 09, 2021 @05:01PM (#27788456)
Java is verbose by design while Kotlin is pragmatic. That's why I prefer Kotlin, even though on the backend I could have just as well taken the latest Java. That, and strict null checking.
Re:F# is the best coding language today by forty on Friday July 09, 2021 @02:32PM (#27786879)
I do not mind at all :)
Re:F# is the best coding language today by ukj on Friday July 09, 2021 @01:52PM (#27786447)
The "brilliance" of any technology is not intrinsic to the technology. It's determined by humans.

It's always politics.

Re:F# is the best coding language today by listenallyall on Friday July 09, 2021 @02:18PM (#27786748)
I see, so when I need to travel from Los Angeles to New York, deciding whether to fly on a commercial airplane or ride a bicycle, is a political decision? Reducing travel time by 99.99% isn't an intrinsic feature of airplane travel?
Re:F# is the best coding language today by addicted on Friday July 09, 2021 @04:13PM (#27788006)
It actually is.

A country which would have made different political decisions may have decided to not provide a direct airplane flight, or as good of an interstate road system that makes the drive possible. They may have provided high speed rail instead that could have potentially been better if that’s what the country had chosen.

Re:F# is the best coding language today by ukj on Friday July 09, 2021 @02:40PM (#27786987)
Would you say the 99.99% reduction in travel time is “brilliant”?

Me, I like sight seeing. A bicycle ride sounds brilliant. Even though it is much slower.

Re:F# is the best coding language today by listenallyall on Friday July 09, 2021 @03:07PM (#27787341)
Yes, I would absolutely state that there are dozens, perhaps hundreds or thousands, of brilliant innovations, technologies and engineering feats that make it possible for a 757 to exist, and fly so safely, routinely and inexpensively that the general public takes it entirely for granted.
Re:F# is the best coding language today by ukj on Friday July 09, 2021 @03:12PM (#27787395)
I’ll try make the point one last time then let you be.

“Brilliance” is a human attitude towards technology. It is not an intrinsic property of technology.

Re:F# is the best coding language today by listenallyall on Friday July 09, 2021 @03:28PM (#27787580)
I agree that the word brilliant is an adjective that humans can choose to use or not use to describe a particular technology. Your initial statement was that making that decision is always due to politics, as opposed to a person's genuine opinion... or perhaps implying that people simply don't have the ability to evaluate something independently.
Re:F# is the best coding language today by ukj on Friday July 09, 2021 @03:35PM (#27787645)
Because brilliance is about the people not about the technology it is political by definition
Re:F# is the best coding language today by dangets on Friday July 09, 2021 @03:29PM (#27787582)
Sure, I can see that. I was differentiating between internal company scale politics vs. larger-than-company politics. If Microsoft gave the same first-class promotion and support to F# that it did to C#, that would undoubtedly increase F# adoption.

My experience is a micro-scale observation that it did not take much campaigning to convince developers to try it (given the existing level of support backed by Jetbrains).

Re:F# is the best coding language today by barrenko on Saturday July 10, 2021 @04:13AM (#27791948)
And if Visual Studio had level of ergonomics any closer to JetBrains IDEs....
Re:F# is the best coding language today by lenkite on Friday July 09, 2021 @01:53PM (#27786468)
Not just IDE. It's because Kotlin is a general purpose PL with wide utility and tooling which Clojure doesn't come close to. Clojure doesn't even work on mobile platforms.
Re:F# is the best coding language today by gdsdfe on Friday July 09, 2021 @03:08PM (#27787349)
I'm not a clojure dev but I don't think that's true, I think you can do react-native with clojurescript
Re:F# is the best coding language today by jamil7 on Friday July 09, 2021 @04:13PM (#27788013)
Third party React Native bindings for clojurescript vs official Android framework apis in Kotlin are not really comparable when evaluating each language for an Android app I’d argue. But you’re right in that it is somehow possible through enough layers.
Re:F# is the best coding language today by quantified on Friday July 09, 2021 @02:10PM (#27786656)
And basic similarity with Java- feels different and better, but not as different as F# from C#, or Clojure from Java.

Scala’s an interesting case, it rather did catch on.

Re:F# is the best coding language today by zelphirkalt on Saturday July 10, 2021 @10:07AM (#27793428)
> At my company there have been several devs trying to introduce Clojure as well as parallel forays to introduce Kotlin. Overall, Kotlin has caught on and spread much more rapidly and with less effort.

The reason might be, that Clojure is following a completely different paradigm and people are not willing enough to learn it.

> This is not a statement of which languages are "better" given all things equal or what problems each are suitable for, but in my first hand experience it is easier for the average Java developer to pick up Kotlin.

Yep, I would expect that to be the case.

There is a lot to learn for the average Java only (so far) programmer to really get Clojure.

Re:F# is the best coding language today by kaba0 on Friday July 09, 2021 @01:30PM (#27786191)
Well, that’s because Kotlin is very trivially close to java, it’s almost just syntactic sugar over it. A language with very different semantics like clojure will of course not fit in as well.
Re:F# is the best coding language today by jimbokun on Friday July 09, 2021 @02:04PM (#27786595)
Politics.

The similarity to Java, something many developers already know, is an appeal to current popular sentiment. You can advocate the superiority of Clojure's S-expression inspired syntax or immutably data structures or pure functions all you want, most people will just pick something close to what they already know.

Re:F# is the best coding language today by kaba0 on Friday July 09, 2021 @02:45PM (#27787038)
Yeah, not arguing that, just wanted to point out that languages have different “activation energies” — one may be able to convince management to add some kotlin to the codebase, but it is much harder for a more exotic language.
Re:F# is the best coding language today by jensensbutton on Friday July 09, 2021 @12:09PM (#27785180)
Why politics and not practicality? Taking a ton of time and resources (and potentially risking attrition) to migrate a thing that works to a thing that _hopefully_ works often simply doesn't make business sense. It's not a political decision (in the common usage of the word).
Re:F# is the best coding language today by frenchy on Friday July 09, 2021 @12:44PM (#27785634)
Practicality is a big part of the politics, but there's real politics at play as well. Different developers will have different levels of comfort with different tool chains, and different capacities to work outside their comfort zone.

This is overly reductive, but here's an example: if you have 3 developers, and 1 will be twice as productive in F# and the others will be 10% less productive, it's probably practical sense to switch, but the 2 developers will resist it, and it may fail for political reasons.

Re:F# is the best coding language today by mcguire on Friday July 09, 2021 @01:25PM (#27786133)
"Taking a ton of time and resources (and potentially risking attrition) to migrate a thing that works to a thing that _hopefully_ works often simply doesn't make business sense."

And yet it happens all the time. And the decision is rarely based on anything but a veneer of technical merit.

Re:F# is the best coding language today by pfraze on Friday July 09, 2021 @12:08PM (#27785176)
It’s not all one or another. PLs are a software product and they need proper marketing and PMF. You can describe the network effect as political but its the same kind of politics as getting your friends to change chat apps.
Re:F# is the best coding language today by Clubber on Friday July 09, 2021 @05:00PM (#27788438)
>Programming language adoption is based on politics, not technical merit.

This is a very serious problem in a production system and it's not a political problem. Having a mixed language system is never as maintainable as a mono-language system, assuming that mono-language is up to the task.

>they leave and now the project has this magic F# part that nobody really knows how it works but everyone knows how to work around.

Re:F# is the best coding language today by AnimalMuppet on Friday July 09, 2021 @12:39PM (#27785572)
I don't think that's the lesson. The problem described is with maintainability. That's not political; that's technical. (It just looks political, because people say "No, you can't use that language" after they've seen the maintainability problem a few times.)
Re:F# is the best coding language today by tikhonj on Friday July 09, 2021 @01:16PM (#27786015)
I've seen this pattern before: problems encountered with a new or different technology are attributed to that technology, while comparable problems with the existing system are seen as the fault of specific teams/developers or just as the sort of natural bugs you get in software development. The same kind of problem that's seen as a clear reason to avoid the less popular tool is seen as just something to solve or workaround in the more popular case.

That's how politics generally works: there always has to be a plausible "objective" reason for something, it just doesn't have to be applied uniformly or even actually true.

Re:F# is the best coding language today by AnimalMuppet on Friday July 09, 2021 @01:29PM (#27786182)
What you say may be true in general. But we're specifically discussing being able to hire someone to take over a code base in a language, and no, the dominant languages do not have the same problem. You can find C# programmers under any rock. F# programmers? Not so much.
Re:F# is the best coding language today by peoplefromibiza on Friday July 09, 2021 @09:15PM (#27790269)
That's true, but it's not entirely true.

I've seen countless migrations to React from other equally capable frameworks because "everybody uses React" it must be the best tool!

I've seen companies picking up Python because if you wanna do ML you gotta use Python, right?

Anybody can write Python, right?

Except now you have a Python codebase written by people that pretend to know Python, while they really don't know how to write a maintainable software program in any language, it just happens that Python is the only language they "know".

And now everything sucks, but at least it's trendy, right?

Programming languages are tools, if you hire someone competent in Ocaml but force them to use Java because "it's more maintainable" you now have two problems.

IMO

Re:F# is the best coding language today by jimbokun on Friday July 09, 2021 @01:19PM (#27786046)
The maintainability problem is a political problem, because it's hard to maintain because it's hard to find developers that know the language or are willing to invest in learning it.