senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. B̅ (cmplstofb@mathtod.online)'s status on Thursday, 25-Aug-2022 09:51:28 JST B̅ B̅

    GNU lsくんのクソデカ条件文すき(嫌い)

    http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/ls.c?id=e5dae2c6b0bcd0e4ac6e5b212688d223e2e62f79#n3137

    こんだけ長くなったら条件を副ルーチンに分けたほうが良くないですかね……?

    In conversation Thursday, 25-Aug-2022 09:51:28 JST from mathtod.online permalink
    • B̅ (cmplstofb@mathtod.online)'s status on Thursday, 25-Aug-2022 10:01:30 JST B̅ B̅
      in reply to

      有名なOSSの怖いコードといえばこれも相当ヤバそうで好き↓https://git.kernel.org/pub/scm/utils/dash/dash.git/tree/src/main.c?id=057cd650a4edd5856213d431a974ff35c6594489#n175

      In conversation Thursday, 25-Aug-2022 10:01:30 JST permalink

      Attachments


      1. https://mathtod.online/system/media_attachments/files/108/880/807/892/984/537/original/84e9d93e123dfc98.png
    • B̅ (cmplstofb@mathtod.online)'s status on Thursday, 25-Aug-2022 10:03:34 JST B̅ B̅
      in reply to

      こんだけ広く使われてるシェルなのに,switch文の条件がif文の途中に食い込むとかいうわけわからんソースコードで動いてるの怖すぎでしょ。

      In conversation Thursday, 25-Aug-2022 10:03:34 JST permalink
    • B̅ (cmplstofb@mathtod.online)'s status on Thursday, 25-Aug-2022 10:06:45 JST B̅ B̅
      in reply to

      あと個人的にこれが正しい文法と見做されるC言語の仕様にもビックリする。C言語だと技巧的なコード書きやすいんだろうなぁ。

      In conversation Thursday, 25-Aug-2022 10:06:45 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.