News for hackers. Stuff that matters.
Re:Web Development in Go by ksubedi on Monday April 10, 2017 @02:09PM (#14081070)
Probably an unpopular opinion but I don't think pre-optimization is a bad thing specially in use cases where you will need to optimize the application later, as refactoring things for optimization later is much more time consuming.

That being said, it all depends on the use case. And about your point on binary output, its not just about being able to get one binary and running it in different platforms, its also about being able to run it without much setup in the future. For example, I had a hard time getting a nodejs app that I built a few years ago running again since so many libraries were deprecated and I had a lot of broken packages, but if it was built using Go, it would just be one binary with all the dependencies packaged in and I would be able to run it without any issues.

Re:Web Development in Go by conceptme on Monday April 10, 2017 @02:42PM (#14081337)
Does GO have a dependency manager yet? last time i checked it out it was only things like go get which did a git checkout? I doubt anything would keep working on active libraries without version locking composer / yarn seem to do this a lot better.
Re:Web Development in Go by ksubedi on Monday April 10, 2017 @02:47PM (#14081383)
I am not sure about the situation of dependency management on Go atm (havent used it for a few months), but in my case if I had a pre-compiled binary, I could just fire it up without having to worry about compiling from source. I was not a big fan of the way Go handled dependency a while ago, but I am sure there are better tools out there now.
Re:Web Development in Go by Zikes on Monday April 10, 2017 @02:48PM (#14081391)
dep is being adopted as the officially "blessed" tool of choice.
Re:Web Development in Go by jgimenez on Monday April 10, 2017 @03:04PM (#14081533)
Yes, not really an official solution yet, but they're getting there.
Re:Web Development in Go by fancy_pantser on Monday April 10, 2017 @05:13PM (#14082614)
It will be in 1.10. Details and roadmap: https://github.com/golang/dep/wiki/Roadmap
Re:Web Development in Go by jwilliams on Monday April 10, 2017 @02:29PM (#14081229)
I think people have come to interpret the pre-optimization mantra in different ways, which leads to some confusion.

Personally I think it's fine to have optimization goals, particularly around things like performance, cost and security (or even your ability to hire engineers). Maybe you park some of them while you prove another point, but you can (and should) measure and adapt along the way.

Re:Web Development in Go by z3t4 on Monday April 10, 2017 @02:38PM (#14081297)
this is why i only use pure JS in nodejs. then it will always work for that version of nodejs. you cant asume that binary version of nodejs will work forever though.