News for hackers. Stuff that matters.
Re:Announcing TypeScript 2.1 by ggregoire on Wednesday December 07, 2016 @02:26PM (#13125386)
Why would their algorithm stop to work if your code gets large? It's not some kind of magic. :)

My current project has 10,000 LOC and 130 files. If I use "Rename symbol" on something imported in different files of my project, the editor will open all the files, edit all the names and just wait for me to save the changes.

Re:Announcing TypeScript 2.1 by 13years on Wednesday December 07, 2016 @02:33PM (#13125447)
Doesn't work at all for me. My project has about 500k+ LOC. I suspect though it isn't the size of project, but certain patterns of design that work or don't work in non typed JS.

However Brackets does better at finding method definitions. Even in my mess of a project with non typed JS, Brackets can always find the method definition or at least give me possible choices.

Re:Announcing TypeScript 2.1 by johnfn on Thursday December 08, 2016 @01:40AM (#13128828)
> Why would their algorithm stop to work if your code gets large? It's not some kind of magic. :)

Their algorithm always fails on certain cases. If your code base is larger, it's more likely to contain those cases.

Example case that will always fail:

    const x = { foo: () => {} }
    x["f" + "oo"]();
Now rename foo to bar.

Yes, this is a contrived case, but we had similar code in production at my last job.