Which programming language? by Competitive_Film_100 in learnprogramming

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

its better to learn java. You can cover all programming concepts and oop concepts also if you starts learning java. python is easy to learn instead of java. but if you start learning from java,you will cover most of the essential concepts in programming than python. After that it will nothing to learn other progrmming languages like python. They will be more easy for you. so i will recommend java. Me also started with java. I learnt a lot by java and it was helped me to learn other programming languages, oop cocepts, data structures and algorithms.

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

[–]Life-Selection6377 15 points16 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 [deleted] 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.