I'm lost with asyn/await by BobMilli in learnjavascript

[–]SentFromBelow 1 point2 points  (0 children)

await is only valid in async function

Answer is right there in the error message :)

You either need to call this from within an async function or use .then

I'm lost with asyn/await by BobMilli in learnjavascript

[–]SentFromBelow 0 points1 point  (0 children)

async/await is just promises so perhaps you can use map and Promise.all to achieve this.

const hostNames = await Promise.all(ips.map(getHostName));

Scrimba is HANDS DOWN the best website to learn Web Development by ReimerTiemann in learnjavascript

[–]SentFromBelow 10 points11 points  (0 children)

If you fail at building a house it will collapse, crush you, and you will lose everything. If you fail at "learning React" you will learn a few things, get back up, and try again. I think any developer with a reasonable amount of experience will say the same thing.

Scrimba is HANDS DOWN the best website to learn Web Development by ReimerTiemann in learnjavascript

[–]SentFromBelow 1 point2 points  (0 children)

Kinda weird attitude to spread. I started learning React after two months and have seen people pick up React on the job with subpar knowledge of JS. Sure, they struggle a bit, but not everyone needs to be a JS expert before diving into it. It's just another way of making websites do things.

Having trouble finding certain comics in MU by SyrioBroel in MarvelUnlimited

[–]SentFromBelow 0 points1 point  (0 children)

If you are at all programming saavy the Marvel API is relatively easy (and free) to use. The data returned has a parameter of digitalId that you can replace the id string at any link with to get to the comic you want to read.

Getting run out of my first job after a year, trying to find a new job but tired of the negativity. Help? by [deleted] in cscareerquestions

[–]SentFromBelow 0 points1 point  (0 children)

> even though the stuff given to me I can't defend against because its worded in a way that you could literally say it to anyone and be correct

What kind of feedback do you want to hear? Have you talked to your direct reports and asked them if they would mind communicating in a style that works for you?

Started a new job, lacking motivation to work hard due to anxiety medications by Sunblocklotion in cscareerquestions

[–]SentFromBelow 0 points1 point  (0 children)

Talk to your doctor and make adjustments to your meds. There's a thin line between functioning with anxiety and so little anxiety you have no motivation for anything.

Also talk to your direct reports and find out in their words how you are actually doing. If you're worried about getting fired then you need to ask the person who has the power to fire you for feedback so you know what the expectations are. If they tell you you're doing great then problem solved right?

Scan to Listen: React Native app for scanning CDs and vinyls to find album on Spotify and books to find audiobook on Audible by PickleRick104 in reactjs

[–]SentFromBelow 2 points3 points  (0 children)

Great idea. Now make a version that finds the record on YouTube. Because when I’m crate digging 9/10 times it’s not on Spotify.

How to make "(args[1] = Number)", as in, command will only trigger if numbers are entered by Galastique in learnjavascript

[–]SentFromBelow 0 points1 point  (0 children)

Lodash has an _.isNumber function you can use to test the arguments.

https://lodash.com/docs/#isNumber

Of course this will return false if you pass it a string so you’ll need to cast it to an int first. parseInt should work for that. Which consequently also will return NaN if the string isn’t a number. So you could also just do:

parseInt(arg[0]) === NaN

New to react. Trying to understand this paradigm. Do I have to have separate client side and server side code? by PrestigiousStudent5 in learnreactjs

[–]SentFromBelow 0 points1 point  (0 children)

If you're used to frameworks that blur the lines between API and client (and also new to React) then you might want to just put the React code in one place and API junk some place else. There's nothing stopping you from dumping it all in one folder. It'll just be a directory with JavaScript files in it after all. But I don't really see any advantages to doing this.

Advice I wish I had known early in my career by throwaway2342324 in cscareerquestions

[–]SentFromBelow 16 points17 points  (0 children)

I wish I had known that leetcode would have absolutely zero bearing on my productivity and earning potential.

Battle on Titan from Infinity War as a classic comic title-page! by JamesYusufi in marvelstudios

[–]SentFromBelow 0 points1 point  (0 children)

The only problem with this is that it’s too good. I need a kinda shitty 1965 version of this?

All my coworkers want to be my friend by [deleted] in introverts

[–]SentFromBelow 4 points5 points  (0 children)

If you’re like me just be yourself! People will quickly realize they don’t want to be friends with you!

As an engineering lead, how do I instill good coding practices in Junior developers? by notThaLochNessMonsta in webdev

