ephemient
02/03/2023, 1:35 PMimport kotlin.math.*
sin(85.05112877980658 * PI / 180)
• 0.9962720762207499
(Double.fromBits(0x3fefe175fa29280f)
) with Java 11 and Java 17 on Linux x86-64 as well as Java 11 on Apple Silicon
• 0.99627207622075
(Double.fromBits(0x3fefe175fa292810)
) with Java 17 on Apple SiliconColton Idle
02/04/2023, 4:06 AMayodele
02/07/2023, 9:12 AMclayblockunova
02/10/2023, 10:20 AMelect
02/11/2023, 10:07 AMEugen Martynov
02/11/2023, 7:33 PMEugen Martynov
02/11/2023, 7:33 PMmartinsumera
02/17/2023, 7:35 AMLeoColman
02/17/2023, 7:08 PMayodele
02/18/2023, 7:22 PMJason5lee
02/19/2023, 6:07 AMelect
02/19/2023, 6:33 AMJason5lee
02/19/2023, 7:47 AMephemient
02/19/2023, 10:30 AMsnowe
02/21/2023, 12:33 AMdarkmoon_uk
02/21/2023, 4:33 AMfun load() = scope.launch {
...
}.ignore()
where .ignore()
returns Unit
vs.
(2)
fun load() {
scope.launch {
...
}
}
Vote 1️⃣ or 2️⃣rtsketo
02/22/2023, 8:48 AMfun View.background(@ColorInt color: Int) = ...
) expecting that if someone passes a variable that isn't annotated with the same annotation (val someColor = Color.parse("#C0FF33"); someView.background(someColor)
) an error will be produced. I've never seen so far such an error, not even for Android SDK's functions like `setColorText(..)`that are also annotated like so. Was having an error or a warning a false expectation of mine? If so, what is even the annotation supposed to do?Gleb Minaev
02/22/2023, 1:32 PM@Notnull
public static String foo() { ... }
(2️⃣)
public static @Notnull String foo() { ... }
Colton Idle
02/23/2023, 3:09 PMnapperley
02/23/2023, 9:25 PMCould not determine the dependencies of task ':kotlin-stdlib:compileMainJdk7Kotlin'.
> Unable to download toolchain matching the requirements ({languageVersion=7, vendor=any, implementation=vendor-specific}) from '<https://api.foojay.io/disco/v3.0/ids/45dfb704e8dcceab434285501d74cd33/redirect>'.
> Provisioned toolchain '/home/napperley/.gradle/jdks/zing20/zing20.09.1.0-1-jdk7.0.272-linux_x64' could not be probed.
Is there a way to resolve the issue?Youssef Shoaib [MOD]
02/26/2023, 1:57 AMgsala
03/01/2023, 1:37 PMclass ImmutableList<T>(list: List<T>) : List<T> by list.toList()
groostav
03/01/2023, 10:50 PMval domainRelevantKey = Root / HighDomainTerm / MediumDomainTerm / LowDomtainTerm("runtime value!") / OptionallyAFeature
which would be a kind of key for use in our application. As you can imagine by its pathy-ness this kind've imposes a hierarchy on my app, which is what im looking for.
I did get this... with a boatload of pretty strange code:
https://gist.github.com/Groostav/68234f5ab6d5582b182990c16b548db8
Some pros:
- use of static symbols like this means spelling mistakes become compiler errors (where if I'd used some more dynamic things involving strings, I'd likely see misbehaviors that given my usage would be difficult to find in tests)
- its likely going to be pretty readable; anybody reading val relevantSection = Root / Model / ...
is going to understand its usage.
- its reasonably extensible in as far as java-with-boilerplate is extensible, in that you can copy-paste-change and have it likely work for your purposes.
some cons:
- nobody will ever understand my inheritance scheme, I'm pretty sure I wont in 3 months.
- each new symbol/domain concept requires more code. A purely dynamic solution wouldn't have this problem --except of course at callsites.
- seems pretty overbuiltGleb Minaev
03/02/2023, 7:15 AM..<
operator to have <..
and <..<
operators? (Vote with 👍 if you want the operators too and 👎 otherwise.)João Gabriel Zó
03/03/2023, 6:14 PMSheroziy
03/06/2023, 9:53 AMDavide Giuseppe Farella
03/07/2023, 10:31 PMfun getMovie(movieId: MovieId) = Store(
key = StoreKey<Movie>(movieId),
refresh = Refresh.WithInterval(3.minutes),
fetcher = Fetcher.forError { remoteMovieDataSource.getMovieDetails(movieId) },
reader = Reader.fromSource { localMovieDataSource.findMovieWithDetails(movieId) },
write = localMovieDataSource::insert
)
The full snippet with more info in the thread
The source here: https://github.com/4face-studi0/CineScout/tree/main/cinescout/store/src
I’d like to receive some feedbackEugen Martynov
03/08/2023, 11:34 AM@Deprecated("Use new one", replaceWith("newFun(param1, param2)"))
fun oldFun(param1: Int, param2: String = "test"){}
fun newFun(param1: Int, param2: String = "test){}
Will cover the calls where all params are specified and will add extra non existing param when the second param is defaulted.Marcin Wisniowski
03/08/2023, 9:33 PMIllegalStateException: You are currently running with version 2.1.1 of google-api-client. You need at least version 1.31.1 of google-api-clientVery funny...
elect
03/10/2023, 10:15 AM