• 3 Posts
  • 559 Comments
Joined 2 years ago
cake
Cake day: August 4th, 2023

help-circle











  • The Go programming language documentation makes a big deal about how it “reads from left to right.” Like, if you were describing the program in English, the elements of the Go program go in the same order as they would in English.

    I say this as someone who likes Go as a language and writes more of it than any other language: I honestly don’t entirely follow. One example they give is how you specify a type that’s a “slice” (think “list” or “array” or whatever from other languages) of some other type. For instance a “slice of strings” would be written []string. The [] on the left means it’s a slice type. And string on the right specifies what it’s a slice of.

    But does it really make less sense to say “a string slice”?

    In Go, the type always comes after the variable name. A declaration might look like:

    var a string
    

    Similarly in function declarations:

    func bob(a string, b int, c float64) []string { ... }
    

    Anyway, I guess all that to say I don’t mind the Go style, but I don’t fully understand the point of it being the way it is, and wouldn’t mind if it was the other way around either.

    Edit: Oh, I might add that my brain will never use the term “a slice of bytes” for []byte. That will forever be “a byte slice” to me. I simply have no choice in the matter. Somehow my brain is much more ok with “a slice of strings”, though.


  • My company recently announced to the whole IT department that they’re contracting with Google to get Gemini for writing code and stuff. They had someone from Google even give a presentation rife with all kinds of propaganda about how much Gemini will “help” us write code. Demoed the IntelliJ integration and everything. I wouldn’t say we were “asked” to use it, but we were definitely “encouraged” to." But since then, there’s been no information on how actually to use our company-provided Gemini license/integration/whatever. So I don’t think anyone’s using it yet.

    I’d love to tell everyone on my team not to use it, and I am kindof “in charge” of my team a bit. But it’s not like there aren’t many (too many) levels of management above me. And it’s clear they wouldn’t have my back if I put my foot down about that. So I’ve told my team not to commit any code unless they understand it as well as they would had they written it themselves. I figure that’s sufficiently noncommittal that the pro-Gemini upper management won’t have a problem with it while also (assuming anyone on my team heeds it) minimizing the damage.




  • I’ll try to say this delicately enough to not get banned…

    The modlog (which also contains the full text of my post) cites as the reason for the removal of my post “rule 1” which according to the sidebar is “Be civil and nice.”

    I think they consider any criticism of the government of Iran to be “incivility” and/or “meanness”.

    (Hopefully I’m not misinterpreting the mods here. Mods, please feel free to step in and correct any such misrepresentation.)


  • I gave you an upvote.

    I could see a case for using “working person” instead of “worker.” It’s definitely not the sort of thing that’s agreed to be exploitative language (yet?) though.

    What I do for sure bristle at a lot more is referring to people as “resources.” Like, when planning a project, discussing how many “resources” can be “put on the project”. Definitely feels dehumanizing.