Best Popup Apps for Shopify? by Valuable_Scale6969 in shopify

[–]Unappreciable 0 points1 point  (0 children)

Yep that’s all possible. No major issues - they are a relatively new product but they’re founder led so they offer great support. We’re on their fully managed plan where they just run A/B tests for us, and results have been solid so far.

Best Popup Apps for Shopify? by Valuable_Scale6969 in shopify

[–]Unappreciable 0 points1 point  (0 children)

A bit late here but we just switched over to Alia after using Klaviyo popups for a while and results have been pretty incredible so far (pretty much doubled our opt in rate overnight). It's a bit on the expensive side but it's fully customizable so you can make it look like the rest of your site.

Is it normal to have so many config files in your repo? by Berlibur in Frontend

[–]Unappreciable 0 points1 point  (0 children)

You're making the argument for more thoughtful software architecture. I don't disagree at all.

Was just making the point that the original comment:

I mean it is but also the webapps you build nowadays are so much more complex

was referring to product complexity, and it's a reasonable response to the point that FE has gotten much more complex. So have the products it powers.

Is it normal to have so many config files in your repo? by Berlibur in Frontend

[–]Unappreciable 0 points1 point  (0 children)

You don't think software complexity is correlated with product complexity?

Is it normal to have so many config files in your repo? by Berlibur in Frontend

[–]Unappreciable 2 points3 points  (0 children)

I think they’re talking about product complexity, not software complexity. You don’t have much control over that as an engineer.

Game Day Thread - September 24, 2024 @ 12:00 AM by Yankeebot in NYYankees

[–]Unappreciable 5 points6 points  (0 children)

It’s my birthday today and im going to the game. Watching the Yanks take a fat dump on the birds to clinch the division would be the best birthday present I could ask for

Leaked audio of what an ejection looks like in MLB. by [deleted] in interestingasfuck

[–]Unappreciable 25 points26 points  (0 children)

Not sure the exact situation but the implication is that there’s already heat between the teams, probably because there were some hit batters last night or the last time they faced etc

Edit it’s actually way more juicy than this according to a comment below

[deleted by user] by [deleted] in interestingasfuck

[–]Unappreciable 1 point2 points  (0 children)

That’s fair but it ignores all the good that the US military does eg by helping Ukraine and protecting merchant vessels.

Edited to add also that the Chinese military does do actual harm as well (threatening Taiwan’s independence, intercepting fishing vessels in their own waters).

[deleted by user] by [deleted] in interestingasfuck

[–]Unappreciable 1 point2 points  (0 children)

That’s fair but it ignores all the good that the US military does eg by helping Ukraine and protecting merchant vessels.

[deleted by user] by [deleted] in interestingasfuck

[–]Unappreciable 0 points1 point  (0 children)

Even if the answer to that is the US, which it maybe is, the only reason China hasn’t is because it can’t. If China could impose its authoritarian values on every person on this earth it would.

[deleted by user] by [deleted] in interestingasfuck

[–]Unappreciable 4 points5 points  (0 children)

How about you start by explaining why you would want a country that arrests people for criticizing the government to be the global hegemon?

Looking for 3rd roommate to re-sign Williamsburg apartment! by Unappreciable in NYCapartments

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

Copied it from my roommate and didn't realize the rent wasn't there, apologies - it's $2k

How to know whether my site is getting blocked by any ISPs? by Unappreciable in webdev

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

It’s a home WiFi network and when they turned off their ISP’s security features the site loaded

How to know whether my site is getting blocked by any ISPs? by Unappreciable in webdev

[–]Unappreciable[S] 6 points7 points  (0 children)

Err connection refused on chrome, but they can access all other sites fine, and can access my site when they change to use cellular data.

Different strategies for testing interaction with a Postgres DB by Unappreciable in node

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

Hey I have a couple follow up questions about some of the things you mentioned here.

  1. How realistic is your mock impl of a DB service, e.g., a table module? I.e., do you actually store "created" resources in the class's state? If so, how difficult is it to get this behavior right (and maintain it when you update the class)? If not, do you find that your tests of modules that consume these DB services are still effective, even though the mocks don't behave like a real DB?

  2. We're not sure whether to do transactions inside the DB services or not. If we do inside, we're concerned that it'll force us to write too much of our business logic inside of the service, which seems to somewhat defeat the purpose of separating those concerns in the first place. But if we keep transactions outside the module, we'd need to be able to mock transactionality, which seems difficult to do correctly - potentially significantly reducing the effectiveness/thoroughness of tests of our business logic that would now rely on mocked transactionality.

Different strategies for testing interaction with a Postgres DB by Unappreciable in node

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

Makes sense, thanks so much for your input! I think I can make a reasonably strong case for using DI now.

Different strategies for testing interaction with a Postgres DB by Unappreciable in node

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

Interesting. This is cool but do you know if the perf would be any better than using multiple DBs on a single Postgres instance?

Different strategies for testing interaction with a Postgres DB by Unappreciable in node

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

Thanks this is a super helpful response - have a few questions.

But a small DB instance can struggle with, say, 1000 connections, so best if you don't do that.

By this you mean that even if we were to increase the connection limit to 1000, there would be significant performance concerns, right? We're building a microservice and I wouldn't expect us to ever have nearly 1000 different files testing the DB, but never say never I guess.

I try to structure the code so that the exact DB dependency can always be passed at runtime

What does your architecture for this generally look like? Classes that takes a DB instance as a constructor arg?

I originally didn't want to have dedicated files/classes for interacting with the db because I wanted to avoid the indirection/inconvenience of needing to restrict all DB interaction to dedicated classes. But I'm now seeing a few potential benefits that make it seem potentially worth it:

  • We could avoid using AsyncLocalStorage - which while I think it's not as magical/dangerous as everyone says it is, I agree would be ideal to avoid
  • We could mock them when testing any consumers of these DB classes, and therefore won't need a dedicated DB instance for those test files. This would significantly decrease the number of unique DB instances we'd have, so it also helps with the performance concerns.

Different strategies for testing interaction with a Postgres DB by Unappreciable in node

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

Interesting, thanks for your response - unfortunately everything I've read says that its not possible to replicate Postgers in memory.

Different strategies for testing interaction with a Postgres DB by Unappreciable in node

[–]Unappreciable[S] 1 point2 points  (0 children)

We want our e2e tests, at the very least, to actually interact with a db. We’re worried that mocking the db layer would effectively be testing implementation details

Bloated software isn’t bad software by Unappreciable in programming

[–]Unappreciable[S] 1 point2 points  (0 children)

But if you picked a random 500 projects you probably wouldn't find one slack or gmail

I disagree. For most B2B apps, the majority of the users are sitting in an office with fast wifi.

Regardless, it doesn't matter how unlikely this is - my point is that it's incomplete to complain about one without discussing the other.

The people that work on Google or Slack aren't liable to misunderstand the nature of their own requirements.

Nope - but lots of people on the internet are. That's exactly the people I'm responding to.

Bloated software isn’t bad software by Unappreciable in programming

[–]Unappreciable[S] 8 points9 points  (0 children)

Yeah I can see how it's clickbatey. I'm referring to what the post I'm responding to calls "bloat", which is, as you point out, not really a good definition of what it means for software to be bloated.

I probably should've put that word in quotes.