Peter Reeves

Web developer in Sydney. Interested in Electric Unicycles (EUCs) and board games. (He/Him)

Peter Reeves boosted:
CatSalad๐Ÿˆ๐Ÿฅ— (D.Burch) :blobcatrainbow:catsalad@infosec.exchange
2025-06-22

I hate this timeline

2025-03-16

@kepano I've been trying out obsidian this past month. How did you get that calendar showing on the bottom right of the screen? Is it it a plugin? If so which one?

Peter Reeves boosted:
2025-02-17

@kizu Honestly, i still find it the most bizarre language design decision.

Take the thing you do most often (call a variable) and make THAT the most verbose part of the syntax in turn make defining it (which you do once) the least verbose syntax.

2025-02-17

@mattwilcox @kizu Absolutely 100%. Many times I find myself just copy-pasting chunks of CSS because variables are so clumsy to use. Having `var(--...)` everywhere adds so much extra noise, especially if it's inside other things like calc expressions (Which also feel unnecessary, just let me do bare maths anywhere!).

2025-02-13

@jacqueline wait what happened with fastmail? I thought they were the thing everyone was looking at since Proton Mail went mask off?

2025-02-11

@bignose With React now having a compiler, server components that require advanced bundling steps, and JSX that must be transformed into plain JS, the notion that React is "Just a library" is completely shattered ๐Ÿ˜‚

2025-02-11

Everytime I see a take along the lines of "JS Web Frameworks are bloated" I wish they'd just name names. These people are always talking about React/NextJS (or Angular). But no, apparently all frameworks are bad and we should imperatively updating the DOM by hand ๐Ÿ™„

#WebDev #JavaScript

2025-01-16

@keira_reckons Didn't enjoy cooking until I moved out from my parents place. My roommate and I didn't do much cooking for the first two months of living together, but I quickly found cooking to be a good wind down activity after dealing with computers all day.

2025-01-13

@bendelarre
It's also worth pointing out that a lot of the WC stuff I've seen feels like it's aimed at web amateurs. If I skim the docs and see no mention of NPM, TypeScript, or ESM, then I feel like it's not going to align well with all my other existing pieces. Like sure, pasting a script tag is an easy setup if I'm handwriting my HTML. But if I'm using a fullstack framework with a mix of serverside and clientside rendering, a script tag might be hard to get working smoothly.

2025-01-13

@bendelarre @deebloo @jaredwhite
Don't know how I didn't manage to find that one, it works well. No issues with ESM or HMR, it seems to play nice with both. Looks like it might be good enough to ship with.

Thanks for your help!

2025-01-13

@deebloo @jaredwhite @bendelarre
There is also another library I looked at but it seems rather bloated since it includes things like core-js that I'm not confident would be treeshaken out correctly.

All I really want is a lib that plays nice with ESM, and potentially a decent JS api that allows me to dynamically change the images.

2025-01-13

@deebloo @jaredwhite @bendelarre
I tried using Juxtapose, but it it also doesn't play nice with ESM, and it doesn't let you provide an element directly as part of it's API, it wants an ID which makes it annoying to have multiple copies of (I guess I could use `crypto.randomUUID()` but that sounds jank as hell).

2025-01-13

@deebloo @jaredwhite @bendelarre
I'm trying to use this:
github.com/sneas/img-compariso

NPM install is useless, because it's not `"type": "module"`, and there's no documentation on how to use it that way anyway.

I can't rely on an external CDN for this project, so I have to host the files myself.

Since I can't use Vite/Rollup to treeshake & minify for me, and I can't use the recommended CDN, I'm left with downloading the built JS and CSS they provide.

2025-01-13

They really are as bad as everyone has been suggesting.

I'm tempted to just write the functionality myself so I don't have to deal with this nonsense.

#WebDev

2025-01-13

I'm trying to use a WebComponent for the first time, and man it's not a great experience. Copying and pasting minified JS and CSS into my repo isn't a great feeling. Then developing with it is annoying, as it breaks HMR trying to redefine the element each time I make a change.

#WebDev

2025-01-09

@0x4d6165 you can just do `csr = false` for the pages that don't need client side interaction, effectively turning it into an MPA

2025-01-02

@sir_pepe lol, I've seen some muddled async & promises code before, but never such a small example with both.

2024-12-28

I'm having a lot of fun in my current TypeScript projects using streams and concurrent network requests to maximise perf. It now feels like any server-side language that doesn't have an easy way to do those things by default is a bad choice for a backend, lol

#WebDev #TypeScript #JavaScript

2024-12-23

@graue yup, I know the exact GitHub issue you're talking about. Don't know why I can't just get a bytes received/sent progress event now, and whatever crazy scheme they want added in later.

2024-12-22

@graue I really wish they'd just add progress events to fetch though. Can't believe it still hasn't happened.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst