@Alexis i won’t lie, i keep assuming blogger is dead until i find the odd blog out there that still exists, still using it
@vaporeon_ no local variables* (one of bash’s real impurrovements to the language. dash targets POSIX but also has local variables anyway because they’re just so nice to have); very limited data types (bash having actual arrays is another big impurrovement). variable scope has all sorts of weird footguns (implicit subshells can cause really unexpected behavior; iirc for loops can really trip you up here). variable expansions being word split by default is the wrong default and annoying to have to purrotect your code from
* i know you can define block-scoped variables but i don’t entirely understand how it works
@vaporeon_ i’ve developed distaste fur bash features (to be clear, specificallyin shell scripts, not when using it as an interactive language) out of a long-held purrefurence fur writing as compatibly as i am able. so this biases my opinions;.i don’t actually know bash well enough that i feel like i could rate it fairly
i think the shell is very good at what it is designed to do. i adore it. i do think that actually writing scripts in it is usually pushing it beyond its capabilities unless the scripts are small. (but it’s GREAT at writing small scripts that are really useful!) i don’t think bash’s extra features sufficiently make up fur the shell’s deficicies at handling large scripts well so if i really wanted to use a bash feature in my script i would start considering whether i should use another language instead
the footguns are annoying as hell though, i’ve definitely exploded on weird subtle semantic things i furgot about more than once
@vaporeon_ markdown is just like that
@vaporeon_ @wallhackio anyway yeah i use s6 otherwise
@vaporeon_ @wallhackio i don’t bother to set up services fur packages i installed from my package manager if they already come with systemd configurations
@vaporeon_ sepurrately,
@wallhackio @vaporeon_ the issue was only ever that systemd was not configured to restart it after it got OOM-killed, and more broadly that i had configured the various components of mastodon in such a way that the server had to deal with memory purressure in the furst place
@Lady @wallhackio @vaporeon_ …interesting
@Lady @wallhackio @vaporeon_ ftr i didn't actually end up thinking switch (true) was better and wouldn’t do it again because it’s just about equally as terrible as that
@wallhackio @vaporeon_ when was the last time you actually had to complain to me that it was broken
@vaporeon_ @Lady @wallhackio they’re optional in javascript :3
@wallhackio @vaporeon_ banning the syscatmin… sure that would go down well :P
@vaporeon_ @wallhackio i just irrationally hate if /else if /... that much
@wallhackio @vaporeon_ the equality check on strings in most languages with a string type is an implicit strcmp, yeah. python does this
@vaporeon_ @wallhackio you wanna see some real fucked up shit? switch (true):
// the navbar links to every chunk of the gallery.
// the current page does not get a link.
// index 0 links to `/`.
/** @type {Node[]} */
const linksByIndex = [];
for (let i = 0; i < chunkedImages.length; i++) {
switch (true) {
case i === chunkIndex:
linksByIndex.push(li({ class: "active" }, `${i + 1}`));
break;
case i === 0:
linksByIndex.push(li({}, a({ href: "/" }, `${i + 1}`)));
break;
default:
linksByIndex.push(li({}, a({ href: `/${i + 1}.html` }, `${i + 1}`)));
}
}
it’s pronounced “ashling”. canonically a black housecat or any of the grass cat pokémon, but currently experiencing daily TFs. Commewnist. it/she and more. i automatically change my pfp on the furst post of the day. (i suppurrt PluralDawn (https://exa.y2k.diy/garden/pluraldawn/) fur when i want to spontaneously change form fur a post or two)
GlitchCat syscatmin and meowstodev; @ me about techincal problems with the instance, or fur feature requests. i got a job due to some extent to my work on this instance
i am the kind of furry who is a weirdo horny freak (affectionate) about it but i don’t talk about that much on this account
available via email with the same username and domain. DM/email for other purrotocols
workplace policy is to clarify that all of my opinions expressed here are my own, and not those of my employer