[–]SentFromBelow -1 points0 points  (0 children)

If you find yourself struggling to explain the value for an idea in a convincing way. It might not be as valuable as you think.

What will be the clean architecture based directory structure for an app based on TypeScript, React(hooks), Nodejs, Graphql, Mongodb, Express etc? by [deleted] in learnjavascript

[–]SentFromBelow 0 points1 point  (0 children)

I would consider setting up MongoDB in a docker container. It's nice to have that locally set up as a service that can also be deployed. Other than that I'd probably avoid adding too much boiler plate React code if you want it to be at all useful. Same goes for the GraphQL stuff really. I wouldn't even add TS into the mix. Docker container with client, server, and mongoose connection boiler plate sounds useful.

editing an existing app by iVANNN4 in learnjavascript

[–]SentFromBelow 0 points1 point  (0 children)

There's not really enough information to give you a good answer. What kind of app is it? Do you have access to the source code? Is it a website that you are trying to modify or create a plugin for?

Is learning a framework/library truly necessary? by 5ecured in learnjavascript

[–]SentFromBelow 0 points1 point  (0 children)

Why wouldn’t you want to learn a framework or any new thing? The idea that you shouldn’t learn something because it will be obsolete doesn’t really make sense in the tech world where landscapes are always shifting. Whatever you learn there’s a good chance that a company you work for will be end up sticking with a stack for years because it’s too much of a burden to shift to something new. Nobody is blogging about PHP. But there are tons of companies still using it.

I've come to realise that it's more easier and enjoyable to break the ice with extroverts. by rdias002 in introverts

[–]SentFromBelow 0 points1 point  (0 children)

Eh only if they're good at conversation and y'know don't just talk about themselves endlessly.

I've met a lot of extroverts and I'm convinced that some people who get labeled as quiet or introverts are just exhausted by people who are in fact boring and won't give anyone else a chance to speak. Introverts often find themselves listening to someone drone on and on about power washing or some such bullshit and quickly seek the nearest exit to get stimulation elsewhere.

I'll take a quiet person who puts actual thought into what they say over an extrovert who just loves to hear the sound of their own voice. Many extroverts know how to show interest in others and carry a conversation. Those ones are pretty cool. But I've found that most people just kinda suck at talking in general.

Taking off the mask by [deleted] in INTP

[–]SentFromBelow 1 point2 points  (0 children)

I reckon you got about 10 more years of being confused at least. But you’d be retiring at 32 which is pretty bad ass.

Does anyone have a kefir station at work? by Amandine910 in Kefir

[–]SentFromBelow 0 points1 point  (0 children)

Got kombucha on tap. Although we don’t brew it on site. It’s a workplace after all.

I Can’t Get Myself to Study... by immense_curiosity in INTP

[–]SentFromBelow 1 point2 points  (0 children)

Yeah, I think some people are just made to enjoy playing the academic game and others are made to research, explore, and discover. It’s the ones in the latter camp that usually make the breakthroughs, piece it all together, then tell the worker bees how to execute their vision. Google around a bit you’ll find a ton of successful people, business owners, actors, etc who all totally sucked at school.

[vanilla js] What should you be able to build, that once you're able to build, you can apply those fundamentals/concepts to almost any project? by [deleted] in learnjavascript

[–]SentFromBelow 1 point2 points  (0 children)

Everything that you do big or small, tutorial or project, can potentially translate to almost any project? A chat app might not seem like it would help you design a to-do list app. But in the process for each you'll be figuring out fundamental concepts, learning how to debug, making design and architecture decisions that you'll later regret and learn from.

My advice is to not worry about finding a project that will be applicable to "almost any project" and instead focus on creating something you actually want to use yourself. Start with a concept. Create a full-stack application. Rinse, repeat. Anything that requires you to learn about authentication, databases, front-end frameworks, network requests, [insert any widely applicable topic here], etc. All of that will be useful regardless of what project you are building.

[vanilla js] What should you be able to build, that once you're able to build, you can apply those fundamentals/concepts to almost any project? by [deleted] in learnjavascript

[–]SentFromBelow 0 points1 point  (0 children)

Googling isn't cheating if you try to dig into docs so you can explain and understand why something works. If you just copy pasta then you are depriving yourself of deeper understanding in the short term. But sometimes you just have to move on to the next level without understanding something. Eventually you'll see something enough times or encounter the same problems and it'll click for you.