Testing Legacy Code Elliotte by Rusty Harold

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 12

  • @flamingg1
    @flamingg1 8 ปีที่แล้ว +7

    Brilliant - no wonder Google is ahead of the rest out there with guys like Rusty around

  • @BangsarRia
    @BangsarRia 7 หลายเดือนก่อน

    Recently, in a large Java codebase that had no automated tests of any kind, I found API methods that were not called from anywhere in the Git repos and the terminology in the methods did not match. I did not want to waste substantial time writing tests and refactoring this code if it wasn't used.
    I asked a dev team in another country and fortunately they knew that their code called these methods by composing JSon strings from DB tables into scripts that were interpreted by the MVEL interpreter and then invoked by it.
    So, as ERH predicts in the video, I found substantial snippets of dead code to remove, but the seemingly dead API methods were actually relied upon by an application in another country that used the framework and added extensive subclasses for local logic.

  • @InvitusCode
    @InvitusCode 4 ปีที่แล้ว +16

    I hope this Video will help me... At this moment, I am working on the nightmare legacy code project (12 years development, no documentation, no testing, few comments in code) ... This is so frustrating. Before this fucked up task, i really liked my job :( Have a good day, greetings from software hell!

    • @nathantorquato9777
      @nathantorquato9777 3 ปีที่แล้ว

      so.. did it help you?

    • @SylvainBrunerie
      @SylvainBrunerie 3 ปีที่แล้ว

      I feel you, I’ve been in the same situation for a few years… I’m just starting to realize refactoring legacy code is a whole different skill as writing new code, and videos like this one really helped. Just today I managed to get myself out of despair working on a specific function, methodically refactoring it step by step until I felt comfortable changing its behaviour. It can actually be a great feeling! I still have a lot to learn, but I think one of the keys is to stop banging your head against the walls and slowly, methodically, bring the function to a manageable state before trying to add a feature/change behaviour.

  • @roosterslab678
    @roosterslab678 3 ปีที่แล้ว +1

    I can hear and understand him at 2x also ...clear voice 👌

  • @SylvainBrunerie
    @SylvainBrunerie 4 ปีที่แล้ว +4

    What is this browser that doesn’t remember zoom level in between pages?… Weird

    • @Nemethszyszy
      @Nemethszyszy 3 ปีที่แล้ว

      Haha, exactly. I was also wondering what's this. At the same time I liked the simplicity of the slides and zooming all the time just made me realize that more.

  • @TheodoreRavindranath
    @TheodoreRavindranath 2 ปีที่แล้ว +1

    Seems the video title is wrong... should be "Testing Legacy Code" by Elliotte Rusty Harold

  • @pablohernandez4305
    @pablohernandez4305 2 ปีที่แล้ว

    Thanks for this great video.

  • @BaronVonTacocat
    @BaronVonTacocat 6 ปีที่แล้ว +1

    @48:13 I came here because I was reading that book!
    LOLZ

  • @siros4207
    @siros4207 7 ปีที่แล้ว

    excellent