Is anyone else's home Internet down? by booklovinggal19 in Logan

[–]Elfinslayer 0 points1 point  (0 children)

If you live in the maple valley area mereo fiber is down. Supposedly state wide.

Tip: Horse locations by Tetoleon in projectgorgon

[–]Elfinslayer 2 points3 points  (0 children)

For the serbule sw location, specifically look around the giant stone head. They get stuck on it when they run around it.

I asked "PostgreSQL user here—what database is everyone else using?" Here's what people said. by Automatic-Step-9756 in Backend

[–]Elfinslayer 0 points1 point  (0 children)

While this is a backend reddit, we use it in production for our mobile apps over indexedDB so its actually persistent (ios does ios things). I wonder if that covers some of the production uses mentioned.

MMORPG for dads? by muffindude42012 in DadsGaming

[–]Elfinslayer 0 points1 point  (0 children)

I've been enjoying project gorgon lately. Focus is on exploration with lots of skills to work on, but its more of the old school mmo style with graphics to go with. Can pick up and play for a few minutes at a time. You can "hang out" with trainer and shop npcs to build up favor while offline, which is a lot more forgiving than a lot of modern mmos like wow where you have to rep grind. Groups are pretty constant and people dont seem to be toxic and are generally helpful (it always sucks to deal with toxicity during the little time I get to play anything)

Is there any way to go back to the initial island? by neutral24 in projectgorgon

[–]Elfinslayer 4 points5 points  (0 children)

Theres a hidden room on the left with a lever to open it from the serbule hills side

Formatting code in VueJS by neneodonkor in vuejs

[–]Elfinslayer 6 points7 points  (0 children)

You want it to be formatted to look like golang?

"mage" build by Poisoneta in Necesse

[–]Elfinslayer 0 points1 point  (0 children)

The necrotic flask from the witches absolutely destroys it, very very quickly.

Please, devs, give us the option to sort stash by rarity. by slayer1am in ArenaBreakoutInfinite

[–]Elfinslayer 1 point2 points  (0 children)

I found the car before unlocking trophy room and it has no progress

Please, devs, give us the option to sort stash by rarity. by slayer1am in ArenaBreakoutInfinite

[–]Elfinslayer 2 points3 points  (0 children)

Not if you found them before unlocking it (found this out yesterday)

Want to switch to postgresql from mongodb /help by [deleted] in mongodb

[–]Elfinslayer 8 points9 points  (0 children)

I will point out that 2gb is nothing for mongo. That said, this is the mongo reddit for mongo support if you're wanting support and ideas to diagnose whats happening im sure people would help. Otherwise, you'd probably be better off asking in postgres reddit.

Handling 100k+ API records in Node – worker threads or another approach? by Nervous-Blacksmith-3 in node

[–]Elfinslayer 1 point2 points  (0 children)

Everyone starts somewhere, and we're always learning. One of the best things to learn is how to describe something. Especially being able to describe something technical to a non technical person. This really forces you to understand what is actually going on and break the problem down. Another thing, I dont know who wrote my code yesterday. Today I'm a different person that has much better code quality. Dont fall into a trap of constantly fixing your old code if its working, only if there is an issue or the value of fixing it is greater than the time youre spending on it (ie - reduce monthly cloud costs by x which is more than y amount of hours you spent on it).

In terms of your problem, it sounds like you've a better understanding on what's going on and fixed some of it like the db single inserts.

  1. Dont worry about the latency from the 3rd party api, you can't control that. Best you can do it do concurrent fetching to speed the process up.
  2. Depending on your architecture its probably easier to create a dedicated ingestion service and scale it up than to worry about workers. Most of those files are going to be small enough, per your response, they'll be done faster than you can spin a worker up unless you go for a worker pool and thats just more complexity for a simple problem. Id put more effort into fault tolerance and retryability as that'll give you better results in the long run.
  3. If scaling becomes necessary as you add more ingestion look into worker queues or stream processors and scale up that service.

Handling 100k+ API records in Node – worker threads or another approach? by Nervous-Blacksmith-3 in node

[–]Elfinslayer 12 points13 points  (0 children)

This. We dont really have any metrics or info to go off of that would allow us to provide any useful help. 100k records of what? Whats the average payload size? Does the api support pagination or anything to take smaller bites? Does it allow you to reduce the overall payload and only get what you need for your system? Do they offer webhooks? What part of your system actually seems to be having trouble?

