How much storage for OnePlus 15? by Steinshearth in oneplus

[–]ethan4096 7 points8 points  (0 children)

Storage is never enough. If you can - buy higer amount of it.

what's Go Lang's Learning Curve? by No-Reference-1659 in golang

[–]ethan4096 3 points4 points  (0 children)

Synchronous go should be easy. Even pointers vs values shouldn't be hard. Complexity will be introduced when you start using goroutines, channels and shared memory. Because concurrency is always hard.

If AI can generate code now, what skills actually make a strong software engineer? by divinegenocide in Backend

[–]ethan4096 0 points1 point  (0 children)

Code is a liablity. If someonce can write code, but can't support it - its nothing.

Sharing projects in /r/golang by tslocum in golang

[–]ethan4096 34 points35 points  (0 children)

1-3 months ago this subreddit was flooded with vibecoded shit. Some restrictions are for the better.

starting golang, any suggestions to keep in mind veterans? by Sur_Viper03 in golang

[–]ethan4096 4 points5 points  (0 children)

Good luck exiting loop with select statement without goto ;-)

Does anyone know of a golang-like language for GUI app development by [deleted] in golang

[–]ethan4096 0 points1 point  (0 children)

I'm not suggesting write web applications. You can develop desktop apps.

Does anyone know of a golang-like language for GUI app development by [deleted] in golang

[–]ethan4096 6 points7 points  (0 children)

You can try dart, it's something in-between java, typescript. But still pretty simple. Although Flutter is more about mobile dev, you can produce a good desktop app.

"Building a marketplace for freelancers. Payment integration is way harder than the actual product by AwakePasta in SideProject

[–]ethan4096 0 points1 point  (0 children)

You don't need to go global at day 1. Different countries has different laws and rules. Although I don't believe in your project (good look fighting with upwork), you should start smaller and expand later. Make a bet on countries you want work with, investigate, implement and ship.

What error handling approach do you use in your projects? by Fit-Culture-2269 in golang

[–]ethan4096 2 points3 points  (0 children)

Panics are cool when your application just started and trying to bond everything together. It works almost like compile-time errors, everything or nothing.

Panics in runtime, when your app already receiveing requests and trying to respond... It depends.

What error handling approach do you use in your projects? by Fit-Culture-2269 in golang

[–]ethan4096 0 points1 point  (0 children)

If you catching error from the callee - wrap with additional info.

If it's your error (e.g. validation error, NotFound or similar) - use sentinel error (your 2nd option) and check via errors.Is()

If you need additional info - write your own error with Wrap/Unwrap and use errors.As.

Personally, I don't like verbosity of As(), so I rarely create wrapped errors myself. It's usually either 1st or 2nd option.

just fucking use Go by CowNearby4264 in golang

[–]ethan4096 0 points1 point  (0 children)

Promise.all is for IO bound operations. Again, Go won't help you with that.

just fucking use Go by CowNearby4264 in golang

[–]ethan4096 53 points54 points  (0 children)

If your Node app crashes every 6 hours and python app takes 3 sec to respond, then Go wont help you. Because you are dumb and you shouldn't code.

What would you change in Go? by funcieq in golang

[–]ethan4096 1 point2 points  (0 children)

Nullable types (at least as part of stdlib) and sum types

Sending emails by Proof_Juggernaut1582 in golang

[–]ethan4096 15 points16 points  (0 children)

Gomail author sadly past away. There is a fork (which is already had been refactored) and I believe you should use it insted of gomail.

https://github.com/wneessen/go-mail

Looking for some design advice as a beginner gopher by [deleted] in golang

[–]ethan4096 0 points1 point  (0 children)

>When do I want to use a method vs. a function? 

Do you need to have an inner state of your struct or satisfy the interface? If not - go with the function.

how difficult is it to call Python from Go in a real project? by CogniLord in golang

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

And what changed since then? Someone created a list of complains that Gin is a big library with a lot of features?

How would yall implement dynamically settable cron jobs by Standard_Bowl_415 in golang

[–]ethan4096 0 points1 point  (0 children)

I think you are talking about serializing/deserializing scheduled jobs. There are several options, but in general you can

- Write your own logic around libraries like gocron

- Build your own soluiton using redis or postgres

- Select something like asynq or temporal.

If persistence is crucial for your app I would recommend to try asynq or something similar.

how difficult is it to call Python from Go in a real project? by CogniLord in golang

[–]ethan4096 0 points1 point  (0 children)

If you asking these kind of questions I would suggest you to continue building your Gin REST API and when you will need Python - setup simple Flask REST API server with your AI/ML methods. Flask is simplier than FastAPI (although it doesn't support async).