@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.
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 🙄
@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.
@deebloo @jaredwhite @bendelarre
I'm trying to use this:
https://github.com/sneas/img-comparison-slider
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.
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.
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.
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
Five years of no flying
✈️ ❌ ➡️ 🚅 ✅
5 years ago, I realised that my #academic travels were emitting way too much #greenhouse #gas #GHG (up to 20 t #CO2 / yr) and hence that my #professional activity was not #sustainable. I thus decided to completely ban air #travel (#plane) and travel mainly by #train within #Europe.
5 years later (i.e. now), my professional travels' #carbonfootprint dropped by **a factor 50**, without impacting my #publication records (compared to 2017 - 2019).
I wrote a post for the #blog of @a4e about my experience. Check it out: https://astronomersforplanet.earth/five-years-of-no-flying/
cc @labos1point5 @LAM_Marseille @CNRS_INSU @academicchatter @astrophysics @StayGrounded_net
#Research #Science #sustainability #ecology #Earth #NoPlanetB #Climate #academicchatter #academicmastodon #ClimateChange #ClimateAction
The “Global Warming of 1.5ºC” special report by the IPCC in 2018 acted as a shock in academia. Over the next few years, many initiatives, like A4E or Labos1point5, appeared in order to make research more sustainable. Following a seminar at my institute (Laboratoire d’Astrophysique de Marseille, in the South of France) in 2019, presenting […]