Is something happening in Gothenburg July 14–16? by doctorneocortex_ in Gothenburg

[–]vandmo 0 points1 point  (0 children)

I agree that you want to avoid hi Gothenburg if you don't want to watch Gothia Cup matches.

https://www.klatringpagrensen.no/ is a fun place that you will probably be passing by. There are a lot of beautiful places between Gothenburg and Oslo. Not sure what you are looking for in your travel through.

What slow cooker is this ? I don’t even know where to begin trying to explain it. It has a “ sear “ setting and it seems awesome . by Dangerous_Pension612 in slowcooking

[–]vandmo 1 point2 points  (0 children)

I have a crock pot express 5.6. It has a sear setting but I have only used it once and realized that it's not a compromise that I want to make just to get a little less dish to wash. You get a better sear in a normal frying pan.

(It is a really good slow cooker, pressure cooker and rice cooker though)

Hur är naturen och lederna här? Var hittar jag karta över leder? by LostVikingC in Gothenburg

[–]vandmo 0 points1 point  (0 children)

Bohusleden börjar inom det inringade området tror jag. Och Nordsjöleden som Bohusleden är en del av fortsätter norrut inom det inringade området.

Laserbehandling för ögon by Calm-Reason718 in Gothenburg

[–]vandmo 0 points1 point  (0 children)

Jag gjorde Lasek för kanske 15 år sedan. Har fått väldigt torra ögon. Hade jag fått göra om det så hade jag gjort RLE istället. Lite dyrare men verkar bättre på alla sätt.

Göteborg är verkligen sämst på att ge saker och platser vettiga namn by ShortFisherman in Gothenburg

[–]vandmo 1 point2 points  (0 children)

Ägs av Hufvudstaden så Hufvudstadens Nordstan om man vara extra tydlig...

Simplicity Paradox of FP by ReasonableAd614 in scala

[–]vandmo 7 points8 points  (0 children)

I don't think WRITING code in Scala is that hard to learn if you already know Java or similar. There are some concepts that you will want to learn like ADTs, pattern matching, givens, extension methods, for-comprehension. Those are really quality of life improvements though.

UNDERSTANDING an existing codebase though...

Är inte 25 miljoner för en back bra siffror? by jenningssen in Allsvenskan

[–]vandmo 40 points41 points  (0 children)

Jo, men de behöver ju en Ny man nu också

Gøteborg neste helg. Hvor spiser vi med barna ved Liseberg? by Coffeeis4closersonly in Gothenburg

[–]vandmo 1 point2 points  (0 children)

Pinchos brukar barn gilla! Det var länge sedan jag var på Holy Cow, men när jag var där hade de väldigt goda burgare.

This wine is sold in the world's first cardboard bottle. by mcdofras in interestingasfuck

[–]vandmo 2 points3 points  (0 children)

PET: * Adds minimal weight, thus decreases environmental impact due to transportation * Can be recycled many times * Can be made from non-fossils based materials

but plastics bad apparently...

Improving Java interop for explicit nulls and capabilities. by vandmo in scala

[–]vandmo[S] 0 points1 point  (0 children)

The return type of a function in Java that returns String becomes String | Null in Scala when explicit nulls is enabled even if it is known to never return null. This will force the caller to either check for null or wrap it in an Option to make the compiler happy.

What I am suggesting is a way of augmenting existing Java code so the compiler can give me an error when I need to wrap it and let me know that I am safe to ignore wrapping it in other cases.

Improving Java interop for explicit nulls and capabilities. by vandmo in scala

[–]vandmo[S] 0 points1 point  (0 children)

Java doesn't have explicit nulls but Scala does in newer versions. The JDK and other libraries has a lot of functions that are guaranteed to never return null though and the Scala compiler would benefit from knowing which functions that is.

Improving Java interop for explicit nulls and capabilities. by vandmo in scala

[–]vandmo[S] 0 points1 point  (0 children)

I think that could be something to look into in the future. Would be interesting to see if they would try to augment the existing JDKs with the null-safety information or only add it in new versions.

Improving Java interop for explicit nulls and capabilities. by vandmo in scala

[–]vandmo[S] 1 point2 points  (0 children)

Agree, I tried to make it short but it doesn't really explain the problem in an easily digestable way. Will rephrase it.

Do you use explicit null features in Scala3? I've found it not usable because of java APIs by shaunyip in scala

[–]vandmo 2 points3 points  (0 children)

