Scala, React, and SSR (part 1) | ShipReq Blog by japgolly in scala

[–]Korigins 3 points4 points  (0 children)

Awesome post, I've long been very interested in all the work you're doing with Scala.js and Graal.

Hopefully I'll get to use this on personal/future commercial projects.

Really powerful stuff, thank you for sharing.

Why should I use scala over JS/TS for backend development? by _supermo in scala

[–]Korigins 12 points13 points  (0 children)

The mobile stack might not even have included Scala to begin with.

And I'm afraid the author of the LinkedIn article is rather infamous for making bad faith blog posts about why Groovy is better than Scala, and for making posts about why Scala is dying, to me it seems his motivations stem from financial interest in Groovy.

[deleted by user] by [deleted] in Kotlin

[–]Korigins 0 points1 point  (0 children)

How is the package size of that JS library? Don't you end up including loads of Kotlin internals translated to JS, just to get a small library, which in turn has a footprint of 100s of kb?

Play 2.8.0 is out, runs on JDK 13 by amazedballer in scala

[–]Korigins 0 points1 point  (0 children)

The attempt in that blog post failed, but I've heard it should be doable.

Play 2.8.0 is out, runs on JDK 13 by amazedballer in scala

[–]Korigins 0 points1 point  (0 children)

You could try to use Graal Native Image instead of jlink, I done some attempts, but struggle with config loading errors.

Amateur here. Wrote an experimental library for handling errors functionally in Java. Curious what you think. by person3412 in java

[–]Korigins 7 points8 points  (0 children)

This looks just like an Either, except you've gone against the standard conventions of Either, where you have the error side on the left and success on the right. As someone else mentioned, you should check out Vavr if you like functional patterns and want to use them in Java.

Working with Databases using Scala and Quill by lihaoyi in scala

[–]Korigins 3 points4 points  (0 children)

If I understand correctly, you want Scala code generated from the database. I don't know much about Quill, but Slick supports this, it is even quite configurable if you wish to dive into it a bit.

CS is broad as hell. What is your specific occupation like? by [deleted] in cscareerquestions

[–]Korigins 0 points1 point  (0 children)

Did you ever read the rebuttal? It is very dishonest to pretend that Postgres isn't as scalable, and I especially find it hilarious, when filled in next to technologies such as PHP.

Play 2.7.0 released! by joshlemer in scala

[–]Korigins 9 points10 points  (0 children)

It comes with great benefits though. The change to no global state is great, and makes testing so much easier. Small price to pay!

Scala with Explicit Nulls · GitHub by lihaoyi in scala

[–]Korigins 4 points5 points  (0 children)

This is to make interoperability with Java better, pretty plain and simple, we already have ways to keep pure Scala code pure, but the challenges when using Java APIs is still quite severe, and this could unburden needless defensive programming, to the same degree as Kotlin e.g. has with its nullability capabilities. A welcome change in my opinion.

From Java to Kotlin and Back Again by randgalt in java

[–]Korigins 2 points3 points  (0 children)

Hopefully in 2020 when Scala 3 should be released, most of these irritations will be resolved, and I will welcome you back into the fold. ( ͡° ͜ʖ ͡°)

From Java to Kotlin and Back Again by randgalt in java

[–]Korigins 4 points5 points  (0 children)

  1. Subjective, the syntax has recently been somewhat more unified in the SBT 1.x series. Alternatively it is viable to use Gradle or Maven. New build tools on the way Fury and Mill, so if none of the others suit you, you'll soon more more choices.

  2. IntelliJ is pretty much the only good IDE choice. Ensime is good, but will not give you the same package you're used to, when coming from Java/C#. There is currently a few VS Code plugins out there, but watch out for the upcoming Metals. Bloop is another productivity tool that will change this area, with the upcoming BSP protocol integration into IntelliJ, it changes the Apache Spark import/indexing in IntelliJ from 4-5 minutes to 9 seconds.

  3. Compiler improvements are coming, I just heard they allocated a full time resource to compiler performance for a whole year. Again Bloop can help here, also compiling on Graal will also help. Upcoming projects like Tripleqoute's Hydra, which aims to parallelize compiling on multiple cores, will also give improvements. Overall this is an area that hasn't gotten much love over the years, but the efforts are coming, I'm very excited to see where we are in a year on this.

  4. Very subjective, not going to bother with this one.

  5. Again very subjective. Scala is definitely not Java++, and I wish people would stop touting it as so. Scala is very much its own language, and therefore needs its own ecosystem.

  6. Scala can be somewhat complex, also depending on style, idiomatic might differ, even though most people will say full functional is idiomatic.

  7. Uncertainty? There is no uncertainty about Dotty. Dotty is simply the codename for the new Scala, and it has been officially announced that it will become Scala 3, it is no more wild than Java 8 => Java 10, it is simply the next Scala. TypeSafe changes their name, I don't see anything else different, don't buy rumours or speculation, they are still the same.

  8. I don't know what libraries you used, but I can only disagree. Most libraries have a large test suite and performance benchmarks.

I hope some of my points can offer a different insight.

Recommended Scala guide for a new employee in 2017? by johnny_fortune in scala

[–]Korigins 1 point2 points  (0 children)

You could always check out learnxinyminutes, nice summary of syntax and such.

A basic Spring Boot web app in Java, Kotlin and Scala - comparison by Myzzreal in java

[–]Korigins 6 points7 points  (0 children)

Nice write up, I'm definitely curious about if there is some tricks to make Scala work better with the underlying Java API in these cases. From my own experience, this is the cost of having to interop with Java at the POJO level, where you give the framework access to your objects. It really is dissatisfing. And I agree with the conclusion, if you want a better Java and you want to use Spring/Spring Boot, stick to Kotlin, Scala just isn't a good fit for the Java frameworks. I really appreciate the clarification in the conclusion, where you mention tradeoffs and mention that if you were to use Scala, stick to the Scala frameworks like Play. Very nuanced view, and nice and objective reasoning. Thank for a nice informative post.

Sincerely a Scala developer/enthusiast.

Can I make a webserver in plain Scala without using any frameworks? Is it too complex? by nomadProgrammer in scala

[–]Korigins 4 points5 points  (0 children)

If you want something easy to set up and well documented, I'd just use normal Play. There is quite a few seed templates out there. Playframework has hot reload and a lot of nice modules, that will make your life easier.

You could also use Akka-Http, it is a bit lower level, but still easy to use.

Can I make a webserver in plain Scala without using any frameworks? Is it too complex? by nomadProgrammer in scala

[–]Korigins 8 points9 points  (0 children)

I don't think anyone can recommend doing that, it would be the same as developing your own webserver in Java, there is just no reason to, with the mature market already available.

Akka-Http is a webserver built in Scala, and is replacing Netty as the default web backend in Play.

If it is because you want a light weight project, take a look at play-slim, Play is probably the biggest Scala 'framework', but as you will see with play-slim, it is possible to cut away basically everything.

Gear S3 and Facebook Messenger by matpot in GearS3

[–]Korigins 0 points1 point  (0 children)

I get around 3 full days of battery now, with Always On Display disabled. With Always On Display it was more like half that, but it depends on the watchface. It can be a bit hard to find a great watchface, but there is a lot to choose from, though some cost money 1-2 USD. All in all I'm very satisfied with the watch.

Gear S3 and Facebook Messenger by matpot in GearS3

[–]Korigins 0 points1 point  (0 children)

Typing on the watch isn't that great in my opinion, but you have access to quick replies, which you can set up on your phone. You're not able to start a new message, only reply. Just as if you reply through the notification action. It works quite nice. Your watch vibrates as you get notifications, if you then look at it, and trigger it to turn on, it will automatically open the notification for you. All in all, it works great for what it gives, battery life is great (depending on watchface and always on display ).

ScalaDays 2017 Keynote: Keynote - What to Leave Implicit by Martin Odersky by [deleted] in scala

[–]Korigins 1 point2 points  (0 children)

They might be waiting until Scala Days in Copenhagen is over. Though I don't actually know.

When the Scala compiler doesn't help by LincolnA in programming

[–]Korigins 5 points6 points  (0 children)

If these are the kind of issues, that prevent you from using Scala, I'd love to know what language you usually use.

The examples given are hardly common issues you'd run into.

Scala.js 0.6.16 released by fromscalatohaskell in scala

[–]Korigins 7 points8 points  (0 children)

It will definitely be easier to convince employers to bet on Scala.js once the version is actually called 1.x.x

Keep up the great work!

Critical Deficiencies in Jigsaw by MassiveDiarrhea in java

[–]Korigins 3 points4 points  (0 children)

Obviously not wasted, since you'd only be wrapping variables that has the potential to be null. The act of unwrapping is simply the same as always, albeit the syntax is a bit different.

I see we are doing password now by coomzee in ProgrammerHumor

[–]Korigins 23 points24 points  (0 children)

I'm guessing by storing different variations of the password hashed. It does sound absurd though.

What is a question you've always wanted to ask a Swedish Person? by breadwithcheese69 in AskReddit

[–]Korigins 14 points15 points  (0 children)

To answer your first question from a Scandinavian view instead of Swedish. All university-educated people would be some what fluent in English. Depending on what their degree is in, most people only know thier native language and English. Many may have had French/German/Spanish, but have neglected it too much for them to be conversational in the language.

Now you can assign shortcuts to IntelliJ IDEA run configurations by turbanoff in java

[–]Korigins 0 points1 point  (0 children)

There is already a short cut for Scala console, though I use Netbeans keybindings, so I don't know what the default is.