r/learnjavascript • • 7d 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-structure (NOT ACTUAL PATIENT DATA!!!) and 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

23 comments sorted by

1

u/Discordbothost 7d 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 7d 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 7d 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 7d 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 7d ago

is javascript even viable with AI ?

2

u/LmaoImAPotato 7d ago edited 4d 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 stuff

1

u/Aggressive_Ad_5454 7d 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/LmaoImAPotato 4d ago

I love the fact that you said "convince yourself". Gonna have to hope it just works. I will do so, hopefully connecting it to an SQLite (my DB course might come in use) and then see how it works. Will work on it 🫡

more on app, its probably gonna change some of the hospital architecture. The problem is each department is using something else. Like some data go from EHR (Obviously don't have access to patient data, just the flow) and might have to change those. For example, I'm gonna talk about a unit I used to work with. It was that certain machineries have a previously made API that calls the EHR system of a hospital (could be whatever).

Then the agencies want an annual data from that department for statistics like public health agencies, which is hand made, so it goes into a script that actually extracts you, makes a UI/UX to give it to others, but sometimes, this data gotta be monitored (again I have no clue what the data is, but I know some stuff is not reported because patients specifically don't ask for them) so has to go though another thing, changes the format or patients come from outside of state/province so now u gotta use the standard and all. Its a pain honestly. it could be a simple UI or it could be an app that the department will use, for now the "plan" is to make their life easier with a specialized app, but not sure where will we end up. Again I still haven't started. I will remember and come thank you once I cooked :). I will start picking around and let you know.

1

u/Aggressive_Ad_5454 4d ago

Indeed. Real health care data is unspeakably intricate, because it models real-life processes that are just as intricate. And that’s before you start messing with HL7.

That’s why I suggest starting with something very simple. SQLite is a good choice for fooling around.

1

u/Own-Breadfruit6723 7d ago

Ma di JavaScript al momento cosa sai?

0

u/LmaoImAPotato 4d ago

Just enough as in variables and all. not really deep into, what is nodeJS express, and other "server related" stuff that are there. Just the same amount BroCode teaches

1

u/IndependentYak2822 7d ago

Can you build more simple app like a calculator?

0

u/LmaoImAPotato 4d ago

Just made it. Learned a bit tnx.

1

u/IndependentYak2822 4d ago

Beast! Make a lot of small projects to gain experience.

1

u/Greedy_Ad_7658 7d 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/LmaoImAPotato 4d ago

Sounds great. So basically start from "user journey" and then go down to the most atomic.

also for reading before writing, what is a good introductory place to start? would it be just like, look at GitHub projects and read some? Or any other things that you have in mind

1

u/Greedy_Ad_7658 2d ago

Yes, reading before writing works well. Pick a small, well-organised project (a few hundred to a few thousand lines), not a giant framework. Find the entry point (main/index file) and follow one feature from the request or click down to the data. Run it with a debugger or console logs so you see the real flow instead of guessing. Reading the tests is also useful, since they show how each part is meant to be used. Then change something tiny (rename, add a log, fix a typo) and see what breaks.

1

u/LmaoImAPotato 2d ago

Hmm okay. Sounds like a plan. Tnx

1

u/DirtAndGrass 6d 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 

1

u/LmaoImAPotato 5d ago

Not to patient data. None of us have access to patient data. I should've been more clear my apologies.

The structure on how patient data is organized. I will edit that, so its just hospital architecture and we prefer to not show "how the system works" thanks for pointing it out

1

u/HiEv 4d ago

If you're having trouble picking your own things to program, you might want to pick up the totally free game "BitBurner". It's a "hacking" game based on using JavaScript to do all sorts of things in the game. You can start by doing some things in the game manually, but to get to the end of the game, you have to automate just about everything via JavaScript code.

If you're looking for help with the game, there's an active BitBurner Discord channel and r/Bitburner subreddit.

I have a ton of hours in the game, and I learned a bunch of JavaScript in doing so.

Hope that helps! 🙂