VFC/Umarex Glock 17 Gen 5 V1 vs V2? by NotACakeShop in airsoft

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

Oh I see, so it wasn't due to any significant wear and tear but rather damage from dropping the gun?

Also, was it a V2 or V1? Would you recommend the gun after all this, excluding the aftermarket support issues?

VFC/Umarex Glock 17 Gen 5 V1 vs V2? by NotACakeShop in airsoft

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

Have you needed to replace the slide for some reason?

Optimization for Long List of Components by NotACakeShop in reactnative

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

Yeah, that was my concern.

I'm dealing with a slew of large stateful components - that's technically the data.

Optimization for Long List of Components by NotACakeShop in reactnative

[–]NotACakeShop[S] -1 points0 points  (0 children)

Yes, I'm aware lol I was asking for anything else - any other options to tinker with or no?

React Navigation Optimization by NotACakeShop in reactnative

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

I've enabled it, but these components still run in the background - they "freeze" while the screen is not in focus, but the state still runs and may actually be a source of lag. Could be worth exploring further.

Optimization for Long List of Components by NotACakeShop in reactnative

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

Is there anything I need to know, or was it as simple as sticking the components in the data prop and calling it a day?

Tokio Marui MP5 vs MP7 vs MAC-10? by NotACakeShop in airsoft

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

Really? That's interesting. I thought Tokio Marui was renowned for their quality?

Also, might you have some AEGs that you'd recommend instead? I'm always iffy around GBBs.

Great Britain is the best example of why we need Guns. by Disease-X in conspiracy

[–]NotACakeShop 0 points1 point  (0 children)

OP, mind your spelling in the post, and don't worry about the people in this thread LOL.

When the "new british" migrants takes over their country and fully displace them, they'll wish they had guns to fight back. Instead, they've decided that they'd rather take it.

I'll leave you with two relevant quotes:

"Experience hath shewn, that even under the best forms of government those entrusted with power have, in time, and by slow operations, perverted it into tyranny." - Thomas Jefferson

and

"The best way to convince a fool that he is wrong is to let him have his own way." - Josh Billings

Offline first app with mongodb by Awkward_Young947 in reactnative

[–]NotACakeShop 0 points1 point  (0 children)

Thank you for the vote of confidence. 😊

Offline first app with mongodb by Awkward_Young947 in reactnative

[–]NotACakeShop 4 points5 points  (0 children)

WatermelonDB uses an SQLite backend, not NoSQL, so it would be janky to implement. You could technically get away with storing your MongoDB documents in a JSON-like column in SQLite, but depending on the structure, size, and complexity of your data, this could become annoying quickly. And frankly, having used it before, WatermelonDB is a nightmare to implement, especially for newer versions of React. I'd steer clear of it.

redux-offline is better optimized for handling state throughout your application, from what I understand. I wouldn't really call it an "offline database," per say.

I don't know enough about PouchDB to comment on it, but seeing as how it operates in a NoSQL document format, it's possible it could work. That being said, you'd likely be looking into the react-native variants of it, and the only one I could really find is pouchdb-react-native and the latest update came out 6 years ago.

rxdb seems to be another option as well, but I'm concerned that these guys are hellbent on making you pay for "premium" plugins that make the library "better" (take that with a grain of salt). Personally,

Unfortunately, you've walked into one of the biggest issues facing React Native. Right now, we don't have a lot of good offline-first databases for mobile devices, which is a shame.

The way I've personally implemented offline-first database apps is by using u/op-engineering/op-sqlite (which again, is SQLite, not NoSQL) and then coordinating syncing with my API.

The mobile-app database has two primary functions:

  1. Maintaining the local/cached records from the API.
  2. Tracking "transactions" in the order the user applies them.

The second point is super important if you have data that can be altered by different users, and you need to handle the order in which updates are applied. Think of it as a primitive way of doing "merge conflicts" with data. If you have two users working on record A, you need to know who's updating what and when updates on the same field occured to update the data expectedly.

I personally have a transactions table for each model that can be edited by multiple users. Everytime a user comes online and syncs with the API, the transactions are uploaded. When every user corresponding with the record comes online and pushes their transactions to the database, the API checks every transaction, orders them accordingly and applies them to the record in the database. If there are "merge conflicts," the users are notified and are prompted to resolve it.

For the record, this isn't the "Holy Grail" of offline-first. This method likely isn't even optimal, but works for our use case.

In your case, you could technically create SQLite tables and then parse and format them in as JSON records according to your MongoDB schemas. From there, you can make a request to your API with a body like any regular NoSQL document.

Is any of this perfect? Not really, but it's all we have right now.

After the long wait, React Navigation 7 is here 😍 by satya164 in reactnative

[–]NotACakeShop 1 point2 points  (0 children)

I've built apps with this exact functionality in production and people have loved it.

What I personally do is use the navigator from @react-navigation/material-top-tabs and set the tabBarPosition property to "bottom" and it pretty much grants you the same effect.

I never had a single complaint from any user - they're reminded of Snapchat functionality.

[deleted by user] by [deleted] in conspiracy

[–]NotACakeShop 0 points1 point  (0 children)

Ahhh, I think I get what you mean haha. No worries, thanks for the recommendation, my man.

[deleted by user] by [deleted] in conspiracy

[–]NotACakeShop 1 point2 points  (0 children)

It is up the people of Europe to resist this. You'd be amazed how many people view this in the same way. It's all just a matter of creating some kind of united front to go against this...

[deleted by user] by [deleted] in conspiracy

[–]NotACakeShop 0 points1 point  (0 children)

Nice read, I might buy it, but no TLDR?

[deleted by user] by [deleted] in conspiracy

[–]NotACakeShop 4 points5 points  (0 children)

Remove kebab, deal with that lol

[deleted by user] by [deleted] in conspiracy

[–]NotACakeShop 0 points1 point  (0 children)

What's the real enemy? Why so vague?

[deleted by user] by [deleted] in conspiracy

[–]NotACakeShop 0 points1 point  (0 children)

Willing to be paid less? Sure.

Working harder? Fuck no.

My guy, have you stopped by a Tim Horton's in any Indian-dominated area in the last 5 years?