So for those who wanted to know about my initial experience with @phpstorm and using @github's codespaces. Lets just say it wasn't great. Here's my run-through of the first hour or so.
@phpstorm@github Installed Jetbrains Gateway, First miss-step was Github CLI was too old a version, the error message for this was not clear at all and vaguely mentioned a socket not being available.
@phpstorm@github A quick ‘brew upgrade gh’ later… okay, I seem to not be able to get Gateway working with an IDE environment running the work on Codespaces.
@phpstorm@github Jetbrains recommend using at least an 8-core machine. Might as well wreck the one I finally got working... Later on I did find (via Github’s codespace management area) that you can bump up the machine size.
@phpstorm@github Codespace + PHPStorm now working but I can’t install composer dependencies because I have ext-pdo/ext-pgsql in the composer file of my project… guess I’ll have to spend time installing things or look at making a devcontainer to be in the project. docs.github.com/en/codespaces/…
@phpstorm@github Ran it without the platform required but forgot I’ve not got an auth.json file to install Laravel Spark… Weirdly I can’t just copy and paste a file in, I have to make a new file and copy the contents. That could be a right pain in some situations.
@phpstorm@github Now I’ve got some IDE Internal Errors flashing up, no idea what’s caused this problem. Oh and composer dependencies installed but something failed in Laravel
s service provider hook. Probably because there’s no .env file.
@phpstorm@github Apparently I’m doing something to put the CPI load to 98.2%. Maybe I need to bump this machine up again? Seemed to stop working but I disconnected, stopped the machine and then reconnected. Back to working again, CPU is at around 42%
@phpstorm@github I can’t edit .env nicely, no plugin installed for it to comment out code, I’m going to install that quickly. I was able to copy files local on the machine e.g. .env.example to .env. I don’t see why I have to setup all my plugins for Gateway when I have PHPStorm installed locally.
@phpstorm@github Now the app has kicked me out and can’t connect. Trying to reestablish it but no luck here… Guess I should shut this down for the night.
@phpstorm@github Apparently, an 8-core machine will only give you 15 hours of dev time a month with $0.75 as the hourly rate. Doing the math of 35 hours a week, which is pretty conservative for your average engineering employee, that’s $109 a month. $1308 per year. Yikes! 😬
@phpstorm@github At that cost, you could pretty much buy a shiny new Macbook Pro 13 inch (M2 8 core, 8GB compared to the CS’s 16GB with the 8-core mind.).
@phpstorm@github I suppose the argument will be, you can switch if off or upgrade whenever but still that price doesn't feel overly competitive right now. I'm sure costs will come down or in this economy, Apple prices will rise at least.
@phpstorm@github Anyways, I'm going to leave it as is for now and maybe come back to it in the week. Please follow me to find out more!
• • •
Missing some Tweet in this thread? You can try to
force a refresh
@phpstan, this tool is great for finding little oddities in your code you might not even notice yourself. Things like unused variables or impossible scenarios. Larastan extends it for Laravel apps to handle some of the magic involved. github.com/nunomaduro/lar…
@phpstan Laravel Pint is the next one, it's PHP CS Fixer under the hood but a little bit nicer in just it's easy to install and set up with no additional dependencies. laravel.com/docs/9.x/pint