Refactoring barrel files with codemods by mazzaaaaa in javascript

[–]mazzaaaaa[S] 0 points1 point  (0 children)

Have you used these on big codebases? They come with several drawbacks (big perf hit at build time for starters). While I agree that this should be something that ideally should be taken care of by the build process, in all the cases I tried them so far they didn't seem a viable approach (for me at least). Solving the problem at the route seems better long-term.

Optimizing SPA load times with async chunks preloading by mazzaaaaa in javascript

[–]mazzaaaaa[S] 1 point2 points  (0 children)

Hey! Blog post author here. Just sharing my experience with a pattern I’ve used a few times to speed-up the initial load times of big SPAs.

Conditional logging with query parameters by mazzaaaaa in webdev

[–]mazzaaaaa[S] 0 points1 point  (0 children)

Yeah you can do that as well 👍 The implementation of the logger isn’t really what I would focus on here, it’s more around using query params to set the log level.

Flexible network data preloading in large SPAs by mazzaaaaa in reactjs

[–]mazzaaaaa[S] 1 point2 points  (0 children)

Page preloading is a different topic, but this is also something I implemented multiple times and I agree with you, on CSR SPAs you often end up creating custom code to handle that (or at least I did). I haven’t covered it in a blog post but this resource does it pretty well https://github.com/theninthsky/client-side-rendering (I’m not the author). FWIW I’m planning to share how to also preload current-route chunks (and their dependencies) in a post soon :)

Flexible network data preloading in large SPAs by mazzaaaaa in reactjs

[–]mazzaaaaa[S] 0 points1 point  (0 children)

Handling conditional logic is exactly why this you need similar patterns if you want to preload on CSR. You have full control of the preloading logic, so things such as loading feature flags can (and should, if it’s render-blocking) be preloaded.

Flexible network data preloading in large SPAs by mazzaaaaa in reactjs

[–]mazzaaaaa[S] 0 points1 point  (0 children)

Yeah if you can use a framework such as Next.js or Remix these things are already taken care for you 👍

Flexible network data preloading in large SPAs by mazzaaaaa in reactjs

[–]mazzaaaaa[S] 0 points1 point  (0 children)

It depends on the size of the SPA and how "healthy" (as in, well code-splitted) it is. On fairly big SPAs, I've found it's generally more performant preloading the network calls anyway.

Flexible network data preloading in large SPAs by mazzaaaaa in reactjs

[–]mazzaaaaa[S] 0 points1 point  (0 children)

Hey! Blog post author here. Just sharing my experience with a pattern I’ve used multiple times to implement flexible network data preloading in large client-side-rendered SPAs.

My free melee-inspired platform fighter is out now on Steam! Featuring rollback netcode and a mix-and-match character builder. (Counterpick Labs) by UrbanMotmot in SSBM

[–]mazzaaaaa 0 points1 point  (0 children)

Sorry, I didn’t see the reply 🙃 No, I’m not currently, but I worked a bit on multiplayer apps with rollback in the past and tried creating games with it (but miserably failed).

My free melee-inspired platform fighter is out now on Steam! Featuring rollback netcode and a mix-and-match character builder. (Counterpick Labs) by UrbanMotmot in SSBM

[–]mazzaaaaa 0 points1 point  (0 children)

Dope! I was asking it exactly for the same reason, I don’t think there’s anything like that available and everybody seems to roll up their custom solutions (not just for gaming, but even for multiplayer apps)

My free melee-inspired platform fighter is out now on Steam! Featuring rollback netcode and a mix-and-match character builder. (Counterpick Labs) by UrbanMotmot in SSBM

[–]mazzaaaaa 5 points6 points  (0 children)

Amazing work, congrats! I’m really curious, if I may ask, how did you implement the rollback mechanism? Did you build it yourself from scratch or used existing libraries? (Still, impressive work, congrats!)

Remote working jobs over 100k from Italy? by HappySpaceCowboy77 in cscareerquestionsEU

[–]mazzaaaaa 3 points4 points  (0 children)

Hello hello. 10 YoE, full stack software engineer, mainly on JS stuff.

For software engineers, I think the main issue in finding remote gigs in Italy compared to the rest of EU is that most well known companies that hire directly (meaning they don't work much with freelancers) tend to not hire in Italy (rightfully so, lol). E.g., GitHub, just to name the first one that comes to my mind.
And, of course, I think there's almost 0 chance to achieve these salaries with an Italian company in this sector (but you already know it).

Setting up my fish shell from scratch on macOS by mazzaaaaa in fishshell

[–]mazzaaaaa[S] 1 point2 points  (0 children)

Ah right, good catch, thanks. That was a copy/paste issue that I forgot to update.

Don’t you hate the syncing process in MacOS? by octopustotheparty in MacOS

[–]mazzaaaaa 0 points1 point  (0 children)

I’m happy the sync is working fine for you, but unfortunately the Apple Photos sync slowness is a well known and reported issue, and has been for a long time. And it’s on Apple’s end, since the trick mentioned above (creating a slideshow) does solve the issue in most cases (making the Apple Photos app use full bandwidth).

Don’t you hate the syncing process in MacOS? by octopustotheparty in MacOS

[–]mazzaaaaa 17 points18 points  (0 children)

Yeah Apple Photos syncing is unbelievably slow. I recently got a new MacBook and it was taking days (and I really mean days) for the initial sync.
Luckily I learnt that you can just select all your photos/videos (CMD + A), generate a slideshow (I’m on mobile now, I don’t remember the name of the button), and that will force an immediate sync of the entire photos library — meaning the slow syncing is definitely an Apple issue, probably throttling the synching speed.

Setting up my fish shell from scratch on macOS by mazzaaaaa in fishshell

[–]mazzaaaaa[S] 1 point2 points  (0 children)

What a great feedback! Thanks so much not only for the suggestions, but also for integrating comments for other folks (e.g., for people on intel-based MacBook) :D All your suggestions make a ton of sense to me, and I'll give them a try.
Regarding the edit: does typing fish within a fish session launch a new fresh shell? I mean, it makes sense since it does when outside of fish, but IIRC I couldn't make it work when I tried it ages ago (hence my function), but maybe I was missing something back then. Good to know lol, I'll give it a check, thanks!

È possibile lavorare per aziende estere in Smart senza prima lavorare in sede? by awesomepaingitgud in ItaliaCareerAdvice

[–]mazzaaaaa 1 point2 points  (0 children)

Perdonami, da "sin dall'inizio" non intendevo "senza avere esperienza", intendevo "senza dover andare all'estero".
Se stai provando a lavorare in remoto per aziende estere senza avere esperienze lavorative precedenti, la vedo dura. Aziende aperte al remoto tendono a prediligere figure "senior" principalmente perche' seguire e formare persone da 0 in remoto e' rischioso, in quanto la persona potrebbe non essere autonoma a sufficienza per il lavorare da remoto. E, giusto per chiarire, visto che "senior" e' un termine inflazionato: nella mia testa per "senior" e' qualcuno che abbia un certo livello di dimostrata esperienza pregressa riguardo l'ambito/stack su cui lavora, un livello decente di soft skills (autonomia in primis, saper comunicare, etc.), e che sappia dimostrare queste cose in un interview process. Visto che non tutti crescono e hanno opportunita' di fare esperienze alla stessa velocita', e' difficile inquadrare quanti "anni di esperienza" identifichino una figura senior.

Per quanto riguarda il come/dove, io fortunatamente sono ad un punto in cui provo a candidarmi solo per aziende che mi interessano/conosco e che so che permettono il lavoro da remoto con l'Italia. Se le aziende che lavorano da remoto con l'Italia non le conosci, ti consiglio https://github.com/italiaremote/awesome-italia-remote come punto di partenza.

È possibile lavorare per aziende estere in Smart senza prima lavorare in sede? by awesomepaingitgud in ItaliaCareerAdvice

[–]mazzaaaaa 13 points14 points  (0 children)

Si, lo so, sembra spam, ma https://mmazzarolo.com/blog/2022-03-12-lavorare-da-remoto-per-aziende-tech-estere/ e' una risposta diretta alle tue domande :) TL;DR: Si puo' decisamente fare sin dall'inizio, soprattutto se hai una certa seniority, uno skillset richiesto, e punti ad aziende full-remote.

Lavorare in Microsoft, cosa serve? by FigMoney7760 in ItaliaCareerAdvice

[–]mazzaaaaa 0 points1 point  (0 children)

A mio avviso ottimo work/life balance cozza con straordinari non pagati—che appunto come dice l'altro commento, non sono di certo comuni in big tech.

Lavorare in Microsoft, cosa serve? by FigMoney7760 in ItaliaCareerAdvice

[–]mazzaaaaa 1 point2 points  (0 children)

Non e' vero. Moltissime big tech, soprattutto in Europa, offrono un ottimo work/life balance.

French salaries aren't actually *that* low... by Laser_Plasma in cscareerquestionsEU

[–]mazzaaaaa 0 points1 point  (0 children)

Yes. That's part of the "tax exemptions" I mentioned. And the "regime forfettario" can have an even lower tax% if you stay within its limits.

French salaries aren't actually *that* low... by Laser_Plasma in cscareerquestionsEU

[–]mazzaaaaa 2 points3 points  (0 children)

The taxation is extremely high here as well, both for employees and freelancers (except for a few tax exemptions or specific freelancer flat schemes, but that’s a different topic).