Earlier quoted context omitted.
I have used Go in production. I found it roughly takes 2-3x additional time it takes to develop the same functionality in Node.js (with typescript). But it runs faster. If you want to write code that is probably not going to be thrown away it may be wise to invest the additional time in Go. However can't recommend that for building experimental code/APIs etc which are time bound and may/can get replaced (or split int…
Any examples of Node being faster to write than Go? Did this have anything to do with the plethora of npm packages available?
Learn Go in five minutes
131–137 of 137 posts
Re: Learn Go in five minutes
#132Earlier quoted context omitted.
>Rails, Laravel, Phoenix, etc vs Go! Comparing frameworks and a language, really?
Absolutely! There are obvious productivity differences between the languages themselves and frameworks can make it even more apparent. Different languages make writing the DSLs used in Rails-like frameworks easy, difficult or impossible. Much of my professional career was spent working on Node back-ends with a variety of frameworks and none of them were even close in terms of succinctness or productivity.
Re: Learn Go in five minutes
#133Earlier quoted context omitted.
Seconded. Especially for Go, because it's mostly a lowest common denominator of language features it's not hard to write the code itself. The problem is that the module system is different and had plenty of changes along the years, What I would really like is an up to date "learn how to handle Go project in 30 minutes" tutorial (initialize new project with all best practices, add modules, publish, fork&clone&submit&p…
>What I would really like is an up to date "learn how to handle Go project in 30 minutes" 1. git init 2. git remote add %something% 3. go mod init %name_of_your_module% (where in most common case name is your repo address without the https part) 4. https://github.com/golang-standards/project-layout - this repo has the default project structure. Each subfolder has README that describes the purpose of the folder 5. go…
Sometimes a 3rd party library needs a fix, and you want to fork it, add your changes, and run with it like that until your changes land in the upstream.
Last time I had to deal with it was a PITA, because libraries were fully qualified, and now I wanted to make an override. In Rust I would use https://doc.rust-lang.org/cargo/reference/overriding-depende...
Re: Learn Go in five minutes
#134No offense to the author here ... but I need to vent some personal frustration. Every tutorial goes through these exact same motions for learning a new language. It sucks! Programmers can figure out what a variable is, or how to use an array or a map. Those things really don't change a whole lot between languages. What about how to import code from different modules? Best practices for organizing code? How your langu…
99% of the “learn programming language” literature is written by people who likely couldn’t do your job because they haven’t ever been programming. This is why languages need good documentation. It seems like it’s a booming industry though. I mean, there are entire sites like udemy where amateurs teach amateurs things they’ll never use in a real job, and that place, and others like it, seems to be doing just fine. He…
I feel like there's something a bit off about charging money teaching a skill that I haven't personally used extensively in a professional context. I guess others feel differently
Re: Learn Go in five minutes
#135Earlier quoted context omitted.
Any examples of Node being faster to write than Go? Did this have anything to do with the plethora of npm packages available?
Several use cases, of course more number of npm packages also easier concurrency, much more shorter syntax for async/promises, with ES6 you get closer to functional programming like map reduce etc. Also you can add or escape typing using Typescript. Single threaded architecture is a boon and good fit for web app middlewares. In golang sometimes you have to work too hard to get typings correct, concurrency is not stra…
In Node??? Have you actually written any Go code?
Re: Learn Go in five minutes
#136Earlier quoted context omitted.
>What I would really like is an up to date "learn how to handle Go project in 30 minutes" 1. git init 2. git remote add %something% 3. go mod init %name_of_your_module% (where in most common case name is your repo address without the https part) 4. https://github.com/golang-standards/project-layout - this repo has the default project structure. Each subfolder has README that describes the purpose of the folder 5. go…
> Not sure what to you mean by 'fork&clone&submit&pr including 3rd party submodules'. Sometimes a 3rd party library needs a fix, and you want to fork it, add your changes, and run with it like that until your changes land in the upstream. Last time I had to deal with it was a PITA, because libraries were fully qualified, and now I wanted to make an override. In Rust I would use https://doc.rust-lang.org/cargo/referen…
In Go you can 'replace' a required package.
https://thewebivore.com/using-replace-in-go-mod-to-point-to-...
You can replace with local or remote package (for example if you have published fixed version somewhere and what your teammates to use it too until your changes land in the upstream.)
Re: Learn Go in five minutes
#137Earlier quoted context omitted.
99% of the “learn programming language” literature is written by people who likely couldn’t do your job because they haven’t ever been programming. This is why languages need good documentation. It seems like it’s a booming industry though. I mean, there are entire sites like udemy where amateurs teach amateurs things they’ll never use in a real job, and that place, and others like it, seems to be doing just fine. He…
Packt books are woefully bad. What’s their business model? Print on demand?