41 points · by rimunroe · 10y ago · 23 comments
It sounds like they're fishing for volunteers, but aren't aiming to be open source yet. Assuming this is all real and not some kind of joke.
Her UI components look good, plus the tech choices she made around HTML+CSS may be valuable to copy for anyone doing a high-accessibility content-oriented site.
It might help if they put some stuff on GitHub, but as it stands this is article seems to be just PR.
I'm not a frontend developer, but is that really a good practice?
Maybe not a "good" practice, because yeah so much as anything it's a sign that maybe we've reached the natural bounds of the CSS language and it's time to look into making it better.
CSS is not really a programming language, and it doesn't really have types.
Essentially, the original intent was not to encode the type in the variable name, but the kind. One example given is from the Excel codebase, where ints are used for tracking both rows and columns, but it doesn't make sense to assign values between them (save for rare circumstances like transposition). This is made explicit by prefixing rows with "rw" and columns with "col". If you ever saw something like "rwMax = colCurrent" it sticks out immediately as being wrong since you know that those two kinds of variables shouldn't mix. The assignment is legal and the compiler won't help you; the semantic naming scheme will.
Encoding the type, like "ul" prefix for "unsigned long", is of course awful and unnecessary and deserves all the derision it has gotten over the years.
It's easy to posit that the general prevalence of hungarian notation in early C/C++ is something of a clear indicator of deficiencies in the C/C++ languages themselves at the time. Why solve coding problems with cultural conventions and human dogma, when you can automate it or make a better language with a more formal type system?
I personally do #2 but Pantsuit seems reasonable for sites that are relatively simple content + UI affairs (e.g. Wordpress) without a complex state-space (e.g. a T-shirt designer app).