#I'm a NodeJs dev trying to learn Go for web development and need help.

35 messages ยท Page 1 of 1 (latest)

rare ledge
#

I know a little of software development. I've spent 4 years building stuff and leading projects, mostly on NodeJs.
Recently I've been having a hard time trying to learn Golang, I feel like not much of my knowledge is transferable to Go. Can anyone help me get on track?
Thank you in advance.

#

Go CHI looks pretty simple, but when I open a github repo like this one:
https://github.com/dhax/go-base
90% of the stuff here is alien to me. No idea why it's there and if my server should have it.

round warren
#

I'd ignore most of that repo you linked until you know you need something ๐Ÿ˜‰

rare ledge
#

Yeah, I will try to go slow and steady on learning it instead of rushing so I can start my new project in Go

gentle nimbus
#

you don't need a framework at all

#

specially when learning

rare ledge
rare ledge
gentle nimbus
#

I'd still do without anything in the context of "trying to learn Go" but...

rare ledge
#

But I feel like there are a lot of unwritten rules, like how you meant to struct your directories (I've read the faq). In ExpressJs or Fastify, I would just create a main routing place, and one folder for each entity. In e.x.:

src|
   |-entities|
   |        |-user
   |         |-events
   |         |-meals
   |-authorization
etc
rare ledge
gentle nimbus
#

go is even simpler, no ./src

#

english is also not my first language ๐Ÿ™‚ I'm trying to say that when learning it's useful to use only what the language provides, after which you can see if you really need some additional libraries

rare ledge
#

(like, I tend to jump into the most common industry standard in hopes to accelerate the process)

rare ledge
gentle nimbus
#

btw we are on a thread so... I already get notifications you replied

#

Is this like a boilerplate/example for a chi backend?
yes made by @granite fractal

#

if you use it just drop the useless ./cmd/ or at least not call it "api" :-p

rare ledge
#

Ok, I will stop using the answer functionality to reference the message ๐Ÿ˜…

gentle nimbus
#

it's useful in flat channels like #go-chat but much less in this format specially if only 2 people are talking (at the moment)

rare ledge
#

that makes sense

#

Ok, these both repos are gonna be really useful on my journey

#

I have a contract to develop a new api starting on Friday, from my company, I was hoping to learn go until then and just use it from the beginning. I will do it in Node and refactor it once I feel confident enough
(I just said as a side note, this is not important)

#

I guess I was hoping too high lol

granite fractal
#

If I cared more I would replace it with net http

rare ledge
#

This repo is bonkers, thank you three

gentle nimbus
#

I have a contract to develop a new api starting on Friday
well that's a bit more pressing than learning for fun, so yeah it may make sense to use some libraries then