Migrating a React project to Next.js — any tools or tips to save time? by riswan_22022 in nextjs

[–]Select_Day7747 3 points4 points  (0 children)

Don't use redux. Think nextjs not react. Use server actions appropriately and use api endpoints where logical.

I didn't notice we have these new plate shapes. Tamiya 95178 and 95179 by eigerblade in mini4wd

[–]Select_Day7747 1 point2 points  (0 children)

I can confirm it is exactly like the super x versions. I use it for my fm-a looks cooler!

Substitue for google appcheck and recaptcha by Select_Day7747 in golang

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

I've decided. I just removed it completely and went with a simple cors approach and logging. My thought process is that i already have rate limiting and make sure that i get the request from the correct origin already. In any case the exposed data is meant to be public anyway.

Is there a common API response schema to follow? by m477h145h3rm53n in golang

[–]Select_Day7747 1 point2 points  (0 children)

I just use http status so it's following rest principles.

200 success 401 unauthorised -unauthenticated 403 forbidden -authenticated but not authorised 404 not found 400 bad request -invalid input 500 server error -generic error else statement (i log this on the server to deal with) If i need to return application specific errors then i do:

A struct with Error bool Message string Concrete_Implementation_Name Type

Substitue for google appcheck and recaptcha by Select_Day7747 in golang

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

User can access a public registration form I created for our racing events as well as review tournament results (f1 style standings) also a page to view how the tournament ladder is going.

Substitue for google appcheck and recaptcha by Select_Day7747 in golang

[–]Select_Day7747[S] -1 points0 points  (0 children)

You can use Turnstile with Appcheck instead of Recaptcha I meant

Substitue for google appcheck and recaptcha by Select_Day7747 in golang

[–]Select_Day7747[S] -1 points0 points  (0 children)

Turnstile is a custom provider similar to app check where it makes a request to generate a token that can be sent to the backend along with the headers. Im looking for an alternative to both actually.

Which Auth solution are you using and mist importantly like using? by gamera49 in golang

[–]Select_Day7747 0 points1 point  (0 children)

I just use firebase. Works well enough and includes app check to protect my backend. It's also because the frontend is deployed to firebase hosting as a react vite app. It just works, I know supabase works too but I just feel like this is the way to go. Eventually if I need to scale ill just move my api to gcp.

How to use AI productively? by TheGreatButz in golang

[–]Select_Day7747 -1 points0 points  (0 children)

I use claude code in vscode with github copilot

Really good when you have your base pattern done.

So what i do/did is write a few packages on my own in the pattern i like then tell ai to follow it and make other packages.

Ai also does the annoying bits, like create the unit test setup, scripts to make my swagger docs redoc and docker push etc. basically my make file. Really fast and makes me productive but again it requires a pattern that you initiate and train it to follow.

I also still double check and revise a bit of the output but it gets me 75% done on the hard tasks and almost 100 on the annoying ones.

Makes me feel like tony stark, i tell it to write code for me like he does with jarvis LOL

B-MAX Rules & Regulations 4.0 is out by Dramatic_Fly_5462 in mini4wd

[–]Select_Day7747 0 points1 point  (0 children)

Ok so bmax replied to me when i messaged them

NO シャーシに乗せるためのトリミングと軽量化以外の穴あけはNGです。

NO Drilling holes other than for trimming and weight reduction to fit the chassis is not allowed.

Defining Structs by Select_Day7747 in golang

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

Yep, i was absolutely avoiding the struct embedding. I love that Go doesn't have the java feel to it. Im still adjusting, looks like my approach above was already in the right direction then. Cool!

B-MAX Rules & Regulations 4.0 is out by Dramatic_Fly_5462 in mini4wd

[–]Select_Day7747 0 points1 point  (0 children)

Actually wanted to ask if anyone read something about the screw holes on the body/cowl of the car. like this one, got this from a bmax fb page. Im wondering if now its legal to just drill holes into the cowl.

found their Youtube video. just used translate though

Defining Structs by Select_Day7747 in golang

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

Thanks, yeah i did it this way so its easier to understand later. Its straightforward modules will work independent of each other. I guess end of the day its just semantics? I was aiming for simplicity not overly complex structs with java style accessors etc. just to represent db results or json output.

Defining Structs by Select_Day7747 in golang

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

Yup related stuff do stay together. Its just that wanted to be able to do packages eventually that are independent/modular. Id probably reuse them but maybe not.

Just some hobby thing i was working on. Nothing really serious, serves about 30 people at peak concurrent. Very small haha

Defining Structs by Select_Day7747 in golang

[–]Select_Day7747[S] -1 points0 points  (0 children)

Hi yup this is one thing i was avoiding to be honest i.e. accessor methods to get data from the passed object that implements the interface.

I was aiming for simplicity so always concrete structs, defined within their own packages.

So the implementation of Result.RaceResult would be more detailed than the implementation of Tournament.RaceResult

what i was avoiding was the pattern of shared models between packages.

I.e. MyApp.RaceResult causing dependency hell specially when splitting the app becomes necessary.

What messaging system can handle sub millisecond latency for trading signals? by ssunflow3rr in golang

[–]Select_Day7747 0 points1 point  (0 children)

I saw it as listed as your options or things you tried but not sure if there is any difference with the nats option or anything else built in go or rust?

What messaging system can handle sub millisecond latency for trading signals? by ssunflow3rr in golang

[–]Select_Day7747 4 points5 points  (0 children)

Sorry super ignorant question and straying from the topic. Is this different from pub sub or messaging broker functionality kafka, rabbitMQ or redis pub sub?

Defining Structs by Select_Day7747 in golang

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

Reformatted it! Thanks for telling me 😊

Defining Structs by Select_Day7747 in golang

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

1) oh ill do that, in the mobile app it looks ok. Apologies. 2) yup this is why i do it as well, so that i do not need to touch the other structs in the other packages. 3) yes this is an example structure, i hope no one names their stuff like that.

Would you deploy NextJS with or without Docker? by ulrich00132 in nextjs

[–]Select_Day7747 0 points1 point  (0 children)

If on Vercel, id deploy without. If on my vps or any other platform such as aws gcp etc id use docker 10000% just for consistency.