« first day (4498 days earlier)      last day (457 days later) » 

3:27 AM
posted on February 07, 2023 by Krishna Govind

 Hi, everyone! We've just released Chrome 110 (110.0.5481.63/.64) for Android: it'll become available on Google Play over the next few days. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug.Android releases contain the same security fixes as th

 
 
5 hours later…
8:02 AM
Hello
I have one advanced question
in .tsx file I have
const PensionFundDrawer = ({
and function PensionFundCardStack({
which will be used as components
how to share state from PensionFundDrawer to PensionFundCardStack
because I need to provide setState in PensionFundCardStack and get value in PensionFundDrawer
How to do that ?
 
 
7 hours later…
2:48 PM
 
 
2 hours later…
5:11 PM
Are Windows and Mac file systems ok using the @ symbol in a filename?
1
A: What is a way to create a unique name for a file given it's name and a namespace value in the same directory?

TopchetoEUNames containing dots aren't a problem for any OS, as far as I know. What you can do is either: Put the files in a folder hierarchy, where every folder is the name of a namespace segment, like this: +-me | +-topchetoeu | | +-myprogram | | +-Program.json | +-somebodyelse | +-calculator | ...

Can someone on windows try to create a file name with an at symbol?
 
@1.21gigawatts Pretty sure it works. Otherwise all the node packages that are "@something" cannot create the directories called "@something"
 
And considering at my workplace our internal packages are "@ourcompany" and I've had to hunt down the package in node_module to debug it - I'd say it's possible.
 
that's right ok
thanks
 
 
5:16 PM
I like that you provide evidence
I think you've helped me enough in the past that I can rely on accurate information
but it's nice to see
 
I'm nothing but thorough. Sometimes.
 
I've been bit in the butt multiple times by lack of verbosity
The compiler, she be a cruel mistress
@Ashokbharathi If you have more than one level (or two?) of data deep you'll have to drill into that data and "walk the tree"
function walkDownTree(element, callback, value = null) {
  callback(element, value);

  if (element.children.length) {
    var items = element.children;

    for(var i=0;i<items.length;i++) {
      let item = items.at(i);

      walkDownTree(item, callback, value);
    }
  }
}
Consider the above example if using an HTML element with multiple children who have child nodes of their own
function logItems(item) {
   console.log(item.nodeName)
}
var results = walkDownTree(document.body, logItems);
The above code is from memory. But in your case you can define the createHeaders as your callback
and the data would be the first parameter
 
6:08 PM
Good use of recursion.
 
 
1 hour later…
7:18 PM
I'm floored by the quality of testers, given some questions I see on SO. Like - yes. There are things that are specific to writing tests, there are tricks that can be used, there are approaches that are specific there. Sure, I agree with that. But we shouldn't really be getting questions THAT often (or at all) that are basically "How do I test this function" and the function is basically:
function testMe(bool) {
  if (bool)
    return "foo";
  else
    return "bar";
}
A function that just has two branches. Somehow it's a repeated problem for multiple people how can that ever be tested. And "write two tests" wasn't something they came up with. Not even "call the function twice". The very prospect of branching code seems to leave them stumped.
And since I don't want to be accused of "but you're oversimplifying it - the real code is probably more complex". Yeah...well
 
posted on February 08, 2023 by Prudhvikumar Bommana

The dev channel has been updated to 111.0.5563.19 for Windows, Linux and Mac. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar BommanaGoogle Chrome

 
 
1 hour later…
8:46 PM
@VLAZ I mean... given the level of "requirements" for getting a job in QA, I am not surprized
@1.21gigawatts well, since they are trying to walk a DOM tree, they will be better off just using the TreeWalker API that basically does the same thing natively
 
That sounds familiar. Is it in the DOM? Nevermind. I found it.
 
yeah, an instance can be obtained via a Document.createTreeWalker() call
 
I see. My example walks an HTML element but in the OP question he's got his own data object
 
oh, I see, I only skimmed the discussion here, not the question itself
 
@OlegValteriswithUkraine I've heard of automation QA people being hired during their course. And I mean the one for non-programmers. It's something like a 2-3 month long or so. And one I know of was hired some time after week two.
 
8:59 PM
@OlegValteriswithUkraine just took a look at their code - oh, my, I think they've overcomplicated the implementation
 
@OlegValteriswithUkraine Speaking of overcomplication:
"I have a function that returns an array of two things. I need to call it twice to get both."
And that's just the beginning.
 
@VLAZ can't deny the logic there
 
Of course you can't. It's true,true,true,true,true,true
2
 
I remember function signatures in my first (thankfully, personal) project ever looking like that. Oh, the joys of trying to remember what do all those positional parameters do
 
Oh yeah. Same - I was very proud of making the methods very flexible. By requiring a bunch of booleans.
Of course I wasn't a monster - you could omit some and get sensible defaults. Only none of the call sites (maybe except one) used the defaults.
 
9:06 PM
@VLAZ that, and it's not uncommon for manual QA folks try to become test automation QA engineers without taking the time to learn how to program - which is likely the source for questions like the one in your first screenshot
@VLAZ heh, I know the feeling. Imagine how it felt when I first learned the option bag pattern
 
See speech bubble for my reaction.
 
!!magic
 
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
 
@VLAZ heh, yeah, and then you realize you have to maintain the order of optional parameters which initially leads to aberrations of the f(null, null, true, null, false) sort
@VLAZ no surprize then that we get that many folks who have 0 clue about what they are doing
 
 
2 hours later…
10:52 PM
<script>// <![CDATA[
var blink = document.getElementById('blink');

 setInterval(function () {
  blink.style.opacity =
   (blink.style.opacity == 0 ? 1 : 0);
 }, 1000);
// ]]></script>
 
11:21 PM
So could it be said that NoSQL is a hash map of primatives and objects?
A big object with object keys?
 
lots of things could be said
 

« first day (4498 days earlier)      last day (457 days later) »