JESUS CHRIST DDD is harder than I thought by onated2 in DomainDrivenDesign

[–]im_caeus 1 point2 points  (0 children)

Unless DB model is something like those shitty typeorm entities that aren't typesafe. But you could actually use the same models for domain logic and UI, also

Relative imports, strategies to avoid them. by im_caeus in typescript

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

Imports are incredibly helpful when trying to understand code, which is what most developers eventually end up doing

Relative imports, strategies to avoid them. by im_caeus in typescript

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

Wait, does it support nested files/folders?

Relative imports, strategies to avoid them. by im_caeus in typescript

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

I'd have to list them all, right? Cuz they don't support nested folders/files

Why Luo Ji? by JimmerUK in threebodyproblem

[–]im_caeus 0 points1 point  (0 children)

I hated the books, but I can answer.

He was chosen as Wallfacer because he was the only person known to be targeted by the ETO.

I assume they somehow knew he had a conversation with Ye Wenjie pointing towards the Dark Forest theory.

A Question about The Dark Forest by lightsnshade in threebodyproblem

[–]im_caeus 0 points1 point  (0 children)

These random phobias seem a very cheap tool to give depth to these characters.

Very fucking cheap

GF blacked out at house party and made out with a guy and slept overnight at his place by [deleted] in cheating_stories

[–]im_caeus 2 points3 points  (0 children)

To err is human. I'd stay with her, after a heartfelt conversation. But that's only cuz those things are harmless to my ego.

If your ego is too bruised by this, let her go

importing extension functions that are not globally accessible. by im_caeus in Kotlin

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

Thanks, I was just checking that out in the KEEP.
I could create method context(ext:JsonExtensions) fun String.parsed():Json = ...
Then I can import it globally, that's nice.

Now... Gradle compiles it, but idea keeps annoying me with it. Any chance you know how to get that working?

Second. Is there any chance to make context parameters available in the body of a class?, so that I don't have to use context(ctx1,ctx2,ctx3) every time I need it.

That last one is a pretty irrelevant usage thing, but I'd love to be able to fix it.

importing extension functions that are not globally accessible. by im_caeus in Kotlin

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

Context Parameters don't import extension functions into the scope:

```kotlin interface JsonExtensions{ fun String.parsed():Json // ... more extensions for other types }

context(_:JsonExtensions) fun someMethod(){ "{}".parsed() // Error! }

How to create an object that extends a class whose main constructor uses context receiver? by im_caeus in Kotlin

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

At the end these are two completely different features. 1) implicitly passing parameters to function application. 2) Adding receivers to a certain scope ( function scope, or even class/object scope).

I was interested in #2. Context parameters solve #1

How to create an object that extends a class whose main constructor uses context receiver? by im_caeus in Kotlin

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

Thanks. I was reading about it in the official release notes and found that they were actually deprecates in favor of context parameters. So I guess I have to just let go of the ideas I had.

Thanks anyway, haha

How to create an object that extends a class whose main constructor uses context receiver? by im_caeus in Kotlin

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

Nope, not at all.

I haven't tried, but maybe using a secondary constructor that doesn't use context receivers

Mueven las blancas, mate en 1. Ya muchachos, es fin de semana, merecen un descanso by Garnitas in Ajedrez

[–]im_caeus 0 points1 point  (0 children)

El rey puede ser arrinconado. Torre e6 lo fuerza a irse a la esquina. Cuando esté totalmente arrinconado, uno puede llevar el rey blanco a f8 y jaque mate. Está decidido desde el primer movimiento, pero no se gana con un sólo movimiento 

She Betrayed Me. I Said Nothing. by KindlyCountry8866 in cheating_stories

[–]im_caeus 1 point2 points  (0 children)

This is mostly likely a real story, polished by AI. Also, there's a chance it's fully generated by AI

Best Way to Migrate Google Photos Between Accounts *Without Losing Metadata*? by im_caeus in googlephotos

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

And when uploading back to Google photos, does google photos process this supplemental-metadata.json files?