lab-brussels-1 / home

Home repository for Lab Brussels 1.
https://lab-brussels-1.github.io/home
MIT License
4 stars 5 forks source link

Madhu : Welcome to JS, 3 weeks #308

Open MadhuMNG opened 2 years ago

MadhuMNG commented 2 years ago

Welcome to JS

Learning Objectives

Priorities: šŸ„š, šŸ£, šŸ„, šŸ” (click to learn more)
There is a lot to learn in this repository. If you can't master all the material at once, that's expected! Anything you don't master now will always be waiting for you to review when you need it. These 4 emoji's will help you prioritize your study time and to measure your progress: - šŸ„š: Understanding this material is required, it covers the base skills you'll need for this module and the next. You do not need to finish all of them but should feel comfortable that you could do them with enough time. - šŸ£: You have started all of these exercises and feel you could complete them all if you just had more time. It may not be easy for you but with effort you can make it through. - šŸ„: You have studied the examples and started some exercises if you had time. You should have a big-picture understanding of these concepts/skills, but may not be confident completing the exercises. - šŸ”: These concepts or skills are not necessary but are related to this module. If you are finished with šŸ„š, šŸ£ and šŸ„ you can use the šŸ” exercises to push yourself without getting distracted from the module's main objectives. ---

1. What is Programming

What is a program? What is a programming language? How do programs and people fit together?

2. Just Enough JavaScript

Go in depth on JavaScript you need to know for writing interactive text-based programs in the browser. Along the way you will learn how each language feature works in small programs.

3. Understanding Programs

Learn how to understand a larger programs by finding connections between the details and the big picture. By the end of this chapter you will know how to read a new program and do a simple code review.

4. Developing Programs

Learn to modify and write larger programs in JavaScript. You'll cover many of the hidden skills necessary to develop quality software and to work collaboratively on a code base.


Setting Up

expand/collapse
> You will need > [NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) and > [nvm](https://github.com/nvm-sh/nvm#installing-and-updating) on your computer > to study this material > > Using a browser with good DevTools will make your life easier: > [Chromium](http://www.chromium.org/getting-involved/download-chromium), > [FireFox](https://www.mozilla.org/en-US/firefox/new/), > [Edge](https://www.microsoft.com/edge), > [Chrome](https://www.google.com/chrome/) 1. Install or update the `study-lenses` package globally - `$ npm install -g study-lenses` (if you do not have it installed) - `$ npm update -g study-lenses` (if you already have it installed) - Didn't work? you may need to try: - (mac) `$ sudo npm install -g study-lenses` - having trouble updating? - try this: `$ npm uninstall -g study-lenses && npm install -g study-lenses` 2. Fork and clone this repository: 1. fork the HackYourFuture repository to your personal account - `git@github.com:HackYourFutureBelgium/welcome-to-js.git` 2. clone your fork to your computer - `git clone --depth 1 git@github.com:HackYourFutureBelgium/.git` 3. when there are updates to the module: 1. update your fork with a PR 2. pull the changes from your fork to your computer 3. Navigate to the module repository in terminal - `$ cd welcome-to-js` 4. Run the `study` command from your CLI - `$ study` 5. The material will open in your default browser, you're good to go! - you can read the `study-lenses` user guide from your browser by navigating to `localhost:xxxx?--help` > If you have a Windows computer and get this error: > > - `... /study.ps1 cannot be loaded because running scripts ...` > > follow the instructions in > [this StackOverflow answer](https://stackoverflow.com/a/63424744), that should > take care of it ; ) --- ## Code Quality Scripts This repository comes with some scripts to check the quality of this code. You can run these scripts to check the code provided by HYF, and to check the code you write when experiment with the examples and complete the exercises. ### `npm run format` This script will format all of the code in this repository making sure that all the indentations are correct, the code is easy to read, and letting you know if there are any syntax errors. ### `npm run spell-check` This script will check all of the files in your repository for spelling mistakes. Spelling is not just a detail, is important! Good spelling helps others read and understand your programs with less effort. `spell-check` is not so clever though, it doesn't have _all_ possible words in it's dictionary and it won't know if you _wanted_ to spell a word incorrectly. If you think one of it's "Unknown word"s is not a problem, you can either ignore the suggestion or add the word to the `"words": [ ... ],` list in [.cspell.json](./.cspell.json). ### `npm run lint:md` This script will [lint](https://en.wikipedia.org/wiki/Lint_%28software%29) all the Markdown files in this repository, checking for syntax mistakes and other bad practices. Fixing linting errors will help you learn to write better code by pointing out your mistakes _before_ they cause problems in your program. Some linting errors will take some practice to understand and fix, but it will be a good use of time. ### `npm run lint:js -- ./path/to/code` Just like `lint:md`, but for `.js` files. This script will lint all of the JS files in this repository, letting you know if there are any syntax errors or bad practices.
danielhalasz commented 2 years ago

@MadhuMNG can you please add your check-in comments for the week and after submitting, add the week-1 label?

MadhuMNG commented 2 years ago

Week 1

I Need Help With:

I'm not sure how to work in 'http://localhost:4005/?--defaults'. Not much familiar with tabs, hence taking time to go through and practice.

What went well?

What went less well?

JS is completely a different approach comparing to html and CSS, as a beginner understand basic structure/approach of JS is important and it will take time.

Lessons Learned

learnt many concepts JS Statements JS Syntax JS Comments JS Variables JS Let JS Const JS Operators JS Arithmetic JS Assignment JS Data Types

Sunday Prep Work

studying more about JS syntax and practically trying some them.

danielhalasz commented 2 years ago

I'm not sure how to work in 'http://localhost:4005/?--defaults'. Not much familiar with tabs, hence taking time to go through and practice.

Evan created a video and some slides that explain the usage of study-lenses. It is included in the repo here Which tabs are you not familiar with?

danielhalasz commented 2 years ago

we also had 2 sessions this week where anyone could ask the coaches. could you join one of them?

MadhuMNG commented 2 years ago

Thanks Daniel , I will go through video by Evan. Yes I attended one session.

MadhuMNG commented 2 years ago

Week 2

I Need Help With:

Would like to learn how while and for commands work in real scenario.

What went well?

What went less well?

Lessons Learned

writing code and check the output. More practice is very much required.

Sunday Prep Work

Going through the videos

colevandersWands commented 2 years ago

Would like to learn how while and for commands work in real scenario.

there is no one "real scenario", any program is a real scenario! Game developers will use while loops differently than a data analyst and differently than a web developer. It's a lot like grammar in spoken languages, when you talk to a lawyer you may understand the words they're saying but you have no idea what they're trying to tell you.

In the next modules you'll start studying and solving coding challenges, then you'll get a chance to see how other people use while loops. For now focus on understanding the programs and the rest will come easier

MadhuMNG commented 2 years ago

Thanks @Evan.. Yes I have understood the while and far loop.

danielhalasz commented 2 years ago

@MadhuMNG week3?

MadhuMNG commented 2 years ago

Week 3

I Need Help With:

What went well?

What went less well?

Lessons Learned

Sunday Prep Work

danielhalasz commented 2 years ago
  • Initially html and CSS were difficult , now I have confident writing few codes which were seemed very difficult at the begining.

this is nice to hear, hopefully you will feel the same in a few months about JS too :)

danielhalasz commented 2 years ago
  • Trying to use html and JS codes in developing new website which is time consuming.

for your UX project, please do not use any JS for now. just HTML & CSS.

MadhuMNG commented 2 years ago

Ok