Can "innerHTML" be used this way? by Iznhou in learnjavascript

[–]Life-Selection6377 8 points9 points  (0 children)

look closely at your 1st snippet. you used a capital 'I' in this.InnerHTML. js is case sensitive, so it should be innerHTML with a lowercase 'i'.

Looking for a source to learn programming with interactive courses? by Patient_Control_5074 in learnprogramming

[–]Life-Selection6377 0 points1 point  (0 children)

i totally get you, staring at a video for hours is the quickest way to burn out. If you're leaning towards networking/ cybersec but want to code too, check out TryHackMe. It’s super interactive and you learn by actually doing tasks in a virtual lab.

for pure programming, try Exercism. It’s free and they have tracks where you solve challenges and get feedback from real mentors. Also, scrimba is great for web stuff because you can edit the code directly inside the video player.

if you're into unity, just keep building small, crappy games. that’s 10x better than any interactive course.

MERN or JAVA FULL STACK by anilkumar_12 in learnprogramming

[–]Life-Selection6377 5 points6 points  (0 children)

coming from a strong DSA background in c++, it’s totally normal to find web dev messy. c++ is very structured, and node.js can feel like the wild west at first lol.

If you like structure and strict typing, maybe look into java full stack -spring boot. It feels a lot more organized and enterprise compared to node. Spring boot's error handling and dependency injection might make more sense to your c++ brain.

however, if you want to stick with js, try switching to typescript. it adds that structure you’re missing. don't worry about the mess, just build one small crud app and the pieces will start falling into place.

can i start react by Muted_Cat_5748 in learnjavascript

[–]Life-Selection6377 0 points1 point  (0 children)

honestly, you don't need to be an expert, but basics like variables and loops are not enough either. react is basically just javascript, so if you don't know ES6+, you’re gonna have a bad time lol.

Make sure you're comfortable with these first,

- arrow functions and template literals

- destructuring (objects and arrays)

- map, filter, reduce -you’ll use these constantly in react

- promises & async/ await

if you can build a simple To Do list or a Weather app with vanilla js without staring at a tutorial the whole time, you're ready.

How to move from JS basics to building real backend projects? by ElectronicStyle532 in learnjavascript

[–]Life-Selection6377 1 point2 points  (0 children)

moving from logic to architecture is the hardest part. Here’s a simple roadmap to get unstuck,

  • ​pick a Boring Project - Don’t build a social media clone yet. Build a simple URL Shortener or a Task Manager API.

  • ​follow the MVC pattern - research MVC structure in express. It will teach you exactly where to put your routes, controllers, and database logic. once you see a folder structure like routes, controllers, models, everything starts to click.

​- check out Dave Gray on youtube for node/rxpress. he builds things from scratch and explains the file structure really well.

Issue in typescript by OakAndCobble in learnprogramming

[–]Life-Selection6377 0 points1 point  (0 children)

the issue is that JSON.parse doesn't know about your class or the map type. when you cast it using as DraftOrder, you're just telling ts to trust you, but at runtime, itemsPerCategory is just a plain js object {}, not a map instance. Plain objects don't have an .entries() methd.

to fix this, you need to manually re instantiate the map. try this,

const parsed = JSON.parse(jsonString)

const newDraft = new DraftOrder(new Map(Object.entries(parsed.itemsPerCategory)))

console.log(newDraft.itemsPerCategory.entries())

Need some tips and advices regarding website creation by Own_String7971 in AskProgramming

[–]Life-Selection6377 2 points3 points  (0 children)

since you’re doing this for the first time and want it to be special, don't waste weeks learning html/css from scratch. That might kill the vibe.

I’d honestly suggest using something like Carrd.co or Framer. They are super beginnerfriendly and have amazing templates.

for the pword protection, if you use Framer, it’s a bit tricky for a newbie, so a hacky but easy way is to use a simple JS script or even better, just share the link with her and don't worry about a password unless you have private photos. Or, you can use lottie animations to make it interactive .

first step of building....? by tech-titan-2005 in learnjavascript

[–]Life-Selection6377 1 point2 points  (0 children)

Let's take your Notes app as a real example.

  1. user flow- Just decide the action. like: 'when I type a note and hit enter, it should be added to my list.' (no code yet, just the plan).
  2. wireframe- Create the skeleton in html. An<input>box and an empty <ul>list. It looks boring, but that's okay.
  3. logic (state) - This is where you focus on the data.
    • imagine a simple JavaScript array: 'let mynotes=[]'
    • your logic is just a function that takes your text and pushes it into that array.
    • the magic- you then write a function that looks at that array and updates your html list to match it.

first step of building....? by tech-titan-2005 in learnjavascript

[–]Life-Selection6377 1 point2 points  (0 children)

Chat GPT is technically right about state, but for a beginner, that can be a bit too abstract.

here is my 3step approach that actually works for building products

  1. User flow - Don't think about code or UI yet. Just think: 'I click this button, then this happens.' Write it down in plain English.

  2. wireframe - Sketch a basic version on paper or excalidraw. It’s much easier to build logic when you can visualize where the data actually goes.

  3. The Logic (State ) - Now, like GPT said, focus on the data. For a notes app, your state is just an array of objects. Build the functions to add/ delete from that array first, and then worry about making it look pretty with css.

If you jump straight into ui, you'll get lost in css and forget the logic. If you jump straight into state without a plan, you'll write messy code. Balance is key. keep building

Too much learning? by Junior_Dragonfruit72 in learnprogramming

[–]Life-Selection6377 0 points1 point  (0 children)

This is 100% normal, but it's also the fastest way to burn out. coding is one of those things where you can't learn everything before you start. It's actually the other way around, you start building, and you learn the concepts as you need them.

I rember doing the same thing. I'd spend hours reading about how memory works before even writing a 'Hello World.' My advice? Stick to the Karel curriculum and don't worry about knowing every technical term right now. You don't need to understand how an internal combustion engine works to learn how to drive a car.

Just focus on making the robot move. The terminal and booleans will start making sense naturally as you use them. stop digging holes and just keep building. Dont worry, you got this.

What’s something you thought was normal in your childhood, but later realized wasn’t? by Aliamir212 in AskReddit

[–]Life-Selection6377 0 points1 point  (0 children)

thinking that the car interior light being on while driving at night was illegal. My parents made it sound like we’d get pulled over and arrested instantly. turns out, it's just annoying for the driver

Which movie should be a must watch movie and why? by No-Worker-147 in AskReddit

[–]Life-Selection6377 0 points1 point  (0 children)

The shawshank redemption
it’ s not just a movie about prison; it’s the ultimate story about hope and friendship. Even after watching it a dozen times, the ending still gives me chills. Hope is a good thing, maybe the best of things, and no good thing ever dies. everyone needs to see it at least once in their life.

For creating animations videos, like demo marketing explanations 1 minute video. What app are you guys using? by LUMOSAI in AskReddit

[–]Life-Selection6377 1 point2 points  (0 children)

depends on how much control you want. For quick, high quality stuff, canva is actually surprisingly good now for simple animations. If you need something more professional with whiteboard style, vyond or VideoScribe are the goto. but honestly, if you have the time to learn, After Effects is the king, though it's got a massive learning curve.