How Code Works
Вставка
- Опубліковано 16 вер 2024
- How Code Works
Instagram: / davex.tech
Home: davidxiang.com
Book: www.amazon.com...
Facebook Page: / davex.tech
Twitter: / davex_tech
Email: davex.inc@gmail.com
#software #coding #softwaredevelopment #programming #howtocode
What helped me personally understand this, was a course on hardware at university, where we were using hardware description languages (Verilog and bluespec) and learning how an ALU (algorithmic logical unit) looks like. Once you see how a single electric charge can make the machine either add or subtract, you can understand that every more complex operation follows the same logic.
Wow! You are such a smart young man! Thank you for doing this video..
I am 66 and curious about all of this...I'm retired so I have time (I hope) to learn little by little. I use a laptop, a Tablet and an Android smart phone so maybe I can learn a little about coding..
We'll see!
attaining a skill later in life should be more common, props to you! most people just start doing a whole lot of nothing when they retire, but you decided to do something you found interest in.
You have a Gift for teaching. I'm watching this again after seeing it a few months ago. I was able to understand the entire thing this time. You did an amazing job at pacing your explanations and simplifying specific things to focus on.
Hey! #Dave Xiang. Glad you are back to youtube to enhance our lexicon over the horizon.
You would make a great teacher. I like how you take big picture concepts and break them down into chunks that are still understandable to the layman.
This would have been an awesome introduction video to my introduction to computer science class!
I love working with computers and electronics.Everyone works at a particular level. They count on the people 'below' them to provide them with tools that they use to create products for the people 'above' them. Eventually you go from silicon doping to a UA-cam video! It's amazing what we can create together like this.
I am rewatching this video and getting more out of it. I am not comfortable using computers, though I do quite a bit, and even learned Fortran code, because I don't feel I understand them adequately. This is the only tool of life that is that way for me, for example I drive a car, and though I don't build them, I understand the internal combustion engine enough to feel comfortable using the car. But computers are a stumble for me. Thanks for helping me in that area.
nice ! thank you
love your vids, the music in the bckgrd is a bit distracting for me :(, cool and comprehensive though
LOL. I love the music too
Sager no u are a miserable fuck. Bitch hole.
So you're telling me i can execute code through a light bulb???
Joe L
Yes
Maybe late but check out vacuum tube. Its like a light bulb but a special one. It acts like a transistor. It controls the light that is passing through. 1 if on 0 if off. Now connect a bunch of it together you can create a gates. And gate. Or gate xor gate.
@@kid_kulafu_1727 ua-cam.com/video/Xpk67YzOn5w/v-deo.html
@@mr.mysteriousyt6118 ua-cam.com/video/Xpk67YzOn5w/v-deo.html
Thanks for this channel. Even working in softaware there are so many areas that need bridging and this channel is invaluable. Keep it up Dave.!!
Good videos ! But that music makes hard to focus ))
yea i'm killing the music in all future videos.
That's so funny, you read the question out and I said to myself "this is an insane question, the complexity would blow his head off" and then you pretty much said the same thing straight after haha.
Thanks for your videos dude, they're concise and informative.
Hey Dave! thanks a ton mate for such an amazing explanation. I don't remember if I made comment on anyone' video. I wanna say few things, you really have great God given talent, what I mean is, you convey your message so well. It is helping to all the learners. Please make more videos and keep on. People like you are making real difference in world. Most of online tutorial is not convincing as yours. Respect Mate👍👍
Hey! Yo man, thx for the words, really really appreciate it. I'm glad the videos are helpful and I will be doing my best to keep making them.
+Dave Xiang your videos are dope. They are easy to follow and understand. I'm very much an analog girl in a digital world. Meaning I like to take notes while I listen to content. Your videos allow me to do that without feeling rushed. Thank you
man!....you make things very simple....i was looking for something like this for about an year...J....thank you so much...
Thank you for putting out this awesome content! super helpful!
Hey man, I was looking into getting into computer programming and your videos have played a solid role in preparing for the next step. Thanks!
How I understand it is that you cannot have code if there is no working processor, not if there is no electricity. It's like saying that a household unit becomes the oven it turns on...
Good stuff Dave!
-Alex
Hey, Dave, thanks for making this video. I thinking of going back to school to do major in, 'computer science,' so this video was very helpful
1:19 go to the library aaa.. "Google" 😆
Thanks so much for making this video! I learned a lot but I still feel this disconnect between the harware and software. If we take out the whole operating system and all the complexities out of the way say a program is just a bunch of 0s and 1s. This program might do something like add 2 numbers and print the answer on the screen. I'm guessing the instructions would have to go into memory. (Have these software instructions turned into something physical when going into memory?) then the program counter would point to the memory address storing the instruction. (how would the address in the program counter physically get whatever information is in that address and have it send electrical waves that would pass into the cpu?) my hope is that the same process that happens breaking down the instructions to electricity running through the cpu is done in reverse to have the solution that the CPU calculated put back from electricity into 0s and 1s and continue going up from there. Hopefully this makes some sense.
+alexander babich You are right. First you have to remember that when you break 0s and 1s down to their basic level, they are actually just electricity. For RAM or your main memory, you can think of it as a huge array of 1s and 0s. The only way they keep their state is that electricity is flowing through them. If the electricity stopped all the RAM would go back to 0s.
The instruction is sitting in memory and the program counter is pointing to it. I think you might be confused in how this is "sent" to the processor. Actually, the processor reads the values at this specific address and it recognizes it as a machine instruction. The program counter is ALWAYS pointing to memory that has valid processor instructions. If it's ever not pointing to that kind of memory, things are gonna go bad and crash the processor. The instruction itself has a special sequence of 1s and 0s that the processor recognizes and will behave a certain way to. Nothing is really transferred, but the flow of logic and electricity inside the processor changes based on various values (1s and 0s) of those machine instructions. The instruction in memory will represent ADD or SUBTRACT and the processor will react to it.
+alexander babich hey man whats up! amazing to see classmate and former colleague/friend @Dave Xiang right in one video. awesome video Dave :)
+faisal farooq Thanks dude. Damn small world
+Dave Xiang Now that I'm thinking about it my problem was that I was viewing the software as what's displayed on the screen lol. If I just think about it as always being electricity then it makes a lot more sense. Of course the computer doesn't need the display to do anything. All we are doing is basically controlling a gigantic electrical circuit.
+faisal farooq hey man! Good to hear from you!
Step 1: while the video is still playing, scroll to 0:00 without pausing the video
Step 2: Repetitively press the left arrow key at different frequencies
Step 3: Enjoy your own music.
Hope you keep making more tutorial videos. You're good at it.
does shell work on the time of linking of machine code ??
"Awesommmmmme". I love your videos, please post more! I'm undergoing third year in computer engineering, you've helped me so much. Thank you, Dave Xiang!
Thanks for a very informative video on how Code Works.
You are just rocking U video's are too easy to learn keep updating us thank u
you reminded me of the course System hardware SOEN228
Option 1: Full college curriculum in Computer Engineering / Computer Science, Option 2: Watch me explain it to you on UA-cam. lmfao XD
It took me like three tries but I finally got an Asian to explain this to me. Looks like I'm finally in business!
thanks for the video, very good overview and it provides a learning guide for me.
for those interested in understanding basics of programming, i personally would recommend "head first java" , or any of other books within the head first series.
did anyone go to the library when he said "library ah i mean google"
Great explanation, thank you. Just subscribed.
Thank you man it was fantastic
Great video. Love it. Thanks
These are excellent videos and I thank you!
Thanks bro, you have to upload more man your vids are awsome ;)
+Anthovv7 ikr ;) ! thumbs up for this asian
***** Ikr! This is a nice asian
HI dave! can you make a video about how to learn how to code from scratch?? cheers mate! 👍🏾
damn that was deep, great explaination of what happens under the hood
You just earned a sub.
So insightful!
Great Job!
I love your videos!!! like totally!!
great video very informative thanks
i want to understand that how we can write some codes and then execute them to hardware like how the camera works in android and how fingerfrint and all others i want to make my codes and my phone like starting with begging and new world
Dave, the context switching you are talking about is what recursion is based on, right?
No, they're not really the same. The context switching in this video is process context switching. The OS scheduling different processes to be run. If you're in a terminal and execute a script, those are two completely separate processes. This is all the stuff you on your task manager, or activity monitor.
Recursion is a programming technique, usually contained within a single program or process. Recursion is just a programming technique to get something done. Just like using a loop is a programming technique. That is the common use of the word recursion, unless you're referring to something really different.
Hope this helps
Thanks for your answer. You and a couple other channels are doing a lot to provide direction to people trying to develop in the wide field of development. There's a lot in the way of basic coding tutorial, but not much in the way of helpful counsel.
I understand what you are saying. It just reminded me of what I remember about what happens when in the process of recursion, and wasn't sure if somehow the processes were related. The way for each function call the state of the previous function is reserved in memory, and revisited in the unwind when the base case is met. I admit that I have to brush up on the details of what actually happens..
Functions calling functions and preserving state is done via the "callstack". A program using recursion (makes a lot of function calls) would utilize the call stack often. You should google it and check it out
Good video. How does text file become an executable file exactly? I guess I am asking for even more detail. Thanks!
yea, that's a pretty complex topic. it depends on what's in the text file. it's either compiled down to machine code with separate applications like GCC (languages like C/C++) but it can also be just interpreted as text by an interpreter(python3/ruby2x)
Dave Xiang Thanks.
Do you rubik cube with asymmetrical puzzles?
I am impressed.
Cpu reads the program from memory and executes it
But I didnt get how electricity in processor architecture adds machine language 0 &1 togather?
How electricity in processor works like that?
Have you thought about doing a step by step series on programming python or something ?
+The Riddle Ah yea, I thought about it, but teaching programming is pretty tough to do in a video. I think the best way is actually through books, a course, and fiddling around with it on your own. I can maybe do a video on how to like get set up with python. I can probably do some stuff on like general programming concepts but I wouldn't really be able to get into the details in a video. Also a part of the learning processes is just struggling on your own. The more struggle the better the reward. haha
Alright I will keep that in mind.
+Dave Xiang Is there an online, preferably free course medium that you prefer for general self-study of programming and scripting languages?
+BOSSDONMAN Hey, check this out www.edx.org/course/introduction-computer-science-harvardx-cs50x Free, completely online, intro level course from Harvard. I think they know what they're doing =P Good luck.
thank you
Nice video! :D
Try make another vid it use 'switch board' to explain processor...
Maybe a video series as it won't fit to w wideoz but would be cool a series 'from simple switch to a computer'
At least primitive 'switch based calculator' for starters?
Of course I’m learning some of the hardest shit to learn from an Asian dude😂
But it prints out "Hello world" not just "hello" :D
Like your videos but can u please keep your background sound lower?
is there is no background music, this video will be no distraction
I've a dumbass DSL wifi device runs with a "SIM card" at 5 mb / sec ,but I watched a lot of good videos about home network setup & a lot of AWESOME routers , so I bought a router + modem ( 1 device ) . now how do I run my network without this stupid SIM card >_
awesome
i tried to understand but understanding is very hard i need like 5 years of schooling to understand this
💥
math is universal 1010 you should do a video on how to make software or hardware and what companies do it and how they did it how much it costs and the materials needed also how does a computer or phone know to turn on like a lightbulb???its like magic this stuff really is insane lol i wrote this before you said magic happens in the shell what the actual fuck lol
I think my mind detonates, but thanks for the informative vid anyway
It will be more helpfull if it was said in an electronic engineers point of view
i'm doing the plan B ;)
fukkk my mind is blown :O
I need to watch your video titled why you don't understand things.
his eyes is so attractive....
how does it work?
A healthy dose of condescension hahaha
Right now im learning Java Html so after learning all this can i hack computers?
+kenrenjamrio Jamir Yes, HTML is all you need to hack computers.
Don't forget about CSS, which is mandatory for hacking. But yeah, first start off with HTML like Kon suggested.
lower the music please
i am a young veiwer draming to be a game developer
How original.
Yes, if you want to do that, go do that.
DiRT, I don't call out people often, but please don't disparage random people.
This person is probably in like high-school, or younger, who just has some aspirations for a job. If you need to be sarcastic, you can call me out instead of replying to random people you don't even know.
Stop being a bitch, or don't comment at all on my videos.
Dave Xiang hmh, i truly enjoy your videos and didnt expect a reply from you : )
I didnt mean to sound mean but its such a common "dream" and none of them even have the slighest clue to what it even is or what it takes to do so, he/she does mabye not even know if its 2D, 3D, Sound, consept art or codeing he/she wants to do.
Being a game dev is not a LAN party with friends where you play games all night, its work, ofcourse if he/she wants to play games all day playtesting could be it, but i doubt that is what the dream is, playing the same level over and over again for days.
Offtopic:
Im wondering if all you know is "required" to program good programs, i get its a vague question becourse it depends on what the program is designed for but how much of the stuff you talk about on your channel is "super top tier" knowledge that is not important to know for the hobby programmer?
-In ohter words, how much is learned through education, like a carpenter as an example,
where i live a carpenter spends 20/40 weeks in a school + 4 years in a real shop to be a real carpenter and doing that time he is learning lots and lots of things and tricks that the normal hobby woodworker might not know or even need.
I myself dont want to work as a programmer but do it mostly becourse i have an obsession with knowing how things work from the ground up and i spend alot of time on the computer, so having such a "small" grasp of whats going on behind the scences is annoying to me.
You seem to know ALOT about everything in a computer and i must admit that you impress me with the amount of knowledge you have, not alot of people do that to me on a few topics, and i hope my question made sence, im not sure if i can explain it diffrently.
Keep doing what you are doing! :)
Thanks for your reply. Yes, I agree a lot of people want to become a game dev because they like games, and really have no idea what it could be like. I was only worried because short comments like that which you wrote in like 1 minute can really be a bummer to someone who is young.
As for "super top tier" knowledge, I really don't think the info I'm giving is super top tier at all. I'm a little different perhaps since I majored in electrical / computer engineering which is not very close to software engineering. So I come at it from a different angle. But all the info I give here is really basic. I think most people who know about those topics in details would have much more to say. They'd probably get offended by how much I dumb it down.
I studied ECE but somehow through work/life... I just started getting into software. You are right in that a lot of this stuff isn't really required to become a programmer. I don't think you really have to understand the ins and outs of a computer to do programming well. My goal is to just give people a little bit of a taste of what else is going on. Hopefully it's interesting or at least makes people curious.
Dave Xiang it atleast did for me, but i spend too much time on the pc :)
Thanks for the reply btw.
gj man
thanks bro , am looking for inspiration to boost me into computer programming help me plz :)
+axon magnus Yea no problem dude. I think one key thing to finding inspiration is to use programming to help you do something you really love. Use it to help you with something you already like -- good luck bro
Jaja, me encantas, ;)
The background music is killing my nerves. Urgh
Anyone else sent here by Make School?
Who else is here bc of Berg
FIRST
Shit