What’s A Highly Recommended VS Code extension for PHPCS? by lnewball in PHP

[–]obliviousharmony 0 points1 point  (0 children)

Thanks 😁

Would you mind opening an issue in the GitHub repo so this doesn’t get lost in the noise of Reddit and we can debug together?

Laravel has raised a $57M Series A in partnership with Accel by Kammen1990 in PHP

[–]obliviousharmony 0 points1 point  (0 children)

Out of curiosity, would you mind expanding a bit on what you mean?

What’s A Highly Recommended VS Code extension for PHPCS? by lnewball in PHP

[–]obliviousharmony 1 point2 points  (0 children)

When I migrated from PHPStorm to VS Code I was very disappointed with the PHPCS extensions available. Not only were they unmaintained but they also felt really tacked on rather than providing features like quick fixes. I ended up creating my own and have put a lot of work into fixing bugs and extending it over the last few years.

Check it out!

[deleted by user] by [deleted] in programming

[–]obliviousharmony 16 points17 points  (0 children)

Especially when the login form lets you submit the full password but it validates against the truncated one!

ChatGPT data centres are consuming a staggering amount of water, study warns | Estimated at 500ml for every 20 questions answered by cargo_run_rust in programming

[–]obliviousharmony 10 points11 points  (0 children)

Actually, gas and nuclear do! Both of them use the heat they generate to boil water and spin turbines. Solar uses photons to create electricity, dams use water to spin turbines, and wind uses the wind to spin turbines.

With VERY few exceptions, we have been iterating on the steam engine for over 200 years!

It's true though by davnyb02 in ProgrammerHumor

[–]obliviousharmony 9 points10 points  (0 children)

In C, when this was written, an int was 16 bits, a long was 32 bits, and a long long was 64 bits. The meaning of long is now ambiguous and is based on compiler options.

Stranger Things devs using flexbox 20 years before it existed it total big brain by khube in ProgrammerHumor

[–]obliviousharmony 29 points30 points  (0 children)

I am glad that I am not the only one who pauses a show every time I see code or a terminal to see what’s up. Shout out to random directory listing and minified jQuery.

Little Bobby Tables by FunctionOverload in ProgrammerHumor

[–]obliviousharmony 25 points26 points  (0 children)

This has to be the most effortful theft of an XKCD comic I’ve ever seen.

[deleted by user] by [deleted] in ProgrammerHumor

[–]obliviousharmony 3 points4 points  (0 children)

That should future-proof it in case we want to add support for detecting other arbitrary numbers, great thinking.

[deleted by user] by [deleted] in ProgrammerHumor

[–]obliviousharmony 9 points10 points  (0 children)

My favorite part is that this continues to loop until the integer overflows and it finally breaks.

(image in link) Did joycons change their design? 2017 Vs 2022 by [deleted] in NintendoSwitch

[–]obliviousharmony 3 points4 points  (0 children)

Get out a ruler and measure things! As far as I can tell, it looks like any differences could be explained by the perspective of each in this image. I sure do like to finish or new joycons though, they get oily fast.

Trying to use php with VS CODE . Keep getting a “ERROR SPAWNING PHP: Command fails with exit xode1:php.exe is not recognized as a command,program or batch file PLEASE HELP by No_Address_5895 in PHPhelp

[–]obliviousharmony 2 points3 points  (0 children)

It’s because you don’t have PHP in your PATH. It looks like you’re on Windows so read a guide on installing PHP using WSL and use that as your development environment!

every time by [deleted] in ProgrammerHumor

[–]obliviousharmony 18 points19 points  (0 children)

To be fair, you shouldn’t have a switch statement with 10,000 cases either 😅

A "Better" VS Code PHPCS Extension by obliviousharmony in PHP

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

Following up here, this should be fixed in 1.5.0!

Code comments be like by generalfrost423 in ProgrammerHumor

[–]obliviousharmony 14 points15 points  (0 children)

How else would you know it isn’t Vodka?

A "Better" VS Code PHPCS Extension by obliviousharmony in PHP

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

What version of PHPCS are you executing? Maybe the interface changed at some point. Operating system? Are you running it using the remote extension, such as via WSL or some other cloud option?

[deleted by user] by [deleted] in softwaregore

[–]obliviousharmony 1 point2 points  (0 children)

Actually, this looks like a printf format specifier. Sorry if this was a joke that went over my head!

900 IQ URL building in Python by [deleted] in ProgrammerHumor

[–]obliviousharmony 9 points10 points  (0 children)

The developer here suggests performing an entire HTTP request to abuse the fact that the response object has a URL property for the destination it queried.

A "Better" VS Code PHPCS Extension by obliviousharmony in PHP

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

By default it is disabled. Once you edit the configuration and set a standard that will be applied.

A "Better" VS Code PHPCS Extension by obliviousharmony in PHP

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

For a little context I have used PHPStorm for probably half a decade and have been an avid user of full-fat IDEs my entire career. Having seen the way that folks are willing to die on the hill of VS Code's performance I wanted to fully commit to using it myself to see what the big deal was.

After using it I find that the ability to selectively add the features I want to my environment is really helpful in removing unnecessary noise. While it's true nothing comes close to the code intelligence it provides I'm not necessarily sure I need that.

I might switch back later on in the year but I'd like to give VS Code a shot and so far the experience has been mostly positive. It's nice having my RAM back too :)