Thursday, October 19, 2023

position: sticky;

I'm on leave! Yay!

Okay, with that out of the way, let's talk something serious: the need to curb the irrational urge of taking sides in any conflict, be it personal, local, regional, or international.

For some unfathomable reason, it seems that people are compulsively declaring their support for this faction or that faction, rational or otherwise.

My personal [professional] take on things is, if one is not in a position where such a decision is of immediate relevance, just shut the hell up and say absolutely nothing. It is a no-win scenario in most cases, because it is almost always the case that the situation is often more messy than it is expected.

``But MT, the politicians are declaring this and that! So why shouldn't I?''

My reply is simply: are you really involved in international politics? If not, why make any statements at all? In some cases, I would go as far as to say that the politicians who made those declarations could have done better with shutting up instead of trying to virtue signal with some declaration or another.

The thing about making statements/declarations is that each new statement made acts as a partitioning of the people, separating them into at least three cohorts---those who agree with your declaration/statement, those who disagree with your declaration/statement, and those who don't give a damn either way. As a private citizen, there is hardly any advantage to force such a partition---the number of people we end up seeing/working with on a personal basis isn't large enough that allows us a substantial number of people left to work with in the event that our declaration/statement is a polarising minority statement.

Moreover, much of personal declarations/statements are reliant on what the media reports (mainstream or otherwise), and the problem with that is that these media reports aren't always correct at the time of publication. This means that the stance that one declares may seem to be safely in the majority, but may be [quickly] shifted to that of the minority when new information appears.

In short, personal declarations/statements of stances [in any conflict] has a pretty sizable risk of going in the ``wrong'' direction, especially if the purpose is that of virtue signalling.

Thus, it is better to just shut the hell up.

------

In other news, I've discovered about position: sticky; in CSS, in relation to having the header of the table to be floating at the top. The need for this came about when I was messing around with my instrument ambitus experimental tool. The list was too damn long, and it was hard to see what the ambitus us once the header information is scrolled off the screen. Having the thead tag set with position: sticky; meant that the complicated header row that highlights the actual notes selected was visible once more.

There was a catch though: for some reason, combining position: sticky; with border-collapse: collapse; messed up the border information for the cells that make up the header. It is highly likely to be a bug, but it isn't going to be solved any time soon by the major browsers. To mitigate that, I went the whole extreme of defining the entire table to have border: none;, while setting each individual td tag have their own borders. This gave a more consistent looking feel for the header information (borderless) and looks pretty okay.

And I suppose that's it for now. Till the next update then.

No comments: