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

[?]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

[?]Dev Leader »
@devleader@hachyderm.io

#refactoring boosted

[?]Dev Leader »
@devleader@hachyderm.io

There comes a time in every developer's life where we're faced with this...

Read more here:
devleader.ca/2023/11/27/refact

    #refactoring boosted

    [?]Dev Leader »
    @devleader@hachyderm.io

    #refactoring boosted

    [?]Dev Leader »
    @devleader@hachyderm.io

    #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

      [?]Hacker News » 🤖
      @h4ckernews@mastodon.social

      #refactoring boosted

      [?]Inautilo »
      @inautilo@mastodon.social


      Integrating CSS Cascade Layers · Cascade Layers without breaking a legacy codebase ilo.im/166s9p

      _____

        #refactoring boosted

        [?]Dev Leader »
        @devleader@hachyderm.io

        #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

        [?]Dev Leader »
        @devleader@hachyderm.io

        "Extract Method" is one mof the most foundational refactoring techniques for us to use.

        Read more here:
        devleader.ca/2024/03/06/extrac

          #refactoring boosted

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

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

          dev.to/ingosteinke/constant-re

            #refactoring boosted

            [?]Dev Leader »
            @devleader@hachyderm.io

            Refactoring code is a critical software engineering skill -- Can you do it?

            Read more here:
            devleader.ca/2024/02/29/refact

              #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

                [?]Hacker News » 🤖
                @h4ckernews@mastodon.social

                #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/

                    #refactoring boosted

                    [?]Volker Stolz »
                    @fm_volker@mastodon.social

                    “This was done by an LLM, and then reviewed by a human. [..] The break became a continue, turning errors into infinite loops. [..] small enough change in a larger code movement that we didn’t notice it during code review.”

                    Queue the LLM-apologists and something about “thou shalt have test cases” in 3..2..

                    (Though I feel I should put that tag into scare-quotes)

                    From: @nixCraft
                    mastodon.social/@nixCraft/1149

                      #refactoring boosted

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

                      Bài viết về Refactoring ASP.NET: Ánh xạ kết quả miền vào phản hồi HTTP. Tác giả đề xuất cách làm sạch mã điểm cuối API, dễ bảo trì hơn bằng cách dùng Result pattern và filter.

                      dev.to/alexdevfx/aspnet-refact

                        #refactoring boosted

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

                        Cải thiện code .NET của bạn với Code Metrics và Refactoring Controller! Bài viết hướng dẫn cách sử dụng các chỉ số để xác định và sửa code "spaghetti", giúp code dễ bảo trì, dễ đọc và dễ kiểm thử hơn.

                        dev.to/rupinder_kaur_6730d267d

                          #refactoring boosted

                          [?]Leanpub »
                          @leanpub@mastodon.social

                          Static Analysis and Automated Refactoring leanpub.com/b/static-analysis- by Matthias Noback matthiasnoback@mastodon.social and Tomas Votruba is the featured bundle of ebooks 📚 on the Leanpub homepage! leanpub.com

                            #refactoring boosted

                            [?]Sébastien Roccaserra 🐿️ »
                            @sroccaserra@mastodon.social

                            The ranged W command was great to perform a Move Method to another class.

                            W appends a selected block from the current file to another file. Then you can edit the other file and move the appended block to its correct position with the m command. A few substitutions later, and the Move Method was done without leaving ed.

                              #refactoring boosted

                              [?]Leanpub »
                              @leanpub@mastodon.social

                              Leanpub book LAUNCH 🚀 Build a Database Server: Learn how real databases work by following this practical guide to building your own by Chris Zetter

                              Watch here:

                              youtu.be/LvZ_ZXwbJP4

                                #refactoring boosted

                                [?]Jon Reid »
                                @qcoding@iosdev.space

                                Do you ever skip trying to use automated refactoring because it's too annoying in Xcode? qualitycoding.org/xcode-key-bi

                                iOS Dev Tools & Techniques

Xcode Key Bindings to Make Refactoring Less Painful

Quality Coding with Jon Reid

                                Alt...iOS Dev Tools & Techniques Xcode Key Bindings to Make Refactoring Less Painful Quality Coding with Jon Reid

                                  #refactoring boosted

                                  [?]Sébastien Roccaserra 🐿️ »
                                  @sroccaserra@mastodon.social

                                  Example of scope, I currently want to invert the condition on the name here:

                                  *34,40n
                                  34 } else {
                                  35 if (item.quality > 0) {
                                  36 if (!item.name.equals("Sulfuras, Hand of Ragnaros")) {
                                  37 item.quality = item.quality - 1;
                                  38 }
                                  39 }
                                  40 }

                                  This is fine if I do one thing at a time.

                                  Also: ed edits could be a great format for toots 🤔

                                    #refactoring boosted

                                    [?]Sébastien Roccaserra 🐿️ »
                                    @sroccaserra@mastodon.social

                                    It's going well so far:

                                    *!git log --oneline | cut -d' ' -f2- | tac
                                    Starting point
                                    Simplify for loop
                                    Invert the first if
                                    Split first if
                                    Invert if on sulfuras
                                    Permute ifs for sulfuras
                                    Join first 'if else's

                                    I think I can now say it's totally doable and even worth repeating this kata a few times.

                                      [?]Sébastien Roccaserra 🐿️ »
                                      @sroccaserra@mastodon.social

                                      Totally random thought: would I be able to do the Gilded Rose kata using only the ed text editor in a reasonable time?

                                      Goals:
                                      1) have fun,
                                      2) look like a fool,
                                      3) learn enough ed to later be able to script complex text changes across files,
                                      4) also level up in sed and vim

                                      Reason: ed(1) is the standard Unix text editor.

                                        #refactoring boosted

                                        [?]Jon Reid »
                                        @qcoding@iosdev.space

                                        Stop right-clicking to refactor in Xcode qualitycoding.org/xcode-key-bi

                                        Sloth working in DMV in Zootopia film

                                        Alt...Sloth working in DMV in Zootopia film

                                          #refactoring boosted

                                          [?]Antoine - Software therapist »
                                          @avernois@piaille.fr

                                          Summer is often quieter in dev teams : it's a good time to work on big refactoring and code cleanup.
                                          If you'd like/want/need a hand/some advice, I'm available :)

                                          piaille.fr/@avernois/113859868

                                            Back to top - More...