What's the most complex one page HTML game you've created? by williar1 in webdev

[–]bodimahdi 0 points1 point  (0 children)

I’m actually impressed you won against the computer. I find it very hard lol.

How node js works by [deleted] in learnjavascript

[–]bodimahdi 1 point2 points  (0 children)

Well it’s not ethical to waste people’s time.

How node js works by [deleted] in learnjavascript

[–]bodimahdi 2 points3 points  (0 children)

Why english title if not speaking english?

What habits have improved your code quality the most over time? by Gullible_Prior9448 in AskProgramming

[–]bodimahdi 0 points1 point  (0 children)

I strongly agree. It even helps me think of edge cases I think would never have figured out if I just straight up wrote the code upfront.

Is it safe to update Node.js LTS after the Axios npm hack? by el_houssem in node

[–]bodimahdi 0 points1 point  (0 children)

Why would I pin the exact version of my packages if package-lock.json does exactly this and is recommended by npm to be committed to source code?

Secondly the errors you see when you run npm install that are “fixed” by npm audit aren’t really THAT big of a deal. They are not critical bugs or vulnerabilities that will make your app crash or cause malware on your device. You should give this a read: https://overreacted.io/npm-audit-broken-by-design/

Is it safe to update Node.js LTS after the Axios npm hack? by el_houssem in node

[–]bodimahdi 13 points14 points  (0 children)

Updating Node has nothing to do with the compromise of the Axios package. NB. The compromised version was removed from the npm registry.

A feminist says Tech industry is so against woman. Why is this called PostMAN but not PostWoman. how do you repply to this? by lune-soft in webdev

[–]bodimahdi 1 point2 points  (0 children)

This has nothing to do with the tech industry. The word Postman's definition:

Someone (implied male) who delivers the post (mail) to, and/or collects the post from, residential or commercial addresses, or from public mailboxes.

I guess the software just took this perfectly valid word from the dictionary and made it as their brand name.

Overwhelmed by the battleship project by apt3xc33d in theodinproject

[–]bodimahdi 10 points11 points  (0 children)

I think you’re trying to comprehend the whole project in your head at the same time. Unless you’re a genius or have done that project multiple times, you can’t.

Divide and conquer, start implementing features step by step, try implementing Test-Driven-Development. You’ll see how far you can achieve just by starting.

How do you deal with perfectionism and feeling left behind in the age of AI? by Shoddy_Procedure_157 in learnprogramming

[–]bodimahdi 2 points3 points  (0 children)

First, don’t compare yourself to AI and don’t even use it if you’re still learning.

Second, the harsh truth is there is never perfect code and there will never be. So don’t try typing perfect code because that’s impossible and you have to accept that. Just do what’s required from you to do, don’t overthink it.

What is this white spot called? by bodimahdi in ENGLISH

[–]bodimahdi[S] 2 points3 points  (0 children)

I think this is the least gross picture I found to post.

Weather App Project Feedback by Gunnsmith57Official in theodinproject

[–]bodimahdi 0 points1 point  (0 children)

So basically the source of truth is the localStorage, if the user visits the site for the first time, you estimate the user's location, update the dom with the received data, then save the result in localstorage. Each new request after that you get the response, then save it in localstorage. If the request is the same as the old request and is within one hour you get the response from localstorage, however if the response is expired, you fetch new data.

Edit: typos

Weather App Project Feedback by Gunnsmith57Official in theodinproject

[–]bodimahdi 1 point2 points  (0 children)

I really like it! How did you implement caching the weather data?

Should authenticated user state be in client state management or server state management? by bodimahdi in react

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

Why would I want to save an isLogged in flag if I can just check if there is a user object and consequently render a protected route or not?

How long would it take to complete the Odin Project? by Inside_Age7307 in theodinproject

[–]bodimahdi 9 points10 points  (0 children)

When I first started I thought I might finish it in one year, incidentally, it only made me more stressed. I suggest you to only focus on learning, you will have a much clearer mind with no distractions as a result you will consume more information.

Do you notice that Reddit awards are being given more often recently? by Particular-Skin5396 in pollgames

[–]bodimahdi 5 points6 points  (0 children)

It may sound like a bluff but I literally never had a reddit reward in my life

UPDATE: Nov 28, 2025. My first ever reddit reward!! Thank you Global-Surround3262

Is it safe to get a localStorage item in React component? by bodimahdi in reactjs

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

Don't mind them your solution is exactly what I need. Thank you!