CutCodeDown

Web Development => HTML / CSS => Topic started by: Gary-SC on 15 Jan 2022, 07:34:48 pm

Title: CSS Houdini - Thoughts?
Post by: Gary-SC on 15 Jan 2022, 07:34:48 pm
I came across "CSS Houdini" the other day as I read through the MDN Web Docs site:

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Houdini

Does anyone here have any thoughts on it? Is it a good idea or a bullcrap idea to accommodate incompetent? Or just new and different?
Title: Re: CSS Houdini - Thoughts?
Post by: coothead on 16 Jan 2022, 11:48:52 am
Hi there  Gary-SC,

there may be some merit in the...

Basic example (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Houdini#basic_example)

...but as a totally insignificant coder I, personally, would
very rarely feel a need to make use of it.  ::)

Perhaps one of our  professional coders  here may offer
you some more profound reasons for employing it.  ;)

coothead
Title: Re: CSS Houdini - Thoughts?
Post by: GrumpyYoungMan on 16 Jan 2022, 03:47:00 pm
I think I can hear Jasons response from here, but I look forward to his actual rant and will the popcorn at the ready!
Title: Re: CSS Houdini - Thoughts?
Post by: Jason Knight on 17 Jan 2022, 08:22:51 pm
It's typecasting for custom properties. Much like with what typescript tries to do for JavaScript it just makes you type more, using a more cryptic syntax, in an attempt to make the basic language into something it is not.

And much like Typescript, if you can't keep track of the usage of your "variables", you're either using too much code, or haven't mastered the most basic of concepts.