|
food ordering place i worked at people would just order delivery and expense it. we used stripe, which im sure has test ccns or whatever, but why bother when you can eat lunch every day on the company?
|
# ? Apr 30, 2024 01:37 |
|
|
# ? Jun 9, 2024 05:39 |
|
so i do want to point out here that stripe actively prevents you from using browser automation in their sandbox environment, and i have asked a support rep about this and they have zero plans to change this and it's not an incidental bug but an intentional thing the way this surfaces is with an iframe breakout so it depends on the testing tool (tldr cypress is hosed, playwright/selenium you might be ok) it's really hosed up and preventing us from doing true e2e testing of payment flows beyond regular card checkout (e.g. weird european payment types), and if we update to a newer version of the stripe sdk we probably won't be able to test regular card checkout flow that way either and we're now scrambling and considering options like trying to back out of the cypress cloud contract we just signed so we can go try to roll our own poo poo on playwright, it's stupid as gently caress! i only point this out to say... even the """good""" card processors are hosed up (if you are curious about this you can google cypress and stripe; there's like a million workarounds to the iframe bust that fall apart depending on which scenarios you try to test and like seven open issues on the cypress github project around this, and cypress has repeatedly tried and failed to add a thing that will inject a stripe sdk monkey patch to avoid this problem) abraham linksys fucked around with this message at 01:53 on Apr 30, 2024 |
# ? Apr 30, 2024 01:50 |
|
imo use whatever the one is where the dude gets really mad on github
|
# ? Apr 30, 2024 11:30 |
|
idk if it's still true but it used to be the case that venmo didn't have any kind of a test network so their engineers' transaction feeds would be full of them sending money back and forth to their coworkers with messages like "test" "trying again" "hope this works"Private Speech posted:lmao the UK bit of the company that I work for merged with an acquired US company and one of the questions was "is there going to be any pay alignment between UK and the US since our devs are now split half and half and work together" tbh i find blunt corporate honesty far preferable to songs and dances that redirect blame back to the workers
|
# ? Apr 30, 2024 11:48 |
|
Someone just reminded me of this post
|
# ? Apr 30, 2024 13:29 |
|
life… finds a way
|
# ? Apr 30, 2024 15:08 |
|
awful programming opinion: you know, I think we went too far in the direction of making sure every magic value is declared as a constant why does this SQL that's used by exactly one query method need to be declared as a constant way at the top of the file??
|
# ? Apr 30, 2024 20:32 |
CPColin posted:awful programming opinion: you know, I think we went too far in the direction of making sure every magic value is declared as a constant My tech lead will declare every log message as a function at the top of the file, so instead of having e.g. code:
We have code:
As far as I can tell, there's no benefit to this; it just adds an extra step when you want to figure out what line the logs are coming from, and makes it easier for the surrounding code and the log message to get out of sync
|
|
# ? Apr 30, 2024 21:10 |
|
this king is going to localize your log messages
|
# ? Apr 30, 2024 21:17 |
|
Antigravitas posted:Someone just reminded me of this post lmao i totally forgot about this
|
# ? May 1, 2024 00:16 |
|
necrotic posted:my two questions if you did go with non-test e2e billing tests (with refunding) are 1) which cc are you testing with and 2) how’s that going to look to fraud departments? use the boss's card
|
# ? May 1, 2024 00:39 |
|
Subjunctive posted:this king is going to localize your log messages first thing i thought of too
|
# ? May 2, 2024 18:51 |
|
Subjunctive posted:this king is going to localize your log messages into klingon
|
# ? May 2, 2024 18:58 |
|
|
# ? May 11, 2024 21:52 |
|
sometimes it's the dom's fault ok (lol)
|
# ? May 11, 2024 23:10 |
|
CPColin posted:awful programming opinion: you know, I think we went too far in the direction of making sure every magic value is declared as a constant
|
# ? May 12, 2024 09:42 |
|
We've got extremely strict style checkers at the new job. Just had a build fail with an error because I had used code:
code:
|
# ? May 14, 2024 23:13 |
|
it's the right choice imo
|
# ? May 14, 2024 23:44 |
|
to be clear, if I was looking at a PR I wouldn't care but if i'm setting up a linter, that's the right choice
|
# ? May 14, 2024 23:47 |
|
The Fool posted:to be clear, if I was looking at a PR I wouldn't care this is also the right choice. dont nitpick changes that’s for the linter to do
|
# ? May 14, 2024 23:49 |
|
yep, you’re at a good place OP
|
# ? May 14, 2024 23:53 |
|
the actual names of x and y in the program are notX and notMissingY
|
# ? May 15, 2024 00:22 |
|
LanceHunter posted:We've got extremely strict style checkers at the new job. Just had a build fail with an error because I had used This is cool and good and correct.
|
# ? May 15, 2024 02:39 |
|
agreed, i've given the exact advice to younger devs at my job
|
# ? May 15, 2024 02:49 |
|
Meanwhile the mario64 optimizer guy has figured out you can squeeze out a few more fractional microseconds of performance by defining TRUE as a register and avoiding any comparisons to it, at the tiny cost of having a philosophical meltdown when TRUE equals FALSE on 1 in every 16 compiles.
Tunicate fucked around with this message at 03:16 on May 15, 2024 |
# ? May 15, 2024 03:07 |
|
can’t != sometimes read more clearly? I feel like this is the case depending on the variables involved as well as the length of the body of the block that follows. for example, if you are drawing attention to the exceptional case, whether it uses == or !=, it should be first.
|
# ? May 15, 2024 03:21 |
|
my homie dhall posted:can’t != sometimes read more clearly? I feel like this is the case depending on the variables involved as well as the length of the body of the block that follows. if you're checking for an exceptional case you return or throw, you don't use an else
|
# ? May 15, 2024 03:30 |
|
my homie dhall posted:can’t != sometimes read more clearly? I feel like this is the case depending on the variables involved as well as the length of the body of the block that follows. yeah I'll typically favor != if it makes for a cleaner body e.g I prefer this: code:
code:
I also don't know how much this situation comes up in practice, but I typically try my best to avoid elses
|
# ? May 15, 2024 03:41 |
|
if the linter has an autofix command which will swap the blocks and invert the conditional then i have no problem with that linter rule despite disliking the rule. if you have to do it manually then it's dumb.
|
# ? May 15, 2024 03:48 |
|
I would simply not set up the linter to care about this
|
# ? May 15, 2024 03:50 |
|
our linter automatically newlines at 80 characters and it makes me so mad
|
# ? May 15, 2024 03:50 |
|
Elder Postsman posted:our linter automatically newlines at 80 characters and it makes me so mad 80 is aggressive as hell. we have ours set to 120 which, imo, is far more reasonable in the modern age. the 80 number comes from the days of old with awful resolutions.
|
# ? May 15, 2024 03:54 |
|
i remember when we got an 80 column card for our apple //e
|
# ? May 15, 2024 04:00 |
|
we don’t enforce a line length. chop your lines however you want. who cares
|
# ? May 15, 2024 05:12 |
|
i can't find the soft wrap setting
|
# ? May 15, 2024 05:33 |
|
Mind_Taker posted:yeah I'll typically favor != if it makes for a cleaner body yeah this that linter rule is unhinged and smells of neckbeard
|
# ? May 15, 2024 06:39 |
|
Carthag Tuek posted:yeah this yeah that linter sucks. more rules != better. configuring an arbitrary requirement just because the linter supports it is not going to lead to better code, it exists only to automate some rear end in a top hat’s craving for petty micromanagement.
|
# ? May 15, 2024 08:58 |
|
Bloody posted:I would simply not set up the linter to care about this
|
# ? May 15, 2024 11:30 |
|
*you've been invited to a 4 hour meeting with the most annoying people in your org to decide which of the included preset linting rules you will be following*
|
# ? May 15, 2024 12:05 |
|
|
# ? Jun 9, 2024 05:39 |
|
necrotic posted:80 is aggressive as hell. we have ours set to 120 which, imo, is far more reasonable in the modern age. the 80 number comes from the days of old with awful resolutions. even worse, it comes from punch-cards
|
# ? May 15, 2024 12:37 |