GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    pistolero (p@fsebugoutzone.org)'s status on Wednesday, 19-Feb-2025 14:57:09 JSTpistoleropistolero
    in reply to
    • 
    • :blank:
    @i @mint

    > is if err != nil { return nil, err } any better?

    Yes. Guard clauses are better than indeterminate levels of nesting. Anyone who has personally encountered "callback hell" can tell you this was true in chodejs (before it came up with one of the dumbest possible ways of doing CSP), same with anyone that had to deal with single-point-of-return languages after Dijkstra wrote that anyone that puts multiple returns in a single function has cooties.

    > what happens when you forget to copy paste it once, and no one notices for 6 years?

    If you're copying and pasting much, you're doing it wrong. At any rate, pointing out that Go has infelicities doesn't mean anything; any language has infelicities. But some languages are nice and you can write code that you are happy with, and some languages suck and the code looks ugly even if it was written by people that are fluent.

    To expand on your point about how we could all get by with COBOL, COBOL does that "ADD 1 TO X YIELDING Y" bullshit and that is verbose and ugly: it's not a matter of engineering discipline, the language is a pain in the ass, and full of boilerplate. All the engineering discipline in the world doesn't make COBOL a nicer language than, say, Forth or even FORTRAN.
    In conversationWednesday, 19-Feb-2025 14:57:09 JST from fsebugoutzone.orgpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.