Do you think cmd/internal is a little bit complex folder structure? I often get confused and lost in such structure, compared to the structure used in MVC? I am talking about web dev only.
@codeandlearnwithlove3 күн бұрын
Different languages have different project directory structures which are treated idiomatic. In Go this directory structure is very common, internal is for non exported packages, while cmd holds main files for different applications. Go follows a more domain specific structures, MVC is not aligned with Go. I did a video about different Go idiomatic project structures, you can have a look at it or read the Go team’s blog.
@helloworld77963 күн бұрын
@@codeandlearnwithlove Thank you for your answer! I will take a look at the project structures. Question, did you recorded or planning to, about grpc api and it's testing?
@codeandlearnwithlove3 күн бұрын
I do plan on creating a series on it, but will need some time.
@helloworld77963 күн бұрын
@@codeandlearnwithlove Nice, thanks!
@prashlovessamosa3 күн бұрын
After this series please cover DSA fundamentals at least implementation of them would be too nice btw I am learning Gin along with Vue JS its hell of a combination. All thanks to you because of you I am able to write Go. Thanks 🙏 that's it
@codeandlearnwithlove3 күн бұрын
For sure, I am working on it. Btw can I ask you why Gin?
@prashlovessamosa3 күн бұрын
@codeandlearnwithlove I was working as an intern for org name Fampay they were migrating their infrastructure from Django Rest Framework to Gin. Fiber can be a better choice but Gin is so good too. Std lib is good but our senior decided to go with Gin. I didn't know how to write to Go so I learnt go from you after that I started learning Gin so far enjoyed it.
@codeandlearnwithlove3 күн бұрын
Thanks for the context, I was just curious because we always tend to prefer standard lib packages. But understand different dev teams have different experiences and as such preferences.
@prashlovessamosa3 күн бұрын
@@codeandlearnwithlove although I am still below Junior I was assigned to Casbin work basically auth part of an app whole app was on EDA I think they were using the RabbitMQ I am not too sure. I didn't ask him too much btw he is the Java OG he told me he likes Gin in Go and Nest in the JS ecosystem. He also taught me how to develop lambdas in python later we did the same thing in go.
@codeandlearnwithlove3 күн бұрын
That’s nice. We tend to build our own stuff in the company I work for, when it comes to authn, authz, etc and use Kafka for pub sub. I think most of the technologies you use depends on the scale of the company. It’s good that you are learning different frameworks but when you gain experience, you will realize frameworks can sometimes be bit too much, at least that is my experience with them. Btw I am not judging but I have seen Java devs killing Go projects by trying to write Go with Java style of things.