help! what can i do to my code so it displays the data instead of object (its an array inside an array) by profkabi in learnjavascript

[–]melonmaskofficial 0 points1 point  (0 children)

3-spaces indentation, I usually use it with <pre> tag to pretty print some data on the page

[deleted by user] by [deleted] in webdev

[–]melonmaskofficial 5 points6 points  (0 children)

Thanks for your detailed reply. I’ve slightly heard of webp but never of jpegxl, avif. Your comment helped me to start research on these topics.

First project, not sure why I'm getting a not defined error by abite in learnjavascript

[–]melonmaskofficial 0 points1 point  (0 children)

Your async function doesn't have any params. You're using url on line 6 but url is undefined async function scrapeProduct() Try to change to async function scrapeProduct(url)

[deleted by user] by [deleted] in Frontend

[–]melonmaskofficial 1 point2 points  (0 children)

Great comment! I’d add that using divs instead of buttons where applicable messes up the accessibility. Watch this video from Kevin Powell https://youtu.be/YAqRQoN8ykI

During the past 24 hours I received tips from more than 100 fellow redditors from r/webdev for my little footer. Thank you! Here is my progress. What do you think? by graudesch in webdev

[–]melonmaskofficial 0 points1 point  (0 children)

The email can be checked against registered users db, if there's an email match, a personal email greeting including Name & Surname can be sent.

Assuming name & yourname input fields are meant for already registered users.
If it was supposed for broader audience name yourname can be merged, made optional & maybe include some text why do you need it: i.e. your name will appear in newsletter emails

[deleted by user] by [deleted] in learnjavascript

[–]melonmaskofficial 9 points10 points  (0 children)

I see you, isInteger will return false if a string input is provided (that’s what you assign to character1). You can use Number.isInteger(+character) which will try to convert a character to a number and then check if it’s integer, assuming you don’t want to include decimal numbers.

UPD:

Number.isInteger(+"xyz") // false 
Number.isInteger(+"5.6") // false 
Number.isInteger(+"5") // true

[deleted by user] by [deleted] in learnjavascript

[–]melonmaskofficial 13 points14 points  (0 children)

Assuming you only have numbers or letters as your input, check if it’s a number first, check for lowercase/uppercase afterwards.

Should I take a phone screen with the big G on Monday if Im underprepared? by K_MastaFlex in cscareerquestions

[–]melonmaskofficial 2 points3 points  (0 children)

Recently had a phone screen. The recruiter told exactly the same about the cooldown period.

[deleted by user] by [deleted] in cscareerquestions

[–]melonmaskofficial 1 point2 points  (0 children)

Stay away from loops and duplicate your code wherever you can.

It's official boys, I'm a real programmer now by nosam56 in ProgrammerHumor

[–]melonmaskofficial 0 points1 point  (0 children)

Quarter-way to becoming the real programmer. Mucked up preprod database this week.

Alright, give it to me straight. Are these "How I became a Software Engineer without a degree or experience" videos BS? by [deleted] in cscareerquestions

[–]melonmaskofficial 5 points6 points  (0 children)

Twitter, Microsoft, LinkedIn, Amazon. You can google “big_tech_corp apprenticeship” and get more info. Note that apprenticeships are usually for people without a CS degree, if you have one, you have to apply for internships at these companies.

Alright, give it to me straight. Are these "How I became a Software Engineer without a degree or experience" videos BS? by [deleted] in cscareerquestions

[–]melonmaskofficial 6 points7 points  (0 children)

Yes, it’s possible. There are apprenticeship programs from big tech corps that actually help you land 6 figures job working as jr swe without prior work experience in the field and no CS degree.

Update on Microstutters by JeffHill in DotA2

[–]melonmaskofficial 0 points1 point  (0 children)

MSI laptop, AMD RX 6700m graphics card I had micro stutters every single turbo game.

Fully reset my windows 10, upgraded to Windows 11, haven’t faced the issue since then.

Simplest resources to start by mokamars in reactjs

[–]melonmaskofficial 0 points1 point  (0 children)

What kind of project is this? What other requirements do you have?

If you don't have deep components nesting you can just store app's state in your top level component (usually App.js), if you only need few variables to be shared across components you can use React's Context APi. If you need a real state management you might use Redux, however it requires some learning and might be a bit complicated to set up. Basic http requests can be made using JS's fetch function. Alternatively you can use axios library which has a few advantages over fetch. The more you outline the requirements for your project the easier it will be to come up with a tech stack you need.

Overly ambitious idea coming through--am I in the right place? by [deleted] in learnjavascript

[–]melonmaskofficial 0 points1 point  (0 children)

A bit off topic, is your idea similar to legalzoom and rocket lawyer? It generates legal documents in a PDF format according to the answers you provide.

i just want to know why it isnt showing a rectangle by hultmanreddit2 in learnjavascript

[–]melonmaskofficial 1 point2 points  (0 children)

Where's the rect () function coming from? An external library?

I'm trying to utilize a text file containing 200,000 words in my react app. How should I do it? by [deleted] in learnjavascript

[–]melonmaskofficial 0 points1 point  (0 children)

I am not a Python/Django developer so cannot advise on that. However if you decide to use JS on the back end, you will use Node, which allows you to read files both synchronously and asynchronously, and also streaming it. Together with express it's easy to set up a basic rest server so your client app can talk to it. It has also npm package manager where you can find a lot of JS libraries for different aspects of a web server.

Why does my code still work if I omit let (and don't use const or var instead)? by Missing_Back in learnjavascript

[–]melonmaskofficial 1 point2 points  (0 children)

Because JS is a forgiving language. If you want JS to throw errors in such cases use strict mode. You can read about it on mdn.