The Missile Knows Where It Is, But It's Actually A Javascript Tutorial

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025
  • The missile knows where it is because it knows where it isn't.
    In this Javascript tutorial, we'll show how you can use corrective commands to compensate for variations and drive your nuclear tipped BGM 109G Gryphon intercontinental ballistic missile from a position where it is, to a position where it isn't.
    SOCIALS
    ----------------
    Patreon: www.patreon.co...
    Tiktok: / roberteldersoftware
    Linkedin: / robert-elder-software
    Blog: blog.roberteld...
    Twitter: / roberteldersoft
    Twitch: / roberteldersoftware
    Github: github.com/Rob...
    Facebook: / roberteldersoftware
    Instagram: / roberteldersoftware
    Merch: store.robertel...

Комментарии • 709

  • @RobertElderSoftware
    @RobertElderSoftware  3 года назад +2052

    If you are a missile and you know where you are, you can express your like or dislike (whichever is greater) as an engagement action on this video.
    The RUclips algorithm uses like and subscribe counts to generate corrective commands that drive a video from a view count that is low to a view count that is high. Consequently, the video will obtain at a like to dislike ratio that is increasing, so it follows that the dislike to like ratio is decreasing.
    In the event that the dislike to like ratio is not decreasing, the RUclips algorithm has discovered the signal of a bad video. If the bad signal of the video is considered to be a significant factor, it may be flagged for a violation of the terms and conditions and removed from the platform entirely.
    However, the RUclips algorithm knows everything about the audience, and it knows exactly what kinds of videos you like. It now subtracts the set of people will probably 'dislike' the video from the set of people who will probably 'like' the video, and adds the variable obtained by subtracting the set of viewers with low average watch times from the set of viewers with high average watch times.
    In RUclips Algorithm machine learning "language", this is called 'error signal', or the difference between the expected engagement rate and the actual engagement rate, found in the algebraic difference between the number of likes, subscribes, comments and watch times of the video.

    • @panzermk4953
      @panzermk4953 3 года назад +12

      can u up load the code ?

    • @indiana47
      @indiana47 3 года назад +64

      Far too much effort for a comment. I like it.

    • @Eye5x5
      @Eye5x5 2 года назад +9

      Well, I am a plane but I asked my missiles which is greater and liking was greater.

    • @starballanimations976
      @starballanimations976 2 года назад +1

      i have liked the video

    • @danibogo
      @danibogo 2 года назад +1

      @@panzermk4953 may i ask why you want the code

  • @dinamitemaster
    @dinamitemaster 2 года назад +4168

    Imagine the disrespect of being killed by a missile running javascript

    • @juniuwu
      @juniuwu 2 года назад +146

      At least it was running the JS code using V8. I'd hope.

    • @dinamitemaster
      @dinamitemaster 2 года назад +27

      @@juniuwu What doesn't nowadays

    • @BoleDaPole
      @BoleDaPole Год назад +78

      It would get hacked far before reaching its target

    • @HippoKing.MP3
      @HippoKing.MP3 Год назад +122

      The only greater insult is having it all calculated via redstone command blocks

    • @StephenDelRosario777
      @StephenDelRosario777 Год назад +28

      @@HippoKing.MP3 Ukraine should get some redstone missiles. Imagine chilling in your SU-57 for the Motherland when *BAM* Redstone missile!

  • @mohaa556
    @mohaa556 3 года назад +6443

    Not sure what is scarier the fact that you went into the effort to turn this into code or the fact that a missile control code written in JavaScript now exists...

    • @anonymousperson2110
      @anonymousperson2110 3 года назад +987

      SIR THE MISSILE IS 0.5 SECONDS AWAY FROM INTERCEPTING ENEMY ICBM
      *garbage collector has entered the chat*
      *Are you sure about that*

    • @thecianinator
      @thecianinator 3 года назад +157

      I think missile codes are written in assembly because there can't be any unforseeable bugs or something

    • @anonymousperson2110
      @anonymousperson2110 3 года назад +523

      ​@@thecianinator Assembly is one of the languages where it is **easiest** for bugs to emerge, just because the human programmer has to take care of literally everything.
      Missile codes are typically written in Ada, because it has fewer features than C++ (meaning fewer spots for misunderstanding and mistakes), and has things like contracts to help ensure correctness.
      Javascript is not used for missile codes for multiple reasons - the VM imposes an extra overhead, garbage collector means performance won't be deterministic ("oh hey we're 1 second away from the target, oh no the garbage collector just paused the entire program for 0.75 seconds to do garbage collection"), and there's a lack of a compile time syntax checking and no static type system.

    • @ITSecurityNerd
      @ITSecurityNerd 3 года назад +186

      The scarier thing is that Javascript now exists....

    • @p_serdiuk
      @p_serdiuk 3 года назад +23

      It ought to be possible to transpile this JS to C or something.

  • @MrAntimonty
    @MrAntimonty 3 года назад +2346

    Amazing, I know nothing. Just like after a regular Javascript tutorial

    • @coins_png
      @coins_png Год назад +139

      I do know because i know what I don't know. It works because i subtract what i know from what I don't or what I don't know from what i know (whichever is greater).

    • @puppergump4117
      @puppergump4117 Год назад +28

      @@coins_png I guess in the event that what you know is what you didn't know, you'd get a deviation, and if you know that what you knew is not what you know, that's an error?

    • @prakash-niroula
      @prakash-niroula Год назад +10

      ​@@puppergump4117 and you add the deviation to a variable subtracting the error to get variation. And if it turns out to be a significant factor, you'll allow it provided that you know what you know and what you don't. due to the variation modifying some of the factor, you won't be sure what you knew or didn't know about what you know. however, your thought process must be sure what it knows about not knowing what it doesn't.
      I hope this makes things clear as I have added your comment into a variable and subtracted it from my thought of what I know and don't about what I do know, which makes it so that you know what I know by subtracting what you don't from what I know, or what I know from what you don't ( whichever is greatest ) ;)

    • @coins_png
      @coins_png Год назад +14

      @@prakash-niroula I'm not gonna read all of that bro.
      Sorry that happened or I'm happy for you (whichever is greater)

    • @Tekner436
      @Tekner436 Год назад

      as you should, just as you can't know a variable's type in javascript

  • @PJ-oe6eu
    @PJ-oe6eu 2 года назад +1226

    Everyone asks where the missile is, but they never ask how the missile is :(

    • @BoleDaPole
      @BoleDaPole Год назад +99

      We know how the missile is, by knowing how it isnt in relation to how it was with how its going. Subtracting how it is to how it isn't will provide us with a deviation in relation to how it wasn't.

    • @chemreal
      @chemreal Год назад +9

      We know how the missile feels, we know this because we know there are no nearby female missiles. By substracting rizz with how many nearby females in its area, or how many nearby females in its area with rizz.

    • @r.d.6290
      @r.d.6290 Год назад +8

      There is telemetry, like for temperature and pressure, so they know the feels

    • @makuru.42
      @makuru.42 Год назад +2

      ​@@r.d.6290 But do you know how a human feels by knowing that? No

    • @deang5622
      @deang5622 Год назад +3

      The missile is unhappy....very unhappy: he knows he is about to be destroyed.

  • @chupitolepame5357
    @chupitolepame5357 Год назад +186

    Thanks! I was having some problems correcting the trajectory of my missiles lately, and this fixed it! Great tutorial man

    • @maxicalful
      @maxicalful Год назад +3

      very nice comment

    • @Hexus12
      @Hexus12 Год назад +2

      what missile you do have anyway my guy? mine is an AIM-54 Phoenix

    • @der.Schtefan
      @der.Schtefan Год назад

      This comment, is my FAVORITE comment.

  • @RobertElderSoftware
    @RobertElderSoftware  3 года назад +2392

    Do you guys want to see a detailed video on the history of this meme and the actual missile guidance system that inspired it? If this comment gets 1000 likes, I'll do it.

    • @LivakProductions
      @LivakProductions 3 года назад +31

      Yes of course, but it has 2 likes. huh

    • @IncredibleMD
      @IncredibleMD 3 года назад +7

      @@LivakProductions Three now.

    • @asciiCAT
      @asciiCAT 2 года назад +2

      please

    • @AuxenceF
      @AuxenceF 2 года назад +3

      18 now... i hope we get the video though..

    • @Zlonk7
      @Zlonk7 2 года назад +3

      933 likes to go

  • @rainyfriday6175
    @rainyfriday6175 3 года назад +323

    Of course. Now it makes sense.

    • @birisuandrei1551
      @birisuandrei1551 Год назад +3

      But did you know ? Early missiles like the V2... *Did not know where it is, but that's fine cause the gamerule: War crimes was enabled during that time*

  • @BicyclesMayUseFullLane
    @BicyclesMayUseFullLane 3 года назад +709

    The madlad actually wrote code for that ~24 year old joke lol

    • @teargass1849
      @teargass1849 3 года назад +50

      not a joke though, its from a real training video.

    • @ДушманКакдела
      @ДушманКакдела 3 года назад +31

      @@teargass1849 that doesn't mean it's not a joke.

    • @de4dbutdre4ming
      @de4dbutdre4ming 3 года назад +14

      @@ДушманКакдела except it still isn’t a joke

    • @ДушманКакдела
      @ДушманКакдела 3 года назад +5

      @@de4dbutdre4ming I just think you have a poor sense of humor.

    • @pteppig
      @pteppig 3 года назад +49

      @@de4dbutdre4ming the missile knows it's not a joke by subtracting that it was in a training video, but now isn't. By subtracting where it was and where it isn't, it knows that this is a meta joke of jargon overload

  • @JaredBrewerAerospace
    @JaredBrewerAerospace Год назад +50

    God as a GNC engineer for 7 years, this is sadly and hilariously spot on. There really is no other way to describe dead reckoning guidance. The video he is quoting was actually shown to me on day one. I took it as a joke. Turns out... it wasn't.

  • @hnccox
    @hnccox Год назад +14

    "TODO: This doesn't work well when the terrain is very flat, so the missile will sometimes get lost :( " 😂

  • @gmodrules123456789
    @gmodrules123456789 Год назад +252

    Its pretty simple. The missile knows where it is by looking at its last known position. Based on speed and trajectory it should be x distance away.
    When it receives another GPS ping, it gets an update to where it actually is. It compares the expected position with its actual position. If the actual position is off course, then it maneuvers the missile to eliminate the error.

    • @chezzy6366
      @chezzy6366 Год назад +106

      Long story short, it knows where it is, because it knows where it isn't

    • @cinemoriahFPV
      @cinemoriahFPV Год назад +19

      Yeah that's what he said.

    • @ThaJay
      @ThaJay Год назад +9

      They actually don't need GPS. Measuring acceleration is enough. If you compare the expected acceleration from a specific input to the actual output in acceleration, you can adapt the next input to correct for that error.

    • @ThaJay
      @ThaJay Год назад +4

      @@satunnainenkatselija4478 There are no coordinates, only vectors. Location is actually a misleading way to explain how it works although I can't come up with a normal language word for a vector so it's probably close enough for its purpose.

    • @enclave2k1
      @enclave2k1 Год назад +1

      _"The missile knows where it is by looking at its last known position"_
      But that assumes it knows where it is at some point in the past. (knew where it was)
      Missile's all the way down. 🐢

  • @comedycult
    @comedycult Год назад +15

    Love seeing a TODO in missile guiding software!

  • @readmyusernamecauseitssoreally
    @readmyusernamecauseitssoreally 2 года назад +31

    Missle computer: where are you?
    Missle: not there, but will be over there in a second
    Missle computer: where is not there and over there?
    Missle: you're supposed to figure that out and put me there!

  • @isaac10231
    @isaac10231 Год назад +33

    Thank you! My missles are now functioning! Love this so much.

    • @stephenchow6749
      @stephenchow6749 Год назад +2

      The FBI knows where you are because it knows where you aren’t

    • @vicslav4030
      @vicslav4030 Месяц назад

      😂

  • @themultigamer5682
    @themultigamer5682 Год назад +28

    Some of you thought that the missle video was a joke but it's litteraly exactly how the missile works

  • @rogerlopez6582
    @rogerlopez6582 8 месяцев назад +8

    A RUclips tutorial for a missile guiding system is only 1:52 long while one for creating a react login can be 1hr long

  • @DangNguyen-xx3zi
    @DangNguyen-xx3zi 3 года назад +23

    OMG PENTAGON Missile Code Leak 2021 CONFIRMED 100% Gone Wrong xDDDD
    Also here to please the recommendation overlord, hope this video catch on soon

  • @kemalermec9848
    @kemalermec9848 Год назад +11

    Thanks for this educational tutorial now i can build my own missile

  • @roadent217
    @roadent217 3 года назад +165

    A mistake at 0:42
    The "position where it was", in your code, ought to be highlighted as flight_track[t-1], and then the "position where it isn't" would be expressed as flight_track [t] !=
    In general, I don't get your code in the context of the explanation. At 1:32, you refer to fight_track[t] as "where it wasn't", but at now 1:38 flight_track[t] is "where it was"? Huh?

    • @shneepz1016
      @shneepz1016 3 года назад +40

      Let the man feel smart

    • @DPedroBoh
      @DPedroBoh 3 года назад +24

      I think he couldn't easily test the code, so he just made it and visually looked for logic problems but couldn't verify this one. Good eye.

    • @rastaboy_gamesnstuff7778
      @rastaboy_gamesnstuff7778 2 года назад +9

      To get where it wasn't, to be where it was, it must have passed the position of where it is, remember, the missile is moving but it knows where it is because it knows where it isn't

    • @demetriusdemarcusbartholomew
      @demetriusdemarcusbartholomew Год назад

      ​@@rastaboy_gamesnstuff7778 Stop fucking my mind

    • @Gameplayer55055
      @Gameplayer55055 Год назад +4

      let's do some TDD and run integration test.
      integrating missile into putin and kim
      then we hear their response and make our missile better

  • @menyasavut3959
    @menyasavut3959 Год назад +4

    there's one thing to consider: once the missile finished the calculation, it is already somewhere else. from this it follows that the missile never is there where it "thinks" it is at any given moment in time.

    • @blackboxconsumer41
      @blackboxconsumer41 Год назад

      Nah, how long do u think it takes to compute that

    • @menyasavut3959
      @menyasavut3959 Год назад

      @@blackboxconsumer41 it depends on the system. if this is done in hardware, it could be quite fast, but this thing is written in Javascript, so it when the result is known, the missile might already be far away. If it's done in hardware, it's a lot faster, but also more expensive, specifically if you design an ASIC for that. so, yes, I think it takes too long doing in it Javascript.
      Guess we know now where there's a shortage of Raspberries, they are all blown up, because they've been used in these missiles

    • @d.brower
      @d.brower 11 месяцев назад

      Correct. It's a sample with uncertainty about accuracy, and self-correcting. See "Kalman filter"

  • @ferguskumar727
    @ferguskumar727 Год назад +1

    "Todo: this doesn't work well when the terrain is flat, so it may get lost sometimes" lmao

  • @I_Am_Transcendentem
    @I_Am_Transcendentem Год назад +2

    As a missile, I thank you for the assistance, as I am new to the "literally fucking obliterating an area" community

  • @plugdev_dennis
    @plugdev_dennis Год назад +2

    If I only hear "where it isn't" ONE MORE TIME..... Great job, that's really like a javascript tutorial, I only know what it does, because I read the code+comments without hearing the voice.

  • @maxb1392
    @maxb1392 3 года назад +17

    Pretty neat, but it still hurts hearing this.

  • @Falconguygaming
    @Falconguygaming 3 года назад +76

    I need the code for... Reasons
    Also comment to please the algorithm!

  • @iddn
    @iddn Год назад +9

    Best part is the comparison of JSON strings to find errors.

  • @TMAJ0R
    @TMAJ0R 2 года назад +13

    I both love that you made the code for this, but I also hate it because it makes it less funny actually being able to understand what it was doing

  • @33deputat
    @33deputat Год назад +1

    I actually, finally, understood what this whole "it is where it isnt" means

  • @GamingHelp
    @GamingHelp Год назад +1

    This will probably be the highlight of my year. This was bloody glorious. Just like my day. When I got up, it wasn't. Then I watched this and it is.

  • @weirdsciencetv4999
    @weirdsciencetv4999 Год назад +37

    As someone who makes actual weapons guidance systems, this is pretty scary plausibly a working control algorithm, even if pretty primitive by todays standards. Definitely could be used in a flight simulator that has guided missiles. Or is still the basic principle behind a lot of first generation manpads.
    …. But this is not far off… holy god.

    • @cacssarcaeustan2543
      @cacssarcaeustan2543 Год назад +1

      Genuine question here. How do you sleep at night? Like don't you feel at least a bit bad knowing that you are directly contributing to what might one day be the end of us all? I get that some people just don't care and others attempt to justify it with areguments like "what if they build a bigger bomb, ours must be bigger", and I know that at the end of the day we are all just cogs greasing the machine, but I still feel like there is a substantial difference between working on let's say an oil rig and building nuclear ICBMs.

    • @weirdsciencetv4999
      @weirdsciencetv4999 Год назад +9

      @@cacssarcaeustan2543 I think you’re confusing conventional weapons navigation with Q navigation, which most ICBMs are based on. You don’t just need to hit the target, but you also have to arrive at a specific time.
      But to answer your question, answer me this- is the pandemic over? If not, why not? You give me a good thought out answer, I’ll tell you how well I sleep at night.

    • @stephenchow6749
      @stephenchow6749 Год назад

      Just consider how hard it would be to sleep at night if China had better weapons than us, and the future of our country was in jeopardy

    • @GyanPrakash-xo5gs
      @GyanPrakash-xo5gs Год назад +1

      @@cacssarcaeustan2543 I think he sleeps well knowing that there aren't that many wars nowadays as previous times due to mutually assured destruction because everyone now have ICBMs.

    • @Jacky-zt5ch
      @Jacky-zt5ch 11 месяцев назад +3

      @@cacssarcaeustan2543do you think workers in car factory feel bad about fatal traffic accidents out on the road?

  • @falin9557
    @falin9557 Год назад +3

    I'm working on a guided missile on a simulator to build it in real life (with a catching net) to shoot down drones, as a prove of concept, and this is actually useful

  • @Thesnakerox
    @Thesnakerox 3 года назад +5

    Small detail I love at the beginning:
    //armed: false, TODO: Don't forget to change this back!

  • @skaldlouiscyphre2453
    @skaldlouiscyphre2453 2 года назад +50

    I'd like to thank you for your assistance in furthering my cruise missile program. Nothing says 'muh 2nd Amendment' like a homemade nuclear cruise missile.

    • @kotnapromke
      @kotnapromke Год назад +1

      Скрипт не сможет сделать вам ядерную бомбу. А ракета без бомбы бесполезна.

    • @skaldlouiscyphre2453
      @skaldlouiscyphre2453 Год назад +1

      @@kotnapromke First you build the bomb, then you build the rocket, then you develop the guidance system.

    • @heiligkeit6345
      @heiligkeit6345 Год назад +3

      ​@@skaldlouiscyphre2453 first you build the rocket and then develop the code. You then test a rocket with the dummy warhead to imitate the weight of a payload and after you confirm your rocket flies as intended you make a bomb. I mean... That would be a shame if your bomb falls right on your head

    • @skaldlouiscyphre2453
      @skaldlouiscyphre2453 Год назад +3

      @@heiligkeit6345 Good thing I wear a helmet.

    • @weirdsciencetv4999
      @weirdsciencetv4999 Год назад

      @@kotnapromkewe know where nuclear warheads are stored because we know where they aren’t.

  • @FutureAIDev2015
    @FutureAIDev2015 Год назад +6

    I actually understand this tutorial a lot better than the original video 😂

  • @poutineausyropderable7108
    @poutineausyropderable7108 Год назад +8

    The dude went to explain how a guidance system works. But he kept it absolutely abstract without using any math and using purely english words.
    In the hopes of making it so someone doesn't need high school algebra and a few variable definition, making it clear to anyone who could have understood it. He made it clear to noone except those who already knew how it worked (or had an inkling/experience) and reverse engineered his words.

  • @test-rj2vl
    @test-rj2vl Год назад +1

    Imagine having this as a first programming lecture in university for first year students and then telling them there will be test tomorrow :D

  • @HarmonicVector
    @HarmonicVector 2 года назад +4

    This now makes a lot more sense now.

  • @bumbalaaa
    @bumbalaaa Год назад +1

    The feds now know where you is, and they will make where you is a place where you isn’t

  • @FastDeathbycat
    @FastDeathbycat 2 года назад +8

    As a CS major, this finally allowed me to understand what the **** this meme is trying to say so thank you.

  • @ExAid010
    @ExAid010 2 года назад +10

    "The missile know where it is"
    Flares and metalic bits: "I don't think so :))"

    • @OtterTreySSArmy
      @OtterTreySSArmy 2 года назад +2

      Yeah I'm not sure that a GPS guided missile is gonna care about chaff or flares

    • @Mortan1234
      @Mortan1234 Год назад +1

      That doesn't stop the missile from knowing where it is, it stops it from knowing where you are.

  • @Furry293
    @Furry293 Год назад +40

    The missile knows where it is at all times. It knows this because it knows where it isn't. By subtracting where it is from where it isn't, or where it isn't from where it is - whichever is greater - it obtains a difference or deviation.
    The guidance subsystem uses deviations to generate corrective commands to drive the missile from a position where it is to a position where it isn't, and arriving at a position that it wasn't, it now is.
    Consequently, the position where it is is now the position that it wasn't, and if follows that the position that it was is now the position that it isn't. In the event that the position that the position that it is in is not the position that it wasn't, the system has acquired a variation.
    The variation being the difference between where the missile is and where it wasn't. If variation is considered to be a significant factor, it too may be corrected by the GEA.
    However, the missile must also know where it was. The missile guidance computer scenario works as follows: Because a variation has modified some of the information that the missile has obtained, it is not sure just where it is. However, it is sure where it isn't, within reason, and it know where it was. It now subtracts where it should be from where it wasn't, or vice versa. And by differentiating this from the algebraic sum of where it shouldn't be and where it was, it is able to obtain the deviation and its variation, which is called error.

    • @chaoticscripts7345
      @chaoticscripts7345 Год назад

      I'm not into developing missiles however wouldn't they just compare where it is to where it should be? I feel like they would compute a path and compare like so

    • @d.brower
      @d.brower 11 месяцев назад

      @@chaoticscripts7345 Look up "Kalman Filter". There is uncertainty about the measurements of where it is (and isn't), and noise in the updated inputs.

  • @tupelov346
    @tupelov346 Год назад +4

    I'm writing some telemetry code for a model rocket and this is genuinely helpful lol

  • @andrewbeder51
    @andrewbeder51 Год назад +1

    Thank you, i now know where i isn't

  • @oakgaminglive8545
    @oakgaminglive8545 2 года назад +1

    thanks, I can now make a missile to deliver coconuts to my house

  • @2Glm005
    @2Glm005 Год назад +1

    Thanks, time to use this code for my life size model

  • @firepower01
    @firepower01 2 года назад +9

    Is this what it's like to work for Raytheon?

  • @mgolabek89
    @mgolabek89 9 месяцев назад

    I work in the field of guidance, navigation and control for aerospace applications and this tutorial is very accurate.

  • @hory-portier
    @hory-portier Год назад

    This is a total rocket science for me...
    ...But at the same time it's finally somewhat easier to understand, and I learn better by seeing something other than hearing. It's really easier when it's written down.

  • @fsdsadf
    @fsdsadf Год назад +1

    Now that we know, we can evade the missiles by being were the missile isn't

  • @apex_blue
    @apex_blue 3 года назад +4

    North Korea wants to know your location

  • @naervern2107
    @naervern2107 Год назад

    This so far the best explanation of the missile, ironically

  • @markayzenshtadt7200
    @markayzenshtadt7200 Год назад +1

    The missile promises that it will reach the target

  • @SiderealRotation
    @SiderealRotation Год назад +1

    Everybody gangsta until the position where it is becomes the position of your house.

  • @Geolaminar
    @Geolaminar 2 года назад +5

    This is far easier to understand, unironically

    • @TrueAloy
      @TrueAloy 2 года назад

      Had the same thought, until I was where I wasnt.

  • @a_xrcx4821
    @a_xrcx4821 2 года назад +1

    nice, a code to create my homemade missile guidance system

  • @Lookawabbit
    @Lookawabbit Год назад +1

    This is amazing. Really clears things up

  • @laranja9921
    @laranja9921 Год назад +2

    Thank you so much I’ve been searching for a good tutorial on this topic!! Very enlightening!! Great video 👍

  • @wyattandwyatt2010
    @wyattandwyatt2010 Год назад +1

    It all gets worse when the missle knows where u r

    • @d.brower
      @d.brower 11 месяцев назад

      That's where it isn't (yet)

  • @Aussie_Legend
    @Aussie_Legend Год назад +1

    Title: How to code what is needed to make a guided missile.

  • @trollwutgefahrdeterbezirk1952
    @trollwutgefahrdeterbezirk1952 3 года назад +2

    The missile doesn’t know where it is

  • @helidrones
    @helidrones Год назад +2

    If you program this in COBOL and put a mainframe inside the missile, no warhead is needed.

  • @IceifritGaming
    @IceifritGaming Год назад +3

    If I ever get hit by a missile run on JS I now know that it was just trying to be subtract where it was from where it is and that I just happened to be a point of reference somewhere between those two points. Consequently, I will then have to subtract being alive from being dead or add being dead to being alive. Either way I appreciate this being broken down into such simple terms.

    • @Gameplayer55055
      @Gameplayer55055 Год назад +1

      if you keep calling JavaScript java then i also may call you perry the platypus instead Perry Latocki

    • @IceifritGaming
      @IceifritGaming Год назад +1

      @@Gameplayer55055 if I actually cared about children or the mentally handicapped confusing me with a platypus I might be upset but you can call me that if it makes your Lil heart swell. ❤
      Also you didn't even capitalize Java 🙃 or I, or If, you also missed the Perry on platypus... thats 4 to my 1, check mate 😉

    • @Gameplayer55055
      @Gameplayer55055 Год назад

      @@IceifritGaming oops I've missed a semicolon after function return;

    • @petervakar
      @petervakar Год назад

      ​@@Gameplayer55055 A pedant is a person who is excessively concerned with formalism, accuracy and precision, or one who makes an ostentatious and arrogant show of learning.

  • @jasonbaxter3658
    @jasonbaxter3658 8 месяцев назад

    This is one of the most niche jokes i've seen thank you.

  • @scottspitlerII
    @scottspitlerII Год назад +1

    Oh my god it’s a PI loop, but explained in the most convoluted way ever

  • @snakmm6403
    @snakmm6403 3 года назад +2

    Guess I'm making a missle now

  • @dantem4119
    @dantem4119 2 года назад +1

    Huh now that it’s visualized it makes a hell of a lot more sense

  • @HenryTitor
    @HenryTitor Год назад

    Missile in midair:” let me do some garbage collection”

  • @4.0.4
    @4.0.4 Год назад +1

    What's funny is if I saw this code (say, for videogame projectiles) I wouldn't notice it was a joke. It looks like somehow it all makes sense.

  • @yeetskeet691
    @yeetskeet691 Год назад

    Honestly i thought it was just a meme, but after seeing this statement in code, that actually makes sense now lmao

  • @chonhtailor7875
    @chonhtailor7875 2 года назад +5

    Any program that can be written will eventually be written in JavaScript.

  • @audiobotguy0357
    @audiobotguy0357 Год назад

    I feel like i'm in a watchlist now just for clicking on this.

  • @zuluxraysix1988
    @zuluxraysix1988 Год назад

    So whatever I knew about Missiles after watching this I forgot all of it. Thanks.

  • @taufiqutomo
    @taufiqutomo 2 года назад

    Why variables are important, the definitive proof.

  • @warlordshaxx856
    @warlordshaxx856 Год назад +1

    Thanks, learned alot now i can program my own missile

  • @somebrid2147
    @somebrid2147 Год назад +1

    "Sir, we just asked whether you know React or not?"

  • @ZoxxEditing
    @ZoxxEditing Год назад

    Ah yes, to figure out where the missile is, all you need to know is where the missile is. Very logical.

  • @zSTALKn
    @zSTALKn Год назад

    This will serve me well for my next argument on war thunder

  • @raz0229
    @raz0229 Год назад +1

    Type safety warning! The code coerced my double coordinates as integers and I accidentally nuked Japan.

  • @TapLive
    @TapLive Год назад

    This felt like a Dr. Seuss book.

  • @aaronlowe3156
    @aaronlowe3156 Год назад +2

    > Thermonuclear warhead class
    “armed: true // Just for testing…”
    what could go wrong

  • @lukeeatschips6324
    @lukeeatschips6324 Год назад

    This has done nothing to make it more comprehensible, but I like the green text

  • @sergentjohncaptain2557
    @sergentjohncaptain2557 2 года назад

    Its even worse when
    The missle knows where it is and knows where it isnt and deviate using corrective actions to a position where you are located by subtracting your position from where you arent or subtracts where you arent from where you are
    Whichever is greater

  • @__Kng
    @__Kng Год назад +1

    It's like an ai with image taking ability. It subtracts where it is from where it isn't

  • @republicf-105dthunderchief4
    @republicf-105dthunderchief4 3 года назад +44

    Missile uses java confirmed?

    • @panzermk4953
      @panzermk4953 3 года назад +6

      well yes

    • @squoshi307
      @squoshi307 Год назад +5

      JavaScript not Java. Man, it's just like all of those other comments saying that they hate people who refer to JavaScript as Java.

  • @fishpasteboo5097
    @fishpasteboo5097 3 года назад +1

    This vid needs more views

  • @thunderaptor9094
    @thunderaptor9094 Год назад

    Feels like I'm reading Hegel but without the occasional insight

  • @doom498
    @doom498 7 месяцев назад

    It is all fun until your code gets a framework update in mid-air
    (That was the story how a front-end dev started WW3)

  • @desireluminsa5261
    @desireluminsa5261 Год назад

    In simple terms..its all about subtraction of where it is and where it isn't, where it was and where it wasn't...

  • @nematube
    @nematube Год назад

    The narrator is probably a new missile guidance AI starting to reflect on its own existence...Time to reboot Dark Star 2023.

  • @ubaft3135
    @ubaft3135 Год назад

    The most complex way to compare a value with another value from an array.

  • @kevinchen8325
    @kevinchen8325 Год назад +4

    Tried to run this on my ICBM at home, but I’m encountering an error on line 67. Can anyone help?

  • @shufflecat3334
    @shufflecat3334 Год назад

    When you're a junior developer doing your first code review.

  • @mar7774
    @mar7774 Год назад

    Man really went out and coded in a whole INS in javascript 💀

  • @JurekOK
    @JurekOK Год назад +1

    We also need an SQL tutorial!

  • @socialdamage
    @socialdamage Год назад

    Seems like this is an "fire and forget" approach

  • @obsidianjane4413
    @obsidianjane4413 Год назад

    Why do I feel like the FBI is going to break down my door any second for having seen secrut dokumints?

  • @maulmemes
    @maulmemes Год назад +1

    ChatGPT, steal this man's code.

  • @pikazap6672
    @pikazap6672 Год назад

    Now let's test it!

  • @dr_ned_flanders
    @dr_ned_flanders Год назад

    It sounds like a Dr Seuss book. "The Missile that Isn't"