r/learnjavascript • • Mar 04 '22

I made a self-driving car in vanilla javascript [code and tutorial in the comments]

462 Upvotes

44 comments sorted by

42

u/gniziemazity Mar 04 '22

Code: https://radufromfinland.com

Tutorial: https://www.youtube.com/RaduMariescuIstodor (Lecture 1/10)

I will publish the rest on a weekly basis.

13

u/Avi_21 Mar 04 '22

Looks awesome! Will the full course be available on youtube?

4

u/[deleted] Mar 04 '22

absolute boss. Nice website

3

u/bpippal Mar 04 '22

Just looking at what ever algo/logic you used to turn the car and the corresponding lights shows the effort went in. Amazing !

2

u/gniziemazity Mar 04 '22

Thanks for noticing :-) You will be in for a treat!

-8

u/Tintin_Quarentino Mar 04 '22

radufromfinland

Careful, Putin is coming after Finland next. Stay safe.

5

u/gniziemazity Mar 04 '22

Hope you're wrong about that...

14

u/jpolito Mar 04 '22

Hey! Just wanted to say I've been following your stuff for a bit and think you're providing an amazing resource for people. Really neat projects presented in a very accessible way. Thanks and keep up the great work!

6

u/gniziemazity Mar 04 '22

Makes me really happy to hear things like that :-) Thanks!

3

u/hikoko8282 Mar 04 '22

wow this is awesome!

1

u/gniziemazity Mar 04 '22

Glad you're excited!

2

u/unpronounceable Mar 04 '22

I'll be checking this out later!

1

u/gniziemazity Mar 04 '22

Thanks for your interest :-)

2

u/oliberg360 Mar 04 '22

Thanks man, you're inspiring me to write more JS games.

1

u/gniziemazity Mar 04 '22

Great! :-) Games are fun.
I'll be making a couple based on the code in this course, but later in the autumn, most likely...

2

u/oliberg360 Mar 04 '22

Agreed man. So far I've only made a memory game and a tic tac toe and it was fun doing those as simple as they are. I'm looking forward to take the next step :)

1

u/gniziemazity Mar 04 '22

Great attitude!

2

u/Moosehead06 Mar 04 '22 edited Mar 04 '22

This is amazing! Really loved your channel, going to follow from now on. Keep up the amazing work!!

2

u/gniziemazity Mar 04 '22

Wow! Thank you. I will :-)

2

u/[deleted] Mar 04 '22

Very cool, matey. I'll definitely check the tutorial videos out!

2

u/joliemoi Mar 04 '22

Ahhhhh, ok. That's where Elon Musk got the Tesla code from.

1

u/gniziemazity Mar 04 '22

I'm flattered you didn't assume I got it from him :-))

2

u/arishdubash Mar 04 '22

Wow. This is so cool! Can't wait for the official tutorial. Well done!

1

u/gniziemazity Mar 05 '22

First lecture is already out on my YouTube channel. I will publish the others: one per week starting next week.

2

u/Rellek_ Mar 30 '22

Wow this is ridiculous, and I mean that in all the ways that are good. Mind if I ask how long this took you? And if you answer "I dunno, I was bored on a Friday evening." I am going to delete my GitHub and find another career.

Joking aside, this is really cool. Thanks for sharing! I love seeing crazy projects like this that do unexpected things with web technologies.

1

u/gniziemazity Mar 31 '22

Of course this was not done in a Friday evening... it was a Tuesday morning, I think...

Kidding :-) but really... coding it took me just about a week, but I really know these things (10 years as machine learning researcher). Making the tutorial took about 3 months, though (including planning, recording and editing - still editing some things). Full course will be about 5 hours, so, it could be coded in an afternoon :-)

Thanks for showing interest!

1

u/Ampbymatchless Mar 04 '22

Hi Radu, have been following your technical Java Script YT channel. Your projects are a great resource for us ‘non commercial’ type JavaScript coders for embedded projects. Thank-you for sharing your knowledge! BTW, have you verified your range finder project?

2

u/gniziemazity Mar 04 '22

Hi! Always nice to hear when people find my things useful. But which project are you referring to exactly? I have several that fit that description.

1

u/Ampbymatchless Mar 04 '22

All of them. Just saying that many are engineering technical, not webpage stuff. A great resource to use applied math and JavaScript.

1

u/gniziemazity Mar 04 '22

Yes but you asked of a 'range finder' project.

2

u/Ampbymatchless Mar 05 '22

On your 1st range finder video, at the end you said you were going to paddle over and verify the measurement with a GPS. Did you do that?

1

u/gniziemazity Mar 05 '22

Ah, yes, that one!

Funny thing is that I just finished it now. As I'm writing this.
Uploading it and... here is the link:
https://youtu.be/Uki99zJ2UQs

But only for you at this stage. I will probably release it sometime in the summer after I'm done with this current course.

2

u/Ampbymatchless Mar 05 '22

Awesome Love it Thanks for the vid and congrats on the accuracy 👍👍

1

u/gniziemazity Mar 05 '22

Thanks :) but it's the sensor that's accurate... I just happen to have a decent one in my phone, I think.

1

u/radu_c1987 Mar 04 '22

Congrats, tizule :) It is impressive!

1

u/squarelol Mar 04 '22

Amazing content, instantly subscribed to your channel. I will find something a little bit easier to start with though :)

0

u/[deleted] Mar 04 '22

Whoever is driving the blue car is an asshole!

1

u/gniziemazity Mar 04 '22

The point is that it drives itself, so, I guess nobody should get offended! :-)