News for hackers. Stuff that matters.
Re:Why is it difficult for developers to learn another progr... by brimble on Wednesday March 09, 2022 @05:58PM (#30621104)
The language is rarely a hurdle. The (almost always bad and broken) tools, the (often misleading, as far as best-practices go, or muddled with old versions and outdated advice) documentation, and learning the culture and ecosystem ("Oh no, no-one uses that built in function since it's bad for reasons X and Y, use this 3rd party FOSS library entirely supported by one guy living in a cabin in Wyoming instead") are what make it difficult.

The language itself is often no trouble at all. It's all the stuff around it that ends up eating shitloads of time.

Re:Why is it difficult for developers to learn another progr... by grumpyprole on Wednesday March 09, 2022 @06:02PM (#30621137)
Yes when people talk about "languages" they really mean ecosystem.
Re:Why is it difficult for developers to learn another progr... by ecf on Wednesday March 09, 2022 @06:11PM (#30621214)
An example of this for me is Kotlin and the JVM.

Kotlin is great! I enjoy it a lot and am having a fun time ramping up for my new role. But the entire Java ecosystem is a dumpster fire, and I abhor Gradle/Maven/Intellij.

It would take me an entire weekend to try to configure Sublime Text or another lightweight plain-text editor to work with Gradle to even build the project, let alone any language server features like code suggestions and debugging.

Re:Why is it difficult for developers to learn another progr... by prepend on Wednesday March 09, 2022 @06:17PM (#30621264)
You’re the first person I’ve ever heard to hate IntelliJ. I really like it as an editor and would use it if it was free (instead I use VSCode).

What do you dislike about IntelliJ?

Re:Why is it difficult for developers to learn another progr... by eddieh on Wednesday March 09, 2022 @06:32PM (#30621401)
I hate IntelliJ too. I don’t like any IDE for that matter. Emacs is muscle memory and nothing can emulate how it works properly. Emacs is so much more than it’s keybinding, yet that’s the only thing IDE/text editors attempt to emulate—and they never even get that right.
Re:Why is it difficult for developers to learn another progr... by DonHopkins on Thursday March 10, 2022 @05:51AM (#30625477)
Emacs was originally designed to work perfectly well with type-ahead over 300 baud modems and slow ARPANET connections, so it doesn't fuck you when you type ahead, while so many IDEs love to pop up menus that gobble and drop keystrokes and then insert random crap you didn't want (like fuzzy matched symbols and multi-line boilerplate) unless you stop typing and patiently wait for it to finish thrashing the disk and painting the screen with animated menus, and then after it finally comes to a complete stop, you have to focus your attention on the screen and visually scan through the menu and hit the arrow keys repeatedly to re-select what you already typed, or hit escape to get rid of the menu and finish typing what you really meant (while slowly popping up even more menus with pointless animation every few keystrokes). And of course escape does something completely different if there isn't already a menu popped up, usually quite disruptive, so don't ever type ahead any escapes!

IDEs should not punish you for knowing what you want to say and typing it quickly. They should be DETERMINISTIC, and you should get the EXACT same results no matter how many milliseconds of delay you wait between each keystroke, and you should always be able to insert something by typing it literally at any speed, without pausing and waiting then focusing your visual attention on the screen and then finally pressing other buttons to use the menus.

Re:Why is it difficult for developers to learn another progr... by ecf on Wednesday March 09, 2022 @06:40PM (#30621449)
Example: It took me two hours today to figure out why “Format on Save” wasn’t working.

Turns out, Intellij’s “Actions on Save” are only triggered when a “Save All” (option-command-s) is issued, and ignores any other type of save like good-ole command-s.

Re:Why is it difficult for developers to learn another progr... by vrnvu on Thursday March 10, 2022 @02:29AM (#30624125)
Over the years the performance has decreased... exponentially. It is pure craziness that indexing a project takes almost a minute or even more. It's full of env bugs and configuration issues that the developer team seems to not care about. Features > Usability from the marketing point of view :P

Nowadays, given the state of LSP implementations and editors being as flexible as VSCode i.e it's hard to justify the need for an IDE... In general.

I usually use nvim or VSCode (if I collaborate with someone) for other languages. Every time I have to work on a Java project, and I have to open IntelliJ... I know it's going to be a nightmare.

Re:Why is it difficult for developers to learn another progr... by watwut on Thursday March 10, 2022 @02:10AM (#30623954)
> What do you dislike about IntelliJ?

It is weaker IDE in terms of what it does. Eclipse is older, look uglier and strictly superior unless you work on some kind of super large project where it is breaking.

Re:Why is it difficult for developers to learn another progr... by anothernewdude on Wednesday March 09, 2022 @07:15PM (#30621706)
Intellij refuses to use my working maven config, and requires horrible plugins to work with some things like javax.
Re:Why is it difficult for developers to learn another progr... by clearcoat on Wednesday March 09, 2022 @06:30PM (#30621379)
IntelliJ Community Edition is free. I don't use the paid version so I'm not sure what I'm missing.
Re:Why is it difficult for developers to learn another progr... by azth on Wednesday March 09, 2022 @08:53PM (#30622384)
Nothing else comes close to the Java ecosystem, it's one of its great advantages.
Re:Why is it difficult for developers to learn another progr... by grumpyprole on Thursday March 10, 2022 @01:41AM (#30623818)
In terms of a culture of over-engineering, yes, it is second to none. In Java land, even a logging library can be a serious security vulnerability. A typical Java project pulls in half the internet for dependencies, including multiple logging libraries.

Java is therefore somewhat a victim of its own success. There is no absolute "best" as you seem to suggest. Every ecosystem has pros and cons.

Re:Why is it difficult for developers to learn another progr... by hkt on Thursday March 10, 2022 @05:08AM (#30625193)
> A typical Java project pulls in half the internet for dependencies, including multiple logging libraries.

Rationalising a language's ecosystem is harder than building one. I suspect that this drives at least some new language adoption.

Re:Why is it difficult for developers to learn another progr... by azth on Thursday March 10, 2022 @02:25PM (#30631285)
Sounds like FUD
Re:Why is it difficult for developers to learn another progr... by grumpyprole on Thursday March 10, 2022 @03:17PM (#30631871)
I've done years of Java dev at many large corporates, so there's no uncertainty. Plenty of fear and doubt though. The language is getting much better, let's hope the ecosystem does too.
Re:Why is it difficult for developers to learn another progr... by azth on Friday March 11, 2022 @06:31PM (#30647433)
Any language at a large corporation (without proper software engineering practices) would end up that way. My current employer uses golang, and you wouldn't believe the @)%(* they came up with. Such as an entire framework that spits out 80+ line stack traces for errors and panics.
Re:Why is it difficult for developers to learn another progr... by heresie-dabord on Wednesday March 09, 2022 @09:03PM (#30622435)
> language versus ecosystem

A good programmer uses the right language for the task. A good language is one that doesn't need a community and a beast of an editor just to code something that compiles and runs.

An "ecosystem" is usually a sign of costly entropy.

Re:Why is it difficult for developers to learn another progr... by kjeetgill on Wednesday March 09, 2022 @10:31PM (#30622949)
> A good programmer uses the right language for the task.

Agreed!

> A good language is one that doesn't need a community and a beast of an editor just to code something that compiles and runs.

Hmm. [citation needed]. I'd argue the exact opposite. A robust ecosystem and community around a language are a substantial part of its value proposition. Naturally, the language's PL details are what seed and fuel its ecosystem, so I'm not claiming semantics, syntax, and zeitgeist are irrelevant.

See every "worse is better language": C, Python, Java, Javascript, English against whatever ML, Haskell, Esperanto, Lojban, etc.

Re:Why is it difficult for developers to learn another progr... by grumpyprole on Thursday March 10, 2022 @01:27AM (#30623768)
I think the parent was referring to the fact that e.g Java really needs an IDE, so one can generate all the boilerplate. In Haskell, I can e.g create a new type (with equality, hashing etc) in one line. Of course, a capable IDE would be extremely useful for Haskell and there are efforts to build such a thing with refactoring and navigation/search tools, but the language isn't unusable without one.
Re:Why is it difficult for developers to learn another progr... by heresie-dabord on Thursday March 10, 2022 @08:25AM (#30626609)
Yes, this is what is meant by the expression, "IDE Smell".

It's a measure of a language's usability if a programmer can't use the simplest possible tools to be productive.

Education and documentation is necessary. But if you have to have an entire support channel for a technology, it isn't necessarily a positive reflection on the technology.

Re:Why is it difficult for developers to learn another progr... by ComradePhil on Wednesday March 09, 2022 @11:14PM (#30623153)
> A good language is one that doesn't need a community and a beast of an editor just to code something that compiles and runs.

Which languages don't need a community?

Re:Why is it difficult for developers to learn another progr... by ZYinMD on Wednesday March 09, 2022 @10:19PM (#30622878)
hold my js
Re:Why is it difficult for developers to learn another progr... by Qem on Wednesday March 09, 2022 @06:47PM (#30621503)
I agree with that. I think this made me enjoy a lot learning Pharo, and admire the Smalltalk-way of doing thigs, as there's a culture of great care with the environment around the language. The tooling is a integral part of language, not just an afterthought.
Re:Why is it difficult for developers to learn another progr... by tmp_anon_22 on Wednesday March 09, 2022 @06:28PM (#30621361)
You're absolutely right but most developers will also have a hard time moving between language families. For example a self-taught developer may have gone though javascript, python, java, go, and swift... but then get punched in the face by Lisp or Haskell.

The reason I single out self-taught developers is that many CS paths will push though a broad degree of language, or at least interpreters and compilers, such that its less of a hill to climb.

I am a self-taught developer with this problem. But I still enjoy diving head first into new languages. It just takes awhile.

Re:Why is it difficult for developers to learn another progr... by yakubin on Thursday March 10, 2022 @05:10AM (#30625210)
In my experience, people who were taught programming in uni are the ones who know fewer languages. I suspect it's due to the amount of money Microsoft put (still puts?) into making sure that C# is popular in that space. I studied maths, but informatics was in the same department and there was a lot of stuff funded by Microsoft and everyone around was programming in C#. Another popular university nearby produced mostly Java devs, judging from the people I got to know on the job coming from there. My university also had some courses with Smalltalk, OCaml etc., but these courses were not obligatory, and more geared towards people who are actively interested in programming languages.

Self-taught programmers on the other hand more often have the intrinsic curiosity and motivation to learn those topics. Also diving deep into topics is their strength, since the uni counterparts often know the names of concepts, but after a while it's quite clear that this knowledge of names is rarely coupled with familiarity with the topics they represent. I'm sure just knowing the names of things gets you far when you want to pass an exam, but for actual work it's scarcely different from knowing nothing at all. As Feynman said, there's a big difference between knowing the name of something and knowing something.

Now, those are just generalizations from experience. I've also met plenty of counterexamples in both groups.

Re:Why is it difficult for developers to learn another progr... by exdsq on Wednesday March 09, 2022 @06:32PM (#30621398)
I’m self taught, have written some compilers, and have written Haskell in production. I’ve also done the better half of SICP so a bit of Lisp there too. The only way to learn a new family of languages is by writing code - I’ve not found any prior knowledge that’s really helped me go from Python to Haskell or whatever, except the general skill of writing software.
Re:Why is it difficult for developers to learn another progr... by moltke on Wednesday March 09, 2022 @06:59PM (#30621607)
I taught myself java, go, and Scheme. Functional programming is still pretty popular among autodidacts last time I checked, mare than in formal environments I'd argue.
Re:Why is it difficult for developers to learn another progr... by moltke on Wednesday March 09, 2022 @06:58PM (#30621597)
Puppet certainly comes to mind. I think the only thing I've used with more broken links in the documentation has been Firefox OS.