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
    Clément Robert :python: (neutrinoceros@fosstodon.org)'s status on Saturday, 16-Mar-2024 00:42:02 JST Clément Robert :python: Clément Robert :python:

    Working on my first actual #rustlang (toy) project, which is nothing fancy, I started noticing how having the `Option` and `Result` enums baked into the standard library forces me to think about edge cases from the start so I know that when my code finally compiles, many rough edges are already solved.
    It doesn’t remove the need for tests, but it definitely helps building robust software from the get go !

    In conversation Saturday, 16-Mar-2024 00:42:02 JST from fosstodon.org permalink
    • Embed this notice
      powersoffour (powersoffour@mastodon.social)'s status on Saturday, 16-Mar-2024 00:42:01 JST powersoffour powersoffour
      in reply to

      @neutrinoceros I found the same thing! I hated it the first two times and then the third I was like, oh, hey, yeah.

      (Mind you I still am a rust newb. I've just written more than 3 Option/Result things.)

      In conversation Saturday, 16-Mar-2024 00:42:01 JST permalink
    • Embed this notice
      powersoffour (powersoffour@mastodon.social)'s status on Saturday, 16-Mar-2024 00:49:50 JST powersoffour powersoffour
      in reply to

      @neutrinoceros One thing I've been seeing in DOS stuff is often fundamental constraints were applied on certain values. Like, if a variable was defined as AX & 0x0f, then it couldn't possibly be more than 15. But when Ghidra runs into a jump table that uses an offset based on, say, (AX&0xf), it will still assume that it could taken on values up to 255 -- which ends up with jump targets all over the code. Anyway this has been kinda fun and makes me think about switch-y statements differently.

      In conversation Saturday, 16-Mar-2024 00:49:50 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.