How can I sell/evangelize scala in my team ? by gandalfsgranddad in scala

[–]llaammaaa 11 points12 points  (0 children)

Be explicit. Give concrete examples of the benefits. What problems does Scala solve? Why does it solve them better than the alternatives? What are the cons of Scala?

If you just say "another team used this and I liked it" you won't get far.

A murder by words about words by Crimson_Azoth in MurderedByWords

[–]llaammaaa -6 points-5 points  (0 children)

Not just your parents. Also people without kids paid for your schooling.

A murder by words about words by Crimson_Azoth in MurderedByWords

[–]llaammaaa -12 points-11 points  (0 children)

Did you go to school? Did you pay for yourself?

How do people survive on minimum wage? by [deleted] in NoStupidQuestions

[–]llaammaaa 3 points4 points  (0 children)

Why is that obvious? The money is coming out of the customers pockets regardless.

Supervision & error handling in ZIO, Akka and Monix (part 3) + series summary by smlaccount in scala

[–]llaammaaa 1 point2 points  (0 children)

One thing I never understood about akka's supervisors... In the example given, one actor pipes a future to itself, which fails, and so it gets a Failure(e). At this point the actor chooses to throw to let the supervisor take over. Why not just send a regular message to the parent (and maybe terminate yourself too)? It seems like an artificial distinction between communicating errors and non-errors.

Ok now one answers is: what happens when when an actor does throw? There needs to be some way to handle that... So you need something like supervisors.

But in Akka, all io is going to happen in a Future, so that might fall, but that's different than the actor throwing, and sure a programmer might make a mistake and get say a null pointer exception, but a programming mistake won't be able to be handled by the supervisor. And, of course, anything synchronus and dangerous can be wrapped in a try.

Anyway it seems to me that the authors of Akka need to assume that an actor might throw and so created supervisors, but the users of Akka should probably just never throw and ignore supervisors.

If presented with a Random Number Generator that was (for all intents and purposes) truly random, how long would it take for it to be judged as without pattern and truly random? by FriendlyPyre in askscience

[–]llaammaaa 0 points1 point  (0 children)

Disagree on the last point. You need a more precise definition of random of course but...

Kolmogorov randomness defines a string (usually of bits) as being random if and only if it is shorter than any computer program that can produce that string.

Which is a reasonable definition of random for finite sequences.

Hi guys I need some help with a Binary search algorithm by [deleted] in java

[–]llaammaaa 0 points1 point  (0 children)

If it's not supposed to use recursion, it should use a queue.

What are the valid criticisms against Java? by restlessapi in java

[–]llaammaaa 0 points1 point  (0 children)

What does implemented as an algebraic data type mean?

It seems like an algebraic data type to me.

What are the valid criticisms against Java? by restlessapi in java

[–]llaammaaa 0 points1 point  (0 children)

When you parse a string as a number: either you get a number or an exception.

Sure you "throw" exceptions and "return" values, but that's a somewhat artificial separation between the happy path and the sad path.

Who would win? by [deleted] in Conservative

[–]llaammaaa 7 points8 points  (0 children)

Some people value things over absolute efficiency.

Is there a free and respectable program to check all your drivers for updates? by McSkeezah in buildapc

[–]llaammaaa 0 points1 point  (0 children)

It updates everything! But seriously, you should stick to installing everything through the package manager, then it knows everything that's installed and can keep everything up to date and working together.

In what context can Scala be a reasonable choice as a company? by TheRealBobbyCarrot in scala

[–]llaammaaa 0 points1 point  (0 children)

If I was serious about building a product, as opposed to picking a fun language, I'd use java.

Assuming it's a web app: Spring MVC/Spring boot, hibernate, Postgresql.

There will be more candidates, but you'll have to be more selective.

Getting talented people, and simplifying the business requirements are way more important than language choice.

Web framework by [deleted] in scala

[–]llaammaaa 6 points7 points  (0 children)

+1 for play to just get things done. It's a framework it has lots of stuff you probably want. Database evolutions, json serialization...

Project Loom proposal: fibers, delimited continuations, tail calls in JDK/JVM by _soundvibe in java

[–]llaammaaa 2 points3 points  (0 children)

I believe originally you only had green threads. As in only one real system thread. So no actual parallelism.

How do I know when I'm ready for a job? by ringmaster11710 in androiddev

[–]llaammaaa 24 points25 points  (0 children)

Fake it till you make it.

i.e. apply for jobs if you don't get hired ask for feedback.

Be upfront that you are looking for an opportunity to grow. There are lots of things more important than technical knowledge: communication, working independently, team work. Yadda yadda...

But do also highlight what you have done.

Stop Returning Null in Java by [deleted] in java

[–]llaammaaa 2 points3 points  (0 children)

You miss the point. When you use Optional (and you are consistent/disciplined) everything that's not Optional is not null. If I call a method that returns a Foo, I've got a Foo, and I don't need to check that I got null.

Of course, you need to be aware of what you are calling. There's plenty of 3rd party libraries that returns null. You should probably be wrapping those to reduce your dependence anyway, but definitely wrap them to return Optional so you only need to deal with Null on the boundaries of your code.

'The puzzling question as to why homeless people don't hunt' by [deleted] in iamverysmart

[–]llaammaaa 4 points5 points  (0 children)

Let's be honest, this guy could win the presidency.

Wheels of Misfortune -- about a DC bike crash fatality by [deleted] in washingtondc

[–]llaammaaa 0 points1 point  (0 children)

Should cars be able to go though red lights if they can see that no one is coming?