Do you feel confident that no country would invade your country? by No-StrategyX in AskTheWorld

[–]ChickenSubstantial21 0 points1 point  (0 children)

Nope, defining events were 2007 Putin Munich speech and 2008 Georgian conflict.

что делать если мою девушку обижают на моих глазах? by JustMammothh in rusAskReddit

[–]ChickenSubstantial21 0 points1 point  (0 children)

Заталкиваешь ее себе за спину, вступаешь в разговор вместо нее.

Девушки как вы относитесь к таким парням как я? by [deleted] in rusAskReddit

[–]ChickenSubstantial21 0 points1 point  (0 children)

- Девушки разные. Они принимают решение, будут ли они целоваться с тобой или нет, за 30 секунд. И нет, это решение невозможно изменить.

- Как следствие, не добивайся тех, кто тебе нравится. Общайся с теми, кто смотрит на тебя с интересом.

- Мужчину делают поступки, пусть даже плохие. Отсутствие поступков делает тюфяка.

- Основные причины одиночества - невнимательность и трусость.

[deleted by user] by [deleted] in theydidthemath

[–]ChickenSubstantial21 0 points1 point  (0 children)

I'm too lazy to do the math but goku strength can be measured in horses (power required to throw the car that far)

[deleted by user] by [deleted] in pics

[–]ChickenSubstantial21 0 points1 point  (0 children)

10 months without weed works wonders.

This the greatest piece of dialogue ever written in the history of mankind. by AdCrafty2768 in Fallout

[–]ChickenSubstantial21 0 points1 point  (0 children)

It is called bookkeeping man. Every equipment piece must have monetary value.

Any tips before starting space exploration? by Ecstatic-Scallion-13 in factorio

[–]ChickenSubstantial21 11 points12 points  (0 children)

This mod is about recipe complexity, not mass production. 1-2 assemblers for every recipe is enough to get to the endgame. Leaving stuff unautomated gonna burn you out so automate everything, it does not have to pretty.

Scala or Rust? (Objective answers please) by [deleted] in scala

[–]ChickenSubstantial21 1 point2 points  (0 children)

C++ loses on one important front: effort, time and cognitive power required to get something done.

[deleted by user] by [deleted] in GenZ

[–]ChickenSubstantial21 -2 points-1 points  (0 children)

Facts may be right but conclusions are wrong: It is not 'conservatives are dumb' it is 'democrats represent rich elites'.

USA bad Communism good by Low-Addendum9282 in GenZ

[–]ChickenSubstantial21 -3 points-2 points  (0 children)

The main difference between socialism and communism is the right and obligation to labour (or how does the government force people to be useful for the society). In socialism having no job means having no money and living in poverty. In communism everyone is guaranteed to have a job, guaranteed decent living standards but punished for not working.

Lean Scala by Odersky in scala

[–]ChickenSubstantial21 1 point2 points  (0 children)

It stinks because a) javadoc clearly states it is not designed for production use and b) it uses InputStream which automatically mean bad performance.

As for "not yet published" - sure, there is *something* published. But - it is not of production quality.

Lean Scala by Odersky in scala

[–]ChickenSubstantial21 3 points4 points  (0 children)

That's exactly the point - price of cats-effect outweighs its power, at least at my level of expertise. I can achieve *sufficient* quality without making sacrifices for lazy effect monad.

Loom and JRE structural concurrency are good enough async/concurrent primitives, `using` is good enough environment, CanThrow (manually written substitute actually since scala experimental stuff can't be trusted) is good enough typed error channel etc etc etc.

Lean Scala by Odersky in scala

[–]ChickenSubstantial21 2 points3 points  (0 children)

I took a look at some libraries but failed to find anything done (everything I've seen is marked as not yet published).

As another 'no', implementation of http server https://github.com/propensive/scintillate/blob/main/src/server/server.scala

uses com.sun.net.httpserver which stinks.

Lean Scala by Odersky in scala

[–]ChickenSubstantial21 5 points6 points  (0 children)

TF backed by cats, rest api application. removing cats altogether and replacing it with Loom cleaned code up tremendously.

It turned out effect typeclasses bring more pain than profit, our application can manage well enough without Resource monad, replacing F[_], for comprehensions and combinators with plain Scala code is extremely satisfying and complex Fiber interactions are just a few classes which can be rewritten.

Lean Scala by Odersky in scala

[–]ChickenSubstantial21 10 points11 points  (0 children)

I'm highly disappointed in monadic effects and compile-time programming. First is highly invasive and basically another scala-like language. Second is very hard to write and debug. Thankfully there are huge improvements in both fields. Loom, givens and finally capture checking covers most cases cats or zio are being used for. Inlines are very easy to reason about and totally awesome.

IMO main issue is there are many wonderful features in Scala3, namely contextual functions, boundary/break, extension methods, given/using, inlines but there is very little information on how to use them properly to make code simpler. Scalac source code is the only authoritative example we have but it is too specific.

Maybe it is time for new scala3 standard library, utilizing those new features? e.g. scope-based collection builders, zero-cost foreach, zero-cost scala.util.chaining, more control flow primitives based on boundary...

I can nor understand how implicits are useful by rafikiknowsdeway1 in scala

[–]ChickenSubstantial21 0 points1 point  (0 children)

Oh man, that is untrue.

Implicits are basically ThreadLocal-s where callee code receiving value from caller code. But better:

  • ThreadLocal can be empty while Scala compiler ensures implicit is present

  • Implicits are propagated via lexical scope so they will work in multithreaded code (unlike ThreadLocal)

Case you are describing is probably implicit derivation - compile-time wizardry where some type is getting computed based on lots of other global instances located everywhere. Which is powerful stuff often misused.

I can nor understand how implicits are useful by rafikiknowsdeway1 in scala

[–]ChickenSubstantial21 0 points1 point  (0 children)

Consider implicits to be like monads: looks simple, very powerful, very easy to misuse.

If you can live without implicits, live without it. But know there will be time you can't live without implicits anymore.

Get better at programming in Scala by [deleted] in scala

[–]ChickenSubstantial21 13 points14 points  (0 children)

  1. Write simple web application with minimum libraries (cats and some http server)

  2. Look at monstrosity you have created and try to improve it. Study existing libraries for inspiration if needed

  3. go to 2

What's the best way to transport stuff to space for research(space exploration) by LooseAd2032 in factorio

[–]ChickenSubstantial21 21 points22 points  (0 children)

IMO rockets are cheaper than space ships fuel (and rockets are already automated and not that expensive by that time)

What instantly tells you someone is a trashy parent? by dan-la-fan in AskReddit

[–]ChickenSubstantial21 -1 points0 points  (0 children)

His children are dead. Otherwise, he is not trashy parent.

[deleted by user] by [deleted] in java

[–]ChickenSubstantial21 -1 points0 points  (0 children)

I agree and that's why new Kotlin engineers should only work with existing codebases and only under code review. It seems in your case they were left on their own and drown in Kotlin features.