By the normal idea of multiplication of rationals that makes 0(1/0) = 0/0 = 0 No issue! You just can’t cancel a division by zero. However, that is okay. It’s zero. However, x/0 where x is not 0, well… who knows. There is such a thing as virtual numbers.
@SamOaks12 сағат бұрын
I do all the "noob" things and I am just new to modern c++. I think this is for people who are new to modern c++. I honestly still prefer some noob ways out of simplicity in reading.
@mCoding12 сағат бұрын
It is NOT a nooby thing to optimize for maintainability, simplicity, and readability!
@Zuskayr17 сағат бұрын
0.9r ≠ 1 0.9r < 1 or 0.9r ≈ 1 All Good?
@maurpineКүн бұрын
"nothing is not nothing, it's the absence of something" now i can share my pizza with zero friends!
@jamesfrench5103 күн бұрын
0:41 Me when i heard that: Nooo no no no, NNNAAAAAAANNNN
@donfeto76364 күн бұрын
Great Video dude
@agambatra10034 күн бұрын
For being able to divide by zero we need to define 0/0
@mhkubaid6 күн бұрын
You could compile it instead if using an interpreter
@gaofan28567 күн бұрын
Idk why people keep saying python is easy. I find it so unintuitive and sometimes unnecessarily overcomplicated by reinventing the wheel, and django is so piece of shit, the worst framework I have ever worked with. Especially syntax, instead of sticking with standard naming convention they made it "easier", when in reality if someone jumps in to python project from another language, there is learning curve (not huge though, but still exists).
@LZWEHDKE8 күн бұрын
List for self: 1:44
@tjbwhitehea18 күн бұрын
I think "the docs are a mess" applies to most of the python standard library and language documentation
@tariik.h9 күн бұрын
1:45 You should never log to standard out, it's for the program output, not for debugging. Logging should always go to standard error.
@fringefringe728210 күн бұрын
async Python is complex and unintuitive...
@rahulsbhatt10 күн бұрын
Hi thank you so much because of you I understand this clearly, and also would be able to communicate with absolute clarity. Can you do one for Search in sorted rotated array please?
@Spyrit201111 күн бұрын
Put 7 apples on a table divide them by 0 (by nothing or null), How many apples are left? Look I learned to divide by zero in the second grade. Wth is all this BS.
@fgvcosmic675211 күн бұрын
I feel like a few of these tips boil down to "dont use these functions in unintended ways", which is perfectly fair for most situations. I dont think they'd be "nooby" though. Hard to maintain, sure, but working lower level, these become godsends.
@jmdzti11 күн бұрын
i always thought \frac{1}{0}=ℵ_{0}
@xarim476911 күн бұрын
4:30 - Looping over d.keys(), that’s the default! My CS professor always writing .keys() 💀
remember whole number set? there's natural number + 0, we don't have set for 0 itself, soo what if we make a new set? lol 𝕆 = {0}
@ahmadpak14 күн бұрын
Thank you for sharing the knowledge. Very helpful
@johnlabonte-ch5ul14 күн бұрын
As a middleschool math, i have been trying to learn for about a year as to why most maths believe that ".99..." is 1, using limited resources such as math books and comments in KZbin videos. I initially thought math was stretching the meaning of equal to equivalent. Wrong! Math is saying ".99..." is 1 using formulas and limits. The video points out problems in using infinite repeating decimals in calculations. At one point saying in the video that you can never finish any calculation on infinite decimals. . (I believe that a limited amount of "calculations" can be used, such as adding ".11..." + ".88..." = ".99..." . But adding ".11.. " and ".99..." is problematic in basic addition. What is ".11..." in the first place.) In answer to "Does ⅓ = .33... ? NO and yes. ⅓ > ".33..." , but ".33..." is the incomplete division of 1 by 3. ( I can agree that ".33..." * 3 could be stretched to be ".99..." but would be <1 . 10 * ".99..." cant be done by multiplication or addition. The shortcut of moving the decimal point cant be done without verification of adding 10 times which is multiplication. ) The video then goes to the "sum" of the infinite series. There is no exact sum to an infinite series of >0 terms even if the limit of 1/x=0 as x approaches infinity. (Limits don't necessarily equal the entity they refer to) Finally it is a choice. A bad choice ignoring centuries of basic math education. (In another video the math says that in order to say that ".99..." is 1, "you have to give up something". No you dont, ".99..." has a limit of 1, which is great as is. You could say ".99..." is a set of numbers using the greatest conceivable finite number of 9s [0.99..9, 1 ) ) Real numbees are a continuum. A real number is unique and precise. A integer has no non-zero digits to the right of the decimal point. A rational number is the ratio of 2 integers. (".99..." would not be rational if it was a real number) So far, I have concluded that maths use of the concept of infinity is faulty. The valuable concept of infinity is dangerous, incomplete, inconsistent and imprecise. Always willing to learn.
@Chris-531814 күн бұрын
bonehead: "As a middleschool [sic] math," Except you do not accept middle school math - you flatly disagree with it. bonehead: " i have been trying to learn for about a year as to why most maths believe that ".99..." is 1, using limited resources such as math books and comments in KZbin videos." You have not been trying to learn. You have only been troIIing. You ignore everything you read and just arbitrarily say the mathematicians are wrong. bonehead: "I initially thought math was stretching the meaning of equal to equivalent." You do not know what the meanings of "equivalent" or "equal" is to a mathematician. bonehead: "Wrong! Math is saying ".99..." is 1 using formulas and limits." That's right. Well done. bonehead: "The video points out problems in using infinite repeating decimals in calculations." Nope. It is saying there are problems if you don't define what the sum of an infinite decimal is. bonehead: "At one point saying in the video that you can never finish any calculation on infinite decimals." Timestamp please. If he did say that, he was referring to numerical computations. i.e. you cannot literally start with 0.9, say, and then append one 9 at a time, as that computation (process) will never finish. It will never get to 0.999.... bonehead: " (I believe that a limited amount of "calculations" can be used, such as adding ".11..." + ".88..." = ".99..." . But adding ".11.. " and ".99..." is problematic in basic addition. What is ".11..." in the first place.)" Beliefs, especially yours, have no place in mathematics. 0.111... + 0.999... = 1.111.... The value of 0.111... is the limit of the sequence 0.1, 0.11, 0.111, ... and that is easy to prove is equal to 1/9. The fact that you can do these things is allowed because of a few theorems regarding infinite series. Such as: Theorem: If a_1 + a_2 + a_3 + ... and b_1 + b_2 + b_3 + ... are convergent series, then (a_1 + a_2 + a_3 + ...) + (b_1 + b_2 + b_3 + ...) = If (a_1 + b_1) + (a_2 + b_2) + (a_3 + b_3) + ... bonehead: "In answer to "Does ⅓ = .33... ? NO and yes. ⅓ > ".33..." ," Both those statements are false, and that is why you have never attempted to prove them. They both also contradict what is taught at every middles scohol on the planet. bonehead: " but ".33..." is the incomplete division of 1 by 3." Despite many requests, you have never explained what that twaddle is supposed to mean. bonehead: "( I can agree that ".33..." * 3 could be stretched to be ".99..."" Your agreement is of no importance. Besides, you randomly change your mind about it. bonehead: " but would be <1 ." So you keep on asserting but never proving. bonehead: "10 * ".99..." cant be done by multiplication or addition." Liar. bonehead: "The shortcut of moving the decimal point cant be done without verification of adding 10 times which is multiplication. )" You have seen that verification being done many times, and you know it. Here it is again, for at least the fiftieth time. 10 * 0.999... = 10 * (0.9 + 0.09 + 0.009 + 0.0009 + ...) = 10 * 0.9 + 10 * 0.09 + 10 * 0.009 + 10 * 0.0009 + ... (there is a theorem for that) = 9 + 0.9 + 0.09 + 0.009 + ... = 9.999... bonehead: "The video then goes to the "sum" of the infinite series. There is no exact sum to an infinite series of >0 terms even if the limit of 1/x=0 as x approaches infinity. (Limits don't necessarily equal the entity they refer to)" As usual, you have made no attempt to prove your claim because you know that it is pure BS for the purpose of troIIing. The exact sum of 0.999... actually is 1. bonehead: "Finally it is a choice." That's true. But you don't know what it actually means or what the alternative(s) are. bonehead: "A bad choice ignoring centuries of basic math education." You couldn't be more wrong. It is easily the best choice and it follows from centuries of mathematics. bonehead: " (In another video the math says that in order to say that ".99..." is 1, "you have to give up something"." You are deliberately misrepresenting the fact that it is NOT choosing 0.999... = 1 that would involve giving up algebra (which means things like saying 10 * 0.999... = 9.999...). i.e. you end up with a nightmare. bonehead: " No you dont, ".99..." has a limit of 1," LOL. You make that same idiotic claim about once a week. One year plus and you still don't know what sums, limits, series or sequences are. 0.999... does not a have a limit. It has a sum. That sum is the limit of the sequence 0.9, 0.99, 0.999, .... You seem to think that somehow that sequence is the series 0.999... bonehead: "You could say ".99..." is a set of numbers using the greatest finite number of 9s [0.99..9, 1 ) )" YOU could say it, but you are a clueless deIusionaI troIIing muppet. What ion Earth is "[0.99..9, 1 )" supposed to mean? bonehead: "A real number is unique and precise." LOL. That's one of your favourite nonsensical mantras. bonehead: "A integer has no non-zero digits to the right of the decimal point." Where's your proof of that lie? bonehead: "A rational number is the ratio of 2 integers. (".99..." would not be rational if it was a real number)" 0.999... = 9/9. You have had that prove to you hundreds of times. bonehead: "So far, I have concluded that maths use of the concept of infinity is faulty." That's because you are a clueless deIusionaI muppet. bonehead: "The valuable concept of infinity is dangerous, incomplete, inconsistent and imprecise." That is your favourite meaningless mantra. bonehead: "Always willing to learn." That's a funny way to spell "troII". You are incapable of learning this simple math.
@jamespong658814 күн бұрын
You keep saying "you don't know" This is the problem, "knowing requirement" is the problem Knowing translates to remembering requirement And c++ doesn't do a good job of even making certain anything, so You can never be sure what you see is what you get you always have to remember all those little exceptions IF You're even lucky to discover them in a codebase that isn't yours, And the human mind simply cannot do that after a certain lines of code threshold And after certain lines of code no codebase is yours Meaning even if you wrote the code you just can't remember it This is why after 25+ years of writing code daily I don't use any of these "new" features and compile in c++98/03 to be sure nobody inserts that junk into our beautiful clearly structured codebase, I don't allow inheritance heck I am this close to not allow functions in our classes. People who intoduce these including the"creator"of c++ know nothing about large scale software development You can't hide things behind the scenes, and you can't have similar named variable in similar named member functions You just can't . And the proof of this is that they're charging the syntax literally every year When a codebase is 20+ years in the making. We talk million lines of code everything must be consistent transparent and traceable And they say "this year we don't use cout<< any more we use put "😂 Like writing software is a thing that take a few months from zero They have no clue We reuse code we wrote and new code must be compatible and look the same
@micaevski15 күн бұрын
00:01:05 - You shouldn't pass integers by const reference in the for-loop. You're adding an indirection.
@matteo67915 күн бұрын
Please don't drop this series man 🙏
@thomasmontoya30215 күн бұрын
The coffee machine will never see this coming
@MusicEngineeer15 күн бұрын
Some of these "nooby" habits may as well be called "dinosaur" habits.
@chrissysonicutdrloz16 күн бұрын
Me: So, it's all zero? Man behind me with a gun: Always has been.
@caquis203716 күн бұрын
Im definately still a beginner but it's exciting to see how a lot of these I don't do!
@onetruetroy16 күн бұрын
Every time I hear “one million” I have this compulsion to raise my pinkie to the corner of my mouth. Should I write SemPy to complete my training?
@saityusufbulur336616 күн бұрын
All this proofs do not prove that 0.999... is equal to 1, they prove that 0.999... approaches 1. Approaching something doesn't actually mean being the same as it. A repeating expression like 0.999... gets closer and closer to 1 every time you put a 9 next to it, but it will NEVER EVER be 1.
@Chris-531814 күн бұрын
You were not paying attention to what James said. He did not say that 0.999... approaches 1. What James effectively said is that the sequence 0.9, 0.99, 0.999, ... approaches (i.e. gets arbitrarily closer to) both 0.999... and 1 as you step through it. Both [the value of] 0.999... and 1 are THE unique smallest number that is greater than every term in the sequence 0.9, 0.99, 0.999, .... That is why 0.999... = 1. You are confusing that sequence with the series 0.999... (as that is just a concise notation for 0.9 + 0.09 + 0.009 + ...). [the value of] 0.999... := lim n->oo 0.999...9 (n 9s) = limn n->oo 1 - 1/10^n = 1. It really is that simple.
@GeorgiyLapshin16 күн бұрын
maths arent equal to common sense, theres no way 0.9999... is 1, theres no way it could be 1
@saityusufbulur336616 күн бұрын
It's not the math that doesn't fit common sense, it's the stupid mathematicians. "The number a approaches b, therefore a = b" is nothing but complete nonsense. Getting closer to something doesn't mean being the same as it. With this stupid logic, they should not be able to take functions' limits at points where they are undefined.
@Chris-531814 күн бұрын
@@saityusufbulur3366 You have not understood the video. Numbers don't approach anything as that would require that they are changing. 2 can't change to another number. What James effectively said is that the sequence 0.9, 0.99, 0.999, ... approaches (i.e. gets arbitrarily closer to) both 0.999... and 1 as you step through it.
@johnlabonte-ch5ul14 күн бұрын
KC is really stepping in it. Good job. Math starts their args by saying ".99..." is 1. Then all the proofs work..
@Chris-531814 күн бұрын
@@johnlabonte-ch5ul LOL. That's right, I am stepping on you. OTOH that's wrong, math does not start by saying 0.999... = 1. It starts by defining the limit of a sequence and the sum of a series. Both are very general definitions and aren't specifically aimed at decimals. For example they cover general Taylor series and much more. Here they are: Limit: Let {S_n} be a sequence of real numbers and let S be a real number. Then S = lim n->oo S_n means that for every real ε > 0 there is a natural N such that for every natural n > N that |S_n - S| < ε. Sum: The sum of a series is the limit of the sequence of its partial sums (if the limit exists). Combining those we get: [the sum of] 0.999... := lim n->oo 0.999...9 (n 9s) = lim n->oo 1 - 1/10^n = 1 Now I'll prove the last equality. Choose an arbitrary ε > 0 and a natural N such that 1/10^N < ε. (The Archimedean property of the reals guarantees that can be done). Then for every natural n > N we have |(1 - 1/10^n) - 1| = 1/10^n < 1/10^N < ε. Because the choice of ε was arbitrary, that must be true for every ε > 0. Therefore the limit is 1. I'm sure that you won't have understood about 90% of this comment. That's because you are a clueless mentaIIy iII muppet.
@gabor_kov17 күн бұрын
#Pycharm
@KaneroKikai17 күн бұрын
Thank you very much, this video helped me ❤
@lucixlr817 күн бұрын
i dont understand the point of the title. is it also for stack allocations? i dont see any.
@mr.RAND558417 күн бұрын
Awesome. Thank you.
@bernardwodoame985017 күн бұрын
Wow he's really smart.
@stevezhou18419 күн бұрын
I am seeking this kind video for long time. thanks for wonderful job. python is famous for worst documentation, let along millions of youtube videos.
@henriksundt714821 күн бұрын
4:47 (multiple return parameters): There is actually no need to declare a custom struct type for the return parameters. Instead, auto and std:make_tuple will do it for you. Define the function as: auto get_values(int n) { return std::make_tuple(n, n + 1); }. And receive the values by auto [x, y] = get_values(2); This will work with any number of return parameters or objects, and they can be of different types.
@gurmindersingh760223 күн бұрын
Great video! It was very insightful. We definitely need more videos like this with such deep-level insights.
@aminzahedsadeghi499523 күн бұрын
Man, thank you for such quality of content and video, peace 😎😎
@tylernardone378824 күн бұрын
Does the QueueHandler need to passed a queue object after loaded from the config?
@rabenfedersonnenhut26 күн бұрын
Thank you CS50P for not omitting that^^
@Queracus26 күн бұрын
just using list comprehention instead of loops is much faster allredy. Need to do another test
@chaitanyakunda773026 күн бұрын
Best video that I saw about docker. Thank you
@sd88g9327 күн бұрын
This video goes waaayyyy too fast. Slow down. I can't keep up with what you have on the screen, AND what you are saying at the same time. And don't expect me to slow the video to 075x so that I have to listen to you sounding like a retard.
@Veptis28 күн бұрын
You might be joking - but a few huggingface libraries kinda do this. They make cached copies of scripts that are hosted on the hugging face hub. Which might as well be github. Or is itself hosting files externally which get loaded at runtime. This is more real that we hope to. Ever tried debugging a hf call and ended up in some cached libs is a horrible experience.
@johnparker42528 күн бұрын
Swear to god, I hate python and love c++ for these exact reasons. But then I do the reverse when I realise I need to recompile my code everytime I make changes to c++ code. I wish I could get the best of both worlds
@Nikedemos29 күн бұрын
Fantastic video! Glad you didn't just go with the usual "why you shouldn't be using Python in first place and learn a real programming language instead" angle. Sometimes it's better to be entertaining, rather than correct!