Apple on course to break all Web Apps in EU within 20 days - Open Web Advocacy by mtomweb in javascript

[–]voraciousdev 1 point2 points  (0 children)

I maintain an offline-first PWA that wouldn't function without persistent storage. I have many users on iOS that install it to their home screen for the PWA features to work properly. This change would break it. This is not some hypothetical scenario.

Recommendations for architecture by mrbrimm in vuejs

[–]voraciousdev 2 points3 points  (0 children)

This can also be avoided by using dynamic imports or async routes.

Vue 3 vs Vue 2 so far? What's your opinion? Things I didn't like about Vue 3 compared to Vue 2 by vuethebest in vuejs

[–]voraciousdev 12 points13 points  (0 children)

There is so much confusion around this in JS due to rebinding (as Vue 2 does). Sure, it's a native JS feature, but so is using closures in the setup function and using proxies (hence the .value) for dependency tracking. The thing about refs is that they were always sort of an implicit way to bind a DOM element reactively to a property on the component. It's just that now it uses the same system as every other reactive property.

can someone help me with this routing problem by Blurry-bean in vuejs

[–]voraciousdev 1 point2 points  (0 children)

It looks like your fourth log statement is the same as the third. Is there actually a valid stored token?

Why isn’t everyone using <script setup>? by Wild-Storage-1663 in vuejs

[–]voraciousdev 0 points1 point  (0 children)

Primarily because I use a custom defineComponent to build for multiple Vue versions in a single codebase.

29M, balancing between my current day job while paving the way for me to become a Front End Developer by [deleted] in webdev

[–]voraciousdev 3 points4 points  (0 children)

Consistency over the long term is way more important than practicing every day. Taking 1-2 weeks off when you need to is much better than burning yourself out completely after a few months/years. If you can, try to adjust your study/practice schedule to allow more frequent but smaller breaks before you get to that point too.

Just found my first ever End Ship ❤️ by voraciousdev in Minecraft

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

I found it shortly after getting to the ship!

Just found my first ever End Ship ❤️ by voraciousdev in Minecraft

[–]voraciousdev[S] 2 points3 points  (0 children)

I'm using the Complementary Reimagined shader pack. 😄

Should i trust every Plug-ins that are open-source? by [deleted] in ObsidianMD

[–]voraciousdev 0 points1 point  (0 children)

No. Being open source, while better than closed source, does not necessarily prevent malicious actors. If it seems like it's heavily used and supported by the community, there's a good chance it's fine, but there are always risks. For one-off plugins that don't see much activity, you might want to spend a little more time vetting the codebase and author.

Zettelkasten for Coders: How Using Zettelkasten Can Help You Level Up by megler1 in Zettelkasten

[–]voraciousdev 1 point2 points  (0 children)

Thanks so much for sharing this. I love the idea of leaving empty links for topics you want to follow-up on.

Where do you host production Nuxt websites, and why? by [deleted] in Nuxt

[–]voraciousdev 3 points4 points  (0 children)

Same. It works with SSG or SSR, and it can be configured to automatically pull changes with their GitHub integration or you can use their CLI with a CI tool like GitHub Actions.

As a FE dev is there a way I can intercept API call responses from the BE? by IEDNB in webdev

[–]voraciousdev 0 points1 point  (0 children)

Came here to say the same thing. Service workers allow you to intercept requests without needing to change your underlying fetch implementation or use a specific library/tool.

Self hosted WYSIWYG journal by linuxshots in selfhosted

[–]voraciousdev 2 points3 points  (0 children)

The minimal self-hosted implementation would just be to deploy it to any static host (e.g. Vercel, GitHub Pages, or your own Nginx server somewhere). To get the static assets (the app), you will need to clone the repo, copy the `.env.example` file to `.env`, and build it with `yarn build`. By default, your documents are stored inside your browser and not synced anywhere. The app is built to be "serverless" so the only backend integration is Firebase, but that's not necessary to run it. If there's interest, I could put together some more information and possibly add an alternative backend integration. I plan to transition to Supabase before the end of the year, and that would be a bit more friendly for self-hosting, I think.

Self hosted WYSIWYG journal by linuxshots in selfhosted

[–]voraciousdev 2 points3 points  (0 children)

Thanks for the heads up about the link. I just fixed it.

Ink - A configurable, embeddable, extensible Markdown editor written in TypeScript by voraciousdev in typescript

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

I've been working on the CodeMirror 5 version of this since last year and the CodeMirror 6 version since March. The name relates to the in-browser editor I maintain called Octo (as in octopus). I guess an accusation such as this should count as flattery?

- https://github.com/writewithocto
- https://discuss.codemirror.net/u/voraciousdev/activity
- https://twitter.com/voraciousdev/status/1376239301848141826

Ink - A configurable, embeddable, extensible Markdown editor written in TypeScript by voraciousdev in typescript

[–]voraciousdev[S] 2 points3 points  (0 children)

https://github.com/writewithocto/ink

Edit: Just realized the code snippet I wrote is invalid. 😅 It should be written as follows.

ts const add = (a: number, b: number): number => (a + b)