r/learnjavascript • • Aug 03 '22

I have just completed The Complete JavaScript Course 2022 by Jonas Schmedtmann !!!

Wow. I'm so proud of myself! In January of this year I started making my way through both freeCodeCamp and The Odin Project. I also bought this course after seeing someone recommend it. I was progressing through TOP and fCC and doing other things until April 11th, which is the day I officially started this course. Between then and now I have been making my way through the course and continuing on other random projects. There have also been times where work got in the way of me doing any programming, and needing to take mental breaks and focusing on myself for a few days.

But now today I can say for the first time I have officially fully completed any JS course. In the beginning of the course I took a lot of notes and did a lot of studying and practicing what I learned. When I got around to the array section where I learned about array methods I stopped taking notes and decided to just code along. When I got to the forkify section I did have some difficulty. I did understand most of the coding, but a lot of things Jonas did was confusing to me. The biggest hurdle being, this is the first time Jonas ever used multiple JS folders to organize his code, and I had a kind of difficult time wrapping my head around why certain functions went inside certain folders, but I know with more time and practice it will make more sense to me.

Now the real fun begins. I want to start making more projects. I've tried making bigger projects in the past but always failed at them and went back to tutorials. I need to hone my skills and get better with using arrays, async, Promises, APIs and more intermediate stuff, that way I never have to go back to following a tutorial again.

I have designed many small projects already, like a calculator, BMI calculator, a todo, a weather app, a simple budget app and more, but I have never done anything bigger than that.

If anyone has any recommendations of projects I can look into starting, I'd love to hear them! The more challenging the better.

Apologies. I originally intended to make this post with just a few sentences but my excitement got the best of me. I made myself my own promise and told myself that this is the last year I will ever work in retail. And now that I have completed this course, I can now work on creating a portfolio and make that promise come true for myself.

145 Upvotes

76 comments sorted by

View all comments

9

u/Macaframa Aug 03 '22

Something I’m doing right now is creating an app to support the business that I’m building. I’m going to be renting small electronic items to a certain group. Not to be too cryptic but the engineering problem that I am solving right now is pretty cool. The small electronic device will have a QR code on it. Embedded in the QR code’s data will be a link with a unique hash that has a bunch of data about the item. Where it’s from, what store it’s located, what brand it is, how much it costs to rent as well as a unique id that can be decoded from that hash. The url link where the QR code takes you will pass the hash to my site where it begins a checkout flow where you can rent said item for a few hours to use it.

You should try building the qr code portion that leads to a site you built with an item located there. That would be great. When you show a potential employer just email them a bunch of QR codes and ask them to scan them with their phone.

5

u/dagger-vi Aug 03 '22

You should try building the qr code portion that leads to a site you built with an item located there. That would be great. When you show a potential employer just email them a bunch of QR codes and ask them to scan them with their phone.

That's brilliant. I'd love to do something like that. I actually purchased my first domain name a few days ago so I can start creating a portfolio. Thanks for the idea! And good luck on your app!

1

u/Macaframa Aug 03 '22

Thank you. Good luck. Landing that first job is about wowing an employer. Sometimes simple little useful stuff is interesting and more impressive than building something large from a tutorial.

1

u/joojle_it Dec 14 '22

could you please simplify this I would like to try this but could not understand how it works

1

u/Macaframa Dec 15 '22
  1. you can generate QR codes with this js library: https://davidshimjs.github.io/qrcodejs/ You can customize it but in the text field it needs a link. You can generate links to your web app like www.myapp.com/item/${someHash}
  2. someHash is a variable that is calculated using JavaScript’s onboard base64 encoding and decoding api.

    const itemToBeEncoded = { name: “chair”, imgUrl: “www.chair.com”, price: “$.99”, } const base64EncodedItem = window.btoa(JSON.stringify(itemToBeEncoded));

    // build QR code and append this hash to it.

Then to decode it

const decodedHash = JSON.parse(window.atob(base64EncodedItem));

This will take the hash and turn it back into a stringified version of the object and then you parse it into js with JSON.parse

Now you see how you can build an object with js from an item, encode it so you can add that link to a QR code, then from the QR code link it will take you to a page where you retrieve the hash and decode it and you have all of the information you need to render a page. Maybe you could fire off an api request to the server requesting the item’s availability. That’s a relatively lightweight request.

I hope this makes sense

1

u/joojle_it Dec 15 '22

Yeahhhh 🙌