mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.7K
active users

#webpack

0 posts0 participants0 posts today

Even though I'm a backend developer I've got to keep abreast of some frontend stuff so that I can lend my general developer brain to designing or advising or fixing things wherever it happens, and it looks like I've now got to get up to speed on #Preact and #TailWind and #WebPack for the next phase of work. That'll keep me busy for a bit.

Replied in thread

I'm learning just a tad-bit about #AMD ( #asynchronous #module #dependencies ) and #RequireJS. I've always been too retarded to do anything with #Webpack, because it needs to be running server-side as well as clientside in the browser (I think). Dependencies bundled together in real time, at the server side, plus whatever minifier and obfuscation they decide to add.

With RequireJS, it just needs to find static JS files in the URL folder structure it expects. So you can use really any webserver.

Microfronends as a #decentralized alternative to #npm.

While i can smush everything into a #monoRepo, i wanted to explore the idea of using #Microfrontends as a kind-of self managed alternative to #npm.

Microfronends have been around for a while and i've come across many different approaches. I want to share how im using microfrontends in my project.

Im using #Webpack 5 #moduleFederation to create the #microfrontend. there are some interesting features that i dont think are being mentioned elsewhere:

- Dynamic Remotes: Modules can be loaded from various endpoints. We can use a custom function to ping different URLs and determine the fastest one for loading the required module.

- #Selfhosters can manage modules independently, enhancing control over updates and #security on #opensource projects.

- Development Experience: By using dynamic-remotes and running modules locally during development, it can speed up testing and iteration.

- Scalability: The approach allows for #CDN scaling with module deployments on multiple cloud providers. currently, my redundencies are on AWS S3 + github-pages... but i can see how this can be scaled to more cloud providers.

Im aiming for the architecture to look like the following. Let me know your thoughts on my approach and if its something you would consider for your project.

positive-intentions.com/blog/d

positive-intentions.com/blog/s

Taking upon the challenge of making this #NodeJs project more user friendly that non-tech users can also use the tool.

Gotten to the point that one can run the code locally and receive the POIs. The image shows a preliminary mask of how the website might look like.

The trickiness of the task is that the tool uses the fs package which doesn’t directly have a similar package for the web. One can compress a lot of the code with #webpack while using plugins like #pollyfill and #babel. These resolve all the issues other than I/O of files.

It seems like a possible solution to deal with the fs issue is to use the various database and storage solutions of a browser.

@marquisdegeek

📹 Sviluppo di un’interfaccia web con TypeScript, React e Webpack - Lorenzo Savini
👉 hhttps://www.youtube.com/watch?v=J55oIFzXxTA&list=PLPGJdxeQ35eAHgEfkfChN_8gN5CJCF9tw&index=15

💡Introduciamo #TypeScript, vediamo come si integra in un’applicazione #React e come si generano gli asset finali della nostra interfaccia utilizzando #Webpack.

Please don't judge the site itself in terms of design, etc. cos I'm very much a backend engineer and I am still learning and rely on others' designs just so I could get my ideas out there - BUT I've managed to write my first ever site using #Eleventy 🎉

It's also my first time working with
#NodeJS, #Javascript (not really, but first time meaningfully), #Typescript, and #Sass CSS. I've always wanted a fun way of maintaining a portfolio/resume instead of writing them up using #MicrosoftWord and whatnot, so that's what I've set myself to make with #11ty and I'm pretty happy with the results.

This project supports both JS and TS in modern browsers as well as legacy browsers using
#Webpack. As mentioned it also uses Sass which is mindblowing to me how awesome it is, I've always hated how messy and non programmatic CSS is and this thing just solves those issues singlehandedly. In a local development environment, this project also supports all sorts of linting from HTML, CSS, JS, and TS so my perfectionist brain can sleep soundly at night knowing I've not unknowingly used a single quote instead of a double quote.

My project,
Portfolio essentially is aimed to produce two personalised views - a Portfolio/Homepage view and a Resume view based on user-supplied data files. The Resume view has a downloadable PDF version automatically generated for it using #Puppeteer - so no proprietary, paid APIs are required for the HTML-PDF conversion. Also, as a #Kubernetes engineer first and foremost - I've #Docker -ised it (based on #Alpine and uses #Apache as the web server) and created a #Helm chart you could use to easily deploy it to your Kubernetes cluster locally or to the internet (with Ingress).

I've made the entire stack public on
#GitLab just in case someone would find it useful to refer to for their own (future) projects.

🔗 https://gitlab.com/irfanhakim/portfolio

🔗 https://gitlab.com/irfanhakim/pepatung

🔗 https://gitlab.com/irfanhakim/portfolio-chart

🔗 Demo: https://portfolio.moekai.com

GitLabirfanhakim / portfolio · GitLabA dynamic site built using Eleventy that generates a personalised portfolio and resume with PDF support based on user-provided data. Demo: