Shiv, may this year bring new happiness, new goals, new achievements, and a lot of new inspirations on your life. Wishing you a year fully loaded with happiness. :)
@Matlus3 жыл бұрын
Thank you Vinay and Wishing you the same for this new year!
@rossthemusicandguitarteacher3 жыл бұрын
I never validated all my agruments.... should I? Seems like anyone in my app should know or I failed as an architect. Also, Shiv is a sweater champion! Multi layered and comfortable AF! Also, he could narrate Planet Earth if need be. My guy is talking about Asimov in a code video!
@Matlus3 жыл бұрын
Validate at the point of entry only. Fail fast and fail visibly (fast as in, as early as possible. Visibly as in, throw an exception). Thank you for all your other complements Ross! Much appreciated.
@rossthemusicandguitarteacher3 жыл бұрын
@@Matlus Of course! It is criminal how your channel doesn't have more subscribers. This is good stuff.
@Matlus3 жыл бұрын
@@rossthemusicandguitarteacher Thank you Ross. I wonder about that too sometimes :)
@Matlus3 жыл бұрын
@Rick Wubs Thank you for your kind words Rick! I appreciate you writing in to let me know. No I haven't posted them there. Some subscribers have been kind enough to post some links. Would appreciate it tremendously of you'd do the same, as and when the opportunity presents itself. Thank you.
@ahmedilyas83653 жыл бұрын
I always, ALWAYS validate args as high up as possible. For the exact reason mentioned in the book or wherever possible. It indeed has saved MANY hours and times in investigating issues and what not and something, indeed, carried out at Microsoft internally. It's better to validate than let bad behaviors happen way too late causing unforeseen issues.
@Matlus3 жыл бұрын
Thank you for your information Ahmed. It seems not all of Microsoft is on the same page:). I've had a audience member (ex Microsoft he claimed) that had a fit about this very topic and screamed out from the back saying, "I'd never work on your team" :). Later, after the presentation he apologized and said that as the talk went on he understood what I was saying and agrees but that's not what the team he was on did.
@ahmedilyas83653 жыл бұрын
@@Matlus yes that part is totally correct that not all teams follow the guidance. it is sad and such a shame that this is how some teams are. Until the top/managers enforce the same guidance, there is nothing we can do except for people like us to continue and carry on to lead by example
@Matlus3 жыл бұрын
@@ahmedilyas8365 Well said Ahmed!
@VinuP20233 жыл бұрын
Thank you Shiv.....very informative video and as always got to to learn a lot :)
@Matlus3 жыл бұрын
Hey Vinay! Long time no see. Glad you liked it and learnt from it.
@RaghuramanKanchi3 жыл бұрын
Thanks for another informative/discussion share.
@Matlus3 жыл бұрын
Thank you Raghu! Glad you're enjoying these.
@saurabhchauhan2323 жыл бұрын
Very nice explanation. Learning foundational stuff, glad I found you :D
@Matlus3 жыл бұрын
Thank you Saurabh! You questions have inspired me to make some of my videos, so thankyou for your curiosity and questions.
@saurabhchauhan2323 жыл бұрын
@@Matlus so much to learn from you. 😀
@Matlus3 жыл бұрын
@@saurabhchauhan232 And I feel there is so much more to learn (for me)!!
@hansrudolf58493 жыл бұрын
Some very true words at 35:00 until the end and the main reason why I so highly value your opinion. Unfortunately it's really rare to meet this type of mindset out in the field.
@Matlus3 жыл бұрын
Hans, thank you so much for your comment! I feel humbled and encouraged.
@chordfunc30723 жыл бұрын
31:50 guilty of this... Very true... I'm kinda skeptical of how people do testing though. I often see people implement some test where they´ve implemented some mock, and all the test is essentially doing is validating that the mock is mocking the right thing... I feel like I'm crazy, and are often wondering what these people see that I dont, haha...
@martonbalassa81283 жыл бұрын
Huh? That sounds like tdwtf material.
@chordfunc30723 жыл бұрын
@@martonbalassa8128 The testing the mock part?
@Matlus3 жыл бұрын
Yes, I don't think most folks know how to test and yes, I've seen plenty of tests where they end up testing the mocks rather than the class they intended to. But I feel most testing is done to get code coverage rather than truly test the system (or classes) for what the proport to be doing.
@Matlus3 жыл бұрын
@@martonbalassa8128 LOL, if you could only hear me now! But what ChordFunc says is more prevalent than you'd think.
@abhilashbandi38663 жыл бұрын
Shiv, Lets say I have a frontend app calling backend api. Frontend does its usual validation like checking for required fields. Should the same validation be performed on the api side?
@Matlus3 жыл бұрын
Good question Abhilash! Yes the API is your "system". It stand independent of the UI. So must do all validations. Maybe this UI does but another one doesn't or any other application that calls the API doesn't. Not sure how your API is implemented so mention this anyway. In the API tier, the controller is not your system. The controller cis is just a SIL. See my other videos on API design and responsibilities of a controller videos. So the business layer within your API tier should be doing the validations
@abhilashbandi38663 жыл бұрын
Let me check the other video and come back here if I have further questions Thank you
@abhilashbandi38663 жыл бұрын
Yah I believe I design my API is same way. API controllers are just a delivery mechanism which deals with requests and responses which can be and should be replaceable with other mechanisms if required. My business layer usually does these kind of validations along side with business validations. This helped me to deal with validations for requests from backdoor too.
@chordfunc30723 жыл бұрын
27:00 100%... and on the flipside you get cascading failures if you start accepting bad data or try to guesstimate what the input was supposed to be. You'll create bugs that are so hard to track down further down the callstack... couldnt agree more
@Matlus3 жыл бұрын
Yes, exactly! I agree
@abhilashbandi38663 жыл бұрын
@@Matlus I once ended up diagnosing a bug generated in a report for a week only to find out there was a validation missing way higher up in the stack.
@Matlus3 жыл бұрын
@@abhilashbandi3866 exactly so if all validations are done at the front and back doors then you exactly where to look
@martonbalassa81283 жыл бұрын
Psydub intro - I love this episode already :D
@Matlus3 жыл бұрын
Thank you Márton. That took me more time to get done than the editing on the video itself, but if was fun to try and eventually get it working.
@chordfunc30723 жыл бұрын
This has nothing to do with the content of the video, just 1 minute in... But seems like the audio processing was a bit of.... There is no "room tone" when your voice cuts its 100% silent then when you speak you hear your voice and the room tone... Not a big deal, didn't notice this in your other episodes, thought I'd just point it out. Cant wait to listen through to hear what you have to say! :D
@mmreddys51953 жыл бұрын
To apprehend what you wanted, you have to be patient and hang on until you understand what has been demonstrated in this video 🤩🤩🤩👨✈️👨✈️👨✈️
@chordfunc30723 жыл бұрын
@@mmreddys5195 Don´t think you read my comment...
@Matlus3 жыл бұрын
Ok, I have no idea what you're talking about :) (Which is not uncommon) so I guess I need to understand what you're saying so I can improve.
@chordfunc30723 жыл бұрын
@@Matlus I found this video "MLpnSBoAODw" talking about what I'm talking about... Again not a big deal, but its an easy fix
@Matlus3 жыл бұрын
@@mmreddys5195 Thank you Malla! I know what you're trying to say. But I think you intended to write a comment rather than a reply to ChordFunc :)
@hamoudrodriguez27023 жыл бұрын
Could you make a video about akka.net and rx.net? Would be awesome to hear your opinions about them 👍 and ofc: micro services
@Matlus3 жыл бұрын
Hamoud, I've played with both aka and rx. But I've not used them in production apps so unfortunately I won't be making a video on these anytime soon :). I'm not very impressed (don't see the need) by either and so I've not used them in anything meaningful. Microservices......well that another story. You'll hear from me on this topic but let me tell you that I'm not a big fan of the word and I believe most implementations are way off track because most folks have completely missed the point. Mainly because of the name and the hype.
@hansrudolf58493 жыл бұрын
@@Matlus can't wait for your video about microservices .. ;)
@Matlus3 жыл бұрын
@@hansrudolf5849 , maybe that topic is worth a discussion (live session) first? That way its not a one sided point of view
@hansrudolf58493 жыл бұрын
@@Matlus As I previously said - I value your opinion very high and with your years of experience at some point you always end up coming up with something which I hadn't considered yet. Unfortunately, my recent projects were mostly front end related which doesn't really make me a good fit to challenge you ... :) The knowledge which I have relates mostly the theoretical parts in books and lessons learnt from companies like Netflix and co. Lessons which probably will never relate to any of my projects as they are operating on systems with a different scale.
@Matlus3 жыл бұрын
@@hansrudolf5849 Sure, but that doesn't disqualify anyone from discussing what they do know or have read or had experiences with etc.