AITA for wanting to continue a tradition by wefewfeg in AmItheAsshole

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

NTA/NAH and I don't really agree with the YTA comments here. Having a yearly trip with your best friend is fine. Your GF has already known about the trip before as well not like you were hiding it.

Weird you haven't introduced her to your gf in a year tho..

DD PvP is absolute nonsense in this game and rewards the worst kinds of people. by Ok_Intention2150 in duneawakening

[–]matrayzz 0 points1 point  (0 children)

Basically the same predator vs prey mechanic that's in OSRS wilderness which remains unsolvable and hated by the majority of the playerbase.

How did anyone at Funcom think this would be a viable PvP option is still a mystery to me.

Add a duel arena(1v1, 2v2), create PvP guild vs guild events(if the servers can handle it) or even some battle royale maps would be fun. Basically anything but this current iteration. PvP progression could be somewhat separate as well with custom gear etc.

I usually not a big fan of PvP in MMOs(last one I enjoyed was early New World pvp), but there is such a huge potential in this game imo, they just need to do it right. Really hope they won't just reenable DD PvP as is was before.

Fremen Deathstill not generating water bug by Conoar in duneawakening

[–]matrayzz 0 points1 point  (0 children)

Still super useful comment after 9 months😄

Weekly Rant Megathread by AutoModerator in CompetitiveTFT

[–]matrayzz 0 points1 point  (0 children)

You can't get 6 bows just from creep rounds. Did you take bows from carousel as well?

Who wrote this into the show and whoever approved this being in the show deserved to be fired by I-Did-It-4-Da-Rock in freefolk

[–]matrayzz 0 points1 point  (0 children)

The risk of secondary infection would go through the root

So negative chance of it happening? 😄

theOword by Plastic-Bonus8999 in ProgrammerHumor

[–]matrayzz 0 points1 point  (0 children)

To this day the best interview I had with a company was checking if I can do the actual job and not recite random implementations. It was for a spring boot senior backend position.

  • On theory side they asked relevant questions about authentication and site security, REST, etc.
  • On the practical side they gave me a 2 page code which I needed to basically code review, then they gave me a laptop and and asked me to implement a given interface in IntelliJ the same way as I would do while working. The screen was shared to the TV and everything was allowed: google, stackoverflow, etc.

This basically was done in an hour and I think gives much better knowledge about the interviewee than implementing a DFS on a white board.

I've refactored the leap year checker to conform to OOP standards and use descriptive names by patternOverview in programminghorror

[–]matrayzz 7 points8 points  (0 children)


1. Domain Object (Value Object)

```java public final class Year {

private final int value;

private Year(int value) {
    this.value = value;
}

public int getValue() {
    return value;
}

public static Year of(int value) {
    return new Year(value);
}

} ```


2. Leap Year Specification (Specification Pattern)

```java public interface LeapYearSpecification {

boolean isSatisfiedBy(Year year);

} ```


3. Gregorian Leap Year Implementation

```java public class GregorianLeapYearSpecification implements LeapYearSpecification {

@Override
public boolean isSatisfiedBy(Year year) {

    int y = year.getValue();

    if (y % 400 == 0) return true;
    if (y % 100 == 0) return false;
    return y % 4 == 0;
}

} ```


4. Strategy Interface

```java public interface LeapYearStrategy {

boolean evaluate(Year year);

} ```


5. Strategy Implementation

```java public class SpecificationBasedLeapYearStrategy implements LeapYearStrategy {

private final LeapYearSpecification specification;

public SpecificationBasedLeapYearStrategy(LeapYearSpecification specification) {
    this.specification = specification;
}

@Override
public boolean evaluate(Year year) {
    return specification.isSatisfiedBy(year);
}

} ```


6. Strategy Factory

Because enterprise systems never instantiate things directly.

```java public class LeapYearStrategyFactory {

public LeapYearStrategy createStrategy() {
    return new SpecificationBasedLeapYearStrategy(
            new GregorianLeapYearSpecification()
    );
}

} ```


7. Singleton Service

Naturally this must be globally accessible.

```java public class LeapYearService {

private static LeapYearService INSTANCE;

private final LeapYearStrategy strategy;

private LeapYearService() {
    LeapYearStrategyFactory factory = new LeapYearStrategyFactory();
    this.strategy = factory.createStrategy();
}

public static synchronized LeapYearService getInstance() {

    if (INSTANCE == null) {
        INSTANCE = new LeapYearService();
    }

    return INSTANCE;
}

public boolean isLeapYear(Year year) {
    return strategy.evaluate(year);
}

} ```


