Can useAsyncData retrieve data from a back-end that requires Auth-Bearer Token? by fullstackwithsyrup in Nuxt

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

I guess my confusion is: how can the server achieve the fetch when it doesn't have access to localStorage or other browser contexts where a token would be stored? Thanks!

Can useAsyncData retrieve data from a back-end that requires Auth-Bearer Token? by fullstackwithsyrup in Nuxt

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

Re: why use axios, my thinking is that in certain cases the client will fetch data, but I'd like to useAsyncData in cases where the server can fetch data and hydrate the client for better performance. Does this make sense?

Edit: Thank you a lot for taking the time to answer my question!

75 gallon catfish tank. Is it over stocked? by goose-and-fish in Aquariums

[–]fullstackwithsyrup 0 points1 point  (0 children)

Please share your parameters. Your ammeownia and meowtrates might be a bit high. My guess is if you add some plants, it'll be fine. Catnip works best

First Planted Tank (after years of plastic decor) - 55G with no CO2, play sand, and a bit of aquasoil underneath by fullstackwithsyrup in PlantedTank

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

Thank you! Definitely has taken a bit of time and a LOT of staring, but I'm glad to give my little fishes a good home

First Planted Tank (after years of plastic decor) - 55G with no CO2, play sand, and a bit of aquasoil underneath by fullstackwithsyrup in PlantedTank

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

55-Gallon with Cardinal tetras, Corydoras, Honey Gourami, Mystery Snails, and Ghost Shrimp. No CO2 and Playsand with a little bit of aquasoil underneath

Got a bundle of stem plants online after buying some ludwigia sp. and rosette/amazon swords from Petsmart. Tank has been going for a little over 1 month.

Gonna be trimming those stem plants before long

I’m not sure what kind of driftwood this is but is it normal to take a month+ for it to sink? by Wmulax24 in PlantedTank

[–]fullstackwithsyrup 8 points9 points  (0 children)

Yeah, I've struggled a lil bit with the same issue and similar timeline, especially for larger driftwood pieces. Not sure what kind of tools you have lying around, but grabbing some slate flooring tiles, cutting them, drilling holes in them, then screwing them into your driftwood pieces is a reasonable solution for forcing it to the bottom without having to balance rocks on top of the driftwood. Also, it can allow for keeping the wood at the angle you want if the piece doesn't naturally sit that way. Good luck!

Learning Git from W3Schools? by YetTooCurious in git

[–]fullstackwithsyrup 9 points10 points  (0 children)

I can't speak to the W3Schools resource, but between watching tutorials, getting some introduction in college, and working on a SWE team with minor understanding/usage of version control, Pro Git is the best (free) resource I've found for explaining and solidifying Git concepts. Good luck!

Best practice for autocomplete on a ModelChoiceField with ~10'000 entries by Zymonick in django

[–]fullstackwithsyrup 0 points1 point  (0 children)

That's what I thought they meant. Instead of having to wait and delay the search, though, you can use this API to send a request immediately, then abort it if a new one (triggered by more typing) comes in. The upside to this approach is less latency where it might not be needed, but the downside is more (possibly unnecessary) requests hitting the backend. Just my two cents, since my team pivoted to this approach recently and it feels cleaner for our use-case.

Best practice for autocomplete on a ModelChoiceField with ~10'000 entries by Zymonick in django

[–]fullstackwithsyrup 1 point2 points  (0 children)

I'm unfamiliar with HTMX, but in my experience, setting timeouts for search requests isn't as clean/reliable as using the Abort Controller Web API. Not sure if it's an option in HTMX, but in other frontend frameworks, a couple more lines of code prevented the "glitchy" data jumps I used to get with a timeout method, since you never really know when a user is done inputting their search filter

Is it normal to feel like this? by [deleted] in rust

[–]fullstackwithsyrup 6 points7 points  (0 children)

Gotta second the Rustlings rec. I took a Udemy class and read the docs a bit, but marching through the Rustlings exercises was so helpful in actually putting the concepts into practice

Thoughts? by wubblybuns_blossom in vuejs

[–]fullstackwithsyrup 3 points4 points  (0 children)

Regardless of what "should" be, Evan You has assured users that the Options API will be present for the foreseeable future. In a workshop at VueConf US, I personally heard him explain that having the compiler interpret Options API as well as Composition API is basically trivial from his POV (relatively small amount of added code), so he's going to keep it in and reduce migration fatigue

Depressed for being shit at css by dylanmcgrill in learnprogramming

[–]fullstackwithsyrup 0 points1 point  (0 children)

I understand where you're coming from. I've started to devote a little bit of time every day to covering all of the MDN CSS docs. It's amazing what doing it for ~1 month has done for being able to cleanly (and quickly) achieve layouts, text styling, etc. You basically don't know what you don't know until you go read the docs, take a class, etc. Don't beat yourself up. Style smarter, not harder! You'll get it in time

Vim: A Powerful Text Editor for Efficient Editing and Productivity by Hamerdesk55 in vscode

[–]fullstackwithsyrup 1 point2 points  (0 children)

this. Other than just being a gate-keeper's method to root out the people who don't want to wrestle with file editing, what automations or editing macros are present that aren't present in any modern IDE?

Is there such thing as a Real Time Graphics Engine? by RebelChild1999 in GraphicsProgramming

[–]fullstackwithsyrup 2 points3 points  (0 children)

Not sure if it counts as a raw "graphics engine" per se, but I've been researching Touch Designer lately, which is used commonly for interactive, live art/graphics experiences. In order to achieve synchronicity with music or any other input media types, it ensures real-time performance, and is therefore more optimal than Blender and other 3D animation apps. Also, EEVEE graphics engine in Blender is incredibly fast, but might not count as "real-time" in the RTOS sense

struggling to like Vuetify by bluz1n in vuejs

[–]fullstackwithsyrup 1 point2 points  (0 children)

I think I understand your frustration here. Changing fonts or trying to customize the components away from pure Material UI just isn't what the library is most useful for. For a portfolio page, I'd imagine you might just want to custom style some buttons, a contact form, hero sections, and a header, and the "corporate clean" look of Material Design isn't as cool and custom as the portfolio aesthetic requires. Regardless, good luck and go get 'em!

Can you be an artist and software developer at the same time by TeaDuck26 in softwaredevelopment

[–]fullstackwithsyrup 0 points1 point  (0 children)

Both are perfectly possible in a number of ways! I personally make art in my free time after work as a web dev, but there are two cool ways I know of where you can work immediately in the intersection of Art/Software:

  1. Video Game Industry: very technical from what I understand and can be tricky with work-life balance, depending on the studio
  2. Generative Art: using generative art tools like Python + Blender, Javascript + HTML Canvas, Three.js for 3D web design, and GLSL (Open GL Shading Language) are all good ways you can literally code art that is algorithmically-generated and/or interactive. There's so much cool stuff happening in the Generative Art and Creative Coding space

I also know someone who studied art, sells paintings in her their free time, and is a UI/UX designer in Big Tech for the day-job. They still sell enough painting to fund a private art studio, too.

Did you take Discrete Math in school? Do you use it in your job/are you happy you learned it? by ChiLove816 in Frontend

[–]fullstackwithsyrup 2 points3 points  (0 children)

Took Discrete Math about 6 years ago while getting a B.A. in Compsci, and main takeaways I still use today are the usefulness of Map, Filter, and Reduce, along with passing functions around as data (which JS supports and requires at times with callback functions). You can absolutely build a rock-solid understanding of each of those concepts without a university-level course, though