@aral what is this and where do I learn about it?
Notices by McNeely (mcneely@indieweb.social)
-
McNeely (mcneely@indieweb.social)'s status on Thursday, 20-Apr-2023 02:39:55 JST McNeely -
McNeely (mcneely@indieweb.social)'s status on Wednesday, 29-Mar-2023 06:53:56 JST McNeely @aral are you familiar with Smedley Butler and the Business Plot?
-
McNeely (mcneely@indieweb.social)'s status on Tuesday, 28-Mar-2023 23:15:21 JST McNeely @aral that's what the internet is for 😁
I've been following you build Kitten out slowly. After all how, can you even call yourself a web developer if you haven't built out your own framework/build system?!
-
McNeely (mcneely@indieweb.social)'s status on Tuesday, 28-Mar-2023 23:07:09 JST McNeely @aral I'm not sure I follow this hypothetical scenario, why are a list of classes getting passed as the third argument? Or do you mean it could potentially just be using the same name (classList) as my proposed third argument array is called?
-
McNeely (mcneely@indieweb.social)'s status on Tuesday, 28-Mar-2023 23:03:11 JST McNeely @aral all caps are a sensible choice when you're balancing tradeoffs. My only gripe is that using something in all caps typically denotes a constant which classes are not necessarily. But I think that's a relatively minor complaint overall 🤷♂️
-
McNeely (mcneely@indieweb.social)'s status on Tuesday, 28-Mar-2023 22:43:28 JST McNeely @aral lean into standards and pass an array of strings called classList. This matches the HTML spec and isn't a reserved keyword. Then just always cast to an array if one isn't passed and add them to your element with classList.add