I need your advice on testing React. I want to mock API responses, but without using a complex Docker setup. Ideally, a way to simply say what fetch should return. Then I can test that the UI correctly responds to every scenario provided by the API contract. Was thinking Jest.
@heiglandreas Not saying that it took 2 hours each for 3 guys with a CS background to find out that the router of a person, not to be named in this toot, had some odd priority to the ISP dns even though primary and secondary dns were assigned when connected to the vpn...
So yeah pretty easy stuff and it just works. Cries in wasted lifetime
Ugh, the PHP CS Fixer setup instructions for PHPStorm are so long and confusing that I might as well just use the CLI instead. I've been told that I'm a very impatient person :)
@afilina hmm, don't know about how legacy (pre autoload area is probably insane to get a setup to run) but if psr-0 / psr-4 is present in the codebase i could imagine that rector could like fix maybe some of the things hindering you to adopt static analyse tools.
I was amazed with how little effort you could fix even large codebases with it.
But probably you already have tried it or it is just not feasible
@ramsey i recently had my first root beer ever. I always assumed it was Like the German "Malzbier" a non alcoholic beverage Made from malt. I was wrong i was soll wrong 😰
Please, start programming in Rust, man. Come on, it's such a good language! You have memory safety, high-level abstractions, and low-level performance. Come on, man, we NEED more people to use i-
@nixCraft Just publish a leftpad to crates, wrap it in a exec call inside an npm package and promote is as "rust enabled transpiled asynchronous reactive decoupler" stack. You'll at least get three new frameworks using rust in the first 5 minutes after you published your Blogpost on Hacker news
She Who Must Be Obeyed has commented that she has never seen me plan something like a car purchase 18 months in advance. She is correct but I’ve never owned a vehicle from a car maker that could implode because of the dumbassery of the company’s owner
Digitaly signing email would probably work much better when webmailers would show the result of the verification instead of just another email attachment...
Not sure whether I'm blind, but I can't see how to install PECL itself anywhere on the PECL site. Trying out a Windows setup for the first time in decades.
@afilina uff. I can't have a look at my Setup right now but i think prebuild binaries are the way to go (i use chocolatey for local deps, so those would be located in your c:\tools\php<version> folder.
If you can not get a prebuild .dll of your ext you'll need the php-sdk to compile it. (Had to do it for mcrypt and php 8.2 once)
I believe i spent a whole evening trying to get pecl on Windows until i opted for the above