r_scala

Description
Latest submissions from r/scala
More reddit channels: @reddit2telegram
@r_channels
Advertising
We recommend to visit

The village was built by UXUY with hard work and was incubated and invested by Binance Labs.

Every Bitcoin wizard 🧙 has a @UXUYbot:
- ⚡️ Bitcoin Lightning Support
- 0⃣ TX Fee for fast transfers
- 🔒 Relying on the security of the BTC network

Spin, Attack, Raid friends and Build on your way to an Empire.
Collect Coins and Stars for Airdrop! @robincoin_bot

Last updated 2 months, 3 weeks ago

3 months ago

Initial implementation of the WebAssembly backend has been merged to Scala.js main branch
https://github.com/scala-js/scala-js/pull/4988

https://redd.it/1epmiwg
@r_scala

GitHub

Initial implementation of the WebAssembly backend. by sjrd · Pull Request #4988 · scala-js/scala-js

This commit contains the initial implementation of the WebAssembly backend. This backend is still experimental, in the sense that: We may remove it in a future Minor version, if we decide that it ...

3 months, 1 week ago
3 months, 1 week ago

Cats learning

  1. This book is still relevant? Some examples do not work as mentioned. ( https://scalawithcats.com/dist/scala-with-cats-1.html )

  2. What can you recommend besides the official website?

  3. What do you think about this book? ( https://leanpub.com/pfp-scala )

https://redd.it/1em7h3b
@r_scala

Scalawithcats

Scala with Cats

3 months, 1 week ago

IntelliJ Scala Plugin 2024.2 is out!
https://blog.jetbrains.com/scala/2024/08/07/intellij-scala-plugin-2024-1-is-out-2/

https://redd.it/1em60f9
@r_scala

The JetBrains Blog

IntelliJ Scala Plugin 2024.2 Is Out! | The IntelliJ Scala Plugin Blog

Scala Plugin 2024.2 is out with: - Better support for the “fewer braces” syntax in for-comprehensions - Enum cases included in import suggestions - Enum cases suggested in code completion - Improved CBH performance - Onboarding tips for new projects

IntelliJ Scala Plugin 2024.2 is out!
3 months, 1 week ago

My another take on Scala in OSGi

I gathered some popular Scala libraries into OSGi bundles.

https://gitlab.com/perikov/scala-bundles

I tried this before ( https://github.com/p-pavel/osgi-scala ) wrapping every jar into a bundle, but I finally gave up.

Everything is badly broken (split packages is the main problem).

So I just taken a route on bundling releases ("everything related to org.typelevel/cats/n").

I also have Karaf features with dependencies.

For it lets me to just type feature:install myApp and have relevant libraries from cats ecosystem (and also elastic4s and others) just install transparently from maven.

and feature:uninstall just unloads everything.

I'm not sure if I have to put all this on maven (maven central requires packaging sources with jars, and my jars are just bundles containing relevant libs).

Is there any interest on this topic?

https://redd.it/1ekvi1p
@r_scala

GitLab

Pavel Perikov / Scala-bundles · GitLab

My another take on Scala in OSGi
3 months, 1 week ago

Mill 0.11.11 is out with a fix for sonatype publishing

Apologies for the spam, but the sonatype API recently changed in a subtle way (it started erroring on //s in the URL which it previously ignored), and as a result all Mill builds publishing to Sonatype are failing. I don't think it's getting fixed on the sonatype side, so I released a new Mill version that people will have to update to unblock themselves to continue publishing to sonatype:

https://github.com/com-lihaoyi/mill#0-11-11

Trying to blast it broadly to reach the folks who are affected, sorry for the spam

https://redd.it/1ekzjbf
@r_scala

GitHub

GitHub - com-lihaoyi/mill: Your shiny new Java/Scala build tool!

Your shiny new Java/Scala build tool! Contribute to com-lihaoyi/mill development by creating an account on GitHub.

Mill 0.11.11 is out with a fix for sonatype publishing
3 months, 2 weeks ago

Scala takeaways from the StackOverflow 2024 developer survey

  1. Popularity up first of course. I'm not actually sure how the popularity metric is derived, but I think it's based on users who indicated that they had "done extensive development work in over the past year". Scala is at 2.6% of all respondents, slightly down from 2.77% last year. Among respondents who are professional developers it's 2.9%, down from 3.21% last year. Among those still learning to code it's 1.7%, way up from 0.77% last year.
    If I had to put some flavor on these numbers I'd say Scala is still at the top of the long tail of languages. It comes in about 20th among programming languages (ie. I ignored SQL, HTML, bash, etc.) so certainly still relevant. Movement from last year is negligible except for new developers, which is very cool.
  2. The survey has an admired vs desired metric, which is meant to measure hype. 3% of survey respondents had used Scala extensively in the past year and would like to do so again. 50.9% of respondents want to use Scala next year, which is pretty high. Stack Overflow says that a greater distance between the admired and desired metric indicates that hype for a language is well founded. Scala has a 49% difference, compare to Java at 30%, JavaScript at 25%, Rust at 53.5%, or Kotlin at 49%.
    In my mind the difference in popularity vs the admire/desire metric is due to opportunity for developers to use the language; ie. jobs.
    Note on this, there are 71 fewer respondents used for this graph vs popularity although it's the same question. I don't really see how the admired metric could be 3% while only 2.6% of respondents had used Scala in the last year, so let me know if I've got this wrong somehow.
  3. Money. Scala developers on average are more experienced with 10.5 years of experience and have the 7th highest median salary of any technology (I'm not even going to say the number because it's not broken down by country and therefore meaningless). Median Scala salaries are down compared to last year, just like every other language.
  4. In terms of tooling/IDE, IntelliJ and VS Code continue to be the top choices for SO users and are also the typical editors for Scala. Therefore newcomers to Scala should find them familiar.
  5. Everyone hates their job! 80% of professional programmers are unhappy. So if you like writing Scala and have a Scala job, it's a good reminder to be thankful. And if there are other circumstances at your job that limit your happiness, at least you're in good company.

https://redd.it/1egsxhu
@r_scala

Reddit

From the scala community on Reddit

Explore this post and more from the scala community

Scala takeaways from the StackOverflow 2024 developer survey
3 months, 2 weeks ago

Coming from fireship video and feeling curious

So I am mainly a C# and python guy and I would like to know how much in demand is scala, now I know it is not gonna be JS-levels of demand, but my mindset is to pick a lang that both is niche not to have a lot of competition but still have some tangible demand not to be completely irrelevant. How does scala fare in that department?

Thanks in advance for your response.

https://redd.it/1egiyti
@r_scala

Reddit

From the scala community on Reddit

Explore this post and more from the scala community

Coming from fireship video and feeling curious
3 months, 2 weeks ago

Scala on Fireship Finally!

https://www.youtube.com/watch?v=I7-hxTbpscU

https://redd.it/1eg3294
@r_scala

YouTube

Scala in 100 Seconds

Try Brilliant free for 30 days https://brilliant.org/fireship You’ll also get 20% off an annual premium subscription Learn the basics of the Scala programming language quickly. Scala is a functional and object-oriented language that runs on the Java Virtual…

3 months, 3 weeks ago

Is the Scala developer community more competitive than other more popular languages (C#, Java, Go)? I've been trying to switch jobs but I got a lot of rejections. Should I still stick with Scala?

Basically, I've stayed at my job for 6 years. In my country there were at some point max 3 - 4 companies using Scala, even not full time, and now it is even rarer. When I got my first interview for a international remote job I had about 1.5 years of Scala experience, but 4 years total experience. I went pretty far but didn't get it because lack of experience. After that, I've had up to a dozen of these kinds of interviews, for a remote international team, but I never managed to get a job. Now finally I have found a new job but it is not a great project and not what I want.

I am not the most enthusiastic person when it comes always being up to date and reading blogs and stuff and also for the past years, I have not been a person who got assigned to the more complex stuff in my company. Otherwise I have a pretty good basis for algorithms and coding challenges (although I failed the last one which was live coding using lots of Scala generics).

Now, it seems to me that when recruiting for a remote team, especially for a senior position, the stands for a Scala developer are pretty high and the projects are not simple (relatively, like more distributed stuff).

Does anyone have more insights how this compares to other languages. A lot of people that I know which I wold think were at my level as a developer or even sub, got remote jobs or jobs away from my country, and I am feeling stuck. I keep wondering if it would have been easier to find this kind of remote job if i stayed with C# or moved to Java, and not due to lack of opportunities in the Scala world....

https://redd.it/1ec4wsz
@r_scala

Reddit

From the scala community on Reddit

Explore this post and more from the scala community

Is the Scala developer community more competitive than other more popular languages (C#, Java, Go)? I've been trying to switch …
We recommend to visit

The village was built by UXUY with hard work and was incubated and invested by Binance Labs.

Every Bitcoin wizard 🧙 has a @UXUYbot:
- ⚡️ Bitcoin Lightning Support
- 0⃣ TX Fee for fast transfers
- 🔒 Relying on the security of the BTC network

Spin, Attack, Raid friends and Build on your way to an Empire.
Collect Coins and Stars for Airdrop! @robincoin_bot

Last updated 2 months, 3 weeks ago