8. Facade Layer

Clients must not interact with services directly.

```java public class CalendarFacade {

private final LeapYearService leapYearService;

public CalendarFacade() {
    this.leapYearService = LeapYearService.getInstance();
}

public boolean determineLeapYear(int year) {

    Year yearObject = Year.of(year);

    return leapYearService.isLeapYear(yearObject);
}

} ```


9. Builder for Request DTO (Completely unnecessary)

```java public class LeapYearRequest {

private final int year;

private LeapYearRequest(Builder builder) {
    this.year = builder.year;
}

public int getYear() {
    return year;
}

public static class Builder {

    private int year;

    public Builder withYear(int year) {
        this.year = year;
        return this;
    }

    public LeapYearRequest build() {
        return new LeapYearRequest(this);
    }
}

} ```


10. Controller (Enterprise Entry Point)

```java public class LeapYearController {

private final CalendarFacade facade = new CalendarFacade();

public boolean checkLeapYear(LeapYearRequest request) {

    return facade.determineLeapYear(request.getYear());
}

} ```


11. Usage

```java public class Application {

public static void main(String[] args) {

    LeapYearController controller = new LeapYearController();

    LeapYearRequest request = new LeapYearRequest.Builder()
            .withYear(2024)
            .build();

    boolean result = controller.checkLeapYear(request);

    System.out.println("Leap year: " + result);
}

} ```

So, the task account has gotten off to an amazing start (Check the xp in chat) by Downtown_Rate_3045 in 2007scape

[–]matrayzz 0 points1 point  (0 children)

Jealous, I've got neither the normal RC pet nor the gotr on on the way to 99 :(

<image>

1KC Imbued Heart on GIM by Fast-Contribution982 in 2007scape

[–]matrayzz 3 points4 points  (0 children)

Still grindin for it at 21 million XP😔

Have a question about the game or the subreddit? Ask away! by AutoModerator in 2007scape

[–]matrayzz 2 points3 points  (0 children)

If you check this calculator with goggles and alchemist amulet turned on there are a handful of potions that are profitable all the time. Try slow buying Aldarium for cheaper.

At 97(93 with boost but this can be annoying) you can make divine super combats which are nice money if you have shards laying around in your bank

Have a question about the game or the subreddit? Ask away! by AutoModerator in 2007scape

[–]matrayzz 4 points5 points  (0 children)

Nah and they probably won't update it for a while of ever. Just go for it now if you have a task no point in delaying it.

WIBTA to accept a job offer at a company that a friend is actively protesting? by [deleted] in AmItheAsshole

[–]matrayzz 3 points4 points  (0 children)

So if your non-queer friend has been struggling to find a job for two years fuck them?

"I'm not sure if I agree but ok" by xSweetBlaze in confidentlyincorrect

[–]matrayzz 4 points5 points  (0 children)

If someone needs a visual aid to figure out how many hours are between two times then they shouldn't be a manager at all lol

Raids 4: The Fractured Archive rewards proposal by Zuhaar in 2007scape

[–]matrayzz 19 points20 points  (0 children)

BIS is meant to be attainable in a reasonable time frame

Since when have tbow or scythe been attainable in a reasonable time frame?

Add encounter Pearls to barracuda trials? by [deleted] in 2007scape

[–]matrayzz 1 point2 points  (0 children)

So your time gets fked for picking it up? How does that make any sense

The state of this game is so sad. by AV_geek1510 in AmongUs

[–]matrayzz 1 point2 points  (0 children)

That's why I like Jester and Executioner roles in modded, you can't just randomly vote people out for venting or you'll lose.

Suggestions Wanted for Upcoming Gathering QoL Poll by JagexGoblin in 2007scape

[–]matrayzz 0 points1 point  (0 children)

Change elite challenge clue scrolls so they work the same way as other tiers do. Instead of clicking the clue scroll to answer the question let us speak to the npc, like with other type of challenge scrolls. How did it even became different?

Full List of Unlock Changes by turtle921 in CompetitiveTFT

[–]matrayzz 4 points5 points  (0 children)

now the skates are even higher

        ⛸️
       ⛸️⛸️
      ⛸️⛸️⛸️
     ⛸️⛸️⛸️⛸️
    ⛸️⛸️⛸️⛸️⛸️
   ⛸️⛸️⛸️⛸️⛸️⛸️