"I'm not perfect" OR "many solutions to a problem"
HTML-код
- Опубликовано: 7 май 2023
- 🎮 Wishlist my Steam game! cmonkey.co/dinkyguardians
❤️ Watch my FREE Complete Course • Learn Unity Beginner/I...
🌍 Get my Complete Courses! ✅ unitycodemonkey.com/courses
👍 Learn to make awesome games step-by-step from start to finish.
👇 Click on Show More
🎮 Get my Steam Games unitycodemonkey.com/gamebundle
Reddit Post / based_on_a_true_story
🔴 RELATED VIDEOS 🔴
I Answer your Questions! • Code Monkey answers yo...
3 Ways to Find Targets in Unity! (Collider, Physics, Distance) • 3 Ways to Find Targets...
3 Ways to Shoot Projectiles in Unity! • 3 Ways to Shoot Projec...
How to Pick up and Drop Objects/Items! (First and Third Person, Unity Tutorial) • How to Pick up and Dro...
Simple Inventory System in Unity (Store, Use, Stack and Drop Items) • Simple Inventory Syste...
Awesome UNIQUE Crafting System! (Max Immersion, No Inventory, Hydroneer, Unity Tutorial) • Awesome UNIQUE Craftin...
Awesome Inventory Tetris System! (Resident Evil 4, Escape from Tarkov) • Awesome Inventory Tetr...
Simple Weapon Attachment System! (FREE DOWNLOAD) • Simple Weapon Attachme...
💬 I normally answer all comments and questions in my videos, and sometimes I randomly Google Unity Code Monkey to see if anyone is asking questions somewhere else like Twitter or Reddit, and recently when I did that I found this post on r/ProgrammerHumor
It's talking about how in my course, despite being focused on writing good clean code, at one point I used 5 levels of nesting.
This is the perfect example for me to talk about two things: How I'm not perfect and how there are always multiple ways of solving some problem.
📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!
✅ store.steampowered.com/app/12...
If you have any questions post them in the comments and I'll do my best to answer them.
🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
See you next time!
📍 Support on Patreon / unitycodemonkey
🎮 Grab the Game Bundle at unitycodemonkey.com/gameBundl...
📝 Get the Code Monkey Utilities at unitycodemonkey.com/utils.php
#gamedev #indiedev #unity3d
--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.
I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Other great Unity channels:
Unity - / unity3d
Brackeys - / brackeys
Dani - / @danidev
Jabrils - / @jabrils
BlackthornProd - / @blackthornprod
Sykoo - / sykootv
Jason Weimann - / @unity3dcollege
Jonas Tyroller - / @jonastyroller
--------------------------------------------------------------------
- Website: unitycodemonkey.com/
- Twitter: / unitycodemonkey
- Steam: store.steampowered.com/develo...
💬 Remember: Tutorials are just starting points, adapt them to your specific needs
🎮 Wishlist my Steam game! cmonkey.co/dinkyguardians
❤ Watch my FREE Complete Course ruclips.net/video/AmGSEH7QcDg/видео.html
🔴 RELATED VIDEOS 🔴
I Answer your Questions! ruclips.net/p/PLzDRvYVwl53v0W4fgVfLc4-F6NKGamm7f
3 Ways to Find Targets in Unity! (Collider, Physics, Distance) ruclips.net/video/h9oEhVqGptU/видео.html
3 Ways to Shoot Projectiles in Unity! ruclips.net/video/Nke5JKPiQTw/видео.html
How to Pick up and Drop Objects/Items! (First and Third Person, Unity Tutorial) ruclips.net/video/2IhzPTS4av4/видео.html
Simple Inventory System in Unity (Store, Use, Stack and Drop Items) ruclips.net/video/2WnAOV7nHW0/видео.html
Awesome UNIQUE Crafting System! (Max Immersion, No Inventory, Hydroneer, Unity Tutorial) ruclips.net/video/_aC3NVIQ-ok/видео.html
Awesome Inventory Tetris System! (Resident Evil 4, Escape from Tarkov) ruclips.net/video/fxaDBE71UHA/видео.html
Simple Weapon Attachment System! (FREE DOWNLOAD) ruclips.net/video/b6XYqtTYnc4/видео.html
Reddit Post www.reddit.com/r/ProgrammerHumor/comments/12sjw31/based_on_a_true_story/
Bro, you're awesome. I've been subbed for a long time and I enjoy your videos. ☆
Hey Code Monkey! I love your videos, you've helped me a lot in learning unity and there's one thing that I'm not sure about and that's this dude who posted your 10h course on his yt account and cut it into 4 parts I wanted to ask if you gave him permission to do that or maybe he just did it illegally
Links to those videos are below:
ruclips.net/video/GByjdpUS36M/видео.html
ruclips.net/video/yZC4AjGyjDM/видео.html
ruclips.net/video/kbrBcmQsT6o/видео.html
ruclips.net/video/KSKcCvA_aH0/видео.html
Have a nice day king!
I love your content. I've learned so much from you! The only thing I can do, other than continue to buy your content, is to say ... Thank you..
To be fair, if it took them 7 hours to have a complaint, when a lot of tutorials are 5 minutes long and have problems, I think you're still in the top % of Unity tutorial creators. You make amazing content.
This is a great comment. 7 hours in, means it was a solid tutorial and they have learned so much…
CodeMonkey keep up the good work!
Yeah thats a good point lmfao Also 7 hours in to someones tutorial usually means im like 15-20 hours personally in the project and am starting to pick up the platform more. This channel is great making everyone happy is impossible.
Also those 5 if statements could have been so many more, but because the conditions being checked makes sense then it settled on 5.
If I would have to come with a code similar to that I would be checking conditions in so much stuff and would've been barely functioning lol
As a content creator myself, I really dislike how people can ignore the fact that you've put a lot of work into making a good 10 hour content and put all their energy into complaining about a random thing. Keep it up, man. You're doing great!
People just try to say something, regardless how meaningless it is. If having five nested if statements is the worst they roast you for, you've done a pretty good job.
always appreciate your work. Don’t let someone’s thought of perfection stop you. Thank you for your effort to share.
encouraging someone to not learn to be better is not a good thing. obviosly his solution is not good and there shuld be a better solution not involving loops. from my experience, i lean to loops only if i dont have a good system to solve the problem.
@@zendraw3468 he never claimed his ways are the best, did he? go ahead and implement your "better" version. NO ON IS STOPPING YOU.
Guy literally made 10h long valuable tutorial which could been sold for thousands of bucks and here you are complaining about things that are really irrelevant. On a side note, I would rather use nested loops than complicating my code base. In the end it boils down to preference.
@@lfepped6474 it boils down to prefrence becouse you are a noob and dont know what your talking about.
with prefrences youll just hit brick walls, leave wip projects and procrastinate on youtube.
tell me im wrong.
@@zendraw3468 I don't know whether you noticed, but it was a video intended for beginners and intermediate ; I have no doubt that they won't mind if it has loops. moreover, I don't believe loops are all that horrible.
Do not worry about it. These kinds of things happen from time to time. This course is very well done then any other 10 HOUR course out there.
Thank you Code Monkey.
@Leanja the 10 hour free course IS definetly production ready code, it's not just a tutorial. It's a course for a complete game.
Code Monkey rocks!
also everyone should strive for perfect optimized code all the time /s
@@QuietOrder we should write our games in assembly
@@QuietOrder Let's code our games in 1 and 0 then
@@QuietOrder you should not get obsessed with optimization
I personally found your 10 hour course to be too advanced for me, so I went to Unity Learn and did the Junior Programmer pathway, they make it super easy to learn the basics, with baby steps to follow along. Now that I have done that, I feel like I can do a better job following your course now, so I will be coming back to it.
I hope you like it!
Humility is the mark of true Wisdom. 💯👍🏻
We are always learning, no matter the level we're at. Great video 😄
Code Monkey, I have to say that you are an absolute rockstar in the programming community! Your videos have been invaluable to me and countless others. I can't even begin to express how much I appreciate the time and effort you put into creating such high-quality content.
I know I'm not the only one who feels this way, but I wanted to take a moment to give you a huge shoutout and express my gratitude. Your dedication to helping aspiring programmers is truly inspiring, and you're making a real difference in the world.
Thank you so much for everything you do! You are a true inspiration to thousands of programmers out there, and I can't wait to see what amazing things you'll accomplish next. Keep up the fantastic work!
Thanks for the kind words! I'm glad the videos have helped you!
Handling criticism in code reviews is a very important skill for software engineering and this video is a great demonstration. The poster didn't intend malice, you acknowledge that and consider the variety of alternatives without taking offense. You tutorial is valuable content, but it is content like this where you are vulnerable and handle it constructively that demonstrate how to progress from hobbiest to professional. Thank you for sharing your passion in a way that acknowledges real challenges of software
Thanks for your course Monkey! I am a software engineer but wanted to try to build my own game for a long time! I have briefly looked at other courses but your free course is the best so far. Everyone has it's own programming styles, and from learning for your style in the game development, I believe people can find their own style in the future! But some fundamental things taught in the course won't change.
Looking forward to finish the course and pick up the advanced course you had in your website :)
You do an amazing job and I am always thankful for your help!
The "many solutions" part is so true since sometimes it's not the solution im looking for BUT it always helps me to understand the problem deeper and come up with a solution that suits me!
So again Thank you! and keep on going with your amazing work.
Casually I went through that piece of code today and I didn´t find anything wrong with it. Through many years of coding I can say that there is no perfect solution or perfectly clean code. Complexity formulas are not the only thing to take into account when developing, time is another important factor. I think that the main objective here is to explain how things works with this engine. Thank you Code Monkey. BTW a good dev makes a code review.
Good video, thanks! Your videos has helped me tons in my own game development. People forget that they are not just supposed to copy your code but should try to understand the concepts you are teaching. Keep up the good work!
Brother, your work on your videos are stunning. Even people who take money for their courses, can't give so much knowledge as you giving. You are best man, I have seen alot of courses and yes they can give something, but not so much as you can and noone will tell you about clean code. I also reading Code Complete by Steve McConnell right now and with your tutorials, its give me more to understand that book. Thank you Brother
Pro dev here
your channel is a good balance between programming and features, you are really good at what you propose to deliver.
Btw, I like the way you handle events using EventHandlers. Haven`t seen anyone around using it.
I hope you don't get discouraged from these kind of people. Keep up the good work and thank you for contributing to the community.
With that said, I already stopped learning game development and saw you years ago and learned awesome things and amazed you're still doing the same thing until now!
I loved the course, and as programming is my strongest skill in game dev I did notice some parts i thought I could code better, but I just took that as an oppotunity to have some fun and play arround with the code to see what can be done. I'm now deep into making my own project and the code I have made following the priciples taught by you have helped me lots, that and the added motivation of wanting to use some of the new tools i learnt. It also helped me with my code skills for work. So thanks a million!
To be understandable and clear is the first goal of a SUCH tutorial. Keep going, you're doing an amazing job. Quality code is another subject.
I'm an experienced JavaScript/TypeScript developer with 10+ years experience and I think your tutorial is simply GOLDEN!
With my preexisting knowledge of TypeScript knowledge and your tutorial, mastering C# was a walk in the park!!
Sure there are many ways to write some logic and like you've mentioned many times, refactoring is and essential tool to have under your belt!
All I want to say is that the NON-toxic Dev community appreciates you!!!
Just by saying this you're already better than most of the teachers I had. You're great and I love your videos. I am following now both the free beginners course and the turn-based strategy game, slowly learning to code in Unity to diversify my skills, and have to say that are just top of what I've found on the entire internet. You can feel proud of yourself, that is for sure.
I love your content. They do exactly what they are supposed to: to give ideas and to point in a direction. Although, for me as a novice, the tutorials are quite fast paced, i like them because they get straight to the point! "You need to do this? This is a way to do it!", I still go to you for code before everywhere else. You are doing a great job Code monkey! Keep it up!
Nah! you're good! Thanks for all the tutorials and effort you put in the Unity community!
❤ You rock, Code Monkey! Thank you for all that you do! ❤
Hey Code Monkey,
Love your content, it's very easy to follow and you definitely helped me in becoming a better game dev. Althought in general we should avoid nested if statements as much as we can, I more than understand and agree with your point of view. Don't worry about it. You are great and you help us a lot! Thank you!
The rest of us get it. It’s a meme based on a truth, yet it’s not something to get in a twist about it. You, being one of the top (if not the top) Unity tutorial creator, is a blessing. You have brought so much clarity and inspiration to many of us! 😎❤️ Looking forward to your future videos, no matter how many nests there are. 😄🙏
Great video. This summarises what I've tried to portray a few times. Might have to just link this video in the future 😅
Heh yup, I'm sure every tutorial creator has seen a few of these kinds of comments
I really like your work and appreciate your efforts. I watched some of your 10-hour tutorial, but I still can't figure out how you managed to make such a long, professional-level tutorial video available for free on RUclips. A programming tutorial isn't always about showing the best solution, as you say. The target of these kinds of videos is mostly to teach something to viewers. Therefore, rather than sticking with strict rules, it is better to write more understandable code (it's not the same as readable). I can understand why you would need to make this kind of video, considering the amount of effort and work you put into it, especially after seeing comments like this on Reddit.
my freind keep encouraging me to study with him but I kept delaying , Your way of teaching is the main reason I started learning , Your videos are inspiring , keep up the good work , you are amazing
People will always be spoiled brats and deem themselves entitled to criticize on something, even though he has devoured 7 hours of your content to IMPROVE his knowledge, and than he somehow finds the courage and level of expertise to criticize what he has gotten for free and from a professional... Fking mind blowing stuff...
But you are still a legend for taking the time to communicate in this way, even though that person nor any other who has the guts to criticize 10 hour free course will not learn a damn thing...
THANK YOU!!!!
Nesting is definitely something I try to avoid....but like you said there's more than one way to do the same thing and each way is valid if it works. I personally would have implemented recipes as an IComparable. That way the recipe code can do most of the heavy lifting and the gameplay code is just using the comparator to check congruency. Your tutorials are always great man. Keep up the good work!
I think our problem is that we want to get all the things the best way possible to avoid to think by ourselves.
It's not fair to judge you and you don't have to explain yourself.
I love your content, and youre a really good teacher and as you say youre a guide and we should apreciate it, learn and try to make it better.
Thnks for help me, and a lot of people in the journy of the game development
As someone who has been in the broader SAAS industry for awhile, but only recently got into video game development personally (2 months), I appreciate people sharing their point of views and take each with a grain of salt. It is always just another way to handle the problem and there are plenty of ways to program to achieve the desired solutions. Lots of great stuff on your pages though Brother, appreciate all your work!
Dude, you're amazing. Don't let someone else's negativity bring you down. Continue the good heart work. :)
Just wanted to say that your DOTS tutorials from a while back helped me tremendously. If someone is unable to take the structures you implement and spin off their own, they shouldn't be developers. You are doing a great service here, mostly free, and I wouldn't even mind if you took a break from social media and just focused on your games. If you start focusing on this stuff you will go crazy and doubt yourself. Good job man and looking forward to seeing your full games in action.
I'll be honest, I winced at the nesting also but then realized that the code was very easy to follow so I realized this was one of those instances where it's OK to break the rule.
It takes time to understand for some people to understand what such gold resource you are providing for free to people. Thanks for the content sir and these things are common wheen you are at the top of your game
Honestly, the reason I prefer your tutorials over anyone else's is because they are incredibly easy to follow and include any and all information related to what you are discussing. When following along with countless other tutorials out there, I have this feeling that they are leaving out information that helps me understand the "Why". Since the reason you retain information is because of relations, knowing why you are doing something, and how it could be used helps retain that information easier. Nobody is perfect obviously, but your videos are S tier.
Great info. Because of your 7 hour course, and the multiplayer one, I have the knowledge necessary to start my 6 month game project with best practices and the right tools for the job. I'm managing the project with Trello, and keeping track of my hours using Clockify. So far I have implemented a character controller, animation manager, interfaces, inherited classes for templates, events, proper naming conventions, etc...
So thank you Hugo for everything you are doing!
🐒
That's awesome! Best of luck with your project!
My thoughts.. I've used most of Code Monkey's tutorials as a stepping stone. They are a great way TO GET STARTED! He does not tell you everything you need to know (which is a big complaint of many tutorials), but is by far some of the most complete tutorials available.
My example, is the modular spritesheets tutorial for use with the dynamic meshes. The base system works great, but he does not share how to animate the meshes (it's very complicated), however you can get the source code and figure it out for yourself. I personally designed my own method to implement with it, which works better for me.
Code Monkey has always been super responsive any time I've had a question on something and I highly commend him on the work he does. Thank you!
Brother Am Soo Soo Glad to tell you that i've completed your ultimate course and now am looking forward for the Multiplayer Course
Thanks For The Amzing Course And brother its out of topic but Can You make a Video on Advance Car Controller i was Looking For the Car Video But i was surprised that you never made a video on car controller if you make One that would be very OSM Love You :)
Criticism mostly come from people that either envy you or have no f... idea what they are talking about... just pass on, you are making publicity to those pos.
You are one of the best youtubers I have seen here. Humble, proactive, loves to help everyone and shares his knowledge for free.
You are 1 in a trillion!!
To be honest. I really liked seeing the imperfections.
It shows that you don't have to do everything perfectly in order to be a successful (indie) Game Developer & get a fun and solid product.
And secondly it challenges me to think how I would implement it differently and why.
Thank you for making your great courses. You are by far one of my favorite Game Development RUclipsrs 🌟
This is a pretty arbitrary rule about nesting. You can make hard to read code with no nesting and vice versa. You should focus on readability first, not rules. Since, even if you break a rule, but result is still totally readable, your job is well done.
Also, if you use a tool like Viasfora, which was recommended in this tutorial, which has rainbow brackets, reading nested code is much much easier. And it stops being such a big issue. So unless someone codes in Notepad, chances are, they have access to rainbow brackets in any modern IDE (it's definitely available in VSCode, which I used partway through, until the part, where you used VS to autocomplete event listener function).
I think you did an exceptional job (and do regularly). Back in the day, when I used to work with Unreal, unfortunately, there wasn't access to so many great high quality tutorials (even if you search through multiple channels). So I'm really greatful to have someone like you on my journey to switch to Unity.
Don't sweat it man, you do great work. You commented each loop and gave the prototype, the others could optimize it themselves if they have a problem with it.
Honestly I get nervous to show others my code sometimes because other programmers tend to be very judgemental and pick apart at everything. I do enjoy and take constructive criticism seriously of course, but you have many of those who impose a sort of superiority complex or condescension upon you for your overall code smell. Ignore them, you're great at what you do and you are very appreciated.
DUDE you rock, I'm always watching and learning. Keep up the good work and don't take those comments to heart.
I love that you take criticism positively!!! Anyways I have completed both your free courses and also noticed that you sometimes don't use the early return pattern when you could, but that's not a problem or an anti pattern, it's just personal preference ❤
I wish I had 1/10 of your game dev skill...
Your tutorials are always usefull and your passion makes your videos really authentic, that's why I really enjoy them! We all know how internet works, don't listen to those people
People will always find a reason to complain about anything in any circumstances, I hope you don't let it get to you!
Your tutorials are really helpful, you don't have to offer a perfect solution, I often look for tutorials to get an idea of how people would implement a feature, and always improve the execution to meet my project's needs, anyone who would 1:1 copy a tutorial's implementation of something but then go and complain that it's not perfectly made for every use-case are hypocrites
I treat tutorials as a guidance HOW to make stuff work, I don't expect worldclass of code - just something to get me started or give me ideas. I just want to say thanks for being a great Unity tutorial creator! Cheers
You are the best Unity tutorial channel, some people especially on reddit are gonna be negative don't listen to them you are truly truly amazing and incredibly helpful to hundreds of thousands around the world
God bless you Code Monkey. One of the greatest!
Uff i really dislike these clean code fanatics who think they can determine how well someone programs just by their style. Besides, it doesn't matter if everyone says style x-y or guideline x-y is right. Just because a lot of people say something doesn't make it right or the only right way. But some people act as if this were the case and they always knew everything better. Really annoying. 1000 years ago half of the world thought slavery was ok, but that doesn't mean it was right, just because many people had the same opinion. 3000 years ago, nearly everyone thought the world was a disk🤷♂. It's funny just in my last video I was getting angry about it and today comes a video from you on that same topic. Don't let it get you down, i think you're cool, keep it up 👍😀.
my dude, you are the best tutor on yt, don't you ever worry :)
I really like your code, usually it is one of the most readable code on RUclips!
i think you as best instructor on internet for unity the way you teach topics and writing clean code and added a full fledged game in my portfolio moment i will start earning i will surely pay for your hard work for us
Personally, I found the way you originally had it more readable.
I might catch some flack for this but, the 'methodology' I follow is
1) Functionality - first get something working how I want it to no matter how ugly the code is
2) Scalabiity - work on decoupling, getting rid of magic numbers, anything that's going to hold back my work flow for other units
3) Performance - look at ways to make it more performant
4) Readability - finally look at how to make it more readable
If I get to step 3 or 4 and my project is either not performant or hard to follow, by now I've got a much better understanding of what to do, so I'll do another pass.
Obviously even during step 1 I'm trying to keep the code clean / performant etc, but it's not my focus.
I'm a hobbiest so I have the luxury of being able to use this approach but it does mean I feel like I'm constantly learning about my project as well as finding new ways to work through problems =)
I have friends in software dev and dev management in the corporate / non-gaming sector who tell me that it's amazing how much technically 'bad code' (and some actually bad code) is used in critical systems and infrastructure
Just today I recommended one of your videos to an apprentice under my guidance, and it wasn't the first time.
bah, with almost half a million people that are big fans of your work don't let a few people get to you. I was just talking about how you are one of the realest gamedevs out there. you come in with real examples of tested code within the games you have actually made and sold and are still making and selling. you out here giving away knowledge instead of talking a bunch of fluff and asking us to join your limited seating thousand dollar workshops/master courses. thank you for all that you do!
Code monkey is one of the best…such sarcasm shouldn’t be made publicly on the account of the ethereal comprehension of public perception.
I love how you made shooting and RayFire casting system was implemented.
I'm a programmer and I have my brain itching with anything more than 2 levels of nesting in my code, but I know that, especially for beginners, it is easier to see how things are happening when you have it like you did. Not my preferred style, but definitely no reason to be complaining as well. P.S. I've already found a script with 17 levels of nesting, including for and foreach loops, in a commercial game. That was a nightmare!
Hey Code Monkey, I adore your tutorials, they made me really become a super good developer. I agree with all the points in the video. You can't please everyone. And in my country there's a saying "Who works that one makes mistakes". So don't feel bad about comments, people will *always* have comments.
I have another question for you. Do you have a 'script' by which you follow your tutorials? I tried to make a tutorial for an advanced topic that has around 300 lines and it took me over an hour to record and it took me the rest of the working day to go over it to edit it. So if you have any tips and tricks for the beginner content creators it would be really helpful!
Thank you!
Yup I'm pretty bad at talking off the cuff so I write the complete script for every video.
Depends on how you write it but that sounds about right, 300 lines is a pretty big script for me, about 20-30min video which does take 40-60min to record.
For editing it depends on how complex is your edit, for me I have a pretty standard format, I already have the various Zoom Adjustment layers ready for Code and Unity. I have the various popups to related videos already prepared.
But of course nowadays I'm much more productive then when I got started, that really comes from experience.
Best of luck!
I managed a nested for loop for the first time totally on my own recently, and I was so proud - now I see people putting together 5 level deep for loops, hahaha, I still have a long way to go
I'm a dev for 15 years now and I tend to think that those "code nazis" are not the most experienced. They just want to exist by being mean.
Every piece of code can be optimized depending on the most urging need.
You always have to find a balance between : time to code / cpu efficiency / memory efficiency / readability / flexibility ...
You can spend (or waste) hours looking for perfection when most of the time it is useless.
Anyway, you work is so virtuous and amazing. I learned so much about Unity because of you and your continuous implication and passion for teaching others.
A thousand thank you for all the content you create.
most are just hobbiests without real world experience. i habe 4 years professional and my seniors hate jumping from method to method just to perform a simple operation. also makes future alterations a mightmare. changing one thing would ruin the connections, we prefer to follow KISS rule
@@joeman123964 kiss rule is always a good choice!
Bad publicity is good publicity. That's the way I'd look at it. Haha. Not that this is necessarily bad in any way but brings light to your content, so it's a win-win. Needless to say, people can say a 1000 good things but the negative always rises to the top because ultimately that is human nature . Yes you make a living from the content you create, so it's not necessarily something you do out of the pure goodness of yourself but a 10 hour tutorial for free? Irrespective of inner workings is nothing short of incredible.
Even generally poorer practises still achieve the same outcome in the end and if nobody else sees the code under the hood, there will be no confusion to be had. That's the joy of learning from tutorials, its a base to get better and better.
You handled that well. There's a lot you could glean from this troll's comment that you could easily pick apart, but you took the higher road here CM. Shows a high level of maturity. The fact of the matter is that you're trying to extend the Unity user base, and you consistently put out high quality content. You have created a huge library of published games. Jealousy is an ugly beast. I have really enjoyed your content, and I believe I own all of your paid courses and have a directory on my HDD for your tutorials. if there's an aspect I find that I prefer to do in a different way, I try to incorporate it. It's about developing your own style. Anyways, you've been a great teacher. I appreciate your work ethic and the fact that you are willing to extend your knowledge and the Unity community.
I still love you and your work. We all not 100% perfect
"The ultimate goal is how to make games" Couldn't have said it better myself.
My dear monkey, you are making so great contribuitions to gamedev community, you shouldn't waste time and energy with negative stuffs...most of people are very emotive and programming can be very frustrating if people dont have the base and love for it...
Keep rocking dude 🐵🐵👍
It was suppose to be a beginner course & it was very easy to read
as you said in the start of the video itself
if an experienced programmer is still following tutorials maybe that's
their problem & they should be learning else where
I loved the code and found it easier to understand!
The meme was funny but don't worry your tutorials are awesome. You are way better than most of the teachers I had in your equivalent of university ;)
Your tutorials rock! Only thing that you could work is disclosing when when your video is sponsored by Unity.
I always mention that, I'm pretty sure I never forgot that, which video are you referring to?
Personally, if the code works fine with 5 nested loops, doesn't cause a noticeable performance hit, and is easily readable, I see no problems with using it.
Another factor is how long it took to write this new code and test it. Also, how often is this code is called.
If I was to make this code, I'd add a comment about a possible performance gain if we did it another way.
That being said, I am the type of programmer that will regularly use something like "return true;" instead of using "return A > B;"... I have ADHD and I tend to miss things, "return true" in this case is more readable for me since it's easier for me to catch.
Might be a bit unrelated, but one thing I used to do, that I don't see a lot of, is a queue system. When I made my own engine in C++ and DirectX, all my updates used to be added to a vector and I would iterate through them. Once deltaTime hit a certain time, I'd redraw the frame and then continue updating where I left off. There were problems with this approach, but I found it fun... I am going back around 15ish years, I know I'm not remembering it fully. I did something like this a few times inside of coroutines.
Another thing I used to do was to make a table of calculations. Rotations were expensive, so I made an array that contained each degree.... so Angle[120], would get you the value of angle 120. If I wanted something more exact, I'd shift the decimal (this would require a different table). Loading would take more time and you'd use more RAM, but the game would run faster. I have no idea if this would work anymore, because I know the compiler does some optimization in the background.
...hopefully this all makes sense, I'm on a tiny mobile phone and I have fat fingers.
Congratulations on your videos and tutorials, no one expects a 10 hour tutorial to follow all imaginable code conventions 100%
I hope that "Code Monkey Sucks" thumbnail for the video was something you made to be cheeky... internet people are mean.. and you sir are the opposite of sucks. I also appreciate the explanation on how to remove layers of ifs.
I will say after finishing most of the course (currently at hour 8) ... your channel name doesnt follow the naming conventions... too many spaces, and either too many or not enough capital letters 🤣🤣🤣
Hugo... you have no idea how much I appreciate your free course. I cant wait to take everything I've learned / am going to learn in the rest of the course and apply it to my partially built project. And then once I've done all that refactoring / building out some more... to take / apply your multiplayer course.
Dont listen to anyone, you're doing a greate content, awesome job, thousands of people make projects based on your videos, if someone didn’t like your content, it’s most likely because they wanted everything to be done for them effortlessly. Don't listen to anyone, and don't stop creating!
The point of a tutorial is to teach and make it in a way that it is easy for others to understand. I think you archive that. Keep up the good work! Obg
I used to aggressively break everything into as small functions. In the short term this made it feel cleaner, but after enough time working on the script I eventually became bogged down by having all these functions that didn't clearly describe the flow of logic. My philosophy (until it changes again) is to leave something as one function unless there is code repetition, or if it really really gets too big and is easier to understand by abstracting some of the functionality.
You wrote the code in a way that is easier for most to understand. In my opinion part of the fun of tutorials and a way to improve my understanding is to refactor the code I just used to learn. If a person is not doing that I think they should only blame their self.
Code Monkey has thaught me a lot , I would even say that he has almost single handedly raised my understanding of game dev. The only thing I could possibly want is more time to follow his tutorials. But for now , I'm working on my own thing , using a lot of what he has given me .
I'm glad the videos have helped you! Best of luck with your projects!
@@CodeMonkeyUnity oh for sure they have , I'm thinking on taking up more of your tutorials they're really great I only wish you were around in 2005 when I was choosing majors !
You boiii, is awsome!
CLEAN code is normally slower during execution but easier to maintain except when using dependency injection which is not easy to read for new people to a code base. This is also true for deep composition and inheritance.
I need you to know you've helped me as much as brackeys has
You are amazing man, don't sweat it!
I'm currently in college for Game Development, and you're videos have been a great aid along side the course material. I really appreciate creators that are willing to provide these types of videos on RUclips. Thank you for the help you're videos provide!
You are amazing! Dont doubt that for a second.
Mate you are doing a great service to many people, ignore the haters.
As a software engineer as well, I prefer the former example. The latter is great especially if some of those functions are being re-used. But for me, the most important thing is how easy it is to read and understand. If it needs to be extended and requires a refactor, handle it then. Premature optimization is also death by a thousand cuts.
Can we pay the steam direct fee in rupees.or do we have to pay only in USD
Love your videos code monkey, keep up the good work!
"To nest or not to nest".... this is my eternal newbie question.
I once had another project with N lv of nested if statement.
After i de-nestify the 50 lines of nested if statement the code is 200+ lines longer...
so ... sometimes i'm not sure if i should de-nest them or not when the code works...
@Code Monkey Please fix your website, I can't open it. I am trying to do your 10hr course and can't download it.
i may be wrong, but the course was made for beginners through intermediate, and while it's good to learn the best practices (which most of the course has), i think it's important for the beginner to understand the code and finish it's own project, rather than getting confused and stuck on "the best code possible", which can lead to them giving up. I'm sure you give a lot of thought on your courses, and coming back months after to answer comments and even correct your own code, makes me even more impressed.
My favorite game dev channel
Hi. Do you by chance know how to export an android apk from unity? i keep getting some file when i press build and not the apk, also takes pretty long to build. I get a buildmethod error message at the bottom left part of the unity screen.
What does the error say? It's been years since I did mobile development so I don't know if there's any extra steps needed, but either way the build from Unity should work without errors
If you look at code from AAA or beloved indie games, there are very deep levels of nesting. A lot of JRPG games from the 90s are total spaghetti code. This is game dev that deals with so many complex systems, IMO there’s just times when we can’t get around deep levels of nesting - especially with enemy AI.
You rock CodeMonkey! I personally think your Builder Defender course is one of the best Unity and C# courses on the internet. It has allowed me to make complex games in game genres that I love!
no matter other haters say, i've learned a lot of things from your videos. always appreciate your work
Code Monkey me ha ayudado un montón programando, en especial los tutoriales de Grid y Pathfinding. Son pocos los que enseñan como él y que enseñan herramientas tan diversas.
Well when there's an entire moviment about diskling or to some few cases hating on tutorials because some people get tutorial stuck. I'm not that surprised. Even though not being a coder because of yours and others tutorials gave me know how to inspect code and think outside of the box.