r/learnjavascript • • 1d ago

Need help in learning (any help is appreciated)

Hello y'all,

TLDR => TL;DR: I know Python and DrRacket from university, have 8 months to learn JavaScript for a real hospital/health-agency project (where I can't use AI because of patient data), and I'm struggling to build projects from scratch (as practice incase I have to build something from scratch) without assignment instructions holding my hand. plz help :(

BACKGROUND:

I'm a health informatics student, and in 8 months I'll start working with my professor of practice on real projects that will actually be deployed in hospitals or health agencies. I'm super excited, but she recently told me to get my JavaScript skills up before we start and because we'll be dealing with patient data, using AI to write code is completely off the table.

To be completely honest, I've mostly taken non-specialist CS courses on the side (OOP, data structures, algorithms, hardware), and not a single one had real open-ended projects. I told my prof upfront that I have zero (if not negative) JS knowledge and need time to prep, and being a very kind person, she just said, "I believe in you." I've been following BroCode's JS tutorial and I get the basic syntax like why JS randomly throws null/undefined or returns 0.

PROBLEM:

I hit a point where I tried to build a practice project on my own something classic like Pac-Man or chess and the more I stared at it, the more cooked I felt. I couldn't even find a starting point. I've gotten so used to assignments telling me "do step A, then step B" that I freeze without a rubric.

Even though I know the theory of user stories and breaking down requirements from my CS classes, I'm worried that when my prof asks me to connect hospital departments or engineer and optimize a real system, I'm going to be completely out of my depth.

I already know Python and DrRacket from uni, so I'm not starting from zero with programming logic but just with building real things in JS on my own. How do I get past blank-page paralysis and train myself to architect projects from scratch? Any advice is appreciated :)

I also asked her to show me a sample code that her pervious students also had to make on the job and GOOOOD DAM I couldn't read after the imports. Like there were 7 arrow functions in total of 4 lines which was throwing me off so badly.

So sorry for yapping too much but I am at a point I will get any help possible

1 Upvotes

12 comments sorted by

1

u/Discordbothost 1d ago

Pac-Man gives you a lot of blank pages at once: movement, collision, controls, and drawing. Try a fake supplies tracker with three hard-coded rows. Make one button mark a row as ordered, then add a filter to show only the rows still needed. That gives you a whole little workflow to build and debug.

1

u/LmaoImAPotato 1d ago

Hey thank you for the response

sure I can do that. Where do you say I should start from? Like should I have a design in mind, look at what others have done and try to "reverse engineer" it step by step?

Then where can I go from there?

1

u/smichaele 1d ago

Don't start trying to build games. Why not try something relevant like a simple patient information system. You can track patients, symptoms, and diagnoses.

1

u/LmaoImAPotato 1d ago

hello, first of all, tnx for the time to read my post and comment.

Oh that is actually a good idea. If I get it correctly something like an EHR system but with like backend? I'll keep it in mind tnx

1

u/buna_cefaci 1d ago

is javascript even viable with AI ?

2

u/LmaoImAPotato 1d ago

I would for sure assume so. Again I have 0 experience with JS. My SWE friends are all using AI for their internship which uses JS. Just something I have seen, I got 0 experience with it. More than that it could be ANY language, ruby, Go, racket, python, brainfuck, etc.... Its just that I can't use AI for it, since its hospital data and information.

1

u/Aggressive_Ad_5454 1d ago

Here’s my suggestion. Use JavaScript to build a simple app based on fake patient data. Here’s some such data you can download for free. https://www.kaggle.com/datasets/raotariq/random-healthcare-dataset-sample

Get the server-side JavaScript package called nodejs working on your laptop. It has some simple tutorials so you can convince yourself it’s working. Then download the web app framework called express (it runs on nodejs), and build some of their samples.

Then see if you can build a simple nodejs-express app that accesses the fake data and displays it to a user on a web browser.

For programming, by all means use a good IDE. I like WebStorm.

Look, there’s a high learning curve here. It’s going to take some dicking around (that’s a technical term😇) to learn to do this. The Odin Project might help you walk through all this.

But when you do figure it out you’ll have built a simple health informatics app.

1

u/Own-Breadfruit6723 1d ago

Ma di JavaScript al momento cosa sai?

1

u/IndependentYak2822 1d ago

Can you build more simple app like a calculator?

1

u/Greedy_Ad_7658 1d ago

The freeze is normal when you move from guided assignments to open-ended ones, and it's a skill you train with a repeatable routine rather than talent. One that works: before writing any code, write 5 to 8 plain sentences describing what the program does, then turn each sentence into the smallest thing you can run and see. For example, "show a list of items" becomes an array of three objects printed with console.log, then rendered into the page, then a button that changes one of them. Only after that works do you add the next sentence. You never face a blank page, just the next small step.

Also try reading before writing. Take a small working project, change one behavior, and break things on purpose to see what happens. That also fixes the arrow function problem: rewrite each one as a normal function with names, then back. Once you can read short chains like .filter().map(), the unfamiliar code stops looking like a wall.

A few good first builds: a to-do list with localStorage, a quiz with a score, or a small data table you can sort and filter. They use the same pieces as real apps (state, events, rendering), without Pac-Man's pile of problems at once.

1

u/DirtAndGrass 10h ago

As someone who works in a medical technology field, I'm just going to jump in and say that this sounds like a nightmare... 

Why would you or your prof have any access to patient data? If it is not caregivers or a very limited set of support personnel, then you should be using fully anonymized records.

This sounds like a legal quagmire... At least if dealing with patients in the western world