Whether you are a complete beginner or an experienced programmer, Code With Huw aims to bring you some of the best programming tutorials to help you extend your knowledge and expertise.
Huw Collingbourne is the author of a number of programming books on subjects ranging from C and C# to Object Pascal, Java and Ruby. He has also written books on programming topics ranging from pointers to recursion. He is an experienced online instructor who has taught tens of thousands of people to program (see: www.bitwisecourses.com).
To keep up to date with all our videos as they are published, be sure to subscribe to the Code With Huw channel.
It's a very simple and elegant idea. Imagine a world of people. Imagine each person has a 'role' like lawyer, plumber (etc.). Methods are not floating free in the code structure. Methods belong to objects, which are instantiations of classes. If it's needed to fix a random leakage in the plumbing system it would not be possible to call a function directly (supposing a function/method called fixPlumbing). It is necessary to send the message for bject Plumber, because the methds fixPlumbing is encapsulated in there. There are no 'free hoovering functions'. Everything is inside an object. In this example, the object lawyer would not have the method for dealing with fixing the plumbing system. So it's not calling directly the function. Its asking for the ject to handle the message.
Thanks, Gary. I don't plan to repeat all the lessons I did based on C# and Java but I will probably come back to look at a few specifics related to Object Pascal.
WOW, never knew compilers cost money!! I started with C++ it was a pain, but thanks to some amazing people in RU-vid I got rid of most of my bad habits.
we just need to get rid off the new line example: char name[25]; printf("Enter your name: "); fgets(name,25,stdin); name[strlen(name)-1]='\0'; the last line removes the new line character. we can use this
You mean drag an image file from an app into Windows Explorer? It's not something I've done here but it shouldn't be too hard. I'll try to come up with a short program to do this soon.
I understood everything! Really good tutorial! Hello from Ukraine! Actually watching this during blackout when everything is dark noir atmposphere which resembles with some magic!
Sorry this may be a silly question with VNC it mirrors the screen on the windows client exactly like the RPI user sees on the screen, Does XRDP do the same or does it make its own instance of the desktop? As ideally for my use I want just a pure mirror or the RPI enviroment. Thanks!
Remote Desktop presents the desktop of the remote PC as though it were running on the local PC. Only one of the two PCs can run this session at any one time.
Brilliant. Like many things in life, modifying VS Code colors is a simple task, but finding the details on exactly how to do it is non-trival. Thanks for helping with that.
@@happyatheists9361 I'm afraid that's not something I've ever explored. I would start by searching the .NET library documentation to see if that helps. Good luck.
I'll explain that soon. But if you go to the playlists of my channel and follow my adventure game series (which mostly uses C# and Java) you may be able to figure it out.
please i have a problem: my recursion function has two choices one greater than somthing the other one is less than or equal and finally i will get some value i want to know what are the items that made the final value i want to save the right decisions only i couldn't figure it out :(
In these circumstances, your debugger is your best friend! Luckily, I have a lesson that explains how to debug recursion. See here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-viuiEehUsYw.htmlsi=QCe_8UI-i3DmuNnl Good luck!
You can follow the tutorials in order to see every step. You'll find these in this playlist: ru-vid.com/group/PLZHx5heVfgEu45dRS8YzyNnHMRtJGWDxu Best wishes, Huw
I can't express how grateful I am you made this. I don't usually leave comments but this video series was exactly what I was looking for when I logged into youtube today, and the lack of recognition makes me a lil sad. This series will be an invaluable resource for me for the coming while, so thanks a lot Huw!
To be honest, It's a long time since I've read a Smalltalk book. I'm sure I've read at least some of "Discovering Smalltalk" in the past but it's not fresh enough in my mind to comment on it. I think this is one of the titles freely available online so give it a try.
Yeah, it’s the same idea, though some (possibly many) actor frameworks prevent you from directly messaging an actor, instead forcing you to go through a manager (or similar) object.
I learned to code back in the 90s with a pirates copy of Borland Turbo Pascal that we passed around the classroom. It absolutely captivated me. Although I never use it today, I'll always have a soft spot for the language. It's like my childhood sweetheart 😏
There is no such thing as "proper object orientated programming." Oop was a mistake from the very beginning, and today it is falling out of favor. Data oriented design and functional programming are replacing oop.
Hi Huw. I have been using C++ for the past few years but I'm still not very comfortable with pointers. I'd appreciate it if you can recommend any book on pointers. Thanks
I don't see any practical difference between the pattern of "private data + public functions" and the "objects that sends messages to other objects, that requires the receiver to have a method with same name". I don't see any "practical difference" or how this specific abstraction solves any problem that current OO-approaches has issues solving. For example, dependency injection. For me to create an object A that depends on another object B (because some of its methods requires colaboration by B), I have to make sure B exists before A since I need to pass B as dependency to A in its creation, which create a dependency between objects lifetime which is sometimes very hard to manage. Some people calls this problem the "problem of object wiring". How does Smalltak solve this? If an object A needs help, do A needs to know that B is the object that solves my problem, and so A needs to store/contain a reference to B? Because if it does, then it has the same problem that modern-day OO. Another example: when A have the information to do something, but A doesn't know how to do it, because it's not its responsability. Usually you rely on a getter: B knows how to do it, but doesn't have the information: A, give it to me and then I do the thing. That completely breaks encapsulation since A is exposing private information and structure through the getters, but no other solution is good since you don't know how to do the "thing". How does smalltalk solve this problem? Is there any problem that smalltalk solves in a very elegant way that is completely unreachable for traditional OO-languages? How is that abstraction of message passing "superior" to the way OO is understood nowadays?
Thanks mr. Collingbourne, that worked for me. I've noticed that the CoolBar disappeared but I could easily put it back by marking the checkbox in the IDE CoolBar visibility options.