schmonz.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Search results for tag #Refactoring

#refactoring boosted

[?]Jakob Miksch »
@jakobmiksch@mastodon.social

#refactoring boosted

[?]Frontend Dogma » 🤖
@frontenddogma@mas.to

#refactoring boosted

[?]DevTo VN Bot » 🤖
@devto_vn_bot@mastodon.maobui.com

Chúng ta dành nhiều thời gian đọc code hơn viết code, nhưng lại ít được dạy cách đọc hiệu quả. Bài viết chia sẻ 3 kỹ thuật quan trọng: nhận biết code cần refactor (nếu phải đọc 2 lần), thấu hiểu khi xem code của người khác và coi đọc code là cách tốt nhất để nâng cao kỹ năng lập trình. Đọc code giúp bạn giỏi hơn!

dev.to/canro91/3-code-reading-

#refactoring boosted

[?]DevTo VN Bot » 🤖
@devto_vn_bot@mastodon.maobui.com

Một lập trình viên chia sẻ hành trình refactor code và cách xử lý tình huống "oh shit" với Git Rebase! Từ tách logic config sang module riêng, gom message help/version vào utils, thay số ảo bằng constexpr, đến việc dùng rebase -i để gộp commit lộn xộn thành một commit sạch đẹp. Bài học: luôn tạo branch khi refactor và kiểm tra kỹ trước khi merge! 💻

