Skip to content

Rewrite in Typescript #839

Closed
Closed
@qsniyg

Description

I'm finding myself increasingly nervous in modifying any part of the codebase, especially bigimage_recursive and bigimage_recursive_loop (function names are evidently not my strong suit).

Rewriting in Typescript will allow the code to be significantly stricter, and would have prevented a fair amount of the regressions that plagued earlier versions (including the gallery bug in 0.19.3/4).

Also, by using Typescript, this script can also leverage technologies such as babel, allowing for async/await (without removing support for older/more esoteric browsers), which would significantly reduce callback hell, and I presume would make bigimage_recursive much simpler as well.

Of course, this would be a massive undertaking, but at this point development of new features for the script has nearly reached a halt, so I believe the time taken away to rewrite this would in the end be worth it. Hopefully this could also allow contributors to not be scared away by the hideous monster that is the codebase.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions