Framework Thinking

We never think about thinking, metacognition, they call it. Its something that has stuck with me for a really really long time since I first heard about it about 15 years ago  Then I heard Amin Toufaani taking about Lygometry, the quantification of what one does not know. What a cool name, Toofani, what a cool name, lygometry.  Now the two things are together in my mind, lygometric approach to thinking should be something taught at schools and beyond. Everywhere someone is teaching something we should teach them what we do not know, so they understand how to think about things that dont make sense to anyone. Why is this important, well Toufaani suggests (and i agree with him here) that knowing what you do not know allows one to be creative in finding solutions to open ended problems And then again I find this interesting, since my entire life has been open ended problems, which I now realize, I need to be able to think about and solve, should I ever want to rid myself of the c...

Inspecting hard-to-get elements in the DOM

Today I learned how to inspect hard-to-get elements in the DOM, you know, the ones that you open but close as soon as you try to inspect them. I used a simple CSS trick in the console

So what you basically do is that you go into the console, you set a delay timer and then run the debugger. Before the debugger starts you open the elements that e.g in my case it was a dropdown and then you wait for the debugger to pause your screen

The command is setTimeout(() => {debugger;},3000)

Whats happening here?

We are essentially
 A. running the debugger 
 B. Adding a wait timer before the debugger is launched, in this case of 3 seconds

Step 1. run command in console 
Step 2. open the view you want 
Step 3. wait for DOM to freeze and then inspect elements accordingly 

This just freezes the DOM essentially, it currently works for Chrome, it should also work on other browsers




#SWE #FE 

Comments

Popular posts from this blog

Starting with Zero

Are traditional business worth starting?

The Sunday after