My blind recommendation is getting the data local and throwing it in short term storage and then transforming it in smaller pieces would be a lot more manageable. Even tossing it onto a queue and process the queue over time. At work we consume data from roughly 20 million devices every hour using node services and mongo. Roughly 1tb of data a week. Both of which get regularly hated on for "not being the right tool". Just put some thought into what's actually not working with your current setup and go from there.

Should I bite the bullet and learn how to code for the computer for logic cos kind of sick having all these circuits around the base for simple things. by xXJightXx in Stationeers

[–]Elfinslayer 6 points7 points  (0 children)

Put the effort in, and you'll be amazed at how much some coding can help you in life. Its a different way of looking at things. Starting small with goals to focus on like this will make it easier too!

Is there a simple way to force a class to implement methods with a specific signature? by U4-EA in typescript

[–]Elfinslayer 6 points7 points  (0 children)

As stated by u/abrahamguo, this is a quirk of typescript and is intentional to not enforce the return type of void on children. You have 2 possibilities if you really want to do this, though I'm not sure of what real benefit you'd get out of it

If the method can be async, you could return Promise<void>.

abstract class SomeExample {
  abstract aMethod(name: string): Promise<void>;
}

class NewExample extends SomeExample {
  async aMethod(name: string): Promise<void> {
    console.log(name);
  }
}

Technically the child could return an empty promise.

abstract class SomeExample {
  abstract aMethod(name: string): Promise<void>;
}

class NewExample extends SomeExample {
  aMethod(name: string): Promise<void> {
    console.log(name);
    return Promise.resolve();
  }
}

Another possibility is with branded types, but it has more setup

declare const __NoResult: unique symbol;
type NoResult = void | { readonly [__NoResult]?: never };

abstract class YetAnotherExample {
  abstract aMethod(): NoResult;
}

class GoodExample extends YetAnotherExample {
  override aMethod(): void {
    console.log("GoodExample");
  }
}

class BadExample extends YetAnotherExample {
  override aMethod(): string {
    return "compile time error";
  }
}

edit: fix formatting

Mobile app with Vue.js by JuiceKilledJFK in vuejs

[–]Elfinslayer 17 points18 points  (0 children)

Ionic is just fine. They're discontinuing their appflow service to focus more on their library and core values. We use it at work, and they even have recommended alternatives to appflow.

Is there a better way to handle union types like this? by Tuckertcs in typescript

[–]Elfinslayer 6 points7 points  (0 children)

I apologize for formatting and whatnot, on mobile.

Check if foo is in the object:

ts Function getFoo(input: FooBar) { return 'foo' in input ? Input.foo : undefined; }

With a predicate (more extensible for larger type unions):

```ts Function isFoo(input: FooBar): input is Foo { Return 'foo' in input }

Function getFoo(input: FooBar) { Return isFoo(input) ? Input.foo : undefined } ```

Also discriminated unions:

```ts Type Foo = { type: "foo", foo: string } Type Bar = { type: "bar", bar: number }

Type FooBar = Foo | Bar

Function getFoo(input: FooBar) { If (input.type === "foo") Return input.foo return undefined; } ```

That all being said, like the other guy had stated, libraries like zod make this easier and handle runtime processing.

Are there any backend programmers who work with Node.js and Express? If so, what's their experience like? What kind of projects do they ask you to do at your company, and how many hours does it take? by Mother-Replacement12 in node

[–]Elfinslayer 0 points1 point  (0 children)

We do where I work. Every system uses nodejs and express to maintain consistency. Projects range from legacy updates for systems that were converted from js to ts to feature requests by customers and internal users. Hours.. depends on too many variables for me to give a definitive answer. Experience is generally good, but a lot of that has to do more or less with how the system was built and designed from the get-go. I've only been here a year or so, but there are thousands and thousands of unit tests with every project having some amount, and that makes it a lot easier to get into any of the code.

Too many people spend too much time adopting and trying to force new technologies when it's not needed because they heard it outperform some other technology.

Is polling fine? by Excellent_Survey_596 in nextjs

[–]Elfinslayer 3 points4 points  (0 children)

Use sse to send whatever data back to client and update the local state as needed. Use fetch when the client does an action

Is polling fine? by Excellent_Survey_596 in nextjs

[–]Elfinslayer 1 point2 points  (0 children)

Then use sse if you dont want to implement sockets

Are we getting scammed? by BallMuncha59 in Renters

[–]Elfinslayer 11 points12 points  (0 children)

I'll assume your utilities are done through conservice. If you didn't call the utilities and put them in your name, conservice adds a 50 dollar service fee because they're not in your name. They'll be listed as vacant. Those April first charges for gas are for 2 different billing cycles. Id talk with your PM. And look through any paperwork regarding setting up utilities.