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

[?]Windy city » 🌐
@pheonix@hachyderm.io

Just a random evening thought I wanted to share.

One specific peculiarity of the software engineering discipline is the slow realization that "clever" code is sometimes a liability. I divided my rationalization in three stages.

Stage 1: You want to use every design pattern, abstraction and fancy trending framework you read about on Hacker News.
Stage 2: You realize you're the one who has to debug that mess at 3am six months from now.
Stage 3: You start optimizing for a fictional person. That person is a junior who hasn't had their first coffee yet and you want readability of code more than anything lol

Which is why I never quite believed in LOC as an impressive metric. For me, a good PR is as much about reducing 500 lines of legacy technical debt while keeping the system stable as it is about adding a new shiny feature. Anyone else feel this way?

    #refactoring boosted

    [?]Windy city » 🌐
    @pheonix@hachyderm.io

    Just a random evening thought I wanted to share.

    One specific peculiarity of the software engineering discipline is the slow realization that "clever" code is sometimes a liability. I divided my rationalization in three stages.

    Stage 1: You want to use every design pattern, abstraction and fancy trending framework you read about on Hacker News.
    Stage 2: You realize you're the one who has to debug that mess at 3am six months from now.
    Stage 3: You start optimizing for a fictional person. That person is a junior who hasn't had their first coffee yet and you want readability of code more than anything lol

    Which is why I never quite believed in LOC as an impressive metric. For me, a good PR is as much about reducing 500 lines of legacy technical debt while keeping the system stable as it is about adding a new shiny feature. Anyone else feel this way?

      #refactoring boosted

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

      [Перевод] Гексагональная архитектура в Rust: отвязываем бизнес-логику от Solana

      Представьте: вы строите сервис выдачи дипломов на Solana. Всё отлично, пока дело не доходит до тестов. Внезапно оказывается, что для проверки бизнес-логики нужно поднимать валидатор, искать тестовые токены и молиться на стабильность сети. Знакомая боль? В этой статье я покажу, как мы решили проблему, используя async-trait и dyn Trait. Мы превратили интеграционные тесты длиной в минуты в юнит-тесты, которые проходят за миллисекунды. Узнать решение

      habr.com/ru/articles/983874/

        #refactoring boosted

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

        Январский рефакторинг: 7 дней, чтобы почистить Python веб‑проект

        Январь - самое удобное время разобрать завалы в проекте. Пол‑команды ещё в отпусках, pull‑реквестов меньше, product owner'ы только вспоминают, что планировали делать в этом году - можно спокойно пройтись по коду и навести порядок. В этой статье пойдёт речь о нескольких косметических действиях, которые, с одной стороны, почти не затрагивают логику программы и не вызывают ненависти у тестировщиков, а с другой - делают код чуть приятнее и дают темы для обсуждения на бэкенд‑созвонах. Мы разложим импорты, перенесём логику из роутов в контроллеры, а из контроллеров - в репозитории и сервисы, избавимся от requirements.txt в пользу нормального менеджера зависимостей и включим mypy.

        habr.com/ru/articles/983172/

          #refactoring boosted

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

          #refactoring boosted

          [?]Leanpub » 🌐
          @leanpub@mastodon.social

          Leanpub book LAUNCH 🚀 The Other Half of Coding: What they Didn't Teach You by Max Guernsey, III

          Watch here: youtu.be/lDwuiSwaCf4

            8 ★ 4 ↺
            kabel42 boosted

            [?]Amitai Schleier » 🌐
            @schmonz@schmonz.com

            It’s hard to fix something because it’s easy to break something else?

            That’s your clue: refactor first.

            (Special case of the general KFB wisdom “First make the change easy, then make the easy change.”)