dev.to/elsad_humbetli_0971c995

    #refactoring boosted

    [?]dtanzer »
    @dtanzer@social.devteams.at

    New video: I'm not completely happy with some names, so I change them to "honest & complete" - That makes them much longer and more verbose, but at least they say what the objects do now...

    PeerTube: videos.devteams.at/w/n8TDBBWWP
    YouTube: youtu.be/i0ULT8iE9Xk

      Ted M. Young boosted

      [?]dtanzer »
      @dtanzer@social.devteams.at

      Some more : First, I simplify some unit tests, then I add a common interface for some objects that are all stages of a process. Feedback welcome!

      Video on PeerTube: videos.devteams.at/w/orkDdvXUe
      Or if you prefer YouTube: youtu.be/s6E1dSFHGxs

        #refactoring boosted

        [?]Frontend Dogma » 🤖
        @frontenddogma@mas.to

        #refactoring boosted

        [?]DevTo VN Bot » 🤖
        @devto_vn_bot@mastodon.maobui.com

        Câu chuyện refactor ứng dụng Java của PVS-Studio: Từ code rối rắm với static methods, Singletons, đến tích hợp DI bằng Guice, làm sạch style theo Google Java Style, và xây dựng module annotation mới hỗ trợ taint analysis & JSON user-defined. Kiến trúc modular, dễ mở rộng hơn!

        dev.to/pvsdev/how-we-integrate

        #refactoring boosted

        [?]Karsten Schmidt »
        @toxi@mastodon.thi.ng

        After almost a week of refactoring and experimenting with several different approaches, I've updated my Zig nD SIMD vector library to be compatible with the latest Zig 0.15.1, and at the same time cleaned up some internals.

        The solution I settled on is a mix of techniques proposed by others, and was needed due to the removal of the struct/namespace-merging syntax in the new Zig version, which this library heavily relies on. I don't like that the new source code is now more than 2x larger and involves a huge amount of duplication to address the many special cases of supported operations for different vector sizes and types. I might still take another pass to eliminate those (by using `@compileError()` for unsupported cases), but that'd be an implementation detail downstream users don't have to care about. I tried AOT code generation as well, but the special case handling made this feel less maintainable...

        UPDATE: The only breaking change is the handling of vector swizzles. I had to remove the hundreds of named swizzle functions and replaced them with a single (comptime optimized) `.swizzle(vec, pattern)`, e.g. `.swizzle(vec, "xxyy")`...

        If you're interested, the new code is here:
        github.com/thi-ng/zig-thing/bl

        The readme contains details about the many supported operations:
        github.com/thi-ng/zig-thing/bl

        Installation instructions in the main repo readme:
        github.com/thi-ng/zig-thing/tr

          #refactoring boosted

          [?]DevTo VN Bot » 🤖
          @devto_vn_bot@mastodon.maobui.com

          Cải thiện code với Refactoring! 🔄 Từ "Callback Hell" lộn xộn đến code sạch với Promise và Async/Await. Từng bước nhỏ, code lớn.

          dev.to/emiderex/from-chaos-to-

          #refactoring boosted

          [?]Frontend Dogma » 🤖
          @frontenddogma@mas.to

          Constant Refactoring: Refactoring My Refactored Website, by @openmindculture.bsky.social:

          dev.to/ingosteinke/constant-re

            #refactoring boosted

            [?]Frontend Dogma » 🤖
            @frontenddogma@mas.to

            #refactoring boosted

            [?]DevTo VN Bot » 🤖
            @devto_vn_bot@mastodon.maobui.com

            Website của tôi đang được refactor liên tục vì các thay đổi trong các gói npm. Mục tiêu là cải thiện khả năng bảo trì, hiệu suất và tuân thủ các phương pháp tốt nhất.

            dev.to/ingosteinke/constant-re

              #refactoring boosted

              [?]Domain-Driven Design Europe »
              @dddeu@m.aardling.social

              🔄 Moderniser un système existant sans tout casser ? C'est possible ! Découvrez nos stratégies de migration et cohabitation avec le legacy dans notre formation Architecture Modulaire et Pragmatique. Théorie + pratique + retours d'expérience = réussite assurée !

              👉 ddd.academy/architecture-modul

                #refactoring boosted

                [?]DevTo VN Bot » 🤖
                @devto_vn_bot@mastodon.maobui.com

                Tái cấu trúc mã lộn xộn: Tăng tính liên kết, giảm tính phụ thuộc. Phân tách rõ ràng các class, sử dụng interface và injection để code dễ bảo trì, dễ test.

                dev.to/abhinawkr/refactoring-m

                #refactoring boosted

                [?]InfoQ »
                @infoq@techhub.social

                💡 This is the story of how built a type checker to make developers happier, and how they're building a Ruby package system to introduce modularity.

                This video shares high-level strategies for any team that wants to run a migration in a large, stubborn codebase.

                🎥 Watch now: bit.ly/45en6uJ

                📄 included

                  #refactoring boosted

                  [?]Habr » 🤖
                  @habr@zhub.link

                  RUG — малоизвестный, но фундаментальный принцип Clean Code

                  Многие разработчики при обсуждении основ Clean Code называют одни и те же принципы — чаще всего упоминаются DRY , KISS и YAGNI . Эти концепции прочно закрепились в профессиональном сообществе и воспринимаются как обязательная часть хорошего кода. Принцип RUG упоминается значительно реже. Чаще всего о нём узнают с опытом, а многие применяют его интуитивно, даже не подозревая, что для этого подхода существует отдельное название и формулировка. Сегодня я хочу поговорить о принципе RUG и о том, какие рекомендации он даёт по написанию программного обеспечения. RUG ( Repeat Until Good ) — это принцип, который говорит: можно повторять один и тот же код, пока это разумно. На ранних этапах разработки важнее просто реализовать логику, исходя из текущих требований, чем пытаться сразу создать «идеальную» абстракцию. В этот момент задача — как можно быстрее получить рабочее решение, которое отражает текущие знания о системе. Но со временем, когда одна и та же логика начинает встречаться всё чаще, становится очевидно, что её удобнее и правильнее выделить в отдельную, чётко оформленную абстракцию, чтобы избежать дублирования и упростить дальнейшую поддержку. Мы используем этот принцип каждый раз, когда пишем код. Ведь практически любую логику можно сделать более абстрактной и масштабируемой — вопрос лишь в том, когда наступает подходящий момент для этого. Я буду использовать TypeScript , так как этот язык знаком большинству разработчиков. 😁

                  habr.com/ru/articles/934986/

                    Back to top - More...