Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foray into TypeScript #384

Open
haowens opened this issue Oct 3, 2024 · 1 comment
Open

Foray into TypeScript #384

haowens opened this issue Oct 3, 2024 · 1 comment
Assignees
Labels

Comments

@haowens
Copy link

haowens commented Oct 3, 2024

Background

TypeScript extends JavaScript (which we currently use for all frontend) but with more rigorous typing. This is kind of adjacent to the frontend testing issues open here, as the main motivator for Typescript existing is to preemptively catch errors at compile time that could indirectly result from interim changes to elaborate Javascript code.

I've used it in the past and it's ultimately been really useful and satisfying, but there are also times where it frustratingly tells you that you can't do something--and it's probably because it's right--but you just know JavaScript would let you do it and it wouldn't technically ~ break ~ anything.

Proposal

Basic research on the history of TypeScript and its maintenance, testimonial research into its effectiveness as a shorthand for frontend testing, what features it brings to the table that JS doesn't and why they're useful (i.e. generic typing, object oriented, supports functional interfaces), what using it with React looks like, etc.

Deliverables

Little write-up of sorts that covers the proposal.

Timeline

A day's worth of focus, I'm thinking

@haowens haowens added the R&D label Oct 3, 2024
@haowens haowens self-assigned this Oct 3, 2024
@haowens
Copy link
Author

haowens commented Oct 3, 2024

Ultimately don’t think we should change anything at this exact moment, but I also still think this is a good idea. But, this has been a fun first thing to look into because people have egos and Strong opinions. Also will say that looking at all the formatted, typed code does give me the itch to try writing things in TS.

promised deliverable: https://docs.google.com/document/d/1J6yJ4-EpQI8YnOKsJqhR5zfnA9I3wuLkp5LnOI06Bck/edit?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant