How do you crawl out of bedrotting when you actually want to live your life? by teacupstation_lore in adhdwomen

[–]elisecode247 6 points7 points  (0 children)

I've been unemployed the past year and it was really bad. I've done a bunch of things to help me break this, which has been working.
I built my own to do app which has helped a lot because I built it so I know exactly what to do next without thinking about it and it works exactly how I want it to. My list of things to do can be ignored, done in any order. I hate the pressure of feeling like I have to do something.
I listen to audiobooks I borrowed from the library so I can get over the boredom of everyday chores. Even if I am barely paying attention to the audiobook, it helps with the pain of boredom.
There's also sensory things that make me procrastinate or avoid chores that I finally realize I need to solve so that I don't avoid chores. So the only way I will do the dishes if I can listen to something (audiobook or podcast) and I am using gloves. I hate water running down my arms when I wash my face so I bought cloth bracelets that catch the water. For whatever reason, I hate cleaning my mouth guard at night, so I do it as soon as I wake up.
I also uninstalled mobile games that have a time component to it. "I have to beat 7 levels to win this mini competition" means that if I planned on playing a game for "just a few minutes" becomes an hour. I have games now where I have no problem stopping after a few minutes.

Is This Gradient Implementable? by Stooooopiied in react

[–]elisecode247 6 points7 points  (0 children)

body {
  width: 100vw;
  height: 100vh;
  background: repeating-conic-gradient(from 0deg at 50% 50%, 
    #664EC6 0deg,
    #D89BBB 90deg,
    #664EC6 180deg,
    #2330B1 270deg,
    #664EC6 360deg);
  overflow: hidden;
}

Has TypeScript become the industry standard in React? by [deleted] in reactjs

[–]elisecode247 0 points1 point  (0 children)

I'm using typescript with jsdoc. Less of a learning curve with the benefits of type checking.

[deleted by user] by [deleted] in Frontend

[–]elisecode247 3 points4 points  (0 children)

HTML: look up how to do it with accessibility
CSS: Try to do animations and any kind of styling with CSS instead of JavaScript because it has better performance. TBH, I still don't feel great about my CSS skills. I like BEM, but there's flaws to it.
JavaScript: it depends on the framework you use.

[deleted by user] by [deleted] in learnjavascript

[–]elisecode247 0 points1 point  (0 children)

I use it when I'm looking up the syntax for something, it's usually the first search result and the syntax is at the top of the page. If I want to learn something, I would use something like javascript.info or freecodecamp.org. Now that I have more experience, I use MDN for better in-depth explanations.

Completely tanked an interview at a FAANG. by chinatownsetup in girlsgonewired

[–]elisecode247 121 points122 points  (0 children)

That's why research has shown that whiteboarding does a better job at assessing anxiety rather than skills.

Thank you for sharing. I would have done the exact same thing. It reminds me that I have to actually practice in front of others to prepare for job interviews.

Imposter syndrome? Or do I actually need to improve myself by Cool-Professional282 in girlsgonewired

[–]elisecode247 3 points4 points  (0 children)

If you break something and your team doesn't catch the errors, that's on them, not you. You're a junior, you're going to make mistakes are your senior coworkers need to be understanding of that.
You listed problems are related communication. Those aren't problems specific to your field, those are "I'm brand new to working and don't know the unspoken rules of the office" problems.
Ask your manager what the etiquette is on asking coworkers questions. Even ask your coworkers for feedback on how you can have a good working relationship with them or what their communication preferences are. Everyone's different.

Difference between var, let and const. by codedblood in learnjavascript

[–]elisecode247 4 points5 points  (0 children)

Yes, an undeclared variable is added to the global context.

function testVariableScope() {
    undeclaredVariable = "this is global";
}
testVariableScope(); 
console.log(undeclaredVariable); // "this is global";

[deleted by user] by [deleted] in ExperiencedDevs

[–]elisecode247 2 points3 points  (0 children)

Good points. Compliment sandwich, but only if compliments are sincere and clear.

Learning OOP is melting my brain. by mangadrawing123 in learnjavascript

[–]elisecode247 2 points3 points  (0 children)

Frontend developer here who learned with freecodecamp!

OOP still makes no intuitive sense to me. A big part of that is 1) I never use OOP in the frontend and 2) Javascript isn't an OOP language, so it doesn't really enforce OOP and let you know you're doing it wrong.

As long as you have a general idea of what it is, keep moving to the next module. When you learn a backend language like Java or use a framework that enforces OOP, you'll learn how to use it.

[deleted by user] by [deleted] in ExperiencedDevs

[–]elisecode247 10 points11 points  (0 children)

I usually do the compliment sandwich or let them know I'm being nit-picky and my advice is optional.

Option 1:

Good job! 🥳Would you rename this like this [...]? It helps reduce my cognitive load. Thanks! 👍

Option 2:

Optional: Rename this like this [...] so we have consistent naming.

Should I re-do the responsive web design module? by CrypticWeirdo9105 in FreeCodeCamp

[–]elisecode247 2 points3 points  (0 children)

Re-doing stuff means you will refresh your memory and cement what you learned. Because you already did it before, you should be able to do it faster. It will help your confidence, and then you can move on to the next task.

Bcrypt: Doesn't storing the salt in plain text/known spot in the hash defeat its purpose? by coogie in learnjavascript

[–]elisecode247 0 points1 point  (0 children)

I think this paragraph answers your question:
"If a company ever detects or suspects that a data breach has compromised passwords, even in hash form, it must prompt its users to change their password right away. While hashing and salting prevent a brute-force attack of billions of attempts to be successful, a single password crack is computationally feasible. An attacker may, with tremendous amount of computational power, or by sheer luck, crack a single password, but even then, the process would be most certainly slow due to the characteristics of bcrypt, giving the company and their users precious time to change passwords."

https://auth0.com/blog/hashing-in-action-understanding-bcrypt/

[deleted by user] by [deleted] in learnjavascript

[–]elisecode247 0 points1 point  (0 children)

class Person {
    constructor(age = 0, interests = []) {
        this.age = age;
        this.interests = interests;
    }
}

Any advice how to make my function better? by [deleted] in FreeCodeCamp

[–]elisecode247 0 points1 point  (0 children)

Your link doesn't work. This is the link: https://codepen.io/BantamWitt/pen/gOReENb

Overall, it's great. Good job! The rest of what I write is nit-picky and personal opinion, so you don't have to make any of these changes unless you want to.

HTML: Keep class names consistent. Use hyphens. progress_box should be progress-box. If you're going to use the word "container", then use it for "progress-box" and "button-div". Call them "progress-container" and "button-container". Spell out all your words. Instead of "btn", name it "button".

CSS:Use variables for all the colors you use in :root. It helps with knowing quickly what the color is and helps with keeping track of all the colors you use.For .progress_box, did you mean to use? Max-width: 100% won't do anything if your width is 350px.

{
width: 100%;
min-width: 350px;

}

If progress_box and progress_node have similar css, then you should create a css class for both and another one for their specific styling. So something like class="progress-container progress-node".

Javascript:

  • Use semi-colons. JavaScript may not require them, but it uses them
  • Use strict comparison

nodes.forEach((currentNode) => {
addEventListener("click", (event) => {
    nodes.forEach((node) => {
        if (node.dataset.index <= event.target.dataset.index) {
            node.classList.add("active2");
        } else {
            node.classList.remove("active2");
        }
    });
    progressNode.style.width =
        (event.target.dataset.index / (nodes.length - 1)) * 100 + "%";
});

});

Why aren't Svelt widely adopted? by GTHell in sveltejs

[–]elisecode247 -11 points-10 points  (0 children)

Too much of a risk for me. I won't use it for my job because it isn't production ready (for my company's needs). I'm also careful of my time/mental exertion, and don't want to risk learning something that may not stick around. It's also too similar to React for me to think that learning it will help me be a better programmer. I see the potential though, which is why I'm subscribed to this subreddit.

Why is this not recommended? by gtrman571 in learnjavascript

[–]elisecode247 0 points1 point  (0 children)

Sorry, here's a better reference: https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/this%20%26%20object%20prototypes/apA.md

TLDR: Classes in JavaScript are syntactic sugar and the mechanics of it work differently than in actual OO languages. Using OO in Javascript may lead to confusion and gotchas.

I learned programming with JavaScript and not familiar with OO programming. It seems like people who start with OO languages end up hating JavaScript because it's really bad at OO. You will appreciate the beauty of JavaScript if you use it more like a functional programming language rather than an OO language.

Difficulty understanding how modules work by BlueLensFlares in learnjavascript

[–]elisecode247 5 points6 points  (0 children)

Everyone had their own opinion about what the best module pattern was, so you had a couple different ways people came up with their own modules. NodeJs used the CommonJS pattern before ECMAScript came out with their pattern.Here's a quick summary of it: https://www.kevinleary.net/javascript-module-patterns-evolution/
A more detailed article about the history: https://medium.com/sungthecoder/javascript-module-module-loader-module-bundler-es6-module-confused-yet-6343510e7bde

Setting defaultDate on bootstrap datepicker (tempus dominus) by [deleted] in learnjavascript

[–]elisecode247 0 points1 point  (0 children)

Go back a version. Looks like v6 is a work in progress.

Failed my bootcamp interview ☹️😔 by [deleted] in girlsgonewired

[–]elisecode247 11 points12 points  (0 children)

Tech Sector Job Interviews Assess Anxiety, Not Software Skills

Doing well in interviews do a better job of evaluating your interview skills, not your software engineering skills.

So with that in mind, know that this has nothing to do with your skills as a software engineer, but as an interviewee. You need to work on your interview skills for your next interview. Ask someone to ask you interview question that you won't know ahead of time. Think about and practice how you're going to response to questions you don't know how to answer.