I have a PhD in Computer Science and I want to teach you things. I publish: 1. Courses I teach at the university 2. JavaScript project tutorials 3. Entertaining videos about coding 4. Advice I give to my students 5. Some weird things. You'll see...
Thx again =) Here's a few lines for a nice ghosting effect - remove ctx.clearRect and fill screen with transparancy: // ctx.clearRect(0, 0, size, size) ctx.fillStyle = 'rgba(0, 0, 0, 0.1)' ctx.fillRect(0, 0, size, size)
This is pretty cool. I will try and learn from this and apply it to your "Animating a Plane on a Path with JavaScript | Live Coding on a Plane!" tutorial, to fill in large gaps if the mouse is moved quickly so that the point moves smoothly.
Yeah :-) Also... I kind of miss those days when software were relatively small apps with fewer features. The new versions of everything are very powerful, but for the average user... they never use more than 5% of the capabilities (yet they pay for the whole thing).
That’s some fine looking code you’ve got there Dr. Radu especially the maths part. What kind of mathematics is this called if you don’t mind me asking. I can code but my maths skills is atrocious unfortunately 😢 but I’m looking to improve them so I can code projects like this. Thanks and I hope you have a pleasant holiday.
Well... I guess I use different elements of geometry (drawing the curves), trigonometry (orientation) and... maybe signal processing for the window average (smoothing the path). I do have a video on trigonometry in my 'math and code' playlist. Maybe it helps :-) And, I'm not on holiday anymore :-) just enjoying the weekend. And... this video is from a work trip in February :-)
@@Radu Thank you for your reply Dr. Radu. Your course on Trigonometry looks like the very thing I need to get to grips with. I want to be proficient in linear algebra, calculus, trigonometry and geometry, I’ll be investing heavily into studying these by switching to part time working in the new year to study these. I will certainly be making full use of a lot of the videos in the Math & Code fundamentals.
It's really stressful as well :-D my battery lasts for about 1 hour when screen recording is on. But it's fun projects I'm working on, so, it's a good kind of stress :-) nothing bad happens if I fail to do it.
Hi...im in healthcare and Ive got an idea of an app that would be so useful for clinicians. I would love to see you liking it as well. Im just saying. I would hate to die and think others could have the benefit of something like that. If it interests you, please let me know. I did something a while ago and now Im minus negative...
I wouldn't really have time for something like that... Have a full-time job as a teacher. But I think it's good that you continue working on it and if you get stuck in some places, you can ask: here, but probably Discord is even better.
Haha :-) I think getting the stars on camera might be a challenge. Buuuut... I do have a video coming up at some point where I make a basic google maps clone on the train. Does that count as close enough? :-)
Hi. Can you make a tutorial about a snake game that has to move around in a maze and try to get out. The snake is controlled by the player. The snake does not grow when it eats the food but restores health because it gets shot by the guns that are fixed the in the room when you get in there. The maze is big and you cannot see the ends. I tied making it but I don't think I will be able to do it. @@Radu
Sounds like a unique idea :-) and it's quite clear in your description... Have you tried asking some AI for help? Unfortunately, I have videos already recorded until next summer, so, I'll just be editing them when time and then I really want to do some other projects, so I won't have time for such a game anytime soon. But if you want help, you can share your code (for example on my Discord) and I'll have a look when you get stuck.
for anyone confused on why we are subtracting a frm b, its to get the length from b to a, this is bcos our lines(a and b) both start from the same point so we don't know the length or distance btw a and b so to do so we subtract a frm b and then we can effectively get any position in between my scaling that length down using multiplication(scales down bcos we are using a fraction)
You have such a nice way to explain things. It was really cool to see the use of dependency injection and refactoring to make things more concise. Awesome explanation, nice work, Radu!
I don't see why we shouldn't integrate the code for finding a path from arbitrary points directly into `graph.getShortestPath`. This would enhance the general utility of the Graph class. If preserving `getShortestPath` as a pure implementation of Dijkstra's algorithm is important, we could move just the algorithm itself to a separate utility, like `math-util.getShortestPath(start, end, graph)`
It's a good idea. I guess I was thinking that Dijkstra's algorithm has so many variants that you may want to extend that class with different implementations. But no problem doing as you suggest!
yea, if I were to code this, I'd code it in 1000 lines or even more. Maths do make some things easier. I wish you all the best with SoMeπ Radu. And, thank you.
Thanks Radu , i ve learned so much from this video in particular. I noticed you are just pretending the functions exist and just type them into your code and THEN you define and implement them. Thats a very interesting aproach because its easier to keep track of what you were suposed to do in the first place. Great video as always.. thank you very much for sharing with us! You are the best!
Yes, it's called a top-down approach. It helps figure out what lower-level components you need to implement and what should their input / output be. Thanks for watching :-)
Never really implemented this before, but my approach would’ve been the exact same. What I’ve learned however is that my intuitive approach allowed me even more flexibility. I enjoy watching your videos Radu, keep up the good work!