|
Just got an offer for a Go dev job. It's been my language of choice for the past two years on all my personal projects so I'm really excited at the prospect of using it in a more advanced production context.
|
# ¿ Mar 11, 2016 08:22 |
|
|
# ¿ May 4, 2024 16:44 |
|
spongeh posted:https://github.com/veandco/go-sdl2 These bindings work very well, but the biggest thing for me was just the lack of debugging tools. printf debugging doesn't cut it for game dev, and there wasn't anything promising that worked and didn't murder performance either. This was 6 months ago, I think I've seen a project or two that I didn't find originally that might be good once it matures, but I eventually went with a Lua based platform for my tinkering (love2d.org) Have you tried Delve for Go debugging? Just started using it with VS Code. Don't have much to say other than it's a thing but dunno if it's any good.
|
# ¿ Apr 8, 2016 03:31 |
|
Hadlock posted:I just wanted to say, I spent about 80% of my time today at work writing Go on Microsoft VS Code on a Mac. I am pretty sure 12 year old me in the early 90s would have never guessed that in a million years. Same, for so many reasons.
|
# ¿ Apr 21, 2016 12:03 |
|
I love how naturally Go handles both low-level and high-level stuff. I can be implementing an SSLv2 handshake one day and dealing in raw bytes easily (something I always hated doing in Python) and then just as easily (and readably) be working at a much higher level of abstraction and it all feels the same.
|
# ¿ Apr 26, 2016 12:39 |
|
VOTE YES ON 69 posted:Go rules so hard there's not much to say about it. Way more like a reimagined C than Java though. That it's GC'd is a red herring, outside of specific niches GC shouldn't be a thing devs should worry about. We used godep before 1.5 but have been using glide since and I prefer it. Not having to vendor dependencies and just relying on reproducible deploys via 'glide install' is nice. The tool lacks maturity in some areas but it's constantly being improved so I'm hopeful.
|
# ¿ Oct 8, 2016 20:04 |
|
Bozart posted:That is what I put in the go user survey as something go could use. (Also I put multi-dimensional arrays but hey, that poo poo ain't coming anytime soon) What do you mean by multi-dimensional arrays? You can do slices of slices to arbitrary depth, right?
|
# ¿ Dec 15, 2016 02:31 |
|
Hadlock posted:Will have to double check when I get home, I have a list of about 11 plugins I run that gets my workflow done. Yeah, I made go vet and go lint Jenkins build status checks on all PRs. Also, there's one guy at the company who doesn't use goimports consistently and I will probably have to kill him. I love the tooling in go.
|
# ¿ Apr 19, 2017 02:42 |
|
You want to write your own MarshalJSON and UnmarshalJSON functions to implement the Marshaler and Unmarshaler interfaces. This blog post is ok: http://choly.ca/post/go-json-marshalling/ Otherwise, just read the json package and how they implemented marshal/unmarshal, you're basically gonna modify that.
|
# ¿ Dec 21, 2017 22:37 |
|
nern posted:Just started working on a project at work. We’re rebuilding the backend of a web application. It was all node.js and AWS lambdas. Were rebuilding it as a monolithic Go application. Why the move away from serverless? Performance?
|
# ¿ Feb 26, 2018 13:20 |
|
The whole point of using schemas is that you can enforce schema migration rules to ensure either backwards or forwards compatibility (or both) and have a mixed ecosystem where producers of data are updated at different rates and use different schema versions and still work correctly. Enums can often break this very quickly since while you usually can't change the data type of a field as part of a migration, enums end up being an exception despite the fact that adding a new value to an enum is really altering the data structure. Enums suck and shouldn't be hard in a schema-first architecture, in my opinion, except for the rare case of actual static enum structures that do not need to grow or shrink over time.
|
# ¿ Sep 14, 2018 12:26 |
|
|
# ¿ May 4, 2024 16:44 |
|
canis minor posted:Is there a way to easily parse a JSON structure in Go? Let's say I've got: As a strong advocate of schema-first design, I would argue for approach 1. Assuming you use an actual schema like Avro or Protobuf, you can easily leverage code generation to turn all that into Go struct types for you.
|
# ¿ Nov 5, 2018 18:02 |