Better HN
topnewbestaskshowjobs
Log inSign up

abracadabra_

36 karma · joined Jul 29, 2022 (4y ago) · 27 submissions

Submissions

comment 4y ago · link · parent

P.S. I'm from Yorkshire so I'm used to accents being mocked.

comment 4y ago · link · parent

I was more saying that one particular example (JRM) sounds stupid. I don't think this is a contentious issue.

However, RP can sound a bit silly with some pronunciations. The same is true with any accent.

comment 4y ago · link · parent

No. We really don't.

People who speak Received Pronunciation (RP) may speak more in this way (look up Jacob Rees-Mogg if you really want to see how stupid it sounds) but they are a small minority of the British people.

4.

It’s No Longer about How You Write Code but How You Operate It(thenewstack.io ↗)

2 points · by abracadabra_ · 4y ago · discuss

comment 4y ago · link · parent

How so?

All you're doing is communicating with the fake website owners. At worst it gives them an email address. This could be a temp account set up just for this purpose though.

comment 4y ago · link · parent

I guess the first thing would be to try and contact them. They've anonymised their WHOIS info but it looks like there's a unique email associated with the domain: 53fdcf64883c49cb959ebaab98cea57e.protect@withheldforprivacy.com

Try emailing them and asking WTF they're doing?

comment 4y ago · link · parent

That sounds similar to the Screenplay pattern [1]

This has the concept of actors, abilities, interactions, questions, and tasks. This allows good separation of concerns as well as much more user-focused tests.

[1] https://serenity-js.org/handbook/design/screenplay-pattern.h...

comment 4y ago · link · parent

Congratulations! I think this is actually the first time I've seen a use for Cucumber. Obviously, it would have been better if you didn't have to do this but I've spent enough time as a consultant to know when to just work around the customers.

comment 4y ago · link · parent

I'm a big fan of the Gherkin syntax and the output of my Example Mapping sessions is generally a big pile of them.

Automated tests are then written based on these but not "using" these. By not "using" the Gherkin scenarios for our tests we can be looser with the language and not have to worry about RegEx.

If a manager, or other non-coder, wants to see the tests, they can look at the very pretty report that was generated.

comment 4y ago · link · parent

I don't agree with PayPal's decision here but I'm failing to see how it's as broad as people seem to be making it.

The TOS specifically say that you may not use PayPal for promotion of hate etc.

So you might not be able to buy a Nazi flag via PayPal but there's nothing there, for example, to stop you posting an image of a Nazi flag on Twitter.

comment 4y ago · link · parent

Unfortunately, I'd need a few more fingers. Not too many though which makes that argument for Cucumber fairly moot. I did work somewhere where each team had 2 testers. One to write the cucumber and one to write the glue code for it. It was about as successful as you could imagine.

I'd also say "non-coding" rather than "non-technical". Coding is just one aspect of being "technical".

There is benefit in making the tests easy to read but this is better done in actual code, e.g. the screenplay pattern.

comment 4y ago · link · parent

I will never understand the reason for Cucumber to exist. As you say, it just introduces unnecessary complexity for no reason.

If you can't code, you shouldn't be writing automated tests. Most of the "benefits" of Cucumber can be gained by using a good reporting framework. I like to use Serenity as I love its reports.

comment 4y ago · link · parent

Maybe not, but the larger it is the harder it is to change.

There are pros/cons to both sides.

comment 4y ago · link · parent

Yes, this applies almost equally well to libraries as well. With the slight exception that you are not just bringing the library into your code but all of its dependencies as well. This makes it _slightly_ harder to wholesale change a library compared to a service.

comment 4y ago · link · parent

That sounds similar to redundancy in the UK but much more generous.

It always possible to get rid of either an employee or a role. The problem comes when you're getting rid of a whole department or say 10% of your employees. There are a lot more rules around that.

comment 4y ago · link · parent

Write small, well tested services in the easiest to use framework you can find. If the service becomes hard to maintain then replace it. This should be a simple job guided by the tests.

comment 4y ago · link · parent

Mostly energy usage. A raspi is going to use a lot less power than most crappy old computers and a hell of a lot less than your beefy desktop.

comment 4y ago · link · parent

Cloudflare is a company that makes the tool. We're not shouting at the wrench, we are shouting at the maker of the wrench.

comment 4y ago · link · parent

"...laptops that are rechargeable via a wired cable, operating with a power delivery of up to 100 Watts, will have to be equipped with a USB Type-C port"

From: https://www.europarl.europa.eu/news/en/press-room/20220930IP...

comment 4y ago · link · parent

The last thing I bought from IKEA had plastic screws. To be fair, I've not had any problems with them but I as a bit taken aback to see them.

comment 4y ago · link · parent

I appreciate your position but I could not disagree with you more. React and other frameworks allow for components to be unit tested very easily, with good control over the inputs. This gives confidence in each component which can then be added to with a (very small) set of end to end tests.

I would also state that "10 likes of looking up elements by ID and running .click()" is a big part of why e2e tests are flaky and hard to maintain. Good e2e tests require good engineering.

comment 4y ago · link · parent

This is why tests should be seen as an executable specification rather than simply a series of checks.

Test_OnePlusOneEqualsTwo()

is not as useful as

Test_CanAddTwoNumbersTogether()

Test for behaviour, not implementation.

comment 4y ago · link · parent

Helpful

comment 4y ago · link · parent

As a parent to two small children, I'm not sure adding a third would increase my happiness.

comment 4y ago · link · parent

Have you considered that by not allowing that product to be sold you are indirectly responsible for any extra deaths caused by human drivers?

comment 4y ago · link · parent

The main reason they fail is that they only get seen by people who are not pirating. People who get their media illegally do not see these messages.

It's like if Amazon only showed me adverts for things I've already bought...oh, wait...bad example.

comment 4y ago · link · parent

So a Platform Engineer, then.

DevOps is not a role, it's not tools. It's a culture.

Once the term is used outside of that, it has become useless.