Little JavaScript tip:
You know you can comment out code to quickly disable it:
```js
/*
console.log(‘I won’t run’)
*/
```
But did you know you can also use a labelled block with a break statement to do the same thing in a more flexible manner?
```js
disable: {
break disable
console.log(‘I wont’t run’)
}
```
Then, you can quickly the move the `break disable` to different lines to execute different bits of code wit…
It's been a while but I was reminded that Java is shit.
Python is better, but has issues, mostly because of macOS.
And macOS permissions for user-created applications are a nightmare!
But a big, big thanks goes out to tools like Platypus.
"Platypus is a developer tool that creates native Mac applications from command line scripts such as shell scripts or Python, Perl, Ruby, Tcl, JavaScript and PHP programs."
utter respect to this absolute @…
legend. my sunday mornings will never be the same. https://ohai.social/@jbm/115562259628919397
Worked on some more #Gentoo global #jobserver goodies today.
Firstly, Portage jobserver support patch: #PyTest jobs will also be counted towards total job count.
Again, it's not a perfect solution, but it works reasonably. The plugin still starts -n jobs as specified by the arguments, but it acquired job tokens prior to executing every test, therefore delaying actual testing until tokens are available. It doesn't seem to cause noticeable overhead either.
Save the date! Our first meetup in the Rhein-Neckar metropolitan region for 2026 is just around the corner, taking place on February 26th, only two weeks from now.
Sign up here https://www.meetup.com/phpug-rhein-neckar/events/305478333/
JavaScript engines zoo
This is probably the reason why certain JavaScripts do not run everywhere, because they are "optimized" on their engine again. In my opinion, this is a tedious tinkering as it was back then.
:clippy: https://zoo.js.org
from my link log —
Deno: a runtime for TypeScript built with V8, Rust, and Tokio.
https://deno.land/
saved 2019-07-07 https://dotat.at/:/C5839.html
Aeolian dune simulation (made in 2017) for #MeerMittwoch:
The images show a screenshot of the JavaScript application to create the simulation and some Houdini renders of exported height fields. The sim itself had 5 macro params to control the behavior of the interactive deposit/erosion/transportation process. It supported tileable patterns, customizable seed terrain (images) and ran r…
Uff. Wenn man #curl in #powershell nutzt (aka: nicht das echte curl, sondern ein Wrapper von #Microsoft), dann wird zurückgegebenes Javascript einfach ohne Rückfrage ausgeführt. Was kan…