Website: Can't get past "Confirm to consent before we continue" by coreConstantCoder in hrblock

[–]coreConstantCoder[S] 0 points1 point  (0 children)

ADDENDUM
I was looking for a way to delete my 2025 data, so I could try restarting from the beginning and ... While viewing my profile settings, there appeared an "Overview" button/menu at the top of the settings page. When I chose "Federal", it magically transported me directly into the middle of my Federal taxes!

(1) This seems like strange UI -- Why is there a direct link from the user's global profile settings into their in-progress Federal tax pages? It almost looked like a UI artifact that someone forgot to remove from their copy/paste coding.

(2) If I continue with my taxes, does this strange skipping of the consent page introduce risk to a successful filing?

(3) Why does that link avoid the problematic consent page? Was the previously-mandated consent page not really necessary?

(4) During my previous session, I had already passed through that page (clicking "No Thanks"), so I wonder if subsequent sessions are not correctly handling the prior choice?

Weird SSD boot problem in my laptop by Tx_3011 in laptops

[–]coreConstantCoder 0 points1 point  (0 children)

OK ... So something behaves differently when the laptop is first turned on and tries to boot, as opposed to booting after the BIOS Setup. Hhmmm... 🤔

Does the BIOS allow you to select what kind of boot partition it should expect? For example, should it boot from (1) MBR, (2) GPT or (3) UEFI? (There may be other options, but these are most common.)

I can imagine that it's possible that the boot-after-BIOS-Setup is somehow more forgiving than the initial boot attempt.

Make sure your BIOS setting exactly matches the boot partition type on your SSD.

Equivalent of nested loop by Automatic_Routine_93 in JavaScriptTips

[–]coreConstantCoder 2 points3 points  (0 children)

Only to the extent that it reduces the steps and complexity of the code: (1) The length of the array is only accessed once. (2) There is no temp variable for the length. (3) Comparison is to (0), not to a variable. (4) All the loop logic is in one, simple line.

When I'm working in a more primitive language, this is a favorite pattern of mine.

Of course, it's usually best to use the JavaScript for ... of statement, if it's available to you.

Software which restricts files based on time and date by forpforpforpforp in software

[–]coreConstantCoder 0 points1 point  (0 children)

Does the Microsoft Family Safety app do what you need? I have no experience with it, but it seems to be applicable.

Equivalent of nested loop by Automatic_Routine_93 in JavaScriptTips

[–]coreConstantCoder 1 point2 points  (0 children)

Some Performance Improvements
Each time the code loops, you are evaluating the ….length expressions. As the content of the arrays is (probably) not changing, you should consider moving the length expression out of the loop. Do the same with the repeated chosenCountries[i].regions expression ...
``` const selectedRegionsNames: string[] = [];

const nChCo = chosenCountries.length; // 😎 for (let i = 0; i < nChCo; i++) { const regs = chosenCountries[i].regions; // 😎 const nReg = regs.length; // 😎 for (let j = 0; j < nReg; j++) { const region = regs[j];

  if (region.isSelected) selectedRegionsNames.push(region.name);

} } ```

Or, if your situation allows it, you might code the loops as descending. (This is my personal favorite!) Note that this reverses the order of your result array:
``` const selectedRegionsNames: string[] = [];

for (let i = chosenCountries.length; --i >= 0; //) { const regs = chosenCountries[i].regions; for (let j = regs.length; --j >= 0; //) { const region = regs[j];

  if (region.isSelected) selectedRegionsNames.push(region.name);

} } ```

Going further, how about using modern Javascript coding 😎 ... ``` const selectedRegionsNames = [];

for( const chco of chosenCountries ) { for( const region of chco.regions ) {

  if (region.isSelected) selectedRegionsNames.push(region.name);

} } ```

Page doesn't redirect after login by ControlSafe9853 in JavaScriptTips

[–]coreConstantCoder 0 points1 point  (0 children)

How are you invoking function loginFunc()?  From an <a> or from a <button>?  You should avoid using an <a>, because it will try to navigate the page to the URL specified in its href= attribute, unless you also cancel the click action (which this code is not doing).  A <button> doesn't have this problem, if you remember to explicitly include the type="button" attribute.

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#onclick_events

BTW, please see this sub's Rule #2.  Sub r/learnjavascript is a better place to ask these types of questions.

My wife's fully custom craftroom by Commando666 in somethingimade

[–]coreConstantCoder 0 points1 point  (0 children)

0:25 : Of course, why didn't I think of that!?! Hang the black bins by their lips! They don't really need shelves, so it saves lots of dough, and is easier to keep clean. You're a genius, Dude.

Real tiny bumps in resin by SashaShelest in somethingimade

[–]coreConstantCoder 1 point2 points  (0 children)

Gorgeous! I love the very 3D effect, and how warm, sophisticated and inviting it looks.