2
ryde96
12d

What do you like best/least about Go?

Comments
  • 1
    Best: goroutunes, defer, c-like minimalism, awesome build process, super good tools

    Worst: *some* more features would be nice like generics, if you wanna use a struct just once the inline definition is ugly if you don't wanna write a typedef for it, there should be a compiler flag that allows for unused variables/imports (for testing)
  • 1
    @GodlikeBlock Oh yeah, the compilation errors you get just because a variable is unused are ridiculous.
  • 1
    I just started with it and so far I don’t really like that it’s best practice to name all variables as single letter, so it makes hard to follow code, which context is unknown. Yet I love it’s minimalism and how intuitive it is.
  • 1
    @gintko Is that actually best practice? Just ignore that best practice and name the variables properly, just like everyone else on GitHub does.
  • 0
    Good: channels, public/private convention
    Bad: no Overloading or presetting certain arguments(i prefer the last), i miss __doc__ from Python. Also everything from @GodlikeBlock
  • 1
    @filthyranter well, I am mostly following go source itself, and based on some highlighted golang review comments, it’s says to name vars as single letter, where it’s clear from scope context what it is, but I see it abused a lot, so it makes harder to read code. Also, it’s sometimes annoying that a lot of common names are reserved (e.g. type). Anyway, I am of course my own king of my own code, but still I prefer to follow some officially accepted code style.
  • 0
    It’s easy, lightweight and fast. And I like channels and Go routines.

    Currently I’m using it not that much, so I have that problems (for now).
  • 2
    Definitely the gopher mascots. Also goroutines and channels are cool.. but not as cool as the gophers.

    Man. I fucking love those little guys.
  • 0
    @gintko link to where it says to name variables one letter? I call bullshit.
  • 0
  • 1
    @gintko wtf... I mean it does say to use descriptive names if the variable has big scope, but still wtf.. I prefer lineCount to c...
Your Job Suck?
Get a Better Job
Add Comment