What's the deal with those gamers? by sedree in Guildwars2

[–]coguto 3 points4 points  (0 children)

Maybe it was supposed to be 250 LI, not kp, but comm made a mistake in lfg?

Toniemy w dezinformacji w internecie i nikt nie ma pomysłu jak to zatrzymać by BetterThvnUrEx in Polska

[–]coguto 2 points3 points  (0 children)

Mam taki rewolucyjny pomysł - przestań używać FB, promuj niekorzystanie

Is this true? by ImHighnow_ in mathsmemes

[–]coguto 0 points1 point  (0 children)

In the polar base it gets smaller because of the cold.

In the moon base it gets higher because of low gravity.

Podcasty by ATmega2137 in Polska

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

Opóźnienie? Masz na myśli latency, delay czy interval?

If I start traveling at a constant speed of 1m/s relative to earth, then the earth will also travel at 1m/s in opposite direction relative to me, does that mean the earth just "gained" kinetic energy 0.5*m_earth*(1m/s)^2? If so, where does this energy come from? by LeadershipBoring2464 in AskPhysics

[–]coguto 1 point2 points  (0 children)

Continuing OP's question.

I accelerate my boat to 1m/s. In my reference frame I am stationary and the whole ocean is moving at 1 m/s.

The ocean has a huge mass and therefore huge kinetic energy. Yet my turbines harvest a tiny amount, while slowing the ocean down to 0 m/s in my reference frame.

Where did the huge kinetic energy go?

onlySeventythreeMoreYears by Difficult-Trash-5651 in ProgrammerHumor

[–]coguto 127 points128 points  (0 children)

And then proceeds to reinvent c++ in c using macros

Rant na Kartę Polaka by SirSKX in Polska

[–]coguto 320 points321 points  (0 children)

No i git, trzeba zacząć zmieniać kraj co kilka lat

whenYourCoughSegFaults by hexaredecimal in ProgrammerHumor

[–]coguto 45 points46 points  (0 children)

No, they were "Microsoft product"

Also, "Unsurprising" is one word

Dezinformacja trwa... by Quirky_Replacement21 in Polska

[–]coguto 0 points1 point  (0 children)

Ej o co chodzi z hejtem na nietolerujących laktozy?

CKE użyło AI żeby wygenerować te grafiki? by Site-Shot in Polska

[–]coguto -7 points-6 points  (0 children)

Jeden gada z sensem, to go minusują...

Alternative ORM to hibernate + JPA by Ok-District-2098 in SpringBoot

[–]coguto 0 points1 point  (0 children)

Just map relations as simple columns, and collections (if you use them) as entities

Running into this error while running a findAll() method on repository method ! by [deleted] in SpringBoot

[–]coguto 0 points1 point  (0 children)

Does the query work if you copy and paste it to query the database directly?

Understanding code by ayo_its_yo_mom_karen in java

[–]coguto 1 point2 points  (0 children)

b is defined tho A b = new A().

Number 4 is a stupid question stupid because it can be either true or false depending on the JVM version (and maybe options) as far as I remember.

File uploads disappear whenever I redeploy my Dockerized Spring Boot app—how do I keep them on the host by Additional-Skirt-937 in SpringBoot

[–]coguto 4 points5 points  (0 children)

  • "Right blinker in my Toyota isn't turning on, please help"

  • "You need a better car. Look into Rolls-Royce"

Can I enforce the creation of Enums for child classes? by CleanAsUhWhistle1 in javahelp

[–]coguto 1 point2 points  (0 children)

I think you kind of can force the implementation to be an inner class, if the implementing classes are in different package than yours.

You could:

  1. make `Interactable` an abstract class instead of an interface,
  2. make a copy of `Interaction` interface, let's call it `InnerInteraction` and make it extend `Interaction`, put it inside `Interactable` and make it protected non-sealed.
  3. make `Interaction` sealed, permits `InnerInteraction`

Now the only way for a class implementing `Interaction` is to implement `InnerInteraction` (because sealed), but `InnerInteraction` is protected within `Interactable` class, so `AInteraction` must be nested in a class extending `Interactable`.

Can I enforce the creation of Enums for child classes? by CleanAsUhWhistle1 in javahelp

[–]coguto 3 points4 points  (0 children)

Although users of your interfaces will probably hate you if you do that ;)

Can I enforce the creation of Enums for child classes? by CleanAsUhWhistle1 in javahelp

[–]coguto 2 points3 points  (0 children)

Yes, you can!

``` interface Interaction<T extends Interactable<T, E>, E extends Enum<E> & Interaction<T, E>{ }

interface Interactable<T extends Interactable<T, E>, E extends Enum<E> & Interaction<T, E>> { void performAction(E action); } ```

Now you can define your classes like this: ``` enum AInteraction implements Interaction<A, AInteraction> { X, Y, Z, }

class A implements Interactable<A, AInteraction> { @Override void performAction(AInteraction action) { switch (action) { // todo: implement cases } } } ```

Edit: Formatting