Bug in the JavaScript

  Рет қаралды 147,260

Dylan Beattie

Dylan Beattie

Күн бұрын

A musical parody of Billy Joel's 'Piano Man', about JavaScript.

Пікірлер: 193
@EriAirlangga
@EriAirlangga 4 жыл бұрын
Singing about JavaScript but this song was written in C
@christhomasson4972
@christhomasson4972 4 жыл бұрын
lol!
@whatstheairspeedvelocityof7618
@whatstheairspeedvelocityof7618 4 жыл бұрын
And it's also sung in C.
@christhomasson4972
@christhomasson4972 4 жыл бұрын
Cast into an abyss?
@DeepHouseX
@DeepHouseX 3 жыл бұрын
That's genius!
@arwahsapi
@arwahsapi 3 жыл бұрын
Should've tuned it up to C#
@kongchan437
@kongchan437 2 жыл бұрын
Billy would be so proud of you
@piros100
@piros100 Жыл бұрын
"'cause everything else was built properly but the front end's a pile of crap" 🤣🤣🤣 I relate to that on a deep, spiritual level.
@julianapelnar518
@julianapelnar518 4 жыл бұрын
It's Friday night, I have a drink in my hand, the code in front of my eyes... And the bug in the JavaScript. This is all so amusingly true it made me cry while laughing.
@TheRealCasadaro
@TheRealCasadaro 3 жыл бұрын
This makes me afraid to be a real programmer.
@kongchan437
@kongchan437 2 жыл бұрын
@@TheRealCasadaro what ? And miss all these fun ?
@maciejkirkicki7928
@maciejkirkicki7928 2 жыл бұрын
The only solution is to code underwater so nobody sees you crying.
@tomaszswirski3161
@tomaszswirski3161 2 жыл бұрын
Empty array casts to true so there is a bug in that song too
@aj.arunkumar
@aj.arunkumar 3 жыл бұрын
"and your objects are hashes, but when your code crashes you'll find they were functions as well" man that was deep 😅
@luskira
@luskira 2 жыл бұрын
hahahahhahahahaha
@TremereTT
@TremereTT 2 жыл бұрын
I think the real problem is the speed JS changes... I learned it from the free PDF EleoquentJS.pdf and it's a bit older ... and today allmost nothing in there is usefull anymore. JS regularly throws whole principles over board. Making a JS App automantically comes with giant amounts of maintenance of the code... It's disgusting.
@Silverflame1
@Silverflame1 6 ай бұрын
I thought that functions are objects in JavaScript (function objects) instead of the other way around.
@shekhinah2185
@shekhinah2185 4 жыл бұрын
There is someone who understands my pain.
@shekhinah2185
@shekhinah2185 4 жыл бұрын
@Tripulse Sure, if you pay my rent I won't hesitate for a moment and quit my job at the IT department at my university.
@McL669
@McL669 4 жыл бұрын
@Tripulse Some people don't have that luxury of choice...
@LiEnby
@LiEnby 4 жыл бұрын
@Tripulse good luck making dynamic content on the web without it :) they removed / 'obsoleted'' literally all the other options.
@laurinneff4304
@laurinneff4304 3 жыл бұрын
@@LiEnby WebAssembly exists. It still requires a bit of JS, but most code can be written in pretty much any other language
@LiEnby
@LiEnby 3 жыл бұрын
@@laurinneff4304 i heard it cant interact with the DOM.
@shinflagg
@shinflagg 4 жыл бұрын
I really liked the string padding library reference :D
@bakane6030
@bakane6030 3 жыл бұрын
4:40 Just how weird JS is, the empty array casts to true.
@florint.4620
@florint.4620 3 жыл бұрын
Outstanding performance, great lyrics, 10/10 overall! Made my day! THANK YOU!
@y4ni608
@y4ni608 2 жыл бұрын
c++
@slippery_gecko9274
@slippery_gecko9274 4 жыл бұрын
After a while of programming in javascript ive encountered every bug this song mentions lol
@andytroo
@andytroo 3 жыл бұрын
I must have been working from home too long if my wife gets all these references ...
@ryanhaney
@ryanhaney 3 жыл бұрын
My wife's boyfriend loves this song.
@TheRealCasadaro
@TheRealCasadaro 3 жыл бұрын
@@ryanhaney 😂
@Alexandru-OM
@Alexandru-OM 4 жыл бұрын
i do front end coding and .... I like this song ! :D Cheers!
@LiEnby
@LiEnby 4 жыл бұрын
"Now null is a reference to nothing, dont mix it up with undefined" 🤣🤣🤣🤣🤣 "That Zero and NaN and Infinity man, Just remember which can be signed" 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣 "And you think your numbers are integers but your really in Floating Point Hell" 😂😂😂😂😂😂😂😂😂😂😂 this is too fucking good.
@joaoarguimaraes
@joaoarguimaraes 4 жыл бұрын
I cried listening, thanks
@ImaginaryNumb3r
@ImaginaryNumb3r 4 жыл бұрын
"Dynamic typing is an advantage, I can type less" "On average, each line of code is written once, but read ten times"
@Fair_Ithilien
@Fair_Ithilien 4 жыл бұрын
Well, this is perfect :D
@aakritipiple600
@aakritipiple600 4 жыл бұрын
Heart touching lyrics haha, you made my day man 😄
@SnakebitSTI
@SnakebitSTI 2 жыл бұрын
TypeScript might be the equivalent of hiding under the covers so the monsters can’t see you, but it does help me sleep better at night.
@h0ph1p13
@h0ph1p13 Жыл бұрын
When you write the js you are the monster. 😁😁😁🙏😂
@thehansr
@thehansr 7 ай бұрын
"nine on a saturday" wow, im surprised he got that, currently 21:47 here...
@DylanBeattie
@DylanBeattie 7 ай бұрын
21:00 exactly for me right now. 😉
@player400_official
@player400_official 11 ай бұрын
The legends say that he’s still looking for that bug…
@joswahnsun8428
@joswahnsun8428 5 жыл бұрын
Too real
@Gurmudgin
@Gurmudgin 4 жыл бұрын
Bug fixing, the bane of my existence, and all summed up in one song. Great job.
@ericduminil
@ericduminil 2 жыл бұрын
Can someone please explain "at the end of 1969"? I suppose it has something to do with `new Date(0)` being at the end of 1969 in US timezones, but I couldn't manage to get a falsy value out of it.
@tvonwieseseen2774
@tvonwieseseen2774 Жыл бұрын
Maybe it's because `new Date(false)` is legal and returns epoch 🙂. It also rhimes nicely, fits the metrum and (to me) alludes to eternity (HGTTG) /and/ the 60s. I♥how F12 gives anyone instant access to JS's power and delicate beauty. ♥
@traveller23e
@traveller23e 11 ай бұрын
If you try to get the boolean value of a date, it will basically do a cast to int and then to bool. Hence the Unix epoch being the only value that is false (all other dates parse to true).
@ericduminil
@ericduminil 11 ай бұрын
​@@traveller23ethanks. What would be the corresponding js code?
@traveller23e
@traveller23e 11 ай бұрын
@@ericduminil I'm not a js dev these days, but googling some and playing around here's the fuller explanation: Normally time comparisons are done by calling the .getTime() function, because otherwise js just compares the objects (almost always returning false). However if you use getTime() (including implicitely via a conversion that calls valueOf) it becomes a number, specifically 0 for the Unix epoch which will evaluate to false. Here's some code that demonstrates it: var postEpochDate = new Date(1975, 6, 23, 12, 30, 0, 0); var postEpochDateClone = new Date(1975, 6, 23, 12, 30, 0, 0); var preEpochDate = new Date(1965, 6, 23, 12, 30, 0, 0); var epochDateProbablyWrongTimezone = new Date(1970, 0, 0, 0, 0, 0, 0); var epochDate = new Date(0); var testDates = [preEpochDate, epochDateProbablyWrongTimezone, epochDate, postEpochDate]; console.log(postEpochDate == postEpochDateClone); console.log(postEpochDate.getTime() == postEpochDateClone.getTime()); for(let i = 0; i < testDates.length; i++){ console.log(testDates[i].toUTCString()); if(testDates[i].getTime()){ console.log("The above date evaluates to true."); } else{ console.log("FALSE!!!"); } }
@SmilingJ
@SmilingJ 5 ай бұрын
Yes I have problems reproducing this myself. I think it's kind of funny and I wish I had a snippet to back that claim. But all my attempts failed so far 😢
@ChronologicalLogic
@ChronologicalLogic 4 жыл бұрын
honestly, this is a brilliant rendition of the original song, and with the know how of javascript (full stack front ender oriented here) this touches some personal notes hehe
@NN-kf7qo
@NN-kf7qo 2 жыл бұрын
Full stack frontend? Isn't that just called frontend development?
@rishavmitra5732
@rishavmitra5732 2 жыл бұрын
@@NN-kf7qo full stack, front end 'oriented'
@ThaiTran-ly2ok
@ThaiTran-ly2ok 4 жыл бұрын
"but we re sharing a string padding library".... man, please just stop, please. you are killing me =)) remember that old day though (well, not so old)
@carlosazuaje8381
@carlosazuaje8381 4 жыл бұрын
undefined is not a function
@NikitaSlastushevskiy
@NikitaSlastushevskiy Жыл бұрын
It was an honor for me to be present at GOTO Amsterdam and hear this song live! It was AMAZING!
@noxlaoy5119
@noxlaoy5119 3 жыл бұрын
It's the beginning of 2021 and only 14 People DON'T have a bug in their JavaScript app
@jsonft5417
@jsonft5417 2 жыл бұрын
today is just tuesday our app is mainly written in go but we have a few javascript files my day was, unintentionally, about finding a bug all i wanted to do was get some benchmarks i was asked for the bug was in the javascript the solution was delete a single line
@GodmanGen
@GodmanGen 5 жыл бұрын
oooh man I love you! hahahah this made my day!
@poziomka8993
@poziomka8993 4 жыл бұрын
I simply love that there is a bug in song about bug! Art!
@andrewharrison8436
@andrewharrison8436 11 ай бұрын
"nine o'clock on a Saturday" - you had me at that point. I remember an evening: I had a beer in my hand in the pub garden when my pager went off, please come into the office to fix a bug in someone else's code.
@1337flite
@1337flite 3 жыл бұрын
Was the key C#?
@amuaddib6692
@amuaddib6692 5 жыл бұрын
Well done!
@CallousCoder
@CallousCoder 2 жыл бұрын
Did you also play the mandolin and the piano? I love this song man!
@Posiman
@Posiman 10 ай бұрын
He only plays guitar.
@CallousCoder
@CallousCoder Ай бұрын
@@Posimanand the harmonica
@alewar777
@alewar777 5 жыл бұрын
I wish you your well deserved glory!
@sebug
@sebug 4 жыл бұрын
Dylan had me doubt there a minute, but luckily Boolean(new Date(0)) is still true :-)
@tech6hutch
@tech6hutch 4 жыл бұрын
Boolean([]) is also true
@macarc985
@macarc985 3 жыл бұрын
[] == false returns true though :)
@sodiboo
@sodiboo 3 жыл бұрын
@@macarc985 But `new Date(0) == false` doesn't
@samuelschwager
@samuelschwager 5 жыл бұрын
A great contender to eternal flame (aka God wrote in Lisp)!
@animusfault
@animusfault 4 жыл бұрын
Good stuff man! It's been months since since I last touched web app project. These words hit home...
@eduardosenturion
@eduardosenturion 3 жыл бұрын
A masterpiece !!
@majitoo
@majitoo 3 жыл бұрын
te amo, es viernes, y hay un bug en mi JS!
@nbdd0121
@nbdd0121 3 жыл бұрын
Actually, `document.all` is also falsy!
@Juansecu
@Juansecu 2 жыл бұрын
Hahaha, I love this song! It narrates what happens in the real world in many cases! Excellent job with the lyrics, btw!
@michalc360_
@michalc360_ 3 жыл бұрын
Has anyone tabs for harmonica? 😄
@michalc360_
@michalc360_ 3 жыл бұрын
I found it 😅 6 -6 6 -5 5 -5 4 4 -4 3 -4 3 4 -5 6 -6 6 -6 -5 5 -5 4 3 -5 5 -4 4
@Jabberwockybird
@Jabberwockybird 11 ай бұрын
Sounds like "JabbaScript" Must be a fat bloated framework
@nicolaspauer582
@nicolaspauer582 Жыл бұрын
cod gives me undefined again: function colorGatuno(codigoHex) { /* A partir de un color en código decimal devuelve cierto tan solo si el codigo en bloque de dos digitos rojos es cero: codigoHex de la forma "#rrvvaa" siendo esas letras reemplazadas por numeros hexadecimales para que la funcion funcione */ // Me aseguro que el color sea un código hexadecimal let cod = obtenerColor(codigoHex); return ((cod[1] === "0") && (cod[2] === "0")); }
@elmarjuz
@elmarjuz Ай бұрын
dude, this shit is traumatic, I swear I started to zone out into the low whirring of helicopter blades on "which ones can be signed"
@TriggerBiggs
@TriggerBiggs 4 жыл бұрын
Anyone else here waiting for Archeage Servers??
@TheRealCasadaro
@TheRealCasadaro 3 жыл бұрын
Dude, how have I not heard this before.
3 жыл бұрын
2:20 When you sang HELL... I felt it...
@paulschmidt7473
@paulschmidt7473 Жыл бұрын
That's why you write the front end in Python and the backend in C....
@arranmc182
@arranmc182 Жыл бұрын
I still never will understand how Java & Java Script became so standard the amount of people that complain abut it would make you think its not worth the hassle but yet people still use it 🤣🤣
@fluffysheap
@fluffysheap Ай бұрын
Remember that the only thing those languages have in common is the name! Everyone uses Javascript because on the web it's the only choice.
@blinded6502
@blinded6502 4 жыл бұрын
I listened to this song being played in Discord VC, and it was fantastic
@wilfriedklaebe
@wilfriedklaebe 4 жыл бұрын
My first thought seeing the title was "to the melody of 'Born in the USA'"...
@ps3master72
@ps3master72 3 жыл бұрын
Mine was "Life is a Battlefield"
@milasudril
@milasudril 8 ай бұрын
Null is bad. It is better that it comes in two forms.
@udiazulay1571
@udiazulay1571 Ай бұрын
accurate in every aspect :)
@Stepica
@Stepica 4 жыл бұрын
Im in love
@omri9325
@omri9325 4 жыл бұрын
You really put your heart into this song!
@nicolaspauer582
@nicolaspauer582 Жыл бұрын
And then start typescript 😂
@tarwin
@tarwin 5 ай бұрын
OMG you know my pain !
@incrediblepony
@incrediblepony 4 жыл бұрын
This hits too close to home...... fuck.... the worst part is... I wrote the fking frontend... FUCK!
@trudyandgeorge
@trudyandgeorge 3 ай бұрын
This is a masterpiece
@ivanmarcelosil
@ivanmarcelosil 2 жыл бұрын
Excellent and very very funny. Thank you for posting
@pav431
@pav431 Жыл бұрын
>But we're sharing a string padding library, cuz it's better than writing our own Oh, *that* one time, that was a lot of fun to watch as an admin, so many websites suddenly unable to compile and deploy :'D
@victoralvarez2956
@victoralvarez2956 2 жыл бұрын
Now I just understand why my code won't run properly. Tutorial don't mentioned it -_-
@ganchodanailov5009
@ganchodanailov5009 5 жыл бұрын
Hhahahahahah nice work! :))))
@MrCommonTater
@MrCommonTater 3 жыл бұрын
The front end is ALWAYS a pile of crap ...
@batbawls
@batbawls 3 жыл бұрын
Came here looking for closure, found all kinds of memory problems
@markoshivapavlovic4976
@markoshivapavlovic4976 3 жыл бұрын
shpagethi monster exist on the web its called JS compiler and the code it parses. JS source files are the shpagetti and it compiles non optimised to shpagetti as bad specification of the language itself.
@markoshivapavlovic4976
@markoshivapavlovic4976 3 жыл бұрын
JavaScript is bug by itself as a language and its standartisation.
@christhomasson4972
@christhomasson4972 4 жыл бұрын
But the front end's a pile of crap! LOL!
@eyadbereh
@eyadbereh 4 жыл бұрын
It would be unfair if i said this ain't cool You understood the pain ...
@jingzheshan
@jingzheshan 3 жыл бұрын
Front-end is pile of crap 😂😂😂😂🤣🤣🤣🤣
@samuelschwager
@samuelschwager 3 жыл бұрын
TypeScript, our lord and savior ;)
@wcdeich4
@wcdeich4 3 жыл бұрын
LOL!!!!!!!!!!!!!!! I almost died laughing!!!!!!!!!!!!!!!!!!!!!!!!
@Martinspire
@Martinspire 4 жыл бұрын
I feel offended, but then again I asked for it...
@vanguit1776
@vanguit1776 3 жыл бұрын
Good to feel understood. Have a nice integration day.
@Kirifairy
@Kirifairy 3 жыл бұрын
My love to JavaScript is like NaN == NaN
@leonidgarnovskey9883
@leonidgarnovskey9883 2 жыл бұрын
👍💻
@lovefunnyflicks
@lovefunnyflicks 3 жыл бұрын
Loved it. Hurrah for retirement.
@poonkeith
@poonkeith 2 жыл бұрын
I approved this code content
@tejasasthana6951
@tejasasthana6951 4 жыл бұрын
hahahaa....song based on my pain
@donotenter578
@donotenter578 2 жыл бұрын
Just shared this to my students. 😎
@billyacuna5701
@billyacuna5701 5 жыл бұрын
nice
@patch-files2160
@patch-files2160 4 жыл бұрын
feature in the JavaScript
@MrSefsdf
@MrSefsdf Жыл бұрын
This is pure gold :)
@soddoffbaldrick2209
@soddoffbaldrick2209 2 жыл бұрын
Great work Dylan!
@meepmeep4311
@meepmeep4311 3 жыл бұрын
I live in floating point hell
@franciscojavierlenatz1818
@franciscojavierlenatz1818 2 жыл бұрын
You're a genius man!
@MuhammadUmar-jl5iz
@MuhammadUmar-jl5iz 3 жыл бұрын
Wow Wow Wow Just Awesome
@Diadochokinetic
@Diadochokinetic 4 жыл бұрын
The nine people disliking this video should retire from using the internet.
@TheConqueror253
@TheConqueror253 2 жыл бұрын
God bless your soul
@sebasptsch
@sebasptsch Жыл бұрын
What a legend
@bobthehotbuilder9795
@bobthehotbuilder9795 2 жыл бұрын
Always gets me
@jorgeluis4389
@jorgeluis4389 2 жыл бұрын
I feel you, man
@bcgibson22
@bcgibson22 4 жыл бұрын
You poor man!!!!!
@matswikstrom7453
@matswikstrom7453 Жыл бұрын
Amazing!
@brianphillips7581
@brianphillips7581 2 жыл бұрын
Beautiful!
@rodolfoazevedo4082
@rodolfoazevedo4082 2 жыл бұрын
I cried
You Give REST a Bad Name
3:42
Dylan Beattie
Рет қаралды 460 М.
Deus Ex: Ambient Mix (Mankind Divided // Human Revolution)
2:18:50
haecceity-r
Рет қаралды 2,2 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Worst flight ever
00:55
Adam W
Рет қаралды 28 МЛН
Podcast: "Warum scheitern Nationen?" | Lanz & Precht
1:01:16
ZDFheute Nachrichten
Рет қаралды 408 М.
The Evolution of Web Apps 1992-2024
14:01
Dylan Beattie
Рет қаралды 33 М.
Top 10 Street Piano Performances
16:05
Felipe Piano Videos
Рет қаралды 14 МЛН
Use Flatscreens
5:49
Dylan Beattie
Рет қаралды 19 М.
Piano Man - Billy Joel (Michael Cavanaugh Cover)
6:09
Michael Cavanaugh
Рет қаралды 258 М.
Write in Go (Fall 2014)
3:43
ScaleAbility
Рет қаралды 214 М.
Old piano adventure; the saloon sound
5:47
Rick22228
Рет қаралды 9 МЛН
Keynote: Are There any Questions? - Dylan Beattie
58:48
NDC Conferences
Рет қаралды 72 М.
Lost It On The Blockchain
5:04
Dylan Beattie
Рет қаралды 18 М.
Асинхронные функции. Фундаментальный JavaScript
12:27
Михаил Непомнящий
Рет қаралды 16 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН