vscode-glean icon indicating copy to clipboard operation
vscode-glean copied to clipboard

Suggestion: rename "stateful" and "stateless" to class and function respectively

Open OliverJAsh opened this issue 7 years ago • 6 comments

Thanks for this amazing project!

Quick suggestion: could we rename "stateful" and "stateless" to class and function respectively? Rationale:

There are function and class components. Both can be stateful or stateless but that’s an implementation detail.

As per https://mobile.twitter.com/dan_abramov/status/1057625147216220162

OliverJAsh avatar Nov 01 '18 08:11 OliverJAsh

Hey @OliverJAsh ! I've also noticed that tweet, and I agree completely. Always hated those terms, but they were better known within the community and they also fit the terms used in Typescript types definition for React.

Care for a PR? I'd love to assist/split the work. Basically, the change involves

  • Changing the labels
  • Renaming variables and functions within the codebase
  • Changing filenames
  • Updating the docs

borislit avatar Nov 01 '18 14:11 borislit

I noticed this as well. Just set a reminder for myself on Jan 2nd after the holidays to see if this is still open. If so, I'll try and find some time to submit the PR. 😃

itzsaga avatar Dec 11 '18 16:12 itzsaga

@itzsaga awesome! I'd love to assisst and point you in the right direction!

borislit avatar Dec 11 '18 17:12 borislit

@borislit, back! Ready to be pointed in the right direction 😃 outside of just a project search for the two strings.

itzsaga avatar Jan 09 '19 14:01 itzsaga

@itzsaga hey! Thanks for the initiative :) Ill create a list for ya later tonight :)

borislit avatar Jan 13 '19 13:01 borislit

Hey @itzsaga ! Sorry for not getting back to You! I was busy working on the Hooks support. Now that its here, This change makes ALOT of sense. Later tonight ill point out the places We'll need to change

borislit avatar Feb 13 '19 08:02 borislit