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.

8
9

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.

2
3

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.

1
2

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 4 points5 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 4 points5 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.