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

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

Conversation

Notices

  1. Embed this notice
    Alex Gleason (alex@gleasonator.com)'s status on Friday, 20-Oct-2023 10:13:56 JST Alex Gleason Alex Gleason
    Both.
    In conversation Friday, 20-Oct-2023 10:13:56 JST from gleasonator.com permalink

    Attachments


    1. https://media.gleasonator.com/9d629082fca33dd28a4f619dc92c08401a1c9992cde88caf935e8b9b04bdcc4b.png
    • Embed this notice
      PunishedD (punishedd@poa.st)'s status on Friday, 20-Oct-2023 11:03:24 JST PunishedD PunishedD
      in reply to
      @alex Right. Minimal operators and maximum readability, over early return.
      In conversation Friday, 20-Oct-2023 11:03:24 JST permalink
    • Embed this notice
      Alex Gleason (alex@gleasonator.com)'s status on Friday, 20-Oct-2023 11:03:24 JST Alex Gleason Alex Gleason
      in reply to
      • PunishedD
      @PunishedD It depends on the size of the function. If there's one conditional in the whole function, absolutely prefer blue. For bigger functions with multiple failure conditions, red.
      In conversation Friday, 20-Oct-2023 11:03:24 JST permalink
    • Embed this notice
      GroundBeefHunter (groundbeefhunter@poa.st)'s status on Friday, 20-Oct-2023 11:03:34 JST GroundBeefHunter GroundBeefHunter
      in reply to
      @alex I know a guy that does:

      if (!notPass) return;
      In conversation Friday, 20-Oct-2023 11:03:34 JST permalink
      Alex Gleason likes this.
    • Embed this notice
      SashimiS (sashimis@poa.st)'s status on Friday, 20-Oct-2023 11:03:55 JST SashimiS SashimiS
      in reply to
      @alex Left. I like early return too much 😭
      In conversation Friday, 20-Oct-2023 11:03:55 JST permalink
      Alex Gleason likes this.
    • Embed this notice
      NEETzsche (neetzsche@iddqd.social)'s status on Friday, 20-Oct-2023 11:04:40 JST NEETzsche NEETzsche
      in reply to
      • PunishedD
      @alex @PunishedD even if it's just one, red
      In conversation Friday, 20-Oct-2023 11:04:40 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • 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.