• @AgreeableLandscapeOP
    link
    English
    6
    edit-2
    1 year ago

    Without changing anything else about how the code is managed, which, doubtful considering Musk (at least not for the better), a rewrite will end up just as dysfunctional as the original codebase by the time it’s reimplemented all the features.

    And if you were committed to changing your coding practices, a rewrite would almost invariably be unnecessary as slower incremental revisions will invariably cause the codebase to turn over and shed the problematic parts while keeping the working stuff.

    When larger codebases than Twitter have managed to completely shift languages without a full rewrite, this idea is coming from ego and Elon’s savior complex, and not a place of logic and actual necessity. Not even shift languages like Java to Kotlin (which, Twitter is written in Scala which is another primarily JVM language) I’m talking full ecosystem shifts like PHP to Python or JavaScript to Rust while keeping the codebase continuous. Not saying it’s easy, but it can at least be mostly painless if and only if it’s managed correctly. For context, Google has switched from Python to Go for its core infrastructure, Firefox is switching from C to Rust and Tor is following the same route, Patreon changed from PHP to Python a few years ago, and Discord is also switching its core infrastructure code from (IIRC) Node.js to Rust.