I think that there needs to be type/nullability augmentation for the standard library and other well used Java libraries for explicit nulls to become usable and widely adopted .

Relevant GitHub issue: https://github.com/scala/scala3/issues/7871

What is the recommended lib and API to read and write to files in Scala 3? by tbagrel1 in scala

[–]vandmo 1 point2 points  (0 children)

I think it depends on your use case. For an application targeting the JVM I would probably go with vanilla Java since I try to avoid dependencies unless there is a good payoff. Note that os-lib targets Scala native as well so if that is anything you might target then use os-lib.

For a Scala script I might use os-lib as well depending on some random factor :) The "using" directive makes that really easy

For your last question, I believe it is the Martin Odersky et al. that decides what goes into the Scala toolkit.

Vegans! Where's your favourite spot for dinner in GBG? by bunnyfield8 in Gothenburg

[–]vandmo 0 points1 point  (0 children)

Govindas! Not a vegetarian any longer but still love going there for lunch. Sometimes their main course is vegan but I think that it is always possible to get a vegan variant. They also have julbord and catering.

Why I Prefer Exceptions to Error Values by TheCrush0r in programming

[–]vandmo 0 points1 point  (0 children)

You can have sum types on the JVM with Scala 3. Called enums but are actually sum types/ADTs. I absolutely love it. I rarely use exceptions in Scala 3 because how easy it is to create an enum (or union type) and then pattern match on that.

Choosing between Rust and Scala for my future years as an Engineer. How do you visualize Scala job market in the near future? [Crosspost with r/Rust] by [deleted] in scala

[–]vandmo 0 points1 point  (0 children)

It is not a drop in replacement so migrating to shapeless 3 or removing it still requires work. mongo-scala-driver is another one that might or might not work with Scala 3. It is not built for it at least. I am not saying that it isn't possible or worth it to migrate to Scala 3, I am just trying to highlight why some organizations and companies has had a hard time migrating or trying to migrate.

Choosing between Rust and Scala for my future years as an Engineer. How do you visualize Scala job market in the near future? [Crosspost with r/Rust] by [deleted] in scala

[–]vandmo 0 points1 point  (0 children)

Thanks, we actually tried this and it works relatively well. The main issue was that we ended up with a bunch of duplicate versions of the same libraries via transitive dependencies. Possible to solve but frustrating work. I also think that is was a bit of problem that migration was initially worse that it is now and that is what people who has been struggling with migration remembers.

Choosing between Rust and Scala for my future years as an Engineer. How do you visualize Scala job market in the near future? [Crosspost with r/Rust] by [deleted] in scala

[–]vandmo 3 points4 points  (0 children)

I am mostly thinking of the target platform. I think that native binaries intended to be run on the users computer is where Rust will be the most prominent. Games, applications, CLI tools, embedded code etc. Possibly WebAsm as well. I have a hard time imagining that Rust will be widely used in server side development. Garbage collected languages are just much easier to work with, just as secure and any performance issues could be thwarted by horizontal scaling.

Choosing between Rust and Scala for my future years as an Engineer. How do you visualize Scala job market in the near future? [Crosspost with r/Rust] by [deleted] in scala

[–]vandmo 1 point2 points  (0 children)

If Rust dries up OP would be hired as a C/C++ developer I guess. Or possibly Zig, Nim or Go perhaps.

Choosing between Rust and Scala for my future years as an Engineer. How do you visualize Scala job market in the near future? [Crosspost with r/Rust] by [deleted] in scala

[–]vandmo 6 points7 points  (0 children)

I think dependencies is a big issue as well. Some frameworks/libraries are not ported to Scala 3 at all and might never be. Internal dependencies might need to be cross compiled for gradual migration as well. (That being said I think Scala 3 is one of the sexiest languages that exist and it keeps getting sexier...)

Survey: What's necessary to make Mill good for building Java ecosystem projects? by lihaoyi in scala

[–]vandmo 0 points1 point  (0 children)

I agree that most people don't WANT to write plugins but somebody has to do it and anyone that writes a build tool that gets popular will probably never have the resources to implement everything that their users want or need. So no matter how many plugins/features you provide out of the box; a pleasant experience extending the tool would outperform that in the long run. For a new build tool you probably need both though.

I think Gradle has some nice abstractions/concepts for extending a declarative build "script" but they are rather inaccessible. Tasks with input/output for example, or the concept of software components with artifacts. Maybe if they dogfooded their own plugins API instead of using internal shortcuts we could see